diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2019-07-22 11:24:34 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-07-23 12:07:36 +0200 |
commit | 26c3f1542f5064310ad26794c09321780d00c57d (patch) | |
tree | 6e355a09d749bcd68579a78c01569b8cd181dafa /fs/no-block.c | |
parent | ALSA: compress: Fix regression on compressed capture streams (diff) | |
download | linux-26c3f1542f5064310ad26794c09321780d00c57d.tar.xz linux-26c3f1542f5064310ad26794c09321780d00c57d.zip |
ALSA: compress: Prevent bypasses of set_params
Currently, whilst in SNDRV_PCM_STATE_OPEN it is possible to call
snd_compr_stop, snd_compr_drain and snd_compr_partial_drain, which
allow a transition to SNDRV_PCM_STATE_SETUP. The stream should
only be able to move to the setup state once it has received a
SNDRV_COMPRESS_SET_PARAMS ioctl. Fix this issue by not allowing
those ioctls whilst in the open state.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'fs/no-block.c')
0 files changed, 0 insertions, 0 deletions