satish wrote: > Hi All, > > I got ALSA driver version 1.0.6 installed on my computer. > I used the API to write very simple recording and playing programs. > > But I can't seem to get both recording and playing to work at the > same time. I can open the audio device for both recording and > playing, > and set up (some) hardware parameters for both recording and playing. > But I can only run > > snd_pcm_hw_params() > > either on the recording side *or* the playback side only once. > > Regardless of the order the 2nd call to snd_pcm_hw_params() fails. > Use a different file descriptor for playback and capture. I.e. 2 file descriptors. Don't open a single file descriptor as full-duplex. James
Thanx for the response James, but still the problem persists.
As an alternative, i tried using capture and playback in different time intervals, instead of full duplex
eventhough in my 2nd call to snd_pcm_hw_params() i'm getting this error message
"unable to set hw parameters: Invalid argument"