Re: [linux-audio-dev] Alsa Problem

From: Clemens Ladisch <clemens@email-addr-hidden>
Date: Mon Mar 27 2006 - 12:31:38 EEST

Lee Revell wrote:
> 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

I guess the actual device being used is "default" which is probably a
dmix device that uses the hardware device as a slave. In this case, the
hardware device will continue running even when the dmix device is in a
bad state.

Richard, was is the state of your device? (See snd_pcm_dump() or
snd_pcm_state().)

Regards,
Clemens
Received on Mon Mar 27 16:15:01 2006

This archive was generated by hypermail 2.1.8 : Mon Mar 27 2006 - 16:15:02 EEST