arecord fail to capture in iMX6ULL evk board

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

arecord fail to capture in iMX6ULL evk board

Jump to solution
1,173 Views
nirmalluhana
Contributor IV

Hi,

I have used the pre-built image on i.MX6ULL EVK board and need to test audio loop-back on wm8960 audio codec.

But I failed to test it and after that I gone for the capture operation using below command.

"arecord -D hw:0,0 -c 1 -f S16_LE -r 32000 sample1.wav".

So, using this command .wav file is created but it captured nothing while I palyed it (also test that file in audacity).

I also follow all steps from this thread : "https://community.nxp.com/thread/449685 " and failed to capture audio.

It is very helpful if you provide solution for this issue.

Best regards,

Nirmal

Labels (1)
0 Kudos
1 Solution
973 Views
shivanipatel
Senior Contributor II

Hi, NIRMAL LUHANA

Please execute following commands to enable the microphone on i.MX6ULL EVK:

  • amixer cset name='Left Input Mixer Boost Switch' on
  • amixer cset name='Left Boost Mixer LINPUT1 Switch' on
  • amixer cset name='Left Boost Mixer LINPUT2 Switch' on
  • amixer cset name='Left Boost Mixer LINPUT3 Switch' on
  • amixer cset name='Right Input Mixer Boost Switch' on
  • amixer cset name='Right Boost Mixer RINPUT1 Switch' on
  • amixer cset name='Right Boost Mixer RINPUT2 Switch' on
  • amixer cset name='Right Boost Mixer RINPUT3 Switch' off
  • amixer cset name='ADC PCM Capture Volume' 220

Then, record the audio with below command:

  • arecord -D hw:0,0 -r 44100 -f S16_LE -c 2 -d 50 record.wav

Test this recorded audio file using the following command:

  • aplay record.wav

If you are still facing an issue, please try the above commands on another board as well.

Regards,

Shivani

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

--------------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
974 Views
shivanipatel
Senior Contributor II

Hi, NIRMAL LUHANA

Please execute following commands to enable the microphone on i.MX6ULL EVK:

  • amixer cset name='Left Input Mixer Boost Switch' on
  • amixer cset name='Left Boost Mixer LINPUT1 Switch' on
  • amixer cset name='Left Boost Mixer LINPUT2 Switch' on
  • amixer cset name='Left Boost Mixer LINPUT3 Switch' on
  • amixer cset name='Right Input Mixer Boost Switch' on
  • amixer cset name='Right Boost Mixer RINPUT1 Switch' on
  • amixer cset name='Right Boost Mixer RINPUT2 Switch' on
  • amixer cset name='Right Boost Mixer RINPUT3 Switch' off
  • amixer cset name='ADC PCM Capture Volume' 220

Then, record the audio with below command:

  • arecord -D hw:0,0 -r 44100 -f S16_LE -c 2 -d 50 record.wav

Test this recorded audio file using the following command:

  • aplay record.wav

If you are still facing an issue, please try the above commands on another board as well.

Regards,

Shivani

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

--------------------------------------------------------------------------------------------------------------------------

973 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Can you please try with gstreamer?

You can use the gstreamer pipeline as below:

$gst-launch-1.0 alsasrc num-buffers=430 blocksize=4096 ! avenc_mp2 ! filesink location=output.mp3

Hope this information can help you.

Best regards,

Diego.

0 Kudos