mic recording of voice is not possible

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mic recording of voice is not possible

1,117 Views
dhanushvenugopa
Contributor I

Hi,

Im using the imx6ulevk board ,presently working on the codec section ,when im recording the voice through on board mic and aplay that recorded wav file im not able to hear any thing.But when i record the song through mic its getting recorded. what can be the issue .and how can i record the voice .

Labels (1)
0 Kudos
5 Replies

966 Views
dhanushvenugopa
Contributor I

Hi Joan,

aplay is also not possible, more over the codec is detected under the i2cdetect ,but when i read the i2c register values by using i2cdump in all the register's xx is present. since tlv320 is not working, i tried with the on-board wm8960 codec there also im facing the same issue i2cdump contains only xx, and im not able to write the value to the i2cregister by using i2cset command.Please can i know what can be the issue and how can i resolve this issue

0 Kudos

966 Views
joanxie
NXP TechSupport
NXP TechSupport

when you use the command "aplay -l", what result do you get? I found a solution for this, maybe you can try it:

for main board mic. please try below setting
amixer cset name='Left Input Mixer Boost Switch' on
amixer cset name='Left Boost Mixer LINPUT1 Switch' on
amixer cset name='Left Boost Mixer LINPUT2 Switch' on
amixer cset name='Left Boost Mixer LINPUT3 Switch' on
amixer cset name='Right Input Mixer Boost Switch' on
amixer cset name='Right Boost Mixer RINPUT1 Switch' on
amixer cset name='Right Boost Mixer RINPUT2 Switch' on
amixer cset name='ADC PCM Capture Volume' 220
amixer cset name='ADC Data Output Select' 2

for headphone mic, please try this
amixer cset name='Left Input Mixer Boost Switch' on
amixer cset name='Left Boost Mixer LINPUT1 Switch' on
amixer cset name='Left Boost Mixer LINPUT2 Switch' on
amixer cset name='Left Boost Mixer LINPUT3 Switch' on
amixer cset name='Right Input Mixer Boost Switch' on
amixer cset name='Right Boost Mixer RINPUT1 Switch' on
amixer cset name='Right Boost Mixer RINPUT2 Switch' on
amixer cset name='ADC PCM Capture Volume' 220
amixer cset name='ADC Data Output Select' 1

0 Kudos

966 Views
joanxie
NXP TechSupport
NXP TechSupport

did you use wm8960 codec?

0 Kudos

966 Views
dhanushvenugopa
Contributor I

tlv320aic3007 codec

0 Kudos

966 Views
joanxie
NXP TechSupport
NXP TechSupport

could you aplay xx.wav successfully? this is the example tlv320 in imx6q, you can try to compare with your code, to double check your settings,

How to enable TLV320 on IMX6Q? 

for debug the driver , you can find the source code from:

codecs\soc\sound - linux-imx - i.MX Linux kernel 

for imx6ul, current bsp uses sound/soc/fsl/imx-wm8960.c, if you use new codec, you need to create your own, for more detailed information, pls refer to the enclose file

0 Kudos