]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: compress: Don't allow paritial drain operations on capture streams
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 22 Jul 2019 09:24:35 +0000 (10:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:13:52 +0000 (10:13 +0200)
commitc0741c777683c46884846861a8452ba966771129
tree73708d3718bbc99afb4dc58789b067b6e424bc48
parent06b9a8bb1263af9312466efe6c3982fea86ee8eb
ALSA: compress: Don't allow paritial drain operations on capture streams

[ Upstream commit a70ab8a8645083f3700814e757f2940a88b7ef88 ]

Partial drain and next track are intended for gapless playback and
don't really have an obvious interpretation for a capture stream, so
makes sense to not allow those operations on capture streams.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/core/compress_offload.c