usb: gadget: audio: Move string IDs to audio.c
[sfrench/cifs-2.6.git] / drivers / usb / gadget / audio.c
index 056a2d936d7f6a17e91fcb283ec4094f12df3698..33e9327d66394345a792ca0e557ff6d5045190ac 100644 (file)
 #include "config.c"
 #include "epautoconf.c"
 
+/* string IDs are assigned dynamically */
+
+#define STRING_MANUFACTURER_IDX                0
+#define STRING_PRODUCT_IDX             1
+
+static char manufacturer[50];
+
+static struct usb_string strings_dev[] = {
+       [STRING_MANUFACTURER_IDX].s = manufacturer,
+       [STRING_PRODUCT_IDX].s = DRIVER_DESC,
+       {  } /* end of list */
+};
+
+static struct usb_gadget_strings stringtab_dev = {
+       .language = 0x0409,     /* en-us */
+       .strings = strings_dev,
+};
+
+static struct usb_gadget_strings *audio_strings[] = {
+       &stringtab_dev,
+       NULL,
+};
+
 #include "u_uac1.c"
 #include "f_uac1.c"