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?
已解决! 转到解答。
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!