Unable to create raw file for unit_tests project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Unable to create raw file for unit_tests project

1,045 次查看
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 回复

984 次查看
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 项奖励
回复