diff options
author | Bryan Wu <cooloney@kernel.org> | 2009-06-03 09:17:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-16 00:44:47 -0400 |
commit | c6994e6f067cf0fc4c6cca3d164018b1150916f8 (patch) | |
tree | d971c529cbd4684e5c1c5fcb67f3f09d1cca4295 /drivers/usb/gadget/Kconfig | |
parent | c47d7b09891abb4f8b222317c89c7469bed8db3a (diff) |
USB: gadget: add USB Audio Gadget driver
Funtions added:
- setup all the USB audio class device descriptors
- handle class specific setup request
- receive data from USB host by ISO transfer
- play audio data by ALSA sound card
- open and setup playback PCM interface
- set default playback PCM parameters
- provide playback functions for USB audio driver
- provide PCM parameters set/get functions
Test on:
- Host: Ubuntu 8.10, kernel 2.6.27
- Gadget: EZKIT-BF548 with ASoC AD1980 codec
Todo:
- add real Mute control code
- add real Volume control code
- maybe find another way to replace dynamic buffer handling
with static buffer allocation
- test on Windows system
- provide control interface to handle mute/volume control
- provide capture interface in the future
- test on BF527, other USB device controler and other audio codec
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/Kconfig')
-rw-r--r-- | drivers/usb/gadget/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 924bb7a1cecf..ef9d9086cddc 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -580,6 +580,20 @@ config USB_ZERO_HNPTEST | |||
580 | the "B-Peripheral" role, that device will use HNP to let this | 580 | the "B-Peripheral" role, that device will use HNP to let this |
581 | one serve as the USB host instead (in the "B-Host" role). | 581 | one serve as the USB host instead (in the "B-Host" role). |
582 | 582 | ||
583 | config USB_AUDIO | ||
584 | tristate "Audio Gadget (EXPERIMENTAL)" | ||
585 | depends on SND | ||
586 | help | ||
587 | Gadget Audio is compatible with USB Audio Class specification 1.0. | ||
588 | It will include at least one AudioControl interface, zero or more | ||
589 | AudioStream interface and zero or more MIDIStream interface. | ||
590 | |||
591 | Gadget Audio will use on-board ALSA (CONFIG_SND) audio card to | ||
592 | playback or capture audio stream. | ||
593 | |||
594 | Say "y" to link the driver statically, or "m" to build a | ||
595 | dynamically linked module called "g_audio". | ||
596 | |||
583 | config USB_ETH | 597 | config USB_ETH |
584 | tristate "Ethernet Gadget (with CDC Ethernet support)" | 598 | tristate "Ethernet Gadget (with CDC Ethernet support)" |
585 | depends on NET | 599 | depends on NET |