Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 781f6f75 authored by Gopikrishnaiah Anandan's avatar Gopikrishnaiah Anandan Committed by Stephen Boyd
Browse files

ASoC: core: Fix compressed ioctls state check



Compressed ioctls should be allowed on a pcm stream
in all states. Change removes the state check.

Change-Id: I07be06312e562827e475ad44eb2491e2b498e3a1
Signed-off-by: default avatarGopikrishnaiah Anandan <agopik@codeaurora.org>
parent b1cd9008
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1569,9 +1569,7 @@ static int snd_compressed_ioctl(struct snd_pcm_substream *substream,
	if (PCM_RUNTIME_CHECK(substream))
		return -ENXIO;
	runtime = substream->runtime;
	if (runtime->status->state != SNDRV_PCM_STATE_OPEN)
		return -EBADFD;
	pr_err("%s called with cmd = %d\n", __func__, cmd);
	pr_debug("%s called with cmd = %d\n", __func__, cmd);
	err = substream->ops->ioctl(substream, cmd, arg);
	return err;
}