19 Aug 2011 13:22
[PATCH 2/2] USB: Gadget: Add Audio Class 2.0 Driver
This is a flexible USB Audio Class 2.0 compliant gadget driver that implements a simple topology with a virtual sound card exposed at the function side. The driver doesn't expect any real audio codec to be present on the function - 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. Capture(USB-Out) and Playback(USB-In) can be run at independent configurations specified via module parameters while loading the driver. Signed-off-by: Yadi Brar <yadi.brar01@...> Signed-off-by: Jassi Brar <jassisinghbrar@...> --- =========== How To Test =========== USB_DEV$ insmod g_audio2.ko c_srate=64000 p_srate=48000 ; say gadget: high speed config #1: UAC2 USB_DEV$ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: uac2 [uac2], device 0: UAC2 PCM [UAC2 PCM] Subdevices: 1/1 Subdevice #0: subdevice #0 USB_DEV$ arecord -l(Continue reading)
RSS Feed