Hi all
I have IMX233-mini-wifi and I want to record sound via microphone. I connect the microphone according to schema bellow:
and followed the instruction bellow, but I got noisy sound! What do I do wrong?
Thanks
1. Set Headphone Mux to DAC Out type:
[root@alarm ~]# amixer cset name='HP Mux' 0
numid=9,iface=MIXER,name='HP Mux'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'DAC Out'
; Item #1 'Line In 1'
: values=0
2. Set Left ADC Mux to MIC type:
[root@alarm ~]# amixer cset name='Left ADC Mux' 0
numid=11,iface=MIXER,name='Left ADC Mux'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Mic'
; Item #1 'Line In 1'
; Item #2 'Head Phone'
; Item #3 'Line In 2'
: values=1
3. Set Right ADC Mux to MIC type:
[root@alarm ~]# amixer cset name='Right ADC Mux' 0
numid=10,iface=MIXER,name='Right ADC Mux'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Mic'
; Item #1 'Line In 1'
; Item #2 'Head Phone'
; Item #3 'Line In 2'
: values=1
4. Plug in a 3.5 mm audio jack with audio source to the board's Line in connector and type:
[root@alarm ~]# arecord -f cd -D hw:0,0 -d 5 test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
The result should be a 5 sec long test.wav file with recorded sound from the
your audio source.
5. Playing of recorded sound from the test.wav file. Plug in Headphones to the board HEADPHONES connector and type:
[root@alarm ~]# aplay -f cd -D hw:0,0 test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo