blob: 8f348611bb0082c16179450e9aeab49cf3124102 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * ALSA USB Audio Driver
3 *
4 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
5 * Clemens Ladisch <clemens@ladisch.de>
6 *
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23/*
24 * The contents of this file are part of the driver's id_table.
25 *
26 * In a perfect world, this file would be empty.
27 */
28
29/*
30 * Use this for devices where other interfaces are standard compliant,
31 * to prevent the quirk being applied to those interfaces. (To work with
32 * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
33 */
34#define USB_DEVICE_VENDOR_SPEC(vend, prod) \
35 .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
36 USB_DEVICE_ID_MATCH_PRODUCT | \
37 USB_DEVICE_ID_MATCH_INT_CLASS, \
38 .idVendor = vend, \
39 .idProduct = prod, \
40 .bInterfaceClass = USB_CLASS_VENDOR_SPEC
41
42/*
43 * Yamaha devices
44 */
45
46#define YAMAHA_DEVICE(id, name) { \
47 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +010048 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -070049 .vendor_name = "Yamaha", \
50 .product_name = name, \
51 .ifnum = QUIRK_ANY_INTERFACE, \
52 .type = QUIRK_MIDI_YAMAHA \
53 } \
54}
55#define YAMAHA_INTERFACE(id, intf, name) { \
56 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +010057 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -070058 .vendor_name = "Yamaha", \
59 .product_name = name, \
60 .ifnum = intf, \
61 .type = QUIRK_MIDI_YAMAHA \
62 } \
63}
64YAMAHA_DEVICE(0x1000, "UX256"),
65YAMAHA_DEVICE(0x1001, "MU1000"),
66YAMAHA_DEVICE(0x1002, "MU2000"),
67YAMAHA_DEVICE(0x1003, "MU500"),
68YAMAHA_INTERFACE(0x1004, 3, "UW500"),
69YAMAHA_DEVICE(0x1005, "MOTIF6"),
70YAMAHA_DEVICE(0x1006, "MOTIF7"),
71YAMAHA_DEVICE(0x1007, "MOTIF8"),
72YAMAHA_DEVICE(0x1008, "UX96"),
73YAMAHA_DEVICE(0x1009, "UX16"),
74YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
75YAMAHA_DEVICE(0x100c, "UC-MX"),
76YAMAHA_DEVICE(0x100d, "UC-KX"),
77YAMAHA_DEVICE(0x100e, "S08"),
78YAMAHA_DEVICE(0x100f, "CLP-150"),
79YAMAHA_DEVICE(0x1010, "CLP-170"),
80YAMAHA_DEVICE(0x1011, "P-250"),
81YAMAHA_DEVICE(0x1012, "TYROS"),
82YAMAHA_DEVICE(0x1013, "PF-500"),
83YAMAHA_DEVICE(0x1014, "S90"),
84YAMAHA_DEVICE(0x1015, "MOTIF-R"),
85YAMAHA_DEVICE(0x1017, "CVP-204"),
86YAMAHA_DEVICE(0x1018, "CVP-206"),
87YAMAHA_DEVICE(0x1019, "CVP-208"),
88YAMAHA_DEVICE(0x101a, "CVP-210"),
89YAMAHA_DEVICE(0x101b, "PSR-1100"),
90YAMAHA_DEVICE(0x101c, "PSR-2100"),
91YAMAHA_DEVICE(0x101d, "CLP-175"),
92YAMAHA_DEVICE(0x101e, "PSR-K1"),
93YAMAHA_DEVICE(0x1020, "EZ-250i"),
94YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
95YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
96YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
97YAMAHA_DEVICE(0x1024, "CVP-301"),
98YAMAHA_DEVICE(0x1025, "CVP-303"),
99YAMAHA_DEVICE(0x1026, "CVP-305"),
100YAMAHA_DEVICE(0x1027, "CVP-307"),
101YAMAHA_DEVICE(0x1028, "CVP-309"),
102YAMAHA_DEVICE(0x1029, "CVP-309GP"),
103YAMAHA_DEVICE(0x102a, "PSR-1500"),
104YAMAHA_DEVICE(0x102b, "PSR-3000"),
105YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
106YAMAHA_DEVICE(0x1030, "PSR-295/293"),
107YAMAHA_DEVICE(0x1031, "DGX-205/203"),
108YAMAHA_DEVICE(0x1032, "DGX-305"),
109YAMAHA_DEVICE(0x1033, "DGX-505"),
110YAMAHA_DEVICE(0x1034, NULL),
111YAMAHA_DEVICE(0x1035, NULL),
112YAMAHA_DEVICE(0x1036, NULL),
113YAMAHA_DEVICE(0x1037, NULL),
114YAMAHA_DEVICE(0x1038, NULL),
115YAMAHA_DEVICE(0x1039, NULL),
116YAMAHA_DEVICE(0x103a, NULL),
117YAMAHA_DEVICE(0x103b, NULL),
118YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200119YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200120YAMAHA_DEVICE(0x103e, NULL),
121YAMAHA_DEVICE(0x103f, NULL),
122YAMAHA_DEVICE(0x1040, NULL),
123YAMAHA_DEVICE(0x1041, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700124YAMAHA_DEVICE(0x2000, "DGP-7"),
125YAMAHA_DEVICE(0x2001, "DGP-5"),
126YAMAHA_DEVICE(0x2002, NULL),
127YAMAHA_DEVICE(0x5000, "CS1D"),
128YAMAHA_DEVICE(0x5001, "DSP1D"),
129YAMAHA_DEVICE(0x5002, "DME32"),
130YAMAHA_DEVICE(0x5003, "DM2000"),
131YAMAHA_DEVICE(0x5004, "02R96"),
132YAMAHA_DEVICE(0x5005, "ACU16-C"),
133YAMAHA_DEVICE(0x5006, "NHB32-C"),
134YAMAHA_DEVICE(0x5007, "DM1000"),
135YAMAHA_DEVICE(0x5008, "01V96"),
136YAMAHA_DEVICE(0x5009, "SPX2000"),
137YAMAHA_DEVICE(0x500a, "PM5D"),
138YAMAHA_DEVICE(0x500b, "DME64N"),
139YAMAHA_DEVICE(0x500c, "DME24N"),
140YAMAHA_DEVICE(0x500d, NULL),
141YAMAHA_DEVICE(0x500e, NULL),
142YAMAHA_DEVICE(0x7000, "DTX"),
143YAMAHA_DEVICE(0x7010, "UB99"),
144#undef YAMAHA_DEVICE
145#undef YAMAHA_INTERFACE
146
147/*
148 * Roland/RolandED/Edirol/BOSS devices
149 */
150{
151 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100152 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700153 .vendor_name = "Roland",
154 .product_name = "UA-100",
155 .ifnum = QUIRK_ANY_INTERFACE,
156 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100157 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700158 {
159 .ifnum = 0,
160 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
161 .data = & (const struct audioformat) {
162 .format = SNDRV_PCM_FORMAT_S16_LE,
163 .channels = 4,
164 .iface = 0,
165 .altsetting = 1,
166 .altset_idx = 1,
167 .attributes = 0,
168 .endpoint = 0x01,
169 .ep_attr = 0x09,
170 .rates = SNDRV_PCM_RATE_CONTINUOUS,
171 .rate_min = 44100,
172 .rate_max = 44100,
173 }
174 },
175 {
176 .ifnum = 1,
177 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
178 .data = & (const struct audioformat) {
179 .format = SNDRV_PCM_FORMAT_S16_LE,
180 .channels = 2,
181 .iface = 1,
182 .altsetting = 1,
183 .altset_idx = 1,
184 .attributes = EP_CS_ATTR_FILL_MAX,
185 .endpoint = 0x81,
186 .ep_attr = 0x05,
187 .rates = SNDRV_PCM_RATE_CONTINUOUS,
188 .rate_min = 44100,
189 .rate_max = 44100,
190 }
191 },
192 {
193 .ifnum = 2,
194 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100195 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196 .out_cables = 0x0007,
197 .in_cables = 0x0007
198 }
199 },
200 {
201 .ifnum = -1
202 }
203 }
204 }
205},
206{
Brent Cooke03173f2006-01-10 14:27:20 +0100207 USB_DEVICE(0x0582, 0x009a),
208 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
209 .vendor_name = "EDIROL",
210 .product_name = "UM-3ex",
211 .ifnum = QUIRK_ANY_INTERFACE,
212 .type = QUIRK_COMPOSITE,
213 .data = (const struct snd_usb_audio_quirk[]) {
214 {
215 .ifnum = 0,
216 .type = QUIRK_MIDI_FIXED_ENDPOINT,
217 .data = & (const struct snd_usb_midi_endpoint_info) {
218 .out_cables = 0x000f,
219 .in_cables = 0x000f
220 }
221 },
222 {
223 .ifnum = -1
224 }
225 }
226 }
227},
228{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700229 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100230 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700231 .vendor_name = "EDIROL",
232 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200233 .ifnum = QUIRK_ANY_INTERFACE,
234 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100235 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200236 {
237 .ifnum = 0,
238 .type = QUIRK_IGNORE_INTERFACE
239 },
240 {
241 .ifnum = 1,
242 .type = QUIRK_IGNORE_INTERFACE
243 },
244 {
245 .ifnum = 2,
246 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100247 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200248 .out_cables = 0x000f,
249 .in_cables = 0x000f
250 }
251 },
252 {
253 .ifnum = -1
254 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255 }
256 }
257},
258{
259 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100260 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700261 .vendor_name = "Roland",
262 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200263 .ifnum = QUIRK_ANY_INTERFACE,
264 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100265 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200266 {
267 .ifnum = 0,
268 .type = QUIRK_IGNORE_INTERFACE
269 },
270 {
271 .ifnum = 1,
272 .type = QUIRK_IGNORE_INTERFACE
273 },
274 {
275 .ifnum = 2,
276 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100277 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200278 .out_cables = 0x003f,
279 .in_cables = 0x003f
280 }
281 },
282 {
283 .ifnum = -1
284 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700285 }
286 }
287},
288{
289 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100290 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700291 .vendor_name = "Roland",
292 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200293 .ifnum = QUIRK_ANY_INTERFACE,
294 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100295 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200296 {
297 .ifnum = 0,
298 .type = QUIRK_IGNORE_INTERFACE
299 },
300 {
301 .ifnum = 1,
302 .type = QUIRK_IGNORE_INTERFACE
303 },
304 {
305 .ifnum = 2,
306 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100307 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200308 .out_cables = 0x0005,
309 .in_cables = 0x0005
310 }
311 },
312 {
313 .ifnum = -1
314 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700315 }
316 }
317},
318{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200319 /* a later revision uses ID 0x0099 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700320 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100321 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700322 .vendor_name = "EDIROL",
323 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200324 .ifnum = QUIRK_ANY_INTERFACE,
325 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100326 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200327 {
328 .ifnum = 0,
329 .type = QUIRK_IGNORE_INTERFACE
330 },
331 {
332 .ifnum = 1,
333 .type = QUIRK_IGNORE_INTERFACE
334 },
335 {
336 .ifnum = 2,
337 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100338 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200339 .out_cables = 0x0003,
340 .in_cables = 0x0003
341 }
342 },
343 {
344 .ifnum = -1
345 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700346 }
347 }
348},
349{
350 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100351 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700352 .vendor_name = "Roland",
353 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200354 .ifnum = QUIRK_ANY_INTERFACE,
355 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100356 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200357 {
358 .ifnum = 0,
359 .type = QUIRK_IGNORE_INTERFACE
360 },
361 {
362 .ifnum = 1,
363 .type = QUIRK_IGNORE_INTERFACE
364 },
365 {
366 .ifnum = 2,
367 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100368 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200369 .out_cables = 0x0013,
370 .in_cables = 0x0013
371 }
372 },
373 {
374 .ifnum = -1
375 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700376 }
377 }
378},
379{
380 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100381 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700382 .vendor_name = "Roland",
383 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200384 .ifnum = QUIRK_ANY_INTERFACE,
385 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100386 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200387 {
388 .ifnum = 0,
389 .type = QUIRK_IGNORE_INTERFACE
390 },
391 {
392 .ifnum = 1,
393 .type = QUIRK_IGNORE_INTERFACE
394 },
395 {
396 .ifnum = 2,
397 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100398 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200399 .out_cables = 0x0001,
400 .in_cables = 0x0001
401 }
402 },
403 {
404 .ifnum = -1
405 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700406 }
407 }
408},
409{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200410 /* a later revision uses ID 0x009d */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100412 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413 .vendor_name = "EDIROL",
414 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200415 .ifnum = QUIRK_ANY_INTERFACE,
416 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100417 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200418 {
419 .ifnum = 0,
420 .type = QUIRK_IGNORE_INTERFACE
421 },
422 {
423 .ifnum = 1,
424 .type = QUIRK_IGNORE_INTERFACE
425 },
426 {
427 .ifnum = 2,
428 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100429 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200430 .out_cables = 0x0001,
431 .in_cables = 0x0001
432 }
433 },
434 {
435 .ifnum = -1
436 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700437 }
438 }
439},
440{
441 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100442 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700443 .vendor_name = "Roland",
444 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200445 .ifnum = QUIRK_ANY_INTERFACE,
446 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100447 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200448 {
449 .ifnum = 0,
450 .type = QUIRK_IGNORE_INTERFACE
451 },
452 {
453 .ifnum = 1,
454 .type = QUIRK_IGNORE_INTERFACE
455 },
456 {
457 .ifnum = 2,
458 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100459 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200460 .out_cables = 0x0013,
461 .in_cables = 0x0013
462 }
463 },
464 {
465 .ifnum = -1
466 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700467 }
468 }
469},
470{
471 /* thanks to Emiliano Grilli <emillo@libero.it>
472 * for helping researching this data */
473 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100474 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700475 .vendor_name = "Roland",
476 .product_name = "SC-D70",
477 .ifnum = QUIRK_ANY_INTERFACE,
478 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100479 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480 {
481 .ifnum = 0,
482 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
483 .data = & (const struct audioformat) {
484 .format = SNDRV_PCM_FORMAT_S24_3LE,
485 .channels = 2,
486 .iface = 0,
487 .altsetting = 1,
488 .altset_idx = 1,
489 .attributes = 0,
490 .endpoint = 0x01,
491 .ep_attr = 0x01,
492 .rates = SNDRV_PCM_RATE_CONTINUOUS,
493 .rate_min = 44100,
494 .rate_max = 44100,
495 }
496 },
497 {
498 .ifnum = 1,
499 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
500 .data = & (const struct audioformat) {
501 .format = SNDRV_PCM_FORMAT_S24_3LE,
502 .channels = 2,
503 .iface = 1,
504 .altsetting = 1,
505 .altset_idx = 1,
506 .attributes = 0,
507 .endpoint = 0x81,
508 .ep_attr = 0x01,
509 .rates = SNDRV_PCM_RATE_CONTINUOUS,
510 .rate_min = 44100,
511 .rate_max = 44100,
512 }
513 },
514 {
515 .ifnum = 2,
516 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100517 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700518 .out_cables = 0x0007,
519 .in_cables = 0x0007
520 }
521 },
522 {
523 .ifnum = -1
524 }
525 }
526 }
527},
528{ /*
529 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
530 * If the advanced mode switch at the back of the unit is off, the
531 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
532 * but offers only 16-bit PCM.
533 * In advanced mode, the UA-5 will output S24_3LE samples (two
534 * channels) at the rate indicated on the front switch, including
535 * the 96kHz sample rate.
536 */
537 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100538 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700539 .vendor_name = "EDIROL",
540 .product_name = "UA-5",
541 .ifnum = QUIRK_ANY_INTERFACE,
542 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100543 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700544 {
545 .ifnum = 1,
546 .type = QUIRK_AUDIO_STANDARD_INTERFACE
547 },
548 {
549 .ifnum = 2,
550 .type = QUIRK_AUDIO_STANDARD_INTERFACE
551 },
552 {
553 .ifnum = -1
554 }
555 }
556 }
557},
558{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200559 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700560 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100561 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700562 .vendor_name = "Roland",
563 .product_name = "XV-5050",
564 .ifnum = 0,
565 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100566 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700567 .out_cables = 0x0001,
568 .in_cables = 0x0001
569 }
570 }
571},
572{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200573 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700574 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100575 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 .vendor_name = "EDIROL",
577 .product_name = "UM-880",
578 .ifnum = 0,
579 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100580 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700581 .out_cables = 0x01ff,
582 .in_cables = 0x01ff
583 }
584 }
585},
586{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200587 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700588 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100589 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700590 .vendor_name = "EDIROL",
591 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200592 .ifnum = QUIRK_ANY_INTERFACE,
593 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100594 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200595 {
596 .ifnum = 0,
597 .type = QUIRK_IGNORE_INTERFACE
598 },
599 {
600 .ifnum = 1,
601 .type = QUIRK_IGNORE_INTERFACE
602 },
603 {
604 .ifnum = 2,
605 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100606 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200607 .out_cables = 0x000f,
608 .in_cables = 0x000f
609 }
610 },
611 {
612 .ifnum = -1
613 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700614 }
615 }
616},
617{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200618 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700619 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100620 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700621 .vendor_name = "Roland",
622 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200623 .ifnum = QUIRK_ANY_INTERFACE,
624 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100625 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200626 {
627 .ifnum = 0,
628 .type = QUIRK_IGNORE_INTERFACE
629 },
630 {
631 .ifnum = 1,
632 .type = QUIRK_IGNORE_INTERFACE
633 },
634 {
635 .ifnum = 2,
636 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100637 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200638 .out_cables = 0x0001,
639 .in_cables = 0x0001
640 }
641 },
642 {
643 .ifnum = -1
644 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700645 }
646 }
647},
648{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200649 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100651 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700652 .vendor_name = "Roland",
653 .product_name = "V-SYNTH",
654 .ifnum = 0,
655 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100656 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700657 .out_cables = 0x0001,
658 .in_cables = 0x0001
659 }
660 }
661},
662{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200663 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700664 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100665 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700666 .vendor_name = "EDIROL",
667 .product_name = "UM-550",
668 .ifnum = 0,
669 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100670 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700671 .out_cables = 0x003f,
672 .in_cables = 0x003f
673 }
674 }
675},
676{
677 /*
678 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
679 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
680 * and no MIDI.
681 */
682 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100683 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700684 .vendor_name = "EDIROL",
685 .product_name = "UA-20",
686 .ifnum = QUIRK_ANY_INTERFACE,
687 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100688 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700689 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100690 .ifnum = 0,
691 .type = QUIRK_IGNORE_INTERFACE
692 },
693 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700694 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100695 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
696 .data = & (const struct audioformat) {
697 .format = SNDRV_PCM_FORMAT_S24_3LE,
698 .channels = 2,
699 .iface = 1,
700 .altsetting = 1,
701 .altset_idx = 1,
702 .attributes = 0,
703 .endpoint = 0x01,
704 .ep_attr = 0x01,
705 .rates = SNDRV_PCM_RATE_CONTINUOUS,
706 .rate_min = 44100,
707 .rate_max = 44100,
708 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700709 },
710 {
711 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100712 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
713 .data = & (const struct audioformat) {
714 .format = SNDRV_PCM_FORMAT_S24_3LE,
715 .channels = 2,
716 .iface = 2,
717 .altsetting = 1,
718 .altset_idx = 1,
719 .attributes = 0,
720 .endpoint = 0x82,
721 .ep_attr = 0x01,
722 .rates = SNDRV_PCM_RATE_CONTINUOUS,
723 .rate_min = 44100,
724 .rate_max = 44100,
725 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700726 },
727 {
728 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100729 .type = QUIRK_MIDI_FIXED_ENDPOINT,
730 .data = & (const struct snd_usb_midi_endpoint_info) {
731 .out_cables = 0x0001,
732 .in_cables = 0x0001
733 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700734 },
735 {
736 .ifnum = -1
737 }
738 }
739 }
740},
741{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200742 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700743 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100744 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700745 .vendor_name = "EDIROL",
746 .product_name = "SD-20",
747 .ifnum = 0,
748 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100749 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700750 .out_cables = 0x0003,
751 .in_cables = 0x0007
752 }
753 }
754},
755{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200756 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700757 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100758 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700759 .vendor_name = "EDIROL",
760 .product_name = "SD-80",
761 .ifnum = 0,
762 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100763 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700764 .out_cables = 0x000f,
765 .in_cables = 0x000f
766 }
767 }
768},
769{ /*
770 * This quirk is for the "Advanced" modes of the Edirol UA-700.
771 * If the sample format switch is not in an advanced setting, the
772 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
773 * but offers only 16-bit PCM and no MIDI.
774 */
775 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100776 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700777 .vendor_name = "EDIROL",
778 .product_name = "UA-700",
779 .ifnum = QUIRK_ANY_INTERFACE,
780 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100781 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700782 {
783 .ifnum = 1,
784 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
785 },
786 {
787 .ifnum = 2,
788 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
789 },
790 {
791 .ifnum = 3,
792 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
793 },
794 {
795 .ifnum = -1
796 }
797 }
798 }
799},
800{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200801 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700802 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100803 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700804 .vendor_name = "Roland",
805 .product_name = "XV-2020",
806 .ifnum = 0,
807 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100808 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809 .out_cables = 0x0001,
810 .in_cables = 0x0001
811 }
812 }
813},
814{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200815 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700816 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100817 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700818 .vendor_name = "Roland",
819 .product_name = "VariOS",
820 .ifnum = 0,
821 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100822 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700823 .out_cables = 0x0007,
824 .in_cables = 0x0007
825 }
826 }
827},
828{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200829 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700830 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100831 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700832 .vendor_name = "EDIROL",
833 .product_name = "PCR",
834 .ifnum = 0,
835 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100836 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700837 .out_cables = 0x0003,
838 .in_cables = 0x0007
839 }
840 }
841},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200842 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700843{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200844 /*
845 * Has ID 0x0038 when not in "Advanced Driver" mode;
846 * later revisions use IDs 0x0054 and 0x00a2.
847 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700848 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100849 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700850 .vendor_name = "Roland",
851 .product_name = "Digital Piano",
852 .ifnum = 0,
853 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100854 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700855 .out_cables = 0x0001,
856 .in_cables = 0x0001
857 }
858 }
859},
860{
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200861 /*
862 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
863 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
864 * and no MIDI.
865 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700866 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100867 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700868 .vendor_name = "BOSS",
869 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200870 .ifnum = QUIRK_ANY_INTERFACE,
871 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100872 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200873 {
874 .ifnum = 1,
875 .type = QUIRK_AUDIO_STANDARD_INTERFACE
876 },
877 {
878 .ifnum = 2,
879 .type = QUIRK_AUDIO_STANDARD_INTERFACE
880 },
881 {
882 .ifnum = 3,
883 .type = QUIRK_MIDI_STANDARD_INTERFACE
884 },
885 {
886 .ifnum = -1
887 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700888 }
889 }
890},
891{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200892 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100894 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700895 .vendor_name = "Roland",
896 .product_name = "GI-20",
897 .ifnum = 0,
898 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100899 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700900 .out_cables = 0x0001,
901 .in_cables = 0x0001
902 }
903 }
904},
905{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200906 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700907 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100908 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700909 .vendor_name = "Roland",
910 .product_name = "RS-70",
911 .ifnum = 0,
912 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100913 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700914 .out_cables = 0x0001,
915 .in_cables = 0x0001
916 }
917 }
918},
919{
920 USB_DEVICE(0x0582, 0x0044),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100921 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700922 .vendor_name = "Roland",
923 .product_name = "UA-1000",
924 .ifnum = QUIRK_ANY_INTERFACE,
925 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100926 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700927 {
928 .ifnum = 1,
929 .type = QUIRK_AUDIO_EDIROL_UA1000
930 },
931 {
932 .ifnum = 2,
933 .type = QUIRK_AUDIO_EDIROL_UA1000
934 },
935 {
936 .ifnum = 3,
937 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100938 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700939 .out_cables = 0x0003,
940 .in_cables = 0x0003
941 }
942 },
943 {
944 .ifnum = -1
945 }
946 }
947 }
948},
949{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200950 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700951 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100952 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700953 .vendor_name = "EDIROL",
954 .product_name = "UR-80",
955 .ifnum = 0,
956 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100957 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700958 .out_cables = 0x0003,
959 .in_cables = 0x0007
960 }
961 }
962},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200963 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700964{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200965 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700966 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100967 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700968 .vendor_name = "EDIROL",
969 .product_name = "PCR-A",
970 .ifnum = 0,
971 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100972 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700973 .out_cables = 0x0003,
974 .in_cables = 0x0007
975 }
976 }
977},
978{
979 /*
980 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
981 * is standard compliant, but has only 16-bit PCM.
982 */
983 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100984 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700985 .vendor_name = "EDIROL",
986 .product_name = "UA-3FX",
987 .ifnum = QUIRK_ANY_INTERFACE,
988 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100989 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700990 {
991 .ifnum = 1,
992 .type = QUIRK_AUDIO_STANDARD_INTERFACE
993 },
994 {
995 .ifnum = 2,
996 .type = QUIRK_AUDIO_STANDARD_INTERFACE
997 },
998 {
999 .ifnum = -1
1000 }
1001 }
1002 }
1003},
1004{
1005 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001006 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001007 .vendor_name = "EDIROL",
1008 .product_name = "UM-1SX",
1009 .ifnum = 0,
1010 .type = QUIRK_MIDI_STANDARD_INTERFACE
1011 }
1012},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001013 /* TODO: add Roland EXR support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001014{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001015 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001016 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001017 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001018 .vendor_name = "EDIROL",
1019 .product_name = "PCR-1",
1020 .ifnum = 0,
1021 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001022 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001023 .out_cables = 0x0001,
1024 .in_cables = 0x0003
1025 }
1026 }
1027},
1028{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001029 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001030 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001031 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001032 .vendor_name = "Roland",
1033 .product_name = "SP-606",
1034 .ifnum = 3,
1035 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001036 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001037 .out_cables = 0x0001,
1038 .in_cables = 0x0001
1039 }
1040 }
1041},
1042{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001043 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001044 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001045 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001046 .vendor_name = "Roland",
1047 .product_name = "FANTOM-X",
1048 .ifnum = 0,
1049 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001050 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001051 .out_cables = 0x0001,
1052 .in_cables = 0x0001
1053 }
1054 }
1055},
1056{ /*
1057 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1058 * If the switch is not in an advanced setting, the UA-25 has
1059 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1060 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1061 */
1062 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001063 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001064 .vendor_name = "EDIROL",
1065 .product_name = "UA-25",
1066 .ifnum = QUIRK_ANY_INTERFACE,
1067 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001068 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001069 {
1070 .ifnum = 0,
1071 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1072 },
1073 {
1074 .ifnum = 1,
1075 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1076 },
1077 {
1078 .ifnum = 2,
1079 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1080 },
1081 {
1082 .ifnum = -1
1083 }
1084 }
1085 }
1086},
1087{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001088 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001089 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001090 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001091 .vendor_name = "BOSS",
1092 .product_name = "DR-880",
1093 .ifnum = 0,
1094 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001095 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001096 .out_cables = 0x0001,
1097 .in_cables = 0x0001
1098 }
1099 }
1100},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001101{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001102 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001103 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001104 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001105 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001106 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001107 .ifnum = 0,
1108 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001109 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001110 .out_cables = 0x0003,
1111 .in_cables = 0x0003
1112 }
1113 }
1114},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001115
Clemens Ladischa25f1752005-10-05 13:23:19 +02001116/* Guillemot devices */
1117{
1118 /*
1119 * This is for the "Windows Edition" where the external MIDI ports are
1120 * the only MIDI ports; the control data is reported through HID
1121 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1122 * compliant USB MIDI ports for external MIDI and controls.
1123 */
1124 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001125 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001126 .vendor_name = "Hercules",
1127 .product_name = "DJ Console (WE)",
1128 .ifnum = 4,
1129 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001130 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001131 .out_cables = 0x0001,
1132 .in_cables = 0x0001
1133 }
1134 }
1135},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001136 /* TODO: add Edirol UA-101 support */
1137 /* TODO: add Roland G-70 support */
1138 /* TODO: add Roland V-SYNTH XT support */
1139 /* TODO: add BOSS GT-PRO support */
1140 /* TODO: add Edirol PC-50 support */
1141 /* TODO: add Edirol PC-80 support */
1142 /* TODO: add Edirol UA-1EX support */
1143 /* TODO: add Edirol UM-3 support */
1144 /* TODO: add Edirol MD-P1 support */
Clemens Ladischa25f1752005-10-05 13:23:19 +02001145
Linus Torvalds1da177e2005-04-16 15:20:36 -07001146/* Midiman/M-Audio devices */
1147{
1148 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001149 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001150 .vendor_name = "M-Audio",
1151 .product_name = "MidiSport 2x2",
1152 .ifnum = QUIRK_ANY_INTERFACE,
1153 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001154 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001155 .out_cables = 0x0003,
1156 .in_cables = 0x0003
1157 }
1158 }
1159},
1160{
1161 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001162 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001163 .vendor_name = "M-Audio",
1164 .product_name = "MidiSport 1x1",
1165 .ifnum = QUIRK_ANY_INTERFACE,
1166 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001167 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001168 .out_cables = 0x0001,
1169 .in_cables = 0x0001
1170 }
1171 }
1172},
1173{
1174 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001175 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001176 .vendor_name = "M-Audio",
1177 .product_name = "Keystation",
1178 .ifnum = QUIRK_ANY_INTERFACE,
1179 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001180 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001181 .out_cables = 0x0001,
1182 .in_cables = 0x0001
1183 }
1184 }
1185},
1186{
1187 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001188 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001189 .vendor_name = "M-Audio",
1190 .product_name = "MidiSport 4x4",
1191 .ifnum = QUIRK_ANY_INTERFACE,
1192 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001193 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001194 .out_cables = 0x000f,
1195 .in_cables = 0x000f
1196 }
1197 }
1198},
1199{
1200 /*
1201 * For hardware revision 1.05; in the later revisions (1.10 and
1202 * 1.21), 0x1031 is the ID for the device without firmware.
1203 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1204 */
1205 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001206 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001207 .vendor_name = "M-Audio",
1208 .product_name = "MidiSport 8x8",
1209 .ifnum = QUIRK_ANY_INTERFACE,
1210 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001211 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001212 .out_cables = 0x01ff,
1213 .in_cables = 0x01ff
1214 }
1215 }
1216},
1217{
1218 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001219 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001220 .vendor_name = "M-Audio",
1221 .product_name = "MidiSport 8x8",
1222 .ifnum = QUIRK_ANY_INTERFACE,
1223 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001224 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001225 .out_cables = 0x01ff,
1226 .in_cables = 0x01ff
1227 }
1228 }
1229},
1230{
1231 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001232 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001233 .vendor_name = "M-Audio",
1234 .product_name = "MidiSport 2x4",
1235 .ifnum = QUIRK_ANY_INTERFACE,
1236 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001237 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001238 .out_cables = 0x000f,
1239 .in_cables = 0x0003
1240 }
1241 }
1242},
1243{
1244 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001245 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001246 .vendor_name = "M-Audio",
1247 .product_name = "Quattro",
1248 .ifnum = QUIRK_ANY_INTERFACE,
1249 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001250 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001251 /*
1252 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1253 * and share endpoints with the other interfaces.
1254 * Ignore them. The other interfaces can do 24 bits,
1255 * but captured samples are big-endian (see usbaudio.c).
1256 */
1257 {
1258 .ifnum = 0,
1259 .type = QUIRK_IGNORE_INTERFACE
1260 },
1261 {
1262 .ifnum = 1,
1263 .type = QUIRK_IGNORE_INTERFACE
1264 },
1265 {
1266 .ifnum = 2,
1267 .type = QUIRK_IGNORE_INTERFACE
1268 },
1269 {
1270 .ifnum = 3,
1271 .type = QUIRK_IGNORE_INTERFACE
1272 },
1273 {
1274 .ifnum = 4,
1275 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1276 },
1277 {
1278 .ifnum = 5,
1279 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1280 },
1281 {
1282 .ifnum = 6,
1283 .type = QUIRK_IGNORE_INTERFACE
1284 },
1285 {
1286 .ifnum = 7,
1287 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1288 },
1289 {
1290 .ifnum = 8,
1291 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1292 },
1293 {
1294 .ifnum = 9,
1295 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001296 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001297 .out_cables = 0x0001,
1298 .in_cables = 0x0001
1299 }
1300 },
1301 {
1302 .ifnum = -1
1303 }
1304 }
1305 }
1306},
1307{
1308 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001309 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001310 .vendor_name = "M-Audio",
1311 .product_name = "AudioPhile",
1312 .ifnum = 6,
1313 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001314 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001315 .out_cables = 0x0001,
1316 .in_cables = 0x0001
1317 }
1318 }
1319},
1320{
1321 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001322 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001323 .vendor_name = "M-Audio",
1324 .product_name = "Ozone",
1325 .ifnum = 3,
1326 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001327 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001328 .out_cables = 0x0001,
1329 .in_cables = 0x0001
1330 }
1331 }
1332},
1333{
1334 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001335 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001336 .vendor_name = "M-Audio",
1337 .product_name = "OmniStudio",
1338 .ifnum = QUIRK_ANY_INTERFACE,
1339 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001340 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001341 {
1342 .ifnum = 0,
1343 .type = QUIRK_IGNORE_INTERFACE
1344 },
1345 {
1346 .ifnum = 1,
1347 .type = QUIRK_IGNORE_INTERFACE
1348 },
1349 {
1350 .ifnum = 2,
1351 .type = QUIRK_IGNORE_INTERFACE
1352 },
1353 {
1354 .ifnum = 3,
1355 .type = QUIRK_IGNORE_INTERFACE
1356 },
1357 {
1358 .ifnum = 4,
1359 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1360 },
1361 {
1362 .ifnum = 5,
1363 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1364 },
1365 {
1366 .ifnum = 6,
1367 .type = QUIRK_IGNORE_INTERFACE
1368 },
1369 {
1370 .ifnum = 7,
1371 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1372 },
1373 {
1374 .ifnum = 8,
1375 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1376 },
1377 {
1378 .ifnum = 9,
1379 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001380 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001381 .out_cables = 0x0001,
1382 .in_cables = 0x0001
1383 }
1384 },
1385 {
1386 .ifnum = -1
1387 }
1388 }
1389 }
1390},
1391
1392/* Mark of the Unicorn devices */
1393{
1394 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02001395 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1396 USB_DEVICE_ID_MATCH_PRODUCT |
1397 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1398 .idVendor = 0x07fd,
1399 .idProduct = 0x0001,
1400 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001401 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001402 .vendor_name = "MOTU",
1403 .product_name = "Fastlane",
1404 .ifnum = QUIRK_ANY_INTERFACE,
1405 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001406 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001407 {
1408 .ifnum = 0,
Clemens Ladisch6155aff2005-07-04 09:20:42 +02001409 .type = QUIRK_MIDI_RAW
Linus Torvalds1da177e2005-04-16 15:20:36 -07001410 },
1411 {
1412 .ifnum = 1,
1413 .type = QUIRK_IGNORE_INTERFACE
1414 },
1415 {
1416 .ifnum = -1
1417 }
1418 }
1419 }
1420},
1421
1422{
1423 /* Creative Sound Blaster MP3+ */
1424 USB_DEVICE(0x041e, 0x3010),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001425 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001426 .vendor_name = "Creative Labs",
1427 .product_name = "Sound Blaster MP3+",
1428 .ifnum = QUIRK_NO_INTERFACE
1429 }
1430
1431},
1432
1433/* Emagic devices */
1434{
1435 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001436 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001437 .vendor_name = "Emagic",
1438 /* .product_name = "Unitor8", */
1439 .ifnum = 2,
1440 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001441 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001442 .out_cables = 0x80ff,
1443 .in_cables = 0x80ff
1444 }
1445 }
1446},
1447{
1448 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001449 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001450 .vendor_name = "Emagic",
1451 /* .product_name = "AMT8", */
1452 .ifnum = 2,
1453 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001454 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001455 .out_cables = 0x80ff,
1456 .in_cables = 0x80ff
1457 }
1458 }
1459},
1460{
1461 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001462 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001463 .vendor_name = "Emagic",
1464 /* .product_name = "MT4", */
1465 .ifnum = 2,
1466 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001467 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001468 .out_cables = 0x800f,
1469 .in_cables = 0x8003
1470 }
1471 }
1472},
1473
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001474/* TerraTec devices */
1475{
1476 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001477 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001478 .vendor_name = "TerraTec",
1479 .product_name = "PHASE 26",
1480 .ifnum = 3,
1481 .type = QUIRK_MIDI_STANDARD_INTERFACE
1482 }
1483},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001484{
1485 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001486 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001487 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001488 .product_name = "PHASE 26",
1489 .ifnum = 3,
1490 .type = QUIRK_MIDI_STANDARD_INTERFACE
1491 }
1492},
1493
1494/* Novation EMS devices */
1495{
1496 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001497 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001498 .vendor_name = "Novation",
1499 .product_name = "ReMOTE Audio/XStation",
1500 .ifnum = 4,
1501 .type = QUIRK_MIDI_NOVATION
1502 }
1503},
1504{
1505 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001506 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001507 .vendor_name = "Novation",
1508 .product_name = "Speedio",
1509 .ifnum = 3,
1510 .type = QUIRK_MIDI_NOVATION
1511 }
1512},
1513{
1514 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001515 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001516 .vendor_name = "Novation",
1517 .product_name = "ReMOTE25",
1518 .ifnum = 0,
1519 .type = QUIRK_MIDI_NOVATION
1520 }
1521},
1522
1523{
Clemens Ladischf38275f2005-07-25 16:17:29 +02001524 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001525 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02001526 .vendor_name = "Miditech",
1527 .product_name = "Midistart-2",
1528 .ifnum = 0,
1529 .type = QUIRK_MIDI_MIDITECH
1530 }
1531},
1532{
1533 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001534 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02001535 .vendor_name = "Miditech",
1536 .product_name = "MidiStudio-2",
1537 .ifnum = 0,
1538 .type = QUIRK_MIDI_MIDITECH
1539 }
1540},
1541
1542{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001543 /*
1544 * Some USB MIDI devices don't have an audio control interface,
1545 * so we have to grab MIDI streaming interfaces here.
1546 */
1547 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
1548 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
1549 .bInterfaceClass = USB_CLASS_AUDIO,
1550 .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001551 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001552 .ifnum = QUIRK_ANY_INTERFACE,
1553 .type = QUIRK_MIDI_STANDARD_INTERFACE
1554 }
1555},
1556
1557#undef USB_DEVICE_VENDOR_SPEC