Re: [linux-audio-dev] ALSA Picture

From: Richard Spindler <richard.spindler@email-addr-hidden>
Date: Fri Mar 24 2006 - 15:30:48 EET

2006/3/24, Clemens Ladisch <clemens@email-addr-hidden>:
> 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
Received on Fri Mar 24 16:15:04 2006

This archive was generated by hypermail 2.1.8 : Fri Mar 24 2006 - 16:15:04 EET