Audio recording is not working on BSP v3.14.28

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Audio recording is not working on BSP v3.14.28

2,392件の閲覧回数
dipankar_saha10
Contributor I

Hi All,

I am using i.Mx6Q sabreauto with Freescale's BSP 3.14.28 and having issue with audio recording.

I tried with the following commands to record and play but didn't work but looks like the file has some content.

arecord -d 10 -c 2 -t wav -f S16_LE -r 48000 /test.wav

aplay -c 2 -t wav -f S16_LE -r 48000 /test.wav

Is there anything I am missing?

Any help is highly appreciable.

Thanks and Regards,

Dipankar Saha

ラベル(4)
タグ(1)
0 件の賞賛
返信
5 返答(返信)

1,941件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  Please follow instructions of section 29.5.1 (Stereo CODEC Unit Test)

in “i.MX_6_Linux_Reference_Manual.pdf”.

 

In particular :

“Because analog micphone is connected to IN3R port of WM8962 CODEC, the following

amixer commands are needed to input into command line for enabling analog micphone.

• amixer sset 'MIXINR IN3R' on

• amixer sset 'INPGAR IN3R' on”

 

 

    Also, please adjust volume for maximum for all channels [especially for capture mode

($ alsamixer -V capture)] by alsamixer command.

 

 

https://www.freescale.com/webapp/Download?colCode=L3.14.28_1.0.0_LINUX_DOCS&location=null


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,941件の閲覧回数
dipankar_saha10
Contributor I

Hi Yuri,

Thanks for the reply.

I tried the below commands and looks like didn't work.

# amixer sset 'MIXINR IN3R' on

amixer: Unable to find simple control 'MIXINR IN3R',0

# amixer sset 'INPGAR IN3R' on

amixer: Unable to find simple control 'INPGAR IN3R',0

Tried "arecord [-Dplughw:0,0] -r 44100 -f S16_LE -c 2 -d 5 record.wav" also but didn't work either.

Is there anything else I need to do?

Thanks and Regards,

Dipankar Saha

0 件の賞賛
返信

1,941件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

The 7.1 CODEC is supported on the i.MX 6 SABRE Auto platform.

  So, please refer to section 29.5.2 7.1 (Audio Codec Unit Test) of the Linux Reference
Manual in the recent BSP.

http://www.freescale.com/webapp/Download?colCode=L3.14.38_6UL_LINUX_DOCS&Parent_nodeId=1337699481071...

Regards,

Yuri.

0 件の賞賛
返信

1,941件の閲覧回数
dipankar_saha10
Contributor I

Hi Yuri,

Here is the command that records audio -

arecord -Dplughw:0,1 -c 4 -r 48000 -f S16_LE test.wav

But this is valid only when no of channel is > 2 and sampling rate is >= 44.1KHz.

Tried with mono/stereo channel and also with 16 Khz but didn't work.

I will be grateful if you can address the problem.

Thanks and Regards,

Dipankar Saha

0 件の賞賛
返信

1,941件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  According to section 29.5.2 7.1 (Audio Codec Unit Test) of FSL Linux RM :

Note:The default ALSA config file, asound.conf located under /etc/, only supports stereo

playback and record, which means, you should modify it for other configuration.

  Looks like the hardware does not support single channel, You can convert

stereo file later to mono one.

Regards,

Yuri.

0 件の賞賛
返信