Not able to open the audio device file

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

Not able to open the audio device file

1,337 次查看
rashmib
Contributor I

Hi ,

I am unable  to play the audio with  uac2 audio gadget device on nitrogen6x board. I am using below command for testing.

aplay -D plug:hw:1 file.wav

I am receiving the error saying  "aplay: main:786: audio open error: Invalid argument".

I am using kernel version 3.10.17.

Can anybody please help to solve this issue?

0 项奖励
回复
2 回复数

862 次查看
gary_bisson
Senior Contributor III

Hi,

The g_audio module has been tested on Nitrogen6x with latest 4.1.15 kernel and works fine.

If you keep having this issue on the outdated 3.10.17, please upgrade to latest kernel.

Here is the test procedure:

- On the Nitrogen6x target, start the driver:

# modprobe g_audio p_srate=44100‍

- On the Nitrogen6x target, start reading a song (CD format in this case):

# aplay -D hw:1,0 classical.wav -f cd

- On the Host PC, record the received data and play it:

$ arecord -D hw:2,0 test.wav -f cd | aplay -f cd

Regards,

Gary

0 项奖励
回复

862 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Rashmi,

It looks you need to recompile your kernel for usb audio support

> Kernel configuration                                                                                                                                                   -> Device Drivers                                                                                                                                                           -> USB support (USB_SUPPORT [=y])                                                                                                                                            -> USB Gadget Support (USB_GADGET [=y])

Also please check:

Re: uac2: diagnosing uac2 audio gadget problems — Linux USB 

Hope this helps

0 项奖励
回复