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

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Jan 19 01:04:40 CET 2016


Hi Iwai-san

> > > 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.


More information about the Alsa-devel mailing list