14 #include <linux/kernel.h>
15 #include <linux/module.h>
19 #define DRIVER_DESC "Linux USB Audio Gadget"
20 #define DRIVER_VERSION "Feb 2, 2012"
35 .strings = strings_dev,
43 #ifdef CONFIG_GADGET_UAC1
58 #define AUDIO_VENDOR_NUM 0x1d6b
59 #define AUDIO_PRODUCT_NUM 0x0101
64 .bLength =
sizeof device_desc,
69 #ifdef CONFIG_GADGET_UAC1
75 .bDeviceSubClass = 0x02,
76 .bDeviceProtocol = 0x01,
90 .bNumConfigurations = 1,
94 .bLength =
sizeof otg_descriptor,
114 if (gadget_is_otg(c->
cdev->gadget)) {
126 .bConfigurationValue = 1,
129 #ifndef CONFIG_GADGET_UAC1
130 .unbind = uac2_unbind_config,
146 status =
usb_add_config(cdev, &audio_config_driver, audio_do_config);
160 #ifdef CONFIG_GADGET_UAC1
169 .strings = audio_strings,
181 static void __exit cleanup(
void)