I am implementing an application to capture and playback audio with alsa library at same time in TLV320AIC3101 in DM365 (Linux kernel 2.6.18).
I use “default” device and open it twice, one for CAPTURE, one for PLAYBACK. The snd_pcm_open function returns fine. And capture function(snd_pcm_readi) works fine too before I start playback.
But I always get “Broken Pipe” error in capture function when I start playback during capturing.
I did not find duplex setting in TLV320AIC3101’s datasheet, but I checked its block diagram, looks like it has separate channel for capture and playback.
Is there any special configuration for alsa or any patch for alsa or kernel to implement audio duplex?
Thank you very much for your time and help,
Ivy