diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 7fac3cae8abd0a232a3d7a1c2563999495df6ec2..9e7c2f0831d7b7d2d859072282a7354a6d1f5404 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -286,6 +286,7 @@ static ssize_t snd_compr_write(struct file *f, const char __user *buf, mutex_lock(&stream->device->lock); /* write is allowed when stream is running or has been steup */ if (stream->runtime->state != SNDRV_PCM_STATE_SETUP && + stream->runtime->state != SNDRV_PCM_STATE_PREPARED && stream->runtime->state != SNDRV_PCM_STATE_RUNNING) { mutex_unlock(&stream->device->lock); return -EBADFD;