[alsa-devel] Question about device recovery when under/over run error case

Takashi Sakamoto o-takashi at sakamocchi.jp
Tue Jan 19 02:15:33 CET 2016


Hi,

On Jan 19 2016 09:04, Kuninori Morimoto wrote:
>>>> Userspace can get to know the XRUN state by calling some APIs. Then,
>>>> it can recover PCM substream by executing SNDRV_PCM_IOCTL_PREPARE
>>>> ioctl.
>>>
>>> I think we can use snd_pcm_stop_xrun() for this purpose.
>>
>> Right.  But beware of locking by this function.  Unlike snd_pcm_stop()
>> this function takes the stream lock by itself.
>
> Thanks !
> I see. I will investigate it.

The 'lock' is what I mentioned in former message to you:

[alsa-devel] Can I stop sound from driver as system error ?
http://mailman.alsa-project.org/pipermail/alsa-devel/2015-December/102010.html


Regards

Takashi Sakamoto


More information about the Alsa-devel mailing list