On Thu, Aug 14, 2014 at 12:05 PM, Xuebing Wang <xbing6@xxxxxxxxx> wrote: > 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@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)? > At OS level, select the UAC2 card like any other - Control Panel -> Sound settings. You want to select the same Card on Host as well as Gadget side. -Jassi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html