diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2019-07-22 10:24:34 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-07-23 12:07:36 +0200 |
commit | 26c3f1542f5064310ad26794c09321780d00c57d (patch) | |
tree | 6e355a09d749bcd68579a78c01569b8cd181dafa /block/blk-mq-debugfs.h | |
parent | 4475f8c4ab7b248991a60d9c02808dbb813d6be8 (diff) |
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 'block/blk-mq-debugfs.h')
0 files changed, 0 insertions, 0 deletions