[alsa-devel] What is the command line commands to use UAC2 at USB client side?
Xuebing Wang
xbing6 at gmail.com
Thu Aug 14 08:16:30 CEST 2014
Hi Community,
Based on Freescale platform , I am trying to use USB Audio Class version
2.0. Host can detect this UAC2 device.
At device side (after modprobe g_audio):
root at imx6slevk:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: wm8962audio [wm8962-audio], device 0: HiFi wm8962-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: imxspdif [imx-spdif], device 0: S/PDIF PCM Playback dit-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: UAC2Gadget [UAC2_Gadget], device 0: UAC2 PCM [UAC2 PCM]
Subdevices: 1/1
Subdevice #0: subdevice #0
At device side, in driver/usb/gadget/Kconfig, it says before for
CONFIG_USB_AUDIO
-------------------------
This driver doesn't expect any real Audio codec to be present
on the device - the audio streams are simply sinked to and
sourced from a virtual ALSA sound card created. The user-space
application may choose to do whatever it wants with the data
received from the USB Host and choose to provide whatever it
wants as audio data to the USB Host.
-------------------------
My question is: at device side, how to configure sink/source for UAC2
virtual ALSA sound card (hw:2,0, UAC2_Gadget)?
Thank you very much.
Xuebing Wang
More information about the Alsa-devel
mailing list