[alsa-devel] Mic/Line-in record is not working with wm9713 AC97

Sreekanth W w.sreekanth at gmail.com
Wed Oct 14 12:09:23 CEST 2009


I am trying to record a wav file using mic/line-in with wm9713 driver.
The Wav file is created, only header is created but almost there is no
data. This is seen using CoolEdit/Vim editor.
If I try to play the recorded file, there is no sound.
But, playing works for other existing files, able to using aplay.

I am issuing the following command to record
# ./arecord –t wav –c 1 –r 8000 –d 10 –f S16_LE test.wav

The below is the dump of /sys/devices/platform/soc-audio/dapm_widget,
while "arecord" is running (using mic):

# cat /sys/devices/platform/soc-audio/dapm_widget
Mic Bias: Off
Mic B Pre Amp: Off
Mic A Pre Amp: On
Mic B PGA: Off
Mic A PGA: Off
Mono In: Off
Right Line In: Off
Left Line In: Off
Mono Out: Off
Out 4: Off
Out 3: Off
Right Speaker: Off
Left Speaker: Off
Right Headphone: Off
Left Headphone: Off
Right Voice ADC: Off
Left Voice ADC: Off
Right HiFi ADC: On
Left HiFi ADC: On
Right ADC: On
Left ADC: On
Aux DAC: Off
Voice DAC: Off
Capture Mixer: Off
Line Mixer: Off
HP Mixer: Off
AC97 Mixer: Off
Right DAC: Off
Left DAC: Off
Speaker Mixer: Off
Mono Mixer: Off
Right HP Mixer: Off
Left HP Mixer: Off
PM State: On

I'm using DMA for data transfer, and getting the callback function
after DMA completed.
Also I'm printing the number of Bytes transfered.

Any idea why record is  not working? Anything wrong with these settings?


More information about the Alsa-devel mailing list