This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Audio capture on DM816x is not recording correctly

Hello,

I'm using the example audio applications in the TI EZSDK to capture & playback audio using a TI8168 processor.  I've followed the steps mentioned in:

http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_Audio_Driver_User_Guide#Opening_the_audio_device

and the HDMI user guide:

http://processors.wiki.ti.com/index.php/TI81XX_HDMI_User_Guide#HDMI_Auto_Mode_Configuration

I installed all the modules & enabled all the audio devices.  I'm using HDMI to first playback & then capture audio signal. Here's what I'm observing:

root@arago:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: EVM [TI81XX EVM], device 1: hdmi HDMI-DAI-CODEC-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: EVM [TI81XX EVM], device 2: ADV7604 adv7604-hifi-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0


root@arago:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: EVM [TI81XX EVM], device 1: hdmi HDMI-DAI-CODEC-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: EVM [TI81XX EVM], device 2: ADV7604 adv7604-hifi-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Using the HDMI playback device & a sample audio stream:

root@arago:~# aplay -Dhw:0,1 dt_32bars_89rap.wav
Playing WAVE 'dtWrapper Enabled...
_32bars_89rap.waStart audio transfer...
v' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Aborted by signaWrapper disabled...
l Interrupt...
root@arago:~#

If I use the capture signal:

root@arago:~# arecord -d 60 -f cd -t wav -c 2 -Dhw:0 sample_capture_3.wav
Recording WAVE 'sample_capture_3.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
overrun!!! (at least 1059.871 ms long)

And play it back, I hear nothing (but some noise maybe!). The file is not empty & it has definitely captured something (#cat sample_capture_3.wav - gives non-zero values)

root@arago:~# aplay -Dhw:0,1 sample_capture_3.wav
Playing WAVE 'saWrapper Enabled...
mple_capture_3.wStart audio transfer...
av' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Wrapper disabled...
root@arago:~#

If I use the capture example provided in the first link mentioned above, I get this output:

root@arago:~# ./minimal_capture
snd_pcm_readi successful
root@arago:~#

I am wondering if there's anything else to do to capture audio using HDMI or if there's any step I'm missing.  I think that I've included all the HDMI audio modules but I still don't see any capture happening. Do you have any ideas or is there a bug in the processor of some sort that I'm unaware of?  Thanks,

Bharadwaj