[alsa-devel] Fwd: ALSA problems with simultaneous Capture and playback

Nobin Mathew nobin.mathew at gmail.com
Wed May 9 20:27:54 CEST 2007

---------- Forwarded message ----------
From: Nobin Mathew <nobin.mathew at gmail.com>
Date: May 9, 2007 11:57 PM
Subject: Re: [alsa-devel] ALSA problems with simultaneous Capture and playback
To: Lee Revell <rlrevell at joe-job.com>

when I do capture and Playback independently for any channel
configurations and any sampling rate configuration it works perfectly.

Following configuration of simutaneous playback and capture work.
loop "line out" and "line in" externaly using stereo jack.
start arecord and then start aplay.
Then it records properly.

The application which is giving erorr is custom application which sets
params properly.

if i run "aplay" and "arecord" first (after boot) and then i run my
application then it works properly.

reverse is not working (i.e. running my app first destroys whole ALSA,
then even arecord and aplay is not working).

On 5/9/07, Lee Revell <rlrevell at joe-job.com> wrote:
> On 5/9/07, Nobin Mathew <nobin.mathew at gmail.com> wrote:
> > One read and write handle 256 frames.
> >
> > Write seems to be OK, but read fails
> >
> > State 4 is SND_PCM_STATE_XRUN
> >
> > why this XRUN is happening?
> If your hardware buffer is small you may need to run your application
> with realtime priority (SCHED_FIFO) to avoid xruns.
> I guess this is a custom driver?  Please post a link to the source code.
> Lee

More information about the Alsa-devel mailing list