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?
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
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