ALSA and TWL4030 in full duplex mode
Hi,
I have been having trouble running the ALSA driver for the TWL4030 audio codec in Full duplex mode, using the OMAP 2430SDP. The driver used is the ALSA OMAP2430SDP driver (or the TWL4030 driver in 2.6.14 v3).
It works fine in half-duplex mode but not in full duplex mode. I tried this with the following ti kernels:
- linux-2.6.14-omap2-v3.tgz
- linux-2.6.14-omap2-v4.tgz
When opening the device for capture (after successfully opening for playback), the driver prints the following kernel error message:
"Request for MCBSP Failed[-22]"
This error occurs in omap2-audio-twl4030.c and is caused by attempting to request the McBSP interface when it is already reserved.
I also notice that the there is an additional driver: the OMAP2430DASF. This driver seems to use a message queue but its unclear on how it is supposed to work and if it supports full duplex mode. When attempting to play sound using it, it blocks the application and eventually fails with write error.
Any information on these would be appreciated
Thanks,
Filipe
Hi,
Quoted 2 lines
It works fine in half-duplex mode but not in full duplex mode. I tried this with the following ti kernels:
Yes, the full duplex in ALSA on TWL4030 is tested / Validated.
Generally we do,
# arecord -f cd -d 10 filename_rec.wav | aplay filename.wav
Quoted 7 lines
I also notice that the there is an additional driver: the OMAP2430DASF. This
driver seems to use a message queue but its unclear on how it is supposed to
work and if it supports full duplex mode. When attempting to play sound using it, it blocks the application and eventually fails with write error.
This was some kind of hacked approach that we used to play around with DSP side rendering of Audio of audio data. We don't have to use this.
Regards,
Khasim