]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: Add Audio Class 2.0 Driver
authorJassi Brar <jaswinder.singh@linaro.org>
Thu, 2 Feb 2012 16:31:34 +0000 (22:01 +0530)
committerFelipe Balbi <balbi@ti.com>
Wed, 15 Feb 2012 08:10:31 +0000 (10:10 +0200)
commit6049421176fb202bad68103372598152c8460034
treef05d2018a2cfecdd6b4b280f4c6925bb9f37a197
parent71b24d463a5d53e618b840851b4717b0a27318f7
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.

Make this new version as the default selection by a new Kconfig choice.

Signed-off-by: Yadi Brar <yadi.brar01@gmail.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/audio.c
drivers/usb/gadget/f_uac2.c [new file with mode: 0644]