Re: [PATCH 3/3] ALSA: compress: fix partial_drain completion state

2020-06-21 Thread Vinod Koul
On 19-06-20, 10:13, Srinivas Kandagatla wrote: > > > On 19/06/2020 05:54, Vinod Koul wrote: > > 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

Re: [PATCH 3/3] ALSA: compress: fix partial_drain completion state

2020-06-19 Thread Srinivas Kandagatla
On 19/06/2020 05:54, Vinod Koul wrote: 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

[PATCH 3/3] ALSA: compress: fix partial_drain completion state

2020-06-18 Thread Vinod Koul
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