---------- Forwarded message ---------- From: Nobin Mathew <nobin.mathew@xxxxxxxxx> Date: May 9, 2007 11:57 PM Subject: Re: ALSA problems with simultaneous Capture and playback To: Lee Revell <rlrevell@xxxxxxxxxxx> 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@xxxxxxxxxxx> wrote: > On 5/9/07, Nobin Mathew <nobin.mathew@xxxxxxxxx> 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 > _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel