Re: [PATCH V0 1/1] ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()
From: Jaroslav Kysela
Date: Fri Feb 25 2022 - 05:52:35 EST
On 25. 02. 22 11:39, Raghu Bankapur wrote:
When period interrupts are disabled, while loop in snd_pcm_update_hw_ptr0()
results in the machine locking up if runtime->hw_ptr_buffer_jiffies is 0.
Validate runtime->hw_ptr_buffer_jiffies value before while loop to avoid
delta check.
I would set hw_ptr_buffer_jiffies to 1 in this case in snd_pcm_post_start().
Jaroslav
--
Jaroslav Kysela <perex@xxxxxxxx>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.