[linux-audio-dev] ALSA Picture
Richard Spindler
richard.spindler at gmail.com
Fri Mar 24 13:30:48 UTC 2006
2006/3/24, Clemens Ladisch <clemens at ladisch.de>:
> snd_pcm_hw_params() goes into the SETUP state and then calls
> snd_pcm_prepare(); I don't know how to display this in a picture. :)
Yes, I read that, but from an App-Developers point of view, this is
roughly equivalent to going to PREPARE directly, IMHO.
> You probably want an arrow from snd_pcm_writei() to RUNNING.
Fixed that. :)
> The SUSPENDED and XRUN states can happen asynchronously, i.e., the
> device can go into them at any time (from some other states), and the
> next call to snd_pcm_writei() only reports them. In this regard, they
> are similar to the DISCONNECTED state.
Is this an issue when using this async-stuff? I think the most likely
situation might be that it happens when you call writei.
> XRUN happens not only when an over/underrun occurs but also when some
> other error causes the device to stop (this error may be recoverable or
> not).
What could that be?
-Richard
More information about the Linux-audio-dev
mailing list