How to record audio from on-board microphone on SABRE-SDB i.MX6sx

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to record audio from on-board microphone on SABRE-SDB i.MX6sx

跳至解决方案
3,643 次查看
sublime
Contributor III

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?

标签 (2)
标记 (3)
1 解答
2,503 次查看
sinanakman
Senior Contributor III

Hi Javier

Did you try this :

amixer sset 'INPGAR IN3R' on

Regards

Sinan Akman

在原帖中查看解决方案

6 回复数
2,503 次查看
Yuri
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

2,503 次查看
sublime
Contributor III

YuriMuhin_ng

sinanakman

Thanks for your help. I am able to record now and playback.

0 项奖励
回复
2,503 次查看
sublime
Contributor III

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!

0 项奖励
回复
2,503 次查看
sublime
Contributor III

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.

mic.jpg

WM8962 Codec

si.png

0 项奖励
回复
2,504 次查看
sinanakman
Senior Contributor III

Hi Javier

Did you try this :

amixer sset 'INPGAR IN3R' on

Regards

Sinan Akman

2,503 次查看
sublime
Contributor III

Hi Sinan,

Thanks for your help. It is turned on now. However, I am still not able to playback.

0 项奖励
回复