]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: compress: Be more restrictive about when a drain is allowed
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 22 Jul 2019 09:24:36 +0000 (10:24 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Jul 2019 10:07:48 +0000 (12:07 +0200)
commit9a6242c9f136243b6c9672d3ba808916f20f7b76
tree765b6fb6e07ef6a5967bfe7e83a9fa5384d42591
parente7b879e850e7d732db541d2382cbcaa4e4073602
ALSA: compress: Be more restrictive about when a drain is allowed

Draining makes little sense in the situation of hardware overrun, as the
hardware will have consumed all its available samples. Additionally,
draining whilst the stream is paused would presumably get stuck as no
data is being consumed on the DSP side.

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