mm: shrink_all_memory(): use sc.nr_reclaimed
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / sound / usb / usbquirks.h
blob647ef502965179ec6f1eec15c042990a950aedf6
1 /*
2 * ALSA USB Audio Driver
4 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
5 * Clemens Ladisch <clemens@ladisch.de>
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.
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.
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
24 * The contents of this file are part of the driver's id_table.
26 * In a perfect world, this file would be empty.
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.)
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
42 /* Creative/Toshiba Multimedia Center SB-0500 */
44 USB_DEVICE(0x041e, 0x3048),
45 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
46 .vendor_name = "Toshiba",
47 .product_name = "SB-0500",
48 .ifnum = QUIRK_NO_INTERFACE
52 /* Creative/E-Mu devices */
54 USB_DEVICE(0x041e, 0x3010),
55 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
56 .vendor_name = "Creative Labs",
57 .product_name = "Sound Blaster MP3+",
58 .ifnum = QUIRK_NO_INTERFACE
62 /* E-Mu 0202 USB */
63 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
64 .idVendor = 0x041e,
65 .idProduct = 0x3f02,
66 .bInterfaceClass = USB_CLASS_AUDIO,
69 /* E-Mu 0404 USB */
70 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
71 .idVendor = 0x041e,
72 .idProduct = 0x3f04,
73 .bInterfaceClass = USB_CLASS_AUDIO,
76 /* E-Mu Tracker Pre */
77 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
78 .idVendor = 0x041e,
79 .idProduct = 0x3f0a,
80 .bInterfaceClass = USB_CLASS_AUDIO,
84 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
85 * class matches do not take effect without an explicit ID match.
88 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
89 USB_DEVICE_ID_MATCH_INT_CLASS |
90 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
91 .idVendor = 0x046d,
92 .idProduct = 0x0850,
93 .bInterfaceClass = USB_CLASS_AUDIO,
94 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
97 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
98 USB_DEVICE_ID_MATCH_INT_CLASS |
99 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
100 .idVendor = 0x046d,
101 .idProduct = 0x08ae,
102 .bInterfaceClass = USB_CLASS_AUDIO,
103 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
106 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
107 USB_DEVICE_ID_MATCH_INT_CLASS |
108 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
109 .idVendor = 0x046d,
110 .idProduct = 0x08c6,
111 .bInterfaceClass = USB_CLASS_AUDIO,
112 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
115 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
116 USB_DEVICE_ID_MATCH_INT_CLASS |
117 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
118 .idVendor = 0x046d,
119 .idProduct = 0x08f0,
120 .bInterfaceClass = USB_CLASS_AUDIO,
121 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
124 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
125 USB_DEVICE_ID_MATCH_INT_CLASS |
126 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
127 .idVendor = 0x046d,
128 .idProduct = 0x08f5,
129 .bInterfaceClass = USB_CLASS_AUDIO,
130 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
133 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
134 USB_DEVICE_ID_MATCH_INT_CLASS |
135 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
136 .idVendor = 0x046d,
137 .idProduct = 0x08f6,
138 .bInterfaceClass = USB_CLASS_AUDIO,
139 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
142 USB_DEVICE(0x046d, 0x0990),
143 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
144 .vendor_name = "Logitech, Inc.",
145 .product_name = "QuickCam Pro 9000",
146 .ifnum = QUIRK_NO_INTERFACE
151 * Yamaha devices
154 #define YAMAHA_DEVICE(id, name) { \
155 USB_DEVICE(0x0499, id), \
156 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
157 .vendor_name = "Yamaha", \
158 .product_name = name, \
159 .ifnum = QUIRK_ANY_INTERFACE, \
160 .type = QUIRK_MIDI_YAMAHA \
163 #define YAMAHA_INTERFACE(id, intf, name) { \
164 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
165 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
166 .vendor_name = "Yamaha", \
167 .product_name = name, \
168 .ifnum = intf, \
169 .type = QUIRK_MIDI_YAMAHA \
172 YAMAHA_DEVICE(0x1000, "UX256"),
173 YAMAHA_DEVICE(0x1001, "MU1000"),
174 YAMAHA_DEVICE(0x1002, "MU2000"),
175 YAMAHA_DEVICE(0x1003, "MU500"),
176 YAMAHA_INTERFACE(0x1004, 3, "UW500"),
177 YAMAHA_DEVICE(0x1005, "MOTIF6"),
178 YAMAHA_DEVICE(0x1006, "MOTIF7"),
179 YAMAHA_DEVICE(0x1007, "MOTIF8"),
180 YAMAHA_DEVICE(0x1008, "UX96"),
181 YAMAHA_DEVICE(0x1009, "UX16"),
182 YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
183 YAMAHA_DEVICE(0x100c, "UC-MX"),
184 YAMAHA_DEVICE(0x100d, "UC-KX"),
185 YAMAHA_DEVICE(0x100e, "S08"),
186 YAMAHA_DEVICE(0x100f, "CLP-150"),
187 YAMAHA_DEVICE(0x1010, "CLP-170"),
188 YAMAHA_DEVICE(0x1011, "P-250"),
189 YAMAHA_DEVICE(0x1012, "TYROS"),
190 YAMAHA_DEVICE(0x1013, "PF-500"),
191 YAMAHA_DEVICE(0x1014, "S90"),
192 YAMAHA_DEVICE(0x1015, "MOTIF-R"),
193 YAMAHA_DEVICE(0x1016, "MDP-5"),
194 YAMAHA_DEVICE(0x1017, "CVP-204"),
195 YAMAHA_DEVICE(0x1018, "CVP-206"),
196 YAMAHA_DEVICE(0x1019, "CVP-208"),
197 YAMAHA_DEVICE(0x101a, "CVP-210"),
198 YAMAHA_DEVICE(0x101b, "PSR-1100"),
199 YAMAHA_DEVICE(0x101c, "PSR-2100"),
200 YAMAHA_DEVICE(0x101d, "CLP-175"),
201 YAMAHA_DEVICE(0x101e, "PSR-K1"),
202 YAMAHA_DEVICE(0x101f, "EZ-J24"),
203 YAMAHA_DEVICE(0x1020, "EZ-250i"),
204 YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
205 YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
206 YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
207 YAMAHA_DEVICE(0x1024, "CVP-301"),
208 YAMAHA_DEVICE(0x1025, "CVP-303"),
209 YAMAHA_DEVICE(0x1026, "CVP-305"),
210 YAMAHA_DEVICE(0x1027, "CVP-307"),
211 YAMAHA_DEVICE(0x1028, "CVP-309"),
212 YAMAHA_DEVICE(0x1029, "CVP-309GP"),
213 YAMAHA_DEVICE(0x102a, "PSR-1500"),
214 YAMAHA_DEVICE(0x102b, "PSR-3000"),
215 YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
216 YAMAHA_DEVICE(0x1030, "PSR-295/293"),
217 YAMAHA_DEVICE(0x1031, "DGX-205/203"),
218 YAMAHA_DEVICE(0x1032, "DGX-305"),
219 YAMAHA_DEVICE(0x1033, "DGX-505"),
220 YAMAHA_DEVICE(0x1034, NULL),
221 YAMAHA_DEVICE(0x1035, NULL),
222 YAMAHA_DEVICE(0x1036, NULL),
223 YAMAHA_DEVICE(0x1037, NULL),
224 YAMAHA_DEVICE(0x1038, NULL),
225 YAMAHA_DEVICE(0x1039, NULL),
226 YAMAHA_DEVICE(0x103a, NULL),
227 YAMAHA_DEVICE(0x103b, NULL),
228 YAMAHA_DEVICE(0x103c, NULL),
229 YAMAHA_DEVICE(0x103d, NULL),
230 YAMAHA_DEVICE(0x103e, NULL),
231 YAMAHA_DEVICE(0x103f, NULL),
232 YAMAHA_DEVICE(0x1040, NULL),
233 YAMAHA_DEVICE(0x1041, NULL),
234 YAMAHA_DEVICE(0x1042, NULL),
235 YAMAHA_DEVICE(0x1043, NULL),
236 YAMAHA_DEVICE(0x1044, NULL),
237 YAMAHA_DEVICE(0x1045, NULL),
238 YAMAHA_INTERFACE(0x104e, 0, NULL),
239 YAMAHA_DEVICE(0x104f, NULL),
240 YAMAHA_DEVICE(0x1050, NULL),
241 YAMAHA_DEVICE(0x1051, NULL),
242 YAMAHA_DEVICE(0x1052, NULL),
243 YAMAHA_DEVICE(0x2000, "DGP-7"),
244 YAMAHA_DEVICE(0x2001, "DGP-5"),
245 YAMAHA_DEVICE(0x2002, NULL),
246 YAMAHA_DEVICE(0x5000, "CS1D"),
247 YAMAHA_DEVICE(0x5001, "DSP1D"),
248 YAMAHA_DEVICE(0x5002, "DME32"),
249 YAMAHA_DEVICE(0x5003, "DM2000"),
250 YAMAHA_DEVICE(0x5004, "02R96"),
251 YAMAHA_DEVICE(0x5005, "ACU16-C"),
252 YAMAHA_DEVICE(0x5006, "NHB32-C"),
253 YAMAHA_DEVICE(0x5007, "DM1000"),
254 YAMAHA_DEVICE(0x5008, "01V96"),
255 YAMAHA_DEVICE(0x5009, "SPX2000"),
256 YAMAHA_DEVICE(0x500a, "PM5D"),
257 YAMAHA_DEVICE(0x500b, "DME64N"),
258 YAMAHA_DEVICE(0x500c, "DME24N"),
259 YAMAHA_DEVICE(0x500d, NULL),
260 YAMAHA_DEVICE(0x500e, NULL),
261 YAMAHA_DEVICE(0x500f, NULL),
262 YAMAHA_DEVICE(0x7000, "DTX"),
263 YAMAHA_DEVICE(0x7010, "UB99"),
264 #undef YAMAHA_DEVICE
265 #undef YAMAHA_INTERFACE
268 * Roland/RolandED/Edirol/BOSS devices
271 USB_DEVICE(0x0582, 0x0000),
272 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
273 .vendor_name = "Roland",
274 .product_name = "UA-100",
275 .ifnum = QUIRK_ANY_INTERFACE,
276 .type = QUIRK_COMPOSITE,
277 .data = (const struct snd_usb_audio_quirk[]) {
279 .ifnum = 0,
280 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
281 .data = & (const struct audioformat) {
282 .format = SNDRV_PCM_FORMAT_S16_LE,
283 .channels = 4,
284 .iface = 0,
285 .altsetting = 1,
286 .altset_idx = 1,
287 .attributes = 0,
288 .endpoint = 0x01,
289 .ep_attr = 0x09,
290 .rates = SNDRV_PCM_RATE_CONTINUOUS,
291 .rate_min = 44100,
292 .rate_max = 44100,
296 .ifnum = 1,
297 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
298 .data = & (const struct audioformat) {
299 .format = SNDRV_PCM_FORMAT_S16_LE,
300 .channels = 2,
301 .iface = 1,
302 .altsetting = 1,
303 .altset_idx = 1,
304 .attributes = EP_CS_ATTR_FILL_MAX,
305 .endpoint = 0x81,
306 .ep_attr = 0x05,
307 .rates = SNDRV_PCM_RATE_CONTINUOUS,
308 .rate_min = 44100,
309 .rate_max = 44100,
313 .ifnum = 2,
314 .type = QUIRK_MIDI_FIXED_ENDPOINT,
315 .data = & (const struct snd_usb_midi_endpoint_info) {
316 .out_cables = 0x0007,
317 .in_cables = 0x0007
321 .ifnum = -1
327 USB_DEVICE(0x0582, 0x0002),
328 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
329 .vendor_name = "EDIROL",
330 .product_name = "UM-4",
331 .ifnum = QUIRK_ANY_INTERFACE,
332 .type = QUIRK_COMPOSITE,
333 .data = (const struct snd_usb_audio_quirk[]) {
335 .ifnum = 0,
336 .type = QUIRK_IGNORE_INTERFACE
339 .ifnum = 1,
340 .type = QUIRK_IGNORE_INTERFACE
343 .ifnum = 2,
344 .type = QUIRK_MIDI_FIXED_ENDPOINT,
345 .data = & (const struct snd_usb_midi_endpoint_info) {
346 .out_cables = 0x000f,
347 .in_cables = 0x000f
351 .ifnum = -1
357 USB_DEVICE(0x0582, 0x0003),
358 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
359 .vendor_name = "Roland",
360 .product_name = "SC-8850",
361 .ifnum = QUIRK_ANY_INTERFACE,
362 .type = QUIRK_COMPOSITE,
363 .data = (const struct snd_usb_audio_quirk[]) {
365 .ifnum = 0,
366 .type = QUIRK_IGNORE_INTERFACE
369 .ifnum = 1,
370 .type = QUIRK_IGNORE_INTERFACE
373 .ifnum = 2,
374 .type = QUIRK_MIDI_FIXED_ENDPOINT,
375 .data = & (const struct snd_usb_midi_endpoint_info) {
376 .out_cables = 0x003f,
377 .in_cables = 0x003f
381 .ifnum = -1
387 USB_DEVICE(0x0582, 0x0004),
388 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
389 .vendor_name = "Roland",
390 .product_name = "U-8",
391 .ifnum = QUIRK_ANY_INTERFACE,
392 .type = QUIRK_COMPOSITE,
393 .data = (const struct snd_usb_audio_quirk[]) {
395 .ifnum = 0,
396 .type = QUIRK_IGNORE_INTERFACE
399 .ifnum = 1,
400 .type = QUIRK_IGNORE_INTERFACE
403 .ifnum = 2,
404 .type = QUIRK_MIDI_FIXED_ENDPOINT,
405 .data = & (const struct snd_usb_midi_endpoint_info) {
406 .out_cables = 0x0005,
407 .in_cables = 0x0005
411 .ifnum = -1
417 /* Has ID 0x0099 when not in "Advanced Driver" mode.
418 * The UM-2EX has only one input, but we cannot detect this. */
419 USB_DEVICE(0x0582, 0x0005),
420 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
421 .vendor_name = "EDIROL",
422 .product_name = "UM-2",
423 .ifnum = QUIRK_ANY_INTERFACE,
424 .type = QUIRK_COMPOSITE,
425 .data = (const struct snd_usb_audio_quirk[]) {
427 .ifnum = 0,
428 .type = QUIRK_IGNORE_INTERFACE
431 .ifnum = 1,
432 .type = QUIRK_IGNORE_INTERFACE
435 .ifnum = 2,
436 .type = QUIRK_MIDI_FIXED_ENDPOINT,
437 .data = & (const struct snd_usb_midi_endpoint_info) {
438 .out_cables = 0x0003,
439 .in_cables = 0x0003
443 .ifnum = -1
449 USB_DEVICE(0x0582, 0x0007),
450 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
451 .vendor_name = "Roland",
452 .product_name = "SC-8820",
453 .ifnum = QUIRK_ANY_INTERFACE,
454 .type = QUIRK_COMPOSITE,
455 .data = (const struct snd_usb_audio_quirk[]) {
457 .ifnum = 0,
458 .type = QUIRK_IGNORE_INTERFACE
461 .ifnum = 1,
462 .type = QUIRK_IGNORE_INTERFACE
465 .ifnum = 2,
466 .type = QUIRK_MIDI_FIXED_ENDPOINT,
467 .data = & (const struct snd_usb_midi_endpoint_info) {
468 .out_cables = 0x0013,
469 .in_cables = 0x0013
473 .ifnum = -1
479 USB_DEVICE(0x0582, 0x0008),
480 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
481 .vendor_name = "Roland",
482 .product_name = "PC-300",
483 .ifnum = QUIRK_ANY_INTERFACE,
484 .type = QUIRK_COMPOSITE,
485 .data = (const struct snd_usb_audio_quirk[]) {
487 .ifnum = 0,
488 .type = QUIRK_IGNORE_INTERFACE
491 .ifnum = 1,
492 .type = QUIRK_IGNORE_INTERFACE
495 .ifnum = 2,
496 .type = QUIRK_MIDI_FIXED_ENDPOINT,
497 .data = & (const struct snd_usb_midi_endpoint_info) {
498 .out_cables = 0x0001,
499 .in_cables = 0x0001
503 .ifnum = -1
509 /* has ID 0x009d when not in "Advanced Driver" mode */
510 USB_DEVICE(0x0582, 0x0009),
511 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
512 .vendor_name = "EDIROL",
513 .product_name = "UM-1",
514 .ifnum = QUIRK_ANY_INTERFACE,
515 .type = QUIRK_COMPOSITE,
516 .data = (const struct snd_usb_audio_quirk[]) {
518 .ifnum = 0,
519 .type = QUIRK_IGNORE_INTERFACE
522 .ifnum = 1,
523 .type = QUIRK_IGNORE_INTERFACE
526 .ifnum = 2,
527 .type = QUIRK_MIDI_FIXED_ENDPOINT,
528 .data = & (const struct snd_usb_midi_endpoint_info) {
529 .out_cables = 0x0001,
530 .in_cables = 0x0001
534 .ifnum = -1
540 USB_DEVICE(0x0582, 0x000b),
541 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
542 .vendor_name = "Roland",
543 .product_name = "SK-500",
544 .ifnum = QUIRK_ANY_INTERFACE,
545 .type = QUIRK_COMPOSITE,
546 .data = (const struct snd_usb_audio_quirk[]) {
548 .ifnum = 0,
549 .type = QUIRK_IGNORE_INTERFACE
552 .ifnum = 1,
553 .type = QUIRK_IGNORE_INTERFACE
556 .ifnum = 2,
557 .type = QUIRK_MIDI_FIXED_ENDPOINT,
558 .data = & (const struct snd_usb_midi_endpoint_info) {
559 .out_cables = 0x0013,
560 .in_cables = 0x0013
564 .ifnum = -1
570 /* thanks to Emiliano Grilli <emillo@libero.it>
571 * for helping researching this data */
572 USB_DEVICE(0x0582, 0x000c),
573 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
574 .vendor_name = "Roland",
575 .product_name = "SC-D70",
576 .ifnum = QUIRK_ANY_INTERFACE,
577 .type = QUIRK_COMPOSITE,
578 .data = (const struct snd_usb_audio_quirk[]) {
580 .ifnum = 0,
581 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
582 .data = & (const struct audioformat) {
583 .format = SNDRV_PCM_FORMAT_S24_3LE,
584 .channels = 2,
585 .iface = 0,
586 .altsetting = 1,
587 .altset_idx = 1,
588 .attributes = 0,
589 .endpoint = 0x01,
590 .ep_attr = 0x01,
591 .rates = SNDRV_PCM_RATE_CONTINUOUS,
592 .rate_min = 44100,
593 .rate_max = 44100,
597 .ifnum = 1,
598 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
599 .data = & (const struct audioformat) {
600 .format = SNDRV_PCM_FORMAT_S24_3LE,
601 .channels = 2,
602 .iface = 1,
603 .altsetting = 1,
604 .altset_idx = 1,
605 .attributes = 0,
606 .endpoint = 0x81,
607 .ep_attr = 0x01,
608 .rates = SNDRV_PCM_RATE_CONTINUOUS,
609 .rate_min = 44100,
610 .rate_max = 44100,
614 .ifnum = 2,
615 .type = QUIRK_MIDI_FIXED_ENDPOINT,
616 .data = & (const struct snd_usb_midi_endpoint_info) {
617 .out_cables = 0x0007,
618 .in_cables = 0x0007
622 .ifnum = -1
627 { /*
628 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
629 * If the advanced mode switch at the back of the unit is off, the
630 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
631 * but offers only 16-bit PCM.
632 * In advanced mode, the UA-5 will output S24_3LE samples (two
633 * channels) at the rate indicated on the front switch, including
634 * the 96kHz sample rate.
636 USB_DEVICE(0x0582, 0x0010),
637 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
638 .vendor_name = "EDIROL",
639 .product_name = "UA-5",
640 .ifnum = QUIRK_ANY_INTERFACE,
641 .type = QUIRK_COMPOSITE,
642 .data = (const struct snd_usb_audio_quirk[]) {
644 .ifnum = 1,
645 .type = QUIRK_AUDIO_STANDARD_INTERFACE
648 .ifnum = 2,
649 .type = QUIRK_AUDIO_STANDARD_INTERFACE
652 .ifnum = -1
658 /* has ID 0x0013 when not in "Advanced Driver" mode */
659 USB_DEVICE(0x0582, 0x0012),
660 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
661 .vendor_name = "Roland",
662 .product_name = "XV-5050",
663 .ifnum = 0,
664 .type = QUIRK_MIDI_FIXED_ENDPOINT,
665 .data = & (const struct snd_usb_midi_endpoint_info) {
666 .out_cables = 0x0001,
667 .in_cables = 0x0001
672 /* has ID 0x0015 when not in "Advanced Driver" mode */
673 USB_DEVICE(0x0582, 0x0014),
674 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
675 .vendor_name = "EDIROL",
676 .product_name = "UM-880",
677 .ifnum = 0,
678 .type = QUIRK_MIDI_FIXED_ENDPOINT,
679 .data = & (const struct snd_usb_midi_endpoint_info) {
680 .out_cables = 0x01ff,
681 .in_cables = 0x01ff
686 /* has ID 0x0017 when not in "Advanced Driver" mode */
687 USB_DEVICE(0x0582, 0x0016),
688 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
689 .vendor_name = "EDIROL",
690 .product_name = "SD-90",
691 .ifnum = QUIRK_ANY_INTERFACE,
692 .type = QUIRK_COMPOSITE,
693 .data = (const struct snd_usb_audio_quirk[]) {
695 .ifnum = 0,
696 .type = QUIRK_IGNORE_INTERFACE
699 .ifnum = 1,
700 .type = QUIRK_IGNORE_INTERFACE
703 .ifnum = 2,
704 .type = QUIRK_MIDI_FIXED_ENDPOINT,
705 .data = & (const struct snd_usb_midi_endpoint_info) {
706 .out_cables = 0x000f,
707 .in_cables = 0x000f
711 .ifnum = -1
717 /* has ID 0x001c when not in "Advanced Driver" mode */
718 USB_DEVICE(0x0582, 0x001b),
719 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
720 .vendor_name = "Roland",
721 .product_name = "MMP-2",
722 .ifnum = QUIRK_ANY_INTERFACE,
723 .type = QUIRK_COMPOSITE,
724 .data = (const struct snd_usb_audio_quirk[]) {
726 .ifnum = 0,
727 .type = QUIRK_IGNORE_INTERFACE
730 .ifnum = 1,
731 .type = QUIRK_IGNORE_INTERFACE
734 .ifnum = 2,
735 .type = QUIRK_MIDI_FIXED_ENDPOINT,
736 .data = & (const struct snd_usb_midi_endpoint_info) {
737 .out_cables = 0x0001,
738 .in_cables = 0x0001
742 .ifnum = -1
748 /* has ID 0x001e when not in "Advanced Driver" mode */
749 USB_DEVICE(0x0582, 0x001d),
750 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
751 .vendor_name = "Roland",
752 .product_name = "V-SYNTH",
753 .ifnum = 0,
754 .type = QUIRK_MIDI_FIXED_ENDPOINT,
755 .data = & (const struct snd_usb_midi_endpoint_info) {
756 .out_cables = 0x0001,
757 .in_cables = 0x0001
762 /* has ID 0x0024 when not in "Advanced Driver" mode */
763 USB_DEVICE(0x0582, 0x0023),
764 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
765 .vendor_name = "EDIROL",
766 .product_name = "UM-550",
767 .ifnum = 0,
768 .type = QUIRK_MIDI_FIXED_ENDPOINT,
769 .data = & (const struct snd_usb_midi_endpoint_info) {
770 .out_cables = 0x003f,
771 .in_cables = 0x003f
777 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
778 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
779 * and no MIDI.
781 USB_DEVICE(0x0582, 0x0025),
782 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
783 .vendor_name = "EDIROL",
784 .product_name = "UA-20",
785 .ifnum = QUIRK_ANY_INTERFACE,
786 .type = QUIRK_COMPOSITE,
787 .data = (const struct snd_usb_audio_quirk[]) {
789 .ifnum = 0,
790 .type = QUIRK_IGNORE_INTERFACE
793 .ifnum = 1,
794 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
795 .data = & (const struct audioformat) {
796 .format = SNDRV_PCM_FORMAT_S24_3LE,
797 .channels = 2,
798 .iface = 1,
799 .altsetting = 1,
800 .altset_idx = 1,
801 .attributes = 0,
802 .endpoint = 0x01,
803 .ep_attr = 0x01,
804 .rates = SNDRV_PCM_RATE_CONTINUOUS,
805 .rate_min = 44100,
806 .rate_max = 44100,
810 .ifnum = 2,
811 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
812 .data = & (const struct audioformat) {
813 .format = SNDRV_PCM_FORMAT_S24_3LE,
814 .channels = 2,
815 .iface = 2,
816 .altsetting = 1,
817 .altset_idx = 1,
818 .attributes = 0,
819 .endpoint = 0x82,
820 .ep_attr = 0x01,
821 .rates = SNDRV_PCM_RATE_CONTINUOUS,
822 .rate_min = 44100,
823 .rate_max = 44100,
827 .ifnum = 3,
828 .type = QUIRK_MIDI_FIXED_ENDPOINT,
829 .data = & (const struct snd_usb_midi_endpoint_info) {
830 .out_cables = 0x0001,
831 .in_cables = 0x0001
835 .ifnum = -1
841 /* has ID 0x0028 when not in "Advanced Driver" mode */
842 USB_DEVICE(0x0582, 0x0027),
843 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
844 .vendor_name = "EDIROL",
845 .product_name = "SD-20",
846 .ifnum = 0,
847 .type = QUIRK_MIDI_FIXED_ENDPOINT,
848 .data = & (const struct snd_usb_midi_endpoint_info) {
849 .out_cables = 0x0003,
850 .in_cables = 0x0007
855 /* has ID 0x002a when not in "Advanced Driver" mode */
856 USB_DEVICE(0x0582, 0x0029),
857 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
858 .vendor_name = "EDIROL",
859 .product_name = "SD-80",
860 .ifnum = 0,
861 .type = QUIRK_MIDI_FIXED_ENDPOINT,
862 .data = & (const struct snd_usb_midi_endpoint_info) {
863 .out_cables = 0x000f,
864 .in_cables = 0x000f
868 { /*
869 * This quirk is for the "Advanced" modes of the Edirol UA-700.
870 * If the sample format switch is not in an advanced setting, the
871 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
872 * but offers only 16-bit PCM and no MIDI.
874 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
875 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
876 .vendor_name = "EDIROL",
877 .product_name = "UA-700",
878 .ifnum = QUIRK_ANY_INTERFACE,
879 .type = QUIRK_COMPOSITE,
880 .data = (const struct snd_usb_audio_quirk[]) {
882 .ifnum = 1,
883 .type = QUIRK_AUDIO_EDIROL_UAXX
886 .ifnum = 2,
887 .type = QUIRK_AUDIO_EDIROL_UAXX
890 .ifnum = 3,
891 .type = QUIRK_AUDIO_EDIROL_UAXX
894 .ifnum = -1
900 /* has ID 0x002e when not in "Advanced Driver" mode */
901 USB_DEVICE(0x0582, 0x002d),
902 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
903 .vendor_name = "Roland",
904 .product_name = "XV-2020",
905 .ifnum = 0,
906 .type = QUIRK_MIDI_FIXED_ENDPOINT,
907 .data = & (const struct snd_usb_midi_endpoint_info) {
908 .out_cables = 0x0001,
909 .in_cables = 0x0001
914 /* has ID 0x0030 when not in "Advanced Driver" mode */
915 USB_DEVICE(0x0582, 0x002f),
916 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
917 .vendor_name = "Roland",
918 .product_name = "VariOS",
919 .ifnum = 0,
920 .type = QUIRK_MIDI_FIXED_ENDPOINT,
921 .data = & (const struct snd_usb_midi_endpoint_info) {
922 .out_cables = 0x0007,
923 .in_cables = 0x0007
928 /* has ID 0x0034 when not in "Advanced Driver" mode */
929 USB_DEVICE(0x0582, 0x0033),
930 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
931 .vendor_name = "EDIROL",
932 .product_name = "PCR",
933 .ifnum = 0,
934 .type = QUIRK_MIDI_FIXED_ENDPOINT,
935 .data = & (const struct snd_usb_midi_endpoint_info) {
936 .out_cables = 0x0003,
937 .in_cables = 0x0007
941 /* TODO: add Roland M-1000 support */
944 * Has ID 0x0038 when not in "Advanced Driver" mode;
945 * later revisions use IDs 0x0054 and 0x00a2.
947 USB_DEVICE(0x0582, 0x0037),
948 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
949 .vendor_name = "Roland",
950 .product_name = "Digital Piano",
951 .ifnum = 0,
952 .type = QUIRK_MIDI_FIXED_ENDPOINT,
953 .data = & (const struct snd_usb_midi_endpoint_info) {
954 .out_cables = 0x0001,
955 .in_cables = 0x0001
961 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
962 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
963 * and no MIDI.
965 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
966 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
967 .vendor_name = "BOSS",
968 .product_name = "GS-10",
969 .ifnum = QUIRK_ANY_INTERFACE,
970 .type = QUIRK_COMPOSITE,
971 .data = & (const struct snd_usb_audio_quirk[]) {
973 .ifnum = 1,
974 .type = QUIRK_AUDIO_STANDARD_INTERFACE
977 .ifnum = 2,
978 .type = QUIRK_AUDIO_STANDARD_INTERFACE
981 .ifnum = 3,
982 .type = QUIRK_MIDI_STANDARD_INTERFACE
985 .ifnum = -1
991 /* has ID 0x0041 when not in "Advanced Driver" mode */
992 USB_DEVICE(0x0582, 0x0040),
993 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
994 .vendor_name = "Roland",
995 .product_name = "GI-20",
996 .ifnum = 0,
997 .type = QUIRK_MIDI_FIXED_ENDPOINT,
998 .data = & (const struct snd_usb_midi_endpoint_info) {
999 .out_cables = 0x0001,
1000 .in_cables = 0x0001
1005 /* has ID 0x0043 when not in "Advanced Driver" mode */
1006 USB_DEVICE(0x0582, 0x0042),
1007 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1008 .vendor_name = "Roland",
1009 .product_name = "RS-70",
1010 .ifnum = 0,
1011 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1012 .data = & (const struct snd_usb_midi_endpoint_info) {
1013 .out_cables = 0x0001,
1014 .in_cables = 0x0001
1019 USB_DEVICE(0x0582, 0x0044),
1020 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1021 .vendor_name = "Roland",
1022 .product_name = "UA-1000",
1023 .ifnum = QUIRK_ANY_INTERFACE,
1024 .type = QUIRK_COMPOSITE,
1025 .data = (const struct snd_usb_audio_quirk[]) {
1027 .ifnum = 1,
1028 .type = QUIRK_AUDIO_EDIROL_UA1000
1031 .ifnum = 2,
1032 .type = QUIRK_AUDIO_EDIROL_UA1000
1035 .ifnum = 3,
1036 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1037 .data = & (const struct snd_usb_midi_endpoint_info) {
1038 .out_cables = 0x0003,
1039 .in_cables = 0x0003
1043 .ifnum = -1
1049 /* has ID 0x0049 when not in "Advanced Driver" mode */
1050 USB_DEVICE(0x0582, 0x0047),
1051 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1052 /* .vendor_name = "EDIROL", */
1053 /* .product_name = "UR-80", */
1054 .ifnum = QUIRK_ANY_INTERFACE,
1055 .type = QUIRK_COMPOSITE,
1056 .data = (const struct snd_usb_audio_quirk[]) {
1057 /* in the 96 kHz modes, only interface 1 is there */
1059 .ifnum = 1,
1060 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1063 .ifnum = 2,
1064 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1067 .ifnum = -1
1073 /* has ID 0x004a when not in "Advanced Driver" mode */
1074 USB_DEVICE(0x0582, 0x0048),
1075 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1076 /* .vendor_name = "EDIROL", */
1077 /* .product_name = "UR-80", */
1078 .ifnum = 0,
1079 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1080 .data = & (const struct snd_usb_midi_endpoint_info) {
1081 .out_cables = 0x0003,
1082 .in_cables = 0x0007
1086 /* TODO: add Edirol M-100FX support */
1088 /* has ID 0x004e when not in "Advanced Driver" mode */
1089 USB_DEVICE(0x0582, 0x004c),
1090 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1091 .vendor_name = "EDIROL",
1092 .product_name = "PCR-A",
1093 .ifnum = QUIRK_ANY_INTERFACE,
1094 .type = QUIRK_COMPOSITE,
1095 .data = (const struct snd_usb_audio_quirk[]) {
1097 .ifnum = 1,
1098 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1101 .ifnum = 2,
1102 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1105 .ifnum = -1
1111 /* has ID 0x004f when not in "Advanced Driver" mode */
1112 USB_DEVICE(0x0582, 0x004d),
1113 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1114 .vendor_name = "EDIROL",
1115 .product_name = "PCR-A",
1116 .ifnum = 0,
1117 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1118 .data = & (const struct snd_usb_midi_endpoint_info) {
1119 .out_cables = 0x0003,
1120 .in_cables = 0x0007
1126 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1127 * is standard compliant, but has only 16-bit PCM.
1129 USB_DEVICE(0x0582, 0x0050),
1130 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1131 .vendor_name = "EDIROL",
1132 .product_name = "UA-3FX",
1133 .ifnum = QUIRK_ANY_INTERFACE,
1134 .type = QUIRK_COMPOSITE,
1135 .data = (const struct snd_usb_audio_quirk[]) {
1137 .ifnum = 1,
1138 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1141 .ifnum = 2,
1142 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1145 .ifnum = -1
1151 USB_DEVICE(0x0582, 0x0052),
1152 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1153 .vendor_name = "EDIROL",
1154 .product_name = "UM-1SX",
1155 .ifnum = 0,
1156 .type = QUIRK_MIDI_STANDARD_INTERFACE
1160 USB_DEVICE(0x0582, 0x0060),
1161 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1162 .vendor_name = "Roland",
1163 .product_name = "EXR Series",
1164 .ifnum = 0,
1165 .type = QUIRK_MIDI_STANDARD_INTERFACE
1169 /* has ID 0x0067 when not in "Advanced Driver" mode */
1170 USB_DEVICE(0x0582, 0x0065),
1171 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1172 .vendor_name = "EDIROL",
1173 .product_name = "PCR-1",
1174 .ifnum = 0,
1175 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1176 .data = & (const struct snd_usb_midi_endpoint_info) {
1177 .out_cables = 0x0001,
1178 .in_cables = 0x0003
1183 /* has ID 0x006b when not in "Advanced Driver" mode */
1184 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
1185 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1186 .vendor_name = "Roland",
1187 .product_name = "SP-606",
1188 .ifnum = 3,
1189 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1190 .data = & (const struct snd_usb_midi_endpoint_info) {
1191 .out_cables = 0x0001,
1192 .in_cables = 0x0001
1197 /* has ID 0x006e when not in "Advanced Driver" mode */
1198 USB_DEVICE(0x0582, 0x006d),
1199 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1200 .vendor_name = "Roland",
1201 .product_name = "FANTOM-X",
1202 .ifnum = 0,
1203 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1204 .data = & (const struct snd_usb_midi_endpoint_info) {
1205 .out_cables = 0x0001,
1206 .in_cables = 0x0001
1210 { /*
1211 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1212 * If the switch is not in an advanced setting, the UA-25 has
1213 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1214 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1216 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
1217 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1218 .vendor_name = "EDIROL",
1219 .product_name = "UA-25",
1220 .ifnum = QUIRK_ANY_INTERFACE,
1221 .type = QUIRK_COMPOSITE,
1222 .data = (const struct snd_usb_audio_quirk[]) {
1224 .ifnum = 0,
1225 .type = QUIRK_AUDIO_EDIROL_UAXX
1228 .ifnum = 1,
1229 .type = QUIRK_AUDIO_EDIROL_UAXX
1232 .ifnum = 2,
1233 .type = QUIRK_AUDIO_EDIROL_UAXX
1236 .ifnum = -1
1242 /* has ID 0x0076 when not in "Advanced Driver" mode */
1243 USB_DEVICE(0x0582, 0x0075),
1244 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1245 .vendor_name = "BOSS",
1246 .product_name = "DR-880",
1247 .ifnum = 0,
1248 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1249 .data = & (const struct snd_usb_midi_endpoint_info) {
1250 .out_cables = 0x0001,
1251 .in_cables = 0x0001
1256 /* has ID 0x007b when not in "Advanced Driver" mode */
1257 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
1258 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1259 .vendor_name = "Roland",
1260 /* "RD" or "RD-700SX"? */
1261 .ifnum = 0,
1262 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1263 .data = & (const struct snd_usb_midi_endpoint_info) {
1264 .out_cables = 0x0003,
1265 .in_cables = 0x0003
1269 /* Roland UA-101 in High-Speed Mode only */
1271 USB_DEVICE(0x0582, 0x007d),
1272 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1273 .vendor_name = "Roland",
1274 .product_name = "UA-101",
1275 .ifnum = QUIRK_ANY_INTERFACE,
1276 .type = QUIRK_COMPOSITE,
1277 .data = (const struct snd_usb_audio_quirk[]) {
1279 .ifnum = 0,
1280 .type = QUIRK_AUDIO_EDIROL_UA101
1283 .ifnum = 1,
1284 .type = QUIRK_AUDIO_EDIROL_UA101
1287 .ifnum = 2,
1288 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1289 .data = & (const struct snd_usb_midi_endpoint_info) {
1290 .out_cables = 0x0001,
1291 .in_cables = 0x0001
1295 .ifnum = -1
1301 /* has ID 0x0081 when not in "Advanced Driver" mode */
1302 USB_DEVICE(0x0582, 0x0080),
1303 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1304 .vendor_name = "Roland",
1305 .product_name = "G-70",
1306 .ifnum = 0,
1307 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1308 .data = & (const struct snd_usb_midi_endpoint_info) {
1309 .out_cables = 0x0001,
1310 .in_cables = 0x0001
1314 /* TODO: add Roland V-SYNTH XT support */
1315 /* TODO: add BOSS GT-PRO support */
1317 /* has ID 0x008c when not in "Advanced Driver" mode */
1318 USB_DEVICE(0x0582, 0x008b),
1319 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1320 .vendor_name = "EDIROL",
1321 .product_name = "PC-50",
1322 .ifnum = 0,
1323 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1324 .data = & (const struct snd_usb_midi_endpoint_info) {
1325 .out_cables = 0x0001,
1326 .in_cables = 0x0001
1330 /* TODO: add Edirol PC-80 support */
1332 USB_DEVICE(0x0582, 0x0096),
1333 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1334 .vendor_name = "EDIROL",
1335 .product_name = "UA-1EX",
1336 .ifnum = QUIRK_ANY_INTERFACE,
1337 .type = QUIRK_COMPOSITE,
1338 .data = (const struct snd_usb_audio_quirk[]) {
1340 .ifnum = 0,
1341 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1344 .ifnum = 1,
1345 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1348 .ifnum = -1
1354 USB_DEVICE(0x0582, 0x009a),
1355 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1356 .vendor_name = "EDIROL",
1357 .product_name = "UM-3EX",
1358 .ifnum = 0,
1359 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1360 .data = & (const struct snd_usb_midi_endpoint_info) {
1361 .out_cables = 0x000f,
1362 .in_cables = 0x000f
1368 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
1369 * is standard compliant, but has only 16-bit PCM and no MIDI.
1371 USB_DEVICE(0x0582, 0x00a3),
1372 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1373 .vendor_name = "EDIROL",
1374 .product_name = "UA-4FX",
1375 .ifnum = QUIRK_ANY_INTERFACE,
1376 .type = QUIRK_COMPOSITE,
1377 .data = (const struct snd_usb_audio_quirk[]) {
1379 .ifnum = 0,
1380 .type = QUIRK_AUDIO_EDIROL_UAXX
1383 .ifnum = 1,
1384 .type = QUIRK_AUDIO_EDIROL_UAXX
1387 .ifnum = 2,
1388 .type = QUIRK_AUDIO_EDIROL_UAXX
1391 .ifnum = -1
1396 /* TODO: add Edirol MD-P1 support */
1398 USB_DEVICE(0x582, 0x00a6),
1399 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1400 .vendor_name = "Roland",
1401 .product_name = "Juno-G",
1402 .ifnum = 0,
1403 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1404 .data = & (const struct snd_usb_midi_endpoint_info) {
1405 .out_cables = 0x0001,
1406 .in_cables = 0x0001
1411 /* Roland SH-201 */
1412 USB_DEVICE(0x0582, 0x00ad),
1413 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1414 .vendor_name = "Roland",
1415 .product_name = "SH-201",
1416 .ifnum = QUIRK_ANY_INTERFACE,
1417 .type = QUIRK_COMPOSITE,
1418 .data = (const struct snd_usb_audio_quirk[]) {
1420 .ifnum = 0,
1421 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1424 .ifnum = 1,
1425 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1428 .ifnum = 2,
1429 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1430 .data = & (const struct snd_usb_midi_endpoint_info) {
1431 .out_cables = 0x0001,
1432 .in_cables = 0x0001
1436 .ifnum = -1
1442 /* Roland SonicCell */
1443 USB_DEVICE(0x0582, 0x00c2),
1444 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1445 .vendor_name = "Roland",
1446 .product_name = "SonicCell",
1447 .ifnum = QUIRK_ANY_INTERFACE,
1448 .type = QUIRK_COMPOSITE,
1449 .data = (const struct snd_usb_audio_quirk[]) {
1451 .ifnum = 0,
1452 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1455 .ifnum = 1,
1456 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1459 .ifnum = 2,
1460 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1461 .data = & (const struct snd_usb_midi_endpoint_info) {
1462 .out_cables = 0x0001,
1463 .in_cables = 0x0001
1467 .ifnum = -1
1473 /* BOSS GT-10 */
1474 USB_DEVICE(0x0582, 0x00da),
1475 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1476 .ifnum = QUIRK_ANY_INTERFACE,
1477 .type = QUIRK_COMPOSITE,
1478 .data = (const struct snd_usb_audio_quirk[]) {
1480 .ifnum = 0,
1481 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1484 .ifnum = 1,
1485 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1488 .ifnum = 2,
1489 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1490 .data = & (const struct snd_usb_midi_endpoint_info) {
1491 .out_cables = 0x0001,
1492 .in_cables = 0x0001
1496 .ifnum = -1
1502 /* Advanced modes of the Edirol UA-25EX.
1503 * For the standard mode, UA-25EX has ID 0582:00e7, which
1504 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1506 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
1507 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1508 .vendor_name = "EDIROL",
1509 .product_name = "UA-25EX",
1510 .ifnum = QUIRK_ANY_INTERFACE,
1511 .type = QUIRK_COMPOSITE,
1512 .data = (const struct snd_usb_audio_quirk[]) {
1514 .ifnum = 0,
1515 .type = QUIRK_AUDIO_EDIROL_UAXX
1518 .ifnum = 1,
1519 .type = QUIRK_AUDIO_EDIROL_UAXX
1522 .ifnum = 2,
1523 .type = QUIRK_AUDIO_EDIROL_UAXX
1526 .ifnum = -1
1532 /* Guillemot devices */
1535 * This is for the "Windows Edition" where the external MIDI ports are
1536 * the only MIDI ports; the control data is reported through HID
1537 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1538 * compliant USB MIDI ports for external MIDI and controls.
1540 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
1541 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1542 .vendor_name = "Hercules",
1543 .product_name = "DJ Console (WE)",
1544 .ifnum = 4,
1545 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1546 .data = & (const struct snd_usb_midi_endpoint_info) {
1547 .out_cables = 0x0001,
1548 .in_cables = 0x0001
1553 /* Midiman/M-Audio devices */
1555 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
1556 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1557 .vendor_name = "M-Audio",
1558 .product_name = "MidiSport 2x2",
1559 .ifnum = QUIRK_ANY_INTERFACE,
1560 .type = QUIRK_MIDI_MIDIMAN,
1561 .data = & (const struct snd_usb_midi_endpoint_info) {
1562 .out_cables = 0x0003,
1563 .in_cables = 0x0003
1568 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
1569 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1570 .vendor_name = "M-Audio",
1571 .product_name = "MidiSport 1x1",
1572 .ifnum = QUIRK_ANY_INTERFACE,
1573 .type = QUIRK_MIDI_MIDIMAN,
1574 .data = & (const struct snd_usb_midi_endpoint_info) {
1575 .out_cables = 0x0001,
1576 .in_cables = 0x0001
1581 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
1582 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1583 .vendor_name = "M-Audio",
1584 .product_name = "Keystation",
1585 .ifnum = QUIRK_ANY_INTERFACE,
1586 .type = QUIRK_MIDI_MIDIMAN,
1587 .data = & (const struct snd_usb_midi_endpoint_info) {
1588 .out_cables = 0x0001,
1589 .in_cables = 0x0001
1594 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
1595 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1596 .vendor_name = "M-Audio",
1597 .product_name = "MidiSport 4x4",
1598 .ifnum = QUIRK_ANY_INTERFACE,
1599 .type = QUIRK_MIDI_MIDIMAN,
1600 .data = & (const struct snd_usb_midi_endpoint_info) {
1601 .out_cables = 0x000f,
1602 .in_cables = 0x000f
1608 * For hardware revision 1.05; in the later revisions (1.10 and
1609 * 1.21), 0x1031 is the ID for the device without firmware.
1610 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1612 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
1613 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1614 .vendor_name = "M-Audio",
1615 .product_name = "MidiSport 8x8",
1616 .ifnum = QUIRK_ANY_INTERFACE,
1617 .type = QUIRK_MIDI_MIDIMAN,
1618 .data = & (const struct snd_usb_midi_endpoint_info) {
1619 .out_cables = 0x01ff,
1620 .in_cables = 0x01ff
1625 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
1626 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1627 .vendor_name = "M-Audio",
1628 .product_name = "MidiSport 8x8",
1629 .ifnum = QUIRK_ANY_INTERFACE,
1630 .type = QUIRK_MIDI_MIDIMAN,
1631 .data = & (const struct snd_usb_midi_endpoint_info) {
1632 .out_cables = 0x01ff,
1633 .in_cables = 0x01ff
1638 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
1639 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1640 .vendor_name = "M-Audio",
1641 .product_name = "MidiSport 2x4",
1642 .ifnum = QUIRK_ANY_INTERFACE,
1643 .type = QUIRK_MIDI_MIDIMAN,
1644 .data = & (const struct snd_usb_midi_endpoint_info) {
1645 .out_cables = 0x000f,
1646 .in_cables = 0x0003
1651 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
1652 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1653 .vendor_name = "M-Audio",
1654 .product_name = "Quattro",
1655 .ifnum = QUIRK_ANY_INTERFACE,
1656 .type = QUIRK_COMPOSITE,
1657 .data = & (const struct snd_usb_audio_quirk[]) {
1659 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1660 * and share endpoints with the other interfaces.
1661 * Ignore them. The other interfaces can do 24 bits,
1662 * but captured samples are big-endian (see usbaudio.c).
1665 .ifnum = 0,
1666 .type = QUIRK_IGNORE_INTERFACE
1669 .ifnum = 1,
1670 .type = QUIRK_IGNORE_INTERFACE
1673 .ifnum = 2,
1674 .type = QUIRK_IGNORE_INTERFACE
1677 .ifnum = 3,
1678 .type = QUIRK_IGNORE_INTERFACE
1681 .ifnum = 4,
1682 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1685 .ifnum = 5,
1686 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1689 .ifnum = 6,
1690 .type = QUIRK_IGNORE_INTERFACE
1693 .ifnum = 7,
1694 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1697 .ifnum = 8,
1698 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1701 .ifnum = 9,
1702 .type = QUIRK_MIDI_MIDIMAN,
1703 .data = & (const struct snd_usb_midi_endpoint_info) {
1704 .out_cables = 0x0001,
1705 .in_cables = 0x0001
1709 .ifnum = -1
1715 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
1716 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1717 .vendor_name = "M-Audio",
1718 .product_name = "AudioPhile",
1719 .ifnum = 6,
1720 .type = QUIRK_MIDI_MIDIMAN,
1721 .data = & (const struct snd_usb_midi_endpoint_info) {
1722 .out_cables = 0x0001,
1723 .in_cables = 0x0001
1728 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
1729 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1730 .vendor_name = "M-Audio",
1731 .product_name = "Ozone",
1732 .ifnum = 3,
1733 .type = QUIRK_MIDI_MIDIMAN,
1734 .data = & (const struct snd_usb_midi_endpoint_info) {
1735 .out_cables = 0x0001,
1736 .in_cables = 0x0001
1741 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
1742 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1743 .vendor_name = "M-Audio",
1744 .product_name = "OmniStudio",
1745 .ifnum = QUIRK_ANY_INTERFACE,
1746 .type = QUIRK_COMPOSITE,
1747 .data = & (const struct snd_usb_audio_quirk[]) {
1749 .ifnum = 0,
1750 .type = QUIRK_IGNORE_INTERFACE
1753 .ifnum = 1,
1754 .type = QUIRK_IGNORE_INTERFACE
1757 .ifnum = 2,
1758 .type = QUIRK_IGNORE_INTERFACE
1761 .ifnum = 3,
1762 .type = QUIRK_IGNORE_INTERFACE
1765 .ifnum = 4,
1766 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1769 .ifnum = 5,
1770 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1773 .ifnum = 6,
1774 .type = QUIRK_IGNORE_INTERFACE
1777 .ifnum = 7,
1778 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1781 .ifnum = 8,
1782 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1785 .ifnum = 9,
1786 .type = QUIRK_MIDI_MIDIMAN,
1787 .data = & (const struct snd_usb_midi_endpoint_info) {
1788 .out_cables = 0x0001,
1789 .in_cables = 0x0001
1793 .ifnum = -1
1799 USB_DEVICE(0x0763, 0x2019),
1800 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1801 /* .vendor_name = "M-Audio", */
1802 /* .product_name = "Ozone Academic", */
1803 .ifnum = QUIRK_ANY_INTERFACE,
1804 .type = QUIRK_COMPOSITE,
1805 .data = & (const struct snd_usb_audio_quirk[]) {
1807 .ifnum = 0,
1808 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1811 .ifnum = 1,
1812 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1815 .ifnum = 2,
1816 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1819 .ifnum = 3,
1820 .type = QUIRK_MIDI_MIDIMAN,
1821 .data = & (const struct snd_usb_midi_endpoint_info) {
1822 .out_cables = 0x0001,
1823 .in_cables = 0x0001
1827 .ifnum = -1
1833 /* Casio devices */
1835 USB_DEVICE(0x07cf, 0x6801),
1836 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1837 .vendor_name = "Casio",
1838 .product_name = "PL-40R",
1839 .ifnum = 0,
1840 .type = QUIRK_MIDI_YAMAHA
1844 /* this ID is used by several devices without a product ID */
1845 USB_DEVICE(0x07cf, 0x6802),
1846 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1847 .vendor_name = "Casio",
1848 .product_name = "Keyboard",
1849 .ifnum = 0,
1850 .type = QUIRK_MIDI_YAMAHA
1854 /* Mark of the Unicorn devices */
1856 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
1857 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1858 USB_DEVICE_ID_MATCH_PRODUCT |
1859 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1860 .idVendor = 0x07fd,
1861 .idProduct = 0x0001,
1862 .bDeviceSubClass = 2,
1863 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1864 .vendor_name = "MOTU",
1865 .product_name = "Fastlane",
1866 .ifnum = QUIRK_ANY_INTERFACE,
1867 .type = QUIRK_COMPOSITE,
1868 .data = & (const struct snd_usb_audio_quirk[]) {
1870 .ifnum = 0,
1871 .type = QUIRK_MIDI_RAW
1874 .ifnum = 1,
1875 .type = QUIRK_IGNORE_INTERFACE
1878 .ifnum = -1
1884 /* Emagic devices */
1886 USB_DEVICE(0x086a, 0x0001),
1887 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1888 .vendor_name = "Emagic",
1889 /* .product_name = "Unitor8", */
1890 .ifnum = 2,
1891 .type = QUIRK_MIDI_EMAGIC,
1892 .data = & (const struct snd_usb_midi_endpoint_info) {
1893 .out_cables = 0x80ff,
1894 .in_cables = 0x80ff
1899 USB_DEVICE(0x086a, 0x0002),
1900 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1901 .vendor_name = "Emagic",
1902 /* .product_name = "AMT8", */
1903 .ifnum = 2,
1904 .type = QUIRK_MIDI_EMAGIC,
1905 .data = & (const struct snd_usb_midi_endpoint_info) {
1906 .out_cables = 0x80ff,
1907 .in_cables = 0x80ff
1912 USB_DEVICE(0x086a, 0x0003),
1913 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1914 .vendor_name = "Emagic",
1915 /* .product_name = "MT4", */
1916 .ifnum = 2,
1917 .type = QUIRK_MIDI_EMAGIC,
1918 .data = & (const struct snd_usb_midi_endpoint_info) {
1919 .out_cables = 0x800f,
1920 .in_cables = 0x8003
1925 /* TerraTec devices */
1927 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
1928 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1929 .vendor_name = "TerraTec",
1930 .product_name = "PHASE 26",
1931 .ifnum = 3,
1932 .type = QUIRK_MIDI_STANDARD_INTERFACE
1936 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
1937 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1938 .vendor_name = "TerraTec",
1939 .product_name = "PHASE 26",
1940 .ifnum = 3,
1941 .type = QUIRK_MIDI_STANDARD_INTERFACE
1945 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
1946 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1947 .vendor_name = "TerraTec",
1948 .product_name = "PHASE 26",
1949 .ifnum = 3,
1950 .type = QUIRK_MIDI_STANDARD_INTERFACE
1954 USB_DEVICE(0x0ccd, 0x0035),
1955 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1956 .vendor_name = "Miditech",
1957 .product_name = "Play'n Roll",
1958 .ifnum = 0,
1959 .type = QUIRK_MIDI_CME
1963 /* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
1965 USB_DEVICE(0x103d, 0x0100),
1966 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1967 .vendor_name = "Stanton",
1968 .product_name = "ScratchAmp",
1969 .ifnum = QUIRK_NO_INTERFACE
1973 USB_DEVICE(0x103d, 0x0101),
1974 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1975 .vendor_name = "Stanton",
1976 .product_name = "ScratchAmp",
1977 .ifnum = QUIRK_NO_INTERFACE
1981 /* Novation EMS devices */
1983 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
1984 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1985 .vendor_name = "Novation",
1986 .product_name = "ReMOTE Audio/XStation",
1987 .ifnum = 4,
1988 .type = QUIRK_MIDI_NOVATION
1992 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
1993 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1994 .vendor_name = "Novation",
1995 .product_name = "Speedio",
1996 .ifnum = 3,
1997 .type = QUIRK_MIDI_NOVATION
2001 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
2002 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2003 .vendor_name = "Novation",
2004 .product_name = "ReMOTE25",
2005 .ifnum = 0,
2006 .type = QUIRK_MIDI_NOVATION
2010 /* */
2012 /* aka. Serato Scratch Live DJ Box */
2013 USB_DEVICE(0x13e5, 0x0001),
2014 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2015 .vendor_name = "Rane",
2016 .product_name = "SL-1",
2017 .ifnum = QUIRK_NO_INTERFACE
2021 /* Miditech devices */
2023 USB_DEVICE(0x4752, 0x0011),
2024 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2025 .vendor_name = "Miditech",
2026 .product_name = "Midistart-2",
2027 .ifnum = 0,
2028 .type = QUIRK_MIDI_CME
2032 /* Central Music devices */
2034 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
2035 USB_DEVICE(0x7104, 0x2202),
2036 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2037 .ifnum = 0,
2038 .type = QUIRK_MIDI_CME
2044 * Some USB MIDI devices don't have an audio control interface,
2045 * so we have to grab MIDI streaming interfaces here.
2047 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
2048 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2049 .bInterfaceClass = USB_CLASS_AUDIO,
2050 .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
2051 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2052 .ifnum = QUIRK_ANY_INTERFACE,
2053 .type = QUIRK_MIDI_STANDARD_INTERFACE
2057 #undef USB_DEVICE_VENDOR_SPEC