Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289584
b: refs/heads/master
c: d747a91
h: refs/heads/master
v: v3
  • Loading branch information
Jassi Brar authored and Felipe Balbi committed Feb 15, 2012
1 parent 14a57b5 commit 2d9fe2c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d4e1b2a7eb7f4db8b3dc1c7ef4b507040f87ded
refs/heads/master: d747a916872241daef68c864ef09f8bef0c35bf8
23 changes: 23 additions & 0 deletions trunk/drivers/usb/gadget/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,29 @@
#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"

Expand Down
23 changes: 0 additions & 23 deletions trunk/drivers/usb/gadget/f_uac1.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,29 +216,6 @@ static struct usb_descriptor_header *f_audio_desc[] __initdata = {
NULL,
};

/* 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,
};

/*
* This function is an ALSA sound card following USB Audio Class Spec 1.0.
*/
Expand Down

0 comments on commit 2d9fe2c

Please sign in to comment.