Unable to create raw file for unit_tests project

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

Unable to create raw file for unit_tests project

1,053件の閲覧回数
abhishek_kumar2
Contributor I

I am trying to run one unit_tests project which is given by default after booting linux on i.MX8M Quad EVK board to us for playing the audio file.

I am trying to create raw file for " ./mxc_pdm_test.out " by executing following code :

./mxc_pdm_test.out -device hw:4,0 -output test-audio.raw -rate 16000 -seconds 60

What error i observed is :

ALSA lib ../../../alsa-lib-1.1.4.1/src/pcm/pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
unable to open pcm device: hw:4,0fail to init alsa pdm -2

Could you please help me to understand this error for me.

What i am missing here ?

0 件の賞賛
返信
1 返信

992件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  Customers can use standard aplay / arecord / amixer programms.

 

Use the following commands to define available audio devices:

 

#arecord -l

 

#aplay -l

 

To write file, using capture device

“card 1: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0”

 

the following command may be applied:

 

# arecord -Dplughw:1,0 record.wav

 


Have a great day,
Yuri

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

0 件の賞賛
返信