Current BSP : yocto with branch of imx_3.10.53_1.1.0-ga
Target Board: Custom board schematic circuit is basically copy from imx6qsabresd,
except the MCLK of wm8962 , we use 24MHz external crystal instead.
The Problem:
I use the following command to test recording.
arecord -vv -t wav -fdat -d 10 rdfile.wav
when i play the "rdfile.wav" file , there is no sound.
I have checked "ADCDAT" pin of wm8962 while recording , there is no signal out.
The power supply pins on wm8962 are all normal .
I believe my board is ok , because i can record voice normally with the bsp of L3.0.35_4.1.0 on this board.
So i compared wm8962 driver code between the two bsps , try to find solution, but failed.
Can any body tell me the solution or any advices ?
what is the output "aplay -l"?
have you turn on the capture switches in alsamixer for sound recording?
output for "aplay -l":
**** List of PLAYBACK Hardware Devices ****
card 0: wm8962audio [wm8962-audio], device 0: HiFi wm8962-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
I think the capture switches in alsamixer has been turned on, as i have exec the following commands:
amixer cset numid=8 iface=MIXER,name='Digital Capture Volume' 127 | |
amixer cset numid=10,iface=MIXER,name='Capture Switch' on | |
amixer sset 'Capture' 100 | |
amixer sset 'INPGAR IN3R' on | |
amixer sset 'MIXINR IN3R' on |
For example, according to the INPUT SIGNAL PATH diagram in WM8962 datasheet, if you want to select the path is IN3R -> IN3R_TO_INPGAR -> PGAR -> INPGAR_TO_MIXINR -> MIXINR -> ADC(RIGHT). Then you need to enable "MIXINR INPGAR". Also, you can increase the volume INPGAR_MIXINR_VOL or
IN3R_MIXINR_VOL.
You can check the corresponding name of the switch and mixer in the wm8962.c wm8962_intercon[]. Then you can find the name in the alsamixer.
then try "arecord -f cd test.wav ".
I found an options of "MIXINR PGA", and turned it on, then,checked vol options ,make sure they are unmute.
but, the problem is still exist.
i doubt is there any bugs on the driver code of wm8962 ? it is very hard for me to find out and fix it.
i really hope i can get a very sure answer :the recording function of wm8962 has been well tested on the platform of imx6qsabresd board, and is work fine.
anyway , thanks very much for your patiently reply.