ALSA: compress: Don't allow paritial drain operations on capture streams
commitcbc76c3b9d42ce1720e57cdb8026e2e218fb2eea
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 22 Jul 2019 09:24:35 +0000 (22 10:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:51:27 +0000 (25 10:51 +0200)
tree6e96e47b1ad177b4bb2a294d2c975ab14076f58f
parent8d25080f4d84654929a7eca15cb2eddbd6337bfc
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