Re: Question about device recovery when under/over run error case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sakamoto-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.
> 
> The 'lock' is what I mentioned in former message to you:
> 
>  Can I stop sound from driver as system error ?
> http://mailman.alsa-project.org/pipermail/alsa-devel/2015-December/102010.html

Yes, I had asked same question to ML, I'm sorry about that.
And, can I confirm about your concern ?
I guess you are worrying about dead-lock by stop xrun, but is that correct ?

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux