diff options
author | Vinod Koul | 2020-06-29 19:17:37 +0530 |
---|---|---|
committer | Takashi Iwai | 2020-07-07 11:52:18 +0200 |
commit | f79a732a8325dfbd570d87f1435019d7e5501c6d (patch) | |
tree | 31e2f525140ee6c43d39077461016d26527e1bf0 /tools/firewire/nosy-dump.c | |
parent | b6a1e78b96a5d7f312f08b3a470eb911ab5feec0 (diff) |
ALSA: compress: fix partial_drain completion state
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>
Diffstat (limited to 'tools/firewire/nosy-dump.c')
0 files changed, 0 insertions, 0 deletions