22 Mar
2022
22 Mar
'22
6:25 p.m.
On 22. 03. 22 18:13, Takashi Iwai wrote:
snd_pcm_reset() is a non-atomic operation, and it's allowed to run during the PCM stream running. It implies that the manipulation of hw_ptr and other parameters might be racy.
This patch adds the PCM stream lock at appropriate places in snd_pcm_*_reset() actions for covering that.
Reviewed-by: Jaroslav Kysela perex@perex.cz
Thanks, Jaroslav
--
Jaroslav Kysela perex@perex.cz
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.