[linux-audio-dev] Alsa Problem

Lee Revell rlrevell at joe-job.com
Mon Mar 27 04:50:48 UTC 2006


On Fri, 2006-03-24 at 14:09 +0100, Richard Spindler wrote:
> I'm using snd_pcm_writei to playback some audio, however, after a
> little time the call fails with the error: "File descriptor in bad
> state", which I believe I cannot recover from.
> 
> Why does this happen, and what could I do about this?
> 
> cat /proc/asound/card0/pcm0p/sub0/* prints the following stuff, I
> don't know whether this is helpful?
> 
> access: MMAP_INTERLEAVED 

You have set up the device for MMAP mode with
snd_pcm_hw_params_set_access() but are trying to use read/write which
won't work.  Set the access mode to RW.

Lee




More information about the Linux-audio-dev mailing list