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

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

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

Jump to solution
3,033 Views
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?

Labels (2)
1 Solution
1,893 Views
sinanakman
Senior Contributor III

Hi Javier

Did you try this :

amixer sset 'INPGAR IN3R' on

Regards

Sinan Akman

View solution in original post

6 Replies
1,893 Views
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!
-----------------------------------------------------------------------------------------------------------------------

1,893 Views
sublime
Contributor III

YuriMuhin_ng

sinanakman

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

0 Kudos
1,893 Views
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 Kudos
1,893 Views
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 Kudos
1,894 Views
sinanakman
Senior Contributor III

Hi Javier

Did you try this :

amixer sset 'INPGAR IN3R' on

Regards

Sinan Akman

1,893 Views
sublime
Contributor III

Hi Sinan,

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

0 Kudos