[alsa-devel] Mic/Line-in record is not working with wm9713 AC97
Hi,
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?
Regards, Sreekanth
On Wed, Oct 14, 2009 at 03:39:23PM +0530, Sreekanth W wrote:
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.
Could you clarify what you mean when you say "almost there is no data"?
Mic Bias: Off
Any idea why record is not working? Anything wrong with these settings?
_From what you've said it sounds like you're succesfully recording data but the ADC is not seeing a signal to record so you're getting a small amount of noise on the output but that's it. Unless your microphone bias comes from some other source the fact that the Mic Bias on the WM9713 is off will be an issue here - you need to set up DAPM routes to connect that to your microphone widget, see Zylonite for one example. Otherwise check the gains and mutes on the microphone->ADC path to make sure that the signal is being amplified sufficiently.
It might be helpful to set up a bypass path from the input stages so you can hear the output directly while adjusting the controls rather than doing records.
participants (2)
-
Mark Brown
-
Sreekanth W