On Tue, 30 Sep 2003, Kai Vehmanen wrote: > Note: this probably belongs to alsa-devel, so please remove alsa-user from > replies. > > On Fri, 26 Sep 2003, Jamie Lutch wrote: > > > Didnt have any responses on my post of a few days ago, so I'm giving it > > another go: > > Sorry for the late reply. > > > So I have my setup (pdaudiocf card>ecasound) running fine at 24/96, but > > every once in awhile it just stops mid-stream and gives the following error: > [...] > > (audioio-alsa) Unknown Device State! > > Ecasound is getting an error (res<0) from snd_read{in}/write{in}. It's one > of...: EPIPE, EIO or EINTR. > > In response, Ecasound calls snd_pcm_status() and then > snd_pcm_status_get_state() to query, but the returned state is not > the expected 'SND_PCM_STATE_XRUN'. I'm not sure how this could happen. I > could not reproduce this error with the latest ALSA&ecasound on my > soundcards. > > I've added some debug printfs to the code, so could you retry the tests > with the latest Ecasound from CVS? By doing this we should at least > learn what is the exact state the soundcard is in.
I will explain what happens: The PDAudioCF driver checks the input rate periodically and if it does not match, it will force SND_PCM_STATE_DRAINING and stops the capture (because stream has invalid - non-settled - parameters). In this case, EPIPE is also returned. The reason why SND_PCM_STATE_XRUN is not used is to tell the application that stream parameters were changes and also the capture ring buffer might not be full at this point, of course, so the XRUN condition is not true. Jamie, it seems that your input source does not give constant stream (or your cabling is broken). Could you try another input source or another cables? Thanks. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel