diff options
Diffstat (limited to 'firmware/usbstack/usb_core.c')
-rw-r--r-- | firmware/usbstack/usb_core.c | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index 038aef241f..3d187c8cab 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c | |||
@@ -120,43 +120,22 @@ static const struct usb_qualifier_descriptor __attribute__((aligned(2))) | |||
120 | 120 | ||
121 | static const struct usb_string_descriptor __attribute__((aligned(2))) | 121 | static const struct usb_string_descriptor __attribute__((aligned(2))) |
122 | usb_string_iManufacturer = | 122 | usb_string_iManufacturer = |
123 | { | 123 | USB_STRING_INITIALIZER(u"Rockbox.org"); |
124 | 24, | ||
125 | USB_DT_STRING, | ||
126 | {'R', 'o', 'c', 'k', 'b', 'o', 'x', '.', 'o', 'r', 'g'} | ||
127 | }; | ||
128 | 124 | ||
129 | static const struct usb_string_descriptor __attribute__((aligned(2))) | 125 | static const struct usb_string_descriptor __attribute__((aligned(2))) |
130 | usb_string_iProduct = | 126 | usb_string_iProduct = |
131 | { | 127 | USB_STRING_INITIALIZER(u"Rockbox media player"); |
132 | 42, | ||
133 | USB_DT_STRING, | ||
134 | {'R', 'o', 'c', 'k', 'b', 'o', 'x', ' ', | ||
135 | 'm', 'e', 'd', 'i', 'a', ' ', | ||
136 | 'p', 'l', 'a', 'y', 'e', 'r'} | ||
137 | }; | ||
138 | 128 | ||
139 | static struct usb_string_descriptor __attribute__((aligned(2))) | 129 | static struct usb_string_descriptor __attribute__((aligned(2))) |
140 | usb_string_iSerial = | 130 | usb_string_iSerial = |
141 | { | 131 | USB_STRING_INITIALIZER(u"00000000000000000000000000000000000000000"); |
142 | 84, | ||
143 | USB_DT_STRING, | ||
144 | {'0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', | ||
145 | '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', | ||
146 | '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', | ||
147 | '0', '0', '0', '0', '0', '0', '0', '0'} | ||
148 | }; | ||
149 | 132 | ||
150 | /* Generic for all targets */ | 133 | /* Generic for all targets */ |
151 | 134 | ||
152 | /* this is stringid #0: languages supported */ | 135 | /* this is stringid #0: languages supported */ |
153 | static const struct usb_string_descriptor __attribute__((aligned(2))) | 136 | static const struct usb_string_descriptor __attribute__((aligned(2))) |
154 | lang_descriptor = | 137 | lang_descriptor = |
155 | { | 138 | USB_STRING_INITIALIZER(u"\x0409"); /* LANGID US English */ |
156 | 4, | ||
157 | USB_DT_STRING, | ||
158 | {0x0409} /* LANGID US English */ | ||
159 | }; | ||
160 | 139 | ||
161 | static const struct usb_string_descriptor* const usb_strings[] = | 140 | static const struct usb_string_descriptor* const usb_strings[] = |
162 | { | 141 | { |