i.MX6ULEVK can play audio but not record

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

i.MX6ULEVK can play audio but not record

14,249 Views
ida_jiang
Contributor III

Hi ,

    I'm testing i.MX6ULEVK wm8960 by aplay and arecord.  The images I used are the official demo of L4.14.98_2.0.0_ga and I have set the configurations for the board's mic. I could play the /unit_test/ASRC/audio.wav file.  But when I tried to record by "arecord -Dhw:0,0 -d 10 -c 1 -f S16_LE -r 48000 test.wav", the test.wav have captured nothing. How to deal with it?

    Hope your help. Thanks !

Tags (2)
0 Kudos
Reply
5 Replies

14,134 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ida

one can try to follow sect.7.3.5 Audio recording attached Linux Guide.

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

0 Kudos
Reply

14,134 Views
ida_jiang
Contributor III

Hi igorpadykov,

I used the command “$GSTL alsasrc num-buffers=430 blocksize=4096 ! avenc_mp2 ! filesink location=output.mp3” according of that reference. And it showed:

If I ignored the configuration of avenc_mp2, it would show:

But the output.mp3 was filled with current voice. How to deal with it ?

Best Regards !

Ida

发件人: igorpadykov <admin@community.nxp.com>

发送时间: 2020年4月2日 7:48

收件人: Ida Jiang 江一 <ida.jiang@wpi-group.com>

主题: Re: - Re: i.MX6ULEVK can play audio but not record

NXP Community <https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.freescale.com%2Fresources%2Fstatics%2F1000%2F35400-NXP-Community-Email-banner-600x75.jpg&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cf03f120753384f96d7cc08d7d69728e4%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213817038506931&sdata=cg5V8nA3o0DEgkopB%2BIeE5vdDNtwUvFhBkqzODb21Vg%3D&reserved=0>

Re: i.MX6ULEVK can play audio but not record

reply from igorpadykov<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Fpeople%2Figorpadykov%3Fet%3Dwatches.email.thread&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cf03f120753384f96d7cc08d7d69728e4%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213817038506931&sdata=g0IZTSCsQSL6Ri91h03WivqIZ%2Fkd3eJR3JbREHTeuUo%3D&reserved=0> in i.MX Processors - View the full discussion<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Fmessage%2F1292452%3FcommentID%3D1292452%26et%3Dwatches.email.thread%23comment-1292452&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cf03f120753384f96d7cc08d7d69728e4%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213817038516924&sdata=yrf2lgBBcPFUxYHUrVo4gS%2F1ddGzWMdObHw1oB2Oyis%3D&reserved=0>

0 Kudos
Reply

14,134 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ida

one can recheck mic settings as described in sect.28.5.1 Stereo Codec Unit Test

attached Linux Manual.

Best regards
igor

0 Kudos
Reply

14,134 Views
ida_jiang
Contributor III

Hi igorpadykov,

I have solved the problem according to Linux Manual.

Thanks !

Best Regards !

Ida

发件人: igorpadykov <admin@community.nxp.com>

发送时间: 2020年4月2日 12:09

收件人: Ida Jiang 江一 <ida.jiang@wpi-group.com>

主题: Re: - Re: i.MX6ULEVK can play audio but not record

NXP Community <https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.freescale.com%2Fresources%2Fstatics%2F1000%2F35400-NXP-Community-Email-banner-600x75.jpg&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cd941364a7b804beab4f708d7d6bb9c05%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213973583163584&sdata=%2FgmZT7A57bBJpLbkRrY7yvWbXzj1xYItscDuJqPyygY%3D&reserved=0>

Re: i.MX6ULEVK can play audio but not record

reply from igorpadykov<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Fpeople%2Figorpadykov%3Fet%3Dwatches.email.thread&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cd941364a7b804beab4f708d7d6bb9c05%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213973583173577&sdata=IJKZ68CzMpRd7nYK7li6MQQBI3zndCZ%2BLSNdAwyWviQ%3D&reserved=0> in i.MX Processors - View the full discussion<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Fmessage%2F1292459%3FcommentID%3D1292459%26et%3Dwatches.email.thread%23comment-1292459&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cd941364a7b804beab4f708d7d6bb9c05%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213973583173577&sdata=7cwfx5Oyn%2BxsymW4yQeJQzfOQ2yp1FLaddyr%2F4YaVTo%3D&reserved=0>

0 Kudos
Reply

14,134 Views
ida_jiang
Contributor III

Hi igorpadykov<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Fpeople%2Figorpadykov%3Fet%3Dwatches.email.thread&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cd941364a7b804beab4f708d7d6bb9c05%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213973583173577&sdata=IJKZ68CzMpRd7nYK7li6MQQBI3zndCZ%2BLSNdAwyWviQ%3D&reserved=0>,

I set the stereo as follows:

When I tested by using “arecord -Dplughw:0,0 -r 44100 -f S16_LE -c 2 -d 5 record.wav”, there was no voice.

When I used “$GSTL alsasrc num-buffers=430 blocksize=4096 ! filesink location=output.mp3”, there was current voice.

Was I setting it up wrong ?

Best Regards !

Ida

发件人: igorpadykov <admin@community.nxp.com>

发送时间: 2020年4月2日 12:09

收件人: Ida Jiang 江一 <ida.jiang@wpi-group.com>

主题: Re: - Re: i.MX6ULEVK can play audio but not record

NXP Community <https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.freescale.com%2Fresources%2Fstatics%2F1000%2F35400-NXP-Community-Email-banner-600x75.jpg&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cd941364a7b804beab4f708d7d6bb9c05%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213973583163584&sdata=%2FgmZT7A57bBJpLbkRrY7yvWbXzj1xYItscDuJqPyygY%3D&reserved=0>

Re: i.MX6ULEVK can play audio but not record

reply from igorpadykov<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Fpeople%2Figorpadykov%3Fet%3Dwatches.email.thread&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cd941364a7b804beab4f708d7d6bb9c05%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213973583173577&sdata=IJKZ68CzMpRd7nYK7li6MQQBI3zndCZ%2BLSNdAwyWviQ%3D&reserved=0> in i.MX Processors - View the full discussion<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Fmessage%2F1292459%3FcommentID%3D1292459%26et%3Dwatches.email.thread%23comment-1292459&data=02%7C01%7Cida.jiang%40wpi-group.com%7Cd941364a7b804beab4f708d7d6bb9c05%7Cde047c79d4d94af391debc44b0581490%7C0%7C0%7C637213973583173577&sdata=7cwfx5Oyn%2BxsymW4yQeJQzfOQ2yp1FLaddyr%2F4YaVTo%3D&reserved=0>

0 Kudos
Reply