diff options
author | Vinod Koul <vkoul@kernel.org> | 2020-06-29 19:17:37 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-16 08:16:39 +0200 |
commit | 1c54d0d9c4e6a9b40fa4faa0f23b8901a265b3d5 (patch) | |
tree | c77586c400ef977a6932ae27393c0696f539b32d /init | |
parent | 175b5aa7b9649f08752c55823f3a44db09423ab8 (diff) | |
download | linux-stable-1c54d0d9c4e6a9b40fa4faa0f23b8901a265b3d5.tar.gz linux-stable-1c54d0d9c4e6a9b40fa4faa0f23b8901a265b3d5.tar.bz2 linux-stable-1c54d0d9c4e6a9b40fa4faa0f23b8901a265b3d5.zip |
ALSA: compress: fix partial_drain completion state
[ Upstream commit f79a732a8325dfbd570d87f1435019d7e5501c6d ]
On partial_drain completion we should be in SNDRV_PCM_STATE_RUNNING
state, so set that for partially draining streams in
snd_compr_drain_notify() and use a flag for partially draining streams
While at it, add locks for stream state change in
snd_compr_drain_notify() as well.
Fixes: f44f2a5417b2 ("ALSA: compress: fix drain calls blocking other compress functions (v6)")
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Tested-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20200629134737.105993-4-vkoul@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions