Re: [linux-audio-dev] Alsa Problem

From: Lee Revell <rlrevell@email-addr-hidden-job.com>
Date: Mon Mar 27 2006 - 07:50:48 EEST

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
Received on Mon Mar 27 08:15:07 2006

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