Hello,
I have not been able to find any information in the freescale documentation for how to record audio from the built-in microphone on the SABRE-SDB board. I came across a webpage: How to use & access iMX6 peripherals (Examples) - iMX6 Rex Module and it showed examples of how to record from microphone;
# arecord -f dat -d 10 -D hw:0,0 test.wav
Play the recorded file:
# aplay -f dat test.wav
After booting the board I am able to record. However, when I playback, I do not hear anything coming out of my headset. I am booting for the SD card image that came with the board.
Thanks,
Javier
P.S. Where is the test.wav file stored?
Solved! Go to Solution.
Hi Javier
Did you try this :
amixer sset 'INPGAR IN3R' on
Regards
Sinan Akman
Please check if a capture device (MIC) is present in configuration,
using the command :
/$ arecord -l
Perhaps the problem concerns with the improper volume controls for input / output
sound channels. Please use "amixer" or "alsamixer" utilities to amplify sound data
Please use amixer help for some details :
$ amixer --h
Note, alsamixer uses pseudographic interface.
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yuri, Hi sinanakman
Please see my terminal output below. I am having difficulty turning on headphone output:
root@imx6sxsabresd:~# amixer sget 'HPOUTR PGA' on
Simple mixer control 'HPOUTR PGA',0
Capabilities: enum
Items: 'DAC' 'Mixer'
Item0: 'DAC'
root@imx6sxsabresd:~# amixer sset 'HPOUTR PGA' on
amixer: Invalid command!
I typed alsamixer and a GUI appeared. I noticed "INPGAR IN3R" is disabled. How can I enable this pin?
The SABRE-SDB schematic shows microphone input as IN3R.
WM8962 Codec
Hi Javier
Did you try this :
amixer sset 'INPGAR IN3R' on
Regards
Sinan Akman
Hi Sinan,
Thanks for your help. It is turned on now. However, I am still not able to playback.