[alsa-devel] How to report error in _pointer function?

Timur Tabi timur at freescale.com
Mon Aug 11 17:37:29 CEST 2008

Takashi Iwai wrote:

> Hm?  snd_pcm_pre_stop() returns -EBADFD if the stream *IS* OPEN.
> If it's RUNNING, it will stop the stream and change the state.

Hmmm.... you're right.  I don't know what I was thinking.

Tracing the code, I see that ALSA does call my driver's trigger function to stop
the stream.  So why doesn't the application also stop?

Timur Tabi
Linux kernel developer at Freescale

More information about the Alsa-devel mailing list