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, \
40 .bInterfaceClass = USB_CLASS_VENDOR_SPEC
46 #define YAMAHA_DEVICE(id, name) { \
47 USB_DEVICE(0x0499, id), \
48 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
49 .vendor_name = "Yamaha", \
50 .product_name = name, \
51 .ifnum = QUIRK_ANY_INTERFACE, \
52 .type = QUIRK_MIDI_YAMAHA \
55 #define YAMAHA_INTERFACE(id, intf, name) { \
56 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
57 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
58 .vendor_name = "Yamaha", \
59 .product_name = name, \
61 .type = QUIRK_MIDI_YAMAHA \
64 YAMAHA_DEVICE(0x1000, "UX256"),
65 YAMAHA_DEVICE(0x1001, "MU1000"),
66 YAMAHA_DEVICE(0x1002, "MU2000"),
67 YAMAHA_DEVICE(0x1003, "MU500"),
68 YAMAHA_INTERFACE(0x1004, 3, "UW500"),
69 YAMAHA_DEVICE(0x1005, "MOTIF6"),
70 YAMAHA_DEVICE(0x1006, "MOTIF7"),
71 YAMAHA_DEVICE(0x1007, "MOTIF8"),
72 YAMAHA_DEVICE(0x1008, "UX96"),
73 YAMAHA_DEVICE(0x1009, "UX16"),
74 YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
75 YAMAHA_DEVICE(0x100c, "UC-MX"),
76 YAMAHA_DEVICE(0x100d, "UC-KX"),
77 YAMAHA_DEVICE(0x100e, "S08"),
78 YAMAHA_DEVICE(0x100f, "CLP-150"),
79 YAMAHA_DEVICE(0x1010, "CLP-170"),
80 YAMAHA_DEVICE(0x1011, "P-250"),
81 YAMAHA_DEVICE(0x1012, "TYROS"),
82 YAMAHA_DEVICE(0x1013, "PF-500"),
83 YAMAHA_DEVICE(0x1014, "S90"),
84 YAMAHA_DEVICE(0x1015, "MOTIF-R"),
85 YAMAHA_DEVICE(0x1017, "CVP-204"),
86 YAMAHA_DEVICE(0x1018, "CVP-206"),
87 YAMAHA_DEVICE(0x1019, "CVP-208"),
88 YAMAHA_DEVICE(0x101a, "CVP-210"),
89 YAMAHA_DEVICE(0x101b, "PSR-1100"),
90 YAMAHA_DEVICE(0x101c, "PSR-2100"),
91 YAMAHA_DEVICE(0x101d, "CLP-175"),
92 YAMAHA_DEVICE(0x101e, "PSR-K1"),
93 YAMAHA_DEVICE(0x1020, "EZ-250i"),
94 YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
95 YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
96 YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
97 YAMAHA_DEVICE(0x1024, "CVP-301"),
98 YAMAHA_DEVICE(0x1025, "CVP-303"),
99 YAMAHA_DEVICE(0x1026, "CVP-305"),
100 YAMAHA_DEVICE(0x1027, "CVP-307"),
101 YAMAHA_DEVICE(0x1028, "CVP-309"),
102 YAMAHA_DEVICE(0x1029, "CVP-309GP"),
103 YAMAHA_DEVICE(0x102a, "PSR-1500"),
104 YAMAHA_DEVICE(0x102b, "PSR-3000"),
105 YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
106 YAMAHA_DEVICE(0x1030, "PSR-295/293"),
107 YAMAHA_DEVICE(0x1031, "DGX-205/203"),
108 YAMAHA_DEVICE(0x1032, "DGX-305"),
109 YAMAHA_DEVICE(0x1033, "DGX-505"),
110 YAMAHA_DEVICE(0x1034, NULL),
111 YAMAHA_DEVICE(0x1035, NULL),
112 YAMAHA_DEVICE(0x1036, NULL),
113 YAMAHA_DEVICE(0x1037, NULL),
114 YAMAHA_DEVICE(0x1038, NULL),
115 YAMAHA_DEVICE(0x1039, NULL),
116 YAMAHA_DEVICE(0x103a, NULL),
117 YAMAHA_DEVICE(0x103b, NULL),
118 YAMAHA_DEVICE(0x103c, NULL),
119 YAMAHA_DEVICE(0x103d, NULL),
120 YAMAHA_DEVICE(0x103e, NULL),
121 YAMAHA_DEVICE(0x103f, NULL),
122 YAMAHA_DEVICE(0x1040, NULL),
123 YAMAHA_DEVICE(0x1041, NULL),
124 YAMAHA_DEVICE(0x2000, "DGP-7"),
125 YAMAHA_DEVICE(0x2001, "DGP-5"),
126 YAMAHA_DEVICE(0x2002, NULL),
127 YAMAHA_DEVICE(0x5000, "CS1D"),
128 YAMAHA_DEVICE(0x5001, "DSP1D"),
129 YAMAHA_DEVICE(0x5002, "DME32"),
130 YAMAHA_DEVICE(0x5003, "DM2000"),
131 YAMAHA_DEVICE(0x5004, "02R96"),
132 YAMAHA_DEVICE(0x5005, "ACU16-C"),
133 YAMAHA_DEVICE(0x5006, "NHB32-C"),
134 YAMAHA_DEVICE(0x5007, "DM1000"),
135 YAMAHA_DEVICE(0x5008, "01V96"),
136 YAMAHA_DEVICE(0x5009, "SPX2000"),
137 YAMAHA_DEVICE(0x500a, "PM5D"),
138 YAMAHA_DEVICE(0x500b, "DME64N"),
139 YAMAHA_DEVICE(0x500c, "DME24N"),
140 YAMAHA_DEVICE(0x500d, NULL),
141 YAMAHA_DEVICE(0x500e, NULL),
142 YAMAHA_DEVICE(0x7000, "DTX"),
143 YAMAHA_DEVICE(0x7010, "UB99"),
145 #undef YAMAHA_INTERFACE
148 * Roland/RolandED/Edirol/BOSS devices
151 USB_DEVICE(0x0582, 0x0000),
152 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
153 .vendor_name = "Roland",
154 .product_name = "UA-100",
155 .ifnum = QUIRK_ANY_INTERFACE,
156 .type = QUIRK_COMPOSITE,
157 .data = (const struct snd_usb_audio_quirk[]) {
160 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
161 .data = & (const struct audioformat) {
162 .format = SNDRV_PCM_FORMAT_S16_LE,
170 .rates = SNDRV_PCM_RATE_CONTINUOUS,
177 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
178 .data = & (const struct audioformat) {
179 .format = SNDRV_PCM_FORMAT_S16_LE,
184 .attributes = EP_CS_ATTR_FILL_MAX,
187 .rates = SNDRV_PCM_RATE_CONTINUOUS,
194 .type = QUIRK_MIDI_FIXED_ENDPOINT,
195 .data = & (const struct snd_usb_midi_endpoint_info) {
196 .out_cables = 0x0007,
207 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[]) {
216 .type = QUIRK_MIDI_FIXED_ENDPOINT,
217 .data = & (const struct snd_usb_midi_endpoint_info) {
218 .out_cables = 0x000f,
229 USB_DEVICE(0x0582, 0x0002),
230 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
231 .vendor_name = "EDIROL",
232 .product_name = "UM-4",
233 .ifnum = QUIRK_ANY_INTERFACE,
234 .type = QUIRK_COMPOSITE,
235 .data = (const struct snd_usb_audio_quirk[]) {
238 .type = QUIRK_IGNORE_INTERFACE
242 .type = QUIRK_IGNORE_INTERFACE
246 .type = QUIRK_MIDI_FIXED_ENDPOINT,
247 .data = & (const struct snd_usb_midi_endpoint_info) {
248 .out_cables = 0x000f,
259 USB_DEVICE(0x0582, 0x0003),
260 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
261 .vendor_name = "Roland",
262 .product_name = "SC-8850",
263 .ifnum = QUIRK_ANY_INTERFACE,
264 .type = QUIRK_COMPOSITE,
265 .data = (const struct snd_usb_audio_quirk[]) {
268 .type = QUIRK_IGNORE_INTERFACE
272 .type = QUIRK_IGNORE_INTERFACE
276 .type = QUIRK_MIDI_FIXED_ENDPOINT,
277 .data = & (const struct snd_usb_midi_endpoint_info) {
278 .out_cables = 0x003f,
289 USB_DEVICE(0x0582, 0x0004),
290 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
291 .vendor_name = "Roland",
292 .product_name = "U-8",
293 .ifnum = QUIRK_ANY_INTERFACE,
294 .type = QUIRK_COMPOSITE,
295 .data = (const struct snd_usb_audio_quirk[]) {
298 .type = QUIRK_IGNORE_INTERFACE
302 .type = QUIRK_IGNORE_INTERFACE
306 .type = QUIRK_MIDI_FIXED_ENDPOINT,
307 .data = & (const struct snd_usb_midi_endpoint_info) {
308 .out_cables = 0x0005,
319 /* a later revision uses ID 0x0099 */
320 USB_DEVICE(0x0582, 0x0005),
321 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
322 .vendor_name = "EDIROL",
323 .product_name = "UM-2",
324 .ifnum = QUIRK_ANY_INTERFACE,
325 .type = QUIRK_COMPOSITE,
326 .data = (const struct snd_usb_audio_quirk[]) {
329 .type = QUIRK_IGNORE_INTERFACE
333 .type = QUIRK_IGNORE_INTERFACE
337 .type = QUIRK_MIDI_FIXED_ENDPOINT,
338 .data = & (const struct snd_usb_midi_endpoint_info) {
339 .out_cables = 0x0003,
350 USB_DEVICE(0x0582, 0x0007),
351 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
352 .vendor_name = "Roland",
353 .product_name = "SC-8820",
354 .ifnum = QUIRK_ANY_INTERFACE,
355 .type = QUIRK_COMPOSITE,
356 .data = (const struct snd_usb_audio_quirk[]) {
359 .type = QUIRK_IGNORE_INTERFACE
363 .type = QUIRK_IGNORE_INTERFACE
367 .type = QUIRK_MIDI_FIXED_ENDPOINT,
368 .data = & (const struct snd_usb_midi_endpoint_info) {
369 .out_cables = 0x0013,
380 USB_DEVICE(0x0582, 0x0008),
381 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
382 .vendor_name = "Roland",
383 .product_name = "PC-300",
384 .ifnum = QUIRK_ANY_INTERFACE,
385 .type = QUIRK_COMPOSITE,
386 .data = (const struct snd_usb_audio_quirk[]) {
389 .type = QUIRK_IGNORE_INTERFACE
393 .type = QUIRK_IGNORE_INTERFACE
397 .type = QUIRK_MIDI_FIXED_ENDPOINT,
398 .data = & (const struct snd_usb_midi_endpoint_info) {
399 .out_cables = 0x0001,
410 /* a later revision uses ID 0x009d */
411 USB_DEVICE(0x0582, 0x0009),
412 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
413 .vendor_name = "EDIROL",
414 .product_name = "UM-1",
415 .ifnum = QUIRK_ANY_INTERFACE,
416 .type = QUIRK_COMPOSITE,
417 .data = (const struct snd_usb_audio_quirk[]) {
420 .type = QUIRK_IGNORE_INTERFACE
424 .type = QUIRK_IGNORE_INTERFACE
428 .type = QUIRK_MIDI_FIXED_ENDPOINT,
429 .data = & (const struct snd_usb_midi_endpoint_info) {
430 .out_cables = 0x0001,
441 USB_DEVICE(0x0582, 0x000b),
442 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
443 .vendor_name = "Roland",
444 .product_name = "SK-500",
445 .ifnum = QUIRK_ANY_INTERFACE,
446 .type = QUIRK_COMPOSITE,
447 .data = (const struct snd_usb_audio_quirk[]) {
450 .type = QUIRK_IGNORE_INTERFACE
454 .type = QUIRK_IGNORE_INTERFACE
458 .type = QUIRK_MIDI_FIXED_ENDPOINT,
459 .data = & (const struct snd_usb_midi_endpoint_info) {
460 .out_cables = 0x0013,
471 /* thanks to Emiliano Grilli <emillo@libero.it>
472 * for helping researching this data */
473 USB_DEVICE(0x0582, 0x000c),
474 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
475 .vendor_name = "Roland",
476 .product_name = "SC-D70",
477 .ifnum = QUIRK_ANY_INTERFACE,
478 .type = QUIRK_COMPOSITE,
479 .data = (const struct snd_usb_audio_quirk[]) {
482 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
483 .data = & (const struct audioformat) {
484 .format = SNDRV_PCM_FORMAT_S24_3LE,
492 .rates = SNDRV_PCM_RATE_CONTINUOUS,
499 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
500 .data = & (const struct audioformat) {
501 .format = SNDRV_PCM_FORMAT_S24_3LE,
509 .rates = SNDRV_PCM_RATE_CONTINUOUS,
516 .type = QUIRK_MIDI_FIXED_ENDPOINT,
517 .data = & (const struct snd_usb_midi_endpoint_info) {
518 .out_cables = 0x0007,
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.
537 USB_DEVICE(0x0582, 0x0010),
538 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
539 .vendor_name = "EDIROL",
540 .product_name = "UA-5",
541 .ifnum = QUIRK_ANY_INTERFACE,
542 .type = QUIRK_COMPOSITE,
543 .data = (const struct snd_usb_audio_quirk[]) {
546 .type = QUIRK_AUDIO_STANDARD_INTERFACE
550 .type = QUIRK_AUDIO_STANDARD_INTERFACE
559 /* has ID 0x0013 when not in "Advanced Driver" mode */
560 USB_DEVICE(0x0582, 0x0012),
561 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
562 .vendor_name = "Roland",
563 .product_name = "XV-5050",
565 .type = QUIRK_MIDI_FIXED_ENDPOINT,
566 .data = & (const struct snd_usb_midi_endpoint_info) {
567 .out_cables = 0x0001,
573 /* has ID 0x0015 when not in "Advanced Driver" mode */
574 USB_DEVICE(0x0582, 0x0014),
575 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
576 .vendor_name = "EDIROL",
577 .product_name = "UM-880",
579 .type = QUIRK_MIDI_FIXED_ENDPOINT,
580 .data = & (const struct snd_usb_midi_endpoint_info) {
581 .out_cables = 0x01ff,
587 /* has ID 0x0017 when not in "Advanced Driver" mode */
588 USB_DEVICE(0x0582, 0x0016),
589 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
590 .vendor_name = "EDIROL",
591 .product_name = "SD-90",
592 .ifnum = QUIRK_ANY_INTERFACE,
593 .type = QUIRK_COMPOSITE,
594 .data = (const struct snd_usb_audio_quirk[]) {
597 .type = QUIRK_IGNORE_INTERFACE
601 .type = QUIRK_IGNORE_INTERFACE
605 .type = QUIRK_MIDI_FIXED_ENDPOINT,
606 .data = & (const struct snd_usb_midi_endpoint_info) {
607 .out_cables = 0x000f,
618 /* has ID 0x001c when not in "Advanced Driver" mode */
619 USB_DEVICE(0x0582, 0x001b),
620 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
621 .vendor_name = "Roland",
622 .product_name = "MMP-2",
623 .ifnum = QUIRK_ANY_INTERFACE,
624 .type = QUIRK_COMPOSITE,
625 .data = (const struct snd_usb_audio_quirk[]) {
628 .type = QUIRK_IGNORE_INTERFACE
632 .type = QUIRK_IGNORE_INTERFACE
636 .type = QUIRK_MIDI_FIXED_ENDPOINT,
637 .data = & (const struct snd_usb_midi_endpoint_info) {
638 .out_cables = 0x0001,
649 /* has ID 0x001e when not in "Advanced Driver" mode */
650 USB_DEVICE(0x0582, 0x001d),
651 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
652 .vendor_name = "Roland",
653 .product_name = "V-SYNTH",
655 .type = QUIRK_MIDI_FIXED_ENDPOINT,
656 .data = & (const struct snd_usb_midi_endpoint_info) {
657 .out_cables = 0x0001,
663 /* has ID 0x0024 when not in "Advanced Driver" mode */
664 USB_DEVICE(0x0582, 0x0023),
665 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
666 .vendor_name = "EDIROL",
667 .product_name = "UM-550",
669 .type = QUIRK_MIDI_FIXED_ENDPOINT,
670 .data = & (const struct snd_usb_midi_endpoint_info) {
671 .out_cables = 0x003f,
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
682 USB_DEVICE(0x0582, 0x0025),
683 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
684 .vendor_name = "EDIROL",
685 .product_name = "UA-20",
686 .ifnum = QUIRK_ANY_INTERFACE,
687 .type = QUIRK_COMPOSITE,
688 .data = (const struct snd_usb_audio_quirk[]) {
691 .type = QUIRK_IGNORE_INTERFACE
695 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
696 .data = & (const struct audioformat) {
697 .format = SNDRV_PCM_FORMAT_S24_3LE,
705 .rates = SNDRV_PCM_RATE_CONTINUOUS,
712 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
713 .data = & (const struct audioformat) {
714 .format = SNDRV_PCM_FORMAT_S24_3LE,
722 .rates = SNDRV_PCM_RATE_CONTINUOUS,
729 .type = QUIRK_MIDI_FIXED_ENDPOINT,
730 .data = & (const struct snd_usb_midi_endpoint_info) {
731 .out_cables = 0x0001,
742 /* has ID 0x0028 when not in "Advanced Driver" mode */
743 USB_DEVICE(0x0582, 0x0027),
744 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
745 .vendor_name = "EDIROL",
746 .product_name = "SD-20",
748 .type = QUIRK_MIDI_FIXED_ENDPOINT,
749 .data = & (const struct snd_usb_midi_endpoint_info) {
750 .out_cables = 0x0003,
756 /* has ID 0x002a when not in "Advanced Driver" mode */
757 USB_DEVICE(0x0582, 0x0029),
758 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
759 .vendor_name = "EDIROL",
760 .product_name = "SD-80",
762 .type = QUIRK_MIDI_FIXED_ENDPOINT,
763 .data = & (const struct snd_usb_midi_endpoint_info) {
764 .out_cables = 0x000f,
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.
775 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
776 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
777 .vendor_name = "EDIROL",
778 .product_name = "UA-700",
779 .ifnum = QUIRK_ANY_INTERFACE,
780 .type = QUIRK_COMPOSITE,
781 .data = (const struct snd_usb_audio_quirk[]) {
784 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
788 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
792 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
801 /* has ID 0x002e when not in "Advanced Driver" mode */
802 USB_DEVICE(0x0582, 0x002d),
803 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
804 .vendor_name = "Roland",
805 .product_name = "XV-2020",
807 .type = QUIRK_MIDI_FIXED_ENDPOINT,
808 .data = & (const struct snd_usb_midi_endpoint_info) {
809 .out_cables = 0x0001,
815 /* has ID 0x0030 when not in "Advanced Driver" mode */
816 USB_DEVICE(0x0582, 0x002f),
817 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
818 .vendor_name = "Roland",
819 .product_name = "VariOS",
821 .type = QUIRK_MIDI_FIXED_ENDPOINT,
822 .data = & (const struct snd_usb_midi_endpoint_info) {
823 .out_cables = 0x0007,
829 /* has ID 0x0034 when not in "Advanced Driver" mode */
830 USB_DEVICE(0x0582, 0x0033),
831 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
832 .vendor_name = "EDIROL",
833 .product_name = "PCR",
835 .type = QUIRK_MIDI_FIXED_ENDPOINT,
836 .data = & (const struct snd_usb_midi_endpoint_info) {
837 .out_cables = 0x0003,
842 /* TODO: add Roland M-1000 support */
845 * Has ID 0x0038 when not in "Advanced Driver" mode;
846 * later revisions use IDs 0x0054 and 0x00a2.
848 USB_DEVICE(0x0582, 0x0037),
849 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
850 .vendor_name = "Roland",
851 .product_name = "Digital Piano",
853 .type = QUIRK_MIDI_FIXED_ENDPOINT,
854 .data = & (const struct snd_usb_midi_endpoint_info) {
855 .out_cables = 0x0001,
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
866 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
867 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
868 .vendor_name = "BOSS",
869 .product_name = "GS-10",
870 .ifnum = QUIRK_ANY_INTERFACE,
871 .type = QUIRK_COMPOSITE,
872 .data = & (const struct snd_usb_audio_quirk[]) {
875 .type = QUIRK_AUDIO_STANDARD_INTERFACE
879 .type = QUIRK_AUDIO_STANDARD_INTERFACE
883 .type = QUIRK_MIDI_STANDARD_INTERFACE
892 /* has ID 0x0041 when not in "Advanced Driver" mode */
893 USB_DEVICE(0x0582, 0x0040),
894 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
895 .vendor_name = "Roland",
896 .product_name = "GI-20",
898 .type = QUIRK_MIDI_FIXED_ENDPOINT,
899 .data = & (const struct snd_usb_midi_endpoint_info) {
900 .out_cables = 0x0001,
906 /* has ID 0x0043 when not in "Advanced Driver" mode */
907 USB_DEVICE(0x0582, 0x0042),
908 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
909 .vendor_name = "Roland",
910 .product_name = "RS-70",
912 .type = QUIRK_MIDI_FIXED_ENDPOINT,
913 .data = & (const struct snd_usb_midi_endpoint_info) {
914 .out_cables = 0x0001,
920 USB_DEVICE(0x0582, 0x0044),
921 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
922 .vendor_name = "Roland",
923 .product_name = "UA-1000",
924 .ifnum = QUIRK_ANY_INTERFACE,
925 .type = QUIRK_COMPOSITE,
926 .data = (const struct snd_usb_audio_quirk[]) {
929 .type = QUIRK_AUDIO_EDIROL_UA1000
933 .type = QUIRK_AUDIO_EDIROL_UA1000
937 .type = QUIRK_MIDI_FIXED_ENDPOINT,
938 .data = & (const struct snd_usb_midi_endpoint_info) {
939 .out_cables = 0x0003,
950 /* has ID 0x004a when not in "Advanced Driver" mode */
951 USB_DEVICE(0x0582, 0x0048),
952 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
953 .vendor_name = "EDIROL",
954 .product_name = "UR-80",
956 .type = QUIRK_MIDI_FIXED_ENDPOINT,
957 .data = & (const struct snd_usb_midi_endpoint_info) {
958 .out_cables = 0x0003,
963 /* TODO: add Edirol M-100FX support */
965 /* has ID 0x004f when not in "Advanced Driver" mode */
966 USB_DEVICE(0x0582, 0x004d),
967 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
968 .vendor_name = "EDIROL",
969 .product_name = "PCR-A",
971 .type = QUIRK_MIDI_FIXED_ENDPOINT,
972 .data = & (const struct snd_usb_midi_endpoint_info) {
973 .out_cables = 0x0003,
980 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
981 * is standard compliant, but has only 16-bit PCM.
983 USB_DEVICE(0x0582, 0x0050),
984 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
985 .vendor_name = "EDIROL",
986 .product_name = "UA-3FX",
987 .ifnum = QUIRK_ANY_INTERFACE,
988 .type = QUIRK_COMPOSITE,
989 .data = (const struct snd_usb_audio_quirk[]) {
992 .type = QUIRK_AUDIO_STANDARD_INTERFACE
996 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1005 USB_DEVICE(0x0582, 0x0052),
1006 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1007 .vendor_name = "EDIROL",
1008 .product_name = "UM-1SX",
1010 .type = QUIRK_MIDI_STANDARD_INTERFACE
1013 /* TODO: add Roland EXR support */
1015 /* has ID 0x0067 when not in "Advanced Driver" mode */
1016 USB_DEVICE(0x0582, 0x0065),
1017 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1018 .vendor_name = "EDIROL",
1019 .product_name = "PCR-1",
1021 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1022 .data = & (const struct snd_usb_midi_endpoint_info) {
1023 .out_cables = 0x0001,
1029 /* has ID 0x006b when not in "Advanced Driver" mode */
1030 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
1031 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1032 .vendor_name = "Roland",
1033 .product_name = "SP-606",
1035 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1036 .data = & (const struct snd_usb_midi_endpoint_info) {
1037 .out_cables = 0x0001,
1043 /* has ID 0x006e when not in "Advanced Driver" mode */
1044 USB_DEVICE(0x0582, 0x006d),
1045 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1046 .vendor_name = "Roland",
1047 .product_name = "FANTOM-X",
1049 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1050 .data = & (const struct snd_usb_midi_endpoint_info) {
1051 .out_cables = 0x0001,
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.
1062 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
1063 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1064 .vendor_name = "EDIROL",
1065 .product_name = "UA-25",
1066 .ifnum = QUIRK_ANY_INTERFACE,
1067 .type = QUIRK_COMPOSITE,
1068 .data = (const struct snd_usb_audio_quirk[]) {
1071 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1075 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1079 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1088 /* has ID 0x0076 when not in "Advanced Driver" mode */
1089 USB_DEVICE(0x0582, 0x0075),
1090 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1091 .vendor_name = "BOSS",
1092 .product_name = "DR-880",
1094 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1095 .data = & (const struct snd_usb_midi_endpoint_info) {
1096 .out_cables = 0x0001,
1102 /* has ID 0x007b when not in "Advanced Driver" mode */
1103 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
1104 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1105 .vendor_name = "Roland",
1106 /* "RD" or "RD-700SX"? */
1108 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1109 .data = & (const struct snd_usb_midi_endpoint_info) {
1110 .out_cables = 0x0003,
1116 /* Guillemot devices */
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.
1124 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
1125 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1126 .vendor_name = "Hercules",
1127 .product_name = "DJ Console (WE)",
1129 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1130 .data = & (const struct snd_usb_midi_endpoint_info) {
1131 .out_cables = 0x0001,
1136 /* 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 */
1146 /* Midiman/M-Audio devices */
1148 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
1149 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1150 .vendor_name = "M-Audio",
1151 .product_name = "MidiSport 2x2",
1152 .ifnum = QUIRK_ANY_INTERFACE,
1153 .type = QUIRK_MIDI_MIDIMAN,
1154 .data = & (const struct snd_usb_midi_endpoint_info) {
1155 .out_cables = 0x0003,
1161 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
1162 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1163 .vendor_name = "M-Audio",
1164 .product_name = "MidiSport 1x1",
1165 .ifnum = QUIRK_ANY_INTERFACE,
1166 .type = QUIRK_MIDI_MIDIMAN,
1167 .data = & (const struct snd_usb_midi_endpoint_info) {
1168 .out_cables = 0x0001,
1174 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
1175 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1176 .vendor_name = "M-Audio",
1177 .product_name = "Keystation",
1178 .ifnum = QUIRK_ANY_INTERFACE,
1179 .type = QUIRK_MIDI_MIDIMAN,
1180 .data = & (const struct snd_usb_midi_endpoint_info) {
1181 .out_cables = 0x0001,
1187 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
1188 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1189 .vendor_name = "M-Audio",
1190 .product_name = "MidiSport 4x4",
1191 .ifnum = QUIRK_ANY_INTERFACE,
1192 .type = QUIRK_MIDI_MIDIMAN,
1193 .data = & (const struct snd_usb_midi_endpoint_info) {
1194 .out_cables = 0x000f,
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>
1205 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
1206 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1207 .vendor_name = "M-Audio",
1208 .product_name = "MidiSport 8x8",
1209 .ifnum = QUIRK_ANY_INTERFACE,
1210 .type = QUIRK_MIDI_MIDIMAN,
1211 .data = & (const struct snd_usb_midi_endpoint_info) {
1212 .out_cables = 0x01ff,
1218 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
1219 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1220 .vendor_name = "M-Audio",
1221 .product_name = "MidiSport 8x8",
1222 .ifnum = QUIRK_ANY_INTERFACE,
1223 .type = QUIRK_MIDI_MIDIMAN,
1224 .data = & (const struct snd_usb_midi_endpoint_info) {
1225 .out_cables = 0x01ff,
1231 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
1232 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1233 .vendor_name = "M-Audio",
1234 .product_name = "MidiSport 2x4",
1235 .ifnum = QUIRK_ANY_INTERFACE,
1236 .type = QUIRK_MIDI_MIDIMAN,
1237 .data = & (const struct snd_usb_midi_endpoint_info) {
1238 .out_cables = 0x000f,
1244 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
1245 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1246 .vendor_name = "M-Audio",
1247 .product_name = "Quattro",
1248 .ifnum = QUIRK_ANY_INTERFACE,
1249 .type = QUIRK_COMPOSITE,
1250 .data = & (const struct snd_usb_audio_quirk[]) {
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).
1259 .type = QUIRK_IGNORE_INTERFACE
1263 .type = QUIRK_IGNORE_INTERFACE
1267 .type = QUIRK_IGNORE_INTERFACE
1271 .type = QUIRK_IGNORE_INTERFACE
1275 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1279 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1283 .type = QUIRK_IGNORE_INTERFACE
1287 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1291 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1295 .type = QUIRK_MIDI_MIDIMAN,
1296 .data = & (const struct snd_usb_midi_endpoint_info) {
1297 .out_cables = 0x0001,
1308 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
1309 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1310 .vendor_name = "M-Audio",
1311 .product_name = "AudioPhile",
1313 .type = QUIRK_MIDI_MIDIMAN,
1314 .data = & (const struct snd_usb_midi_endpoint_info) {
1315 .out_cables = 0x0001,
1321 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
1322 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1323 .vendor_name = "M-Audio",
1324 .product_name = "Ozone",
1326 .type = QUIRK_MIDI_MIDIMAN,
1327 .data = & (const struct snd_usb_midi_endpoint_info) {
1328 .out_cables = 0x0001,
1334 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
1335 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1336 .vendor_name = "M-Audio",
1337 .product_name = "OmniStudio",
1338 .ifnum = QUIRK_ANY_INTERFACE,
1339 .type = QUIRK_COMPOSITE,
1340 .data = & (const struct snd_usb_audio_quirk[]) {
1343 .type = QUIRK_IGNORE_INTERFACE
1347 .type = QUIRK_IGNORE_INTERFACE
1351 .type = QUIRK_IGNORE_INTERFACE
1355 .type = QUIRK_IGNORE_INTERFACE
1359 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1363 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1367 .type = QUIRK_IGNORE_INTERFACE
1371 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1375 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1379 .type = QUIRK_MIDI_MIDIMAN,
1380 .data = & (const struct snd_usb_midi_endpoint_info) {
1381 .out_cables = 0x0001,
1392 /* Mark of the Unicorn devices */
1394 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
1395 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1396 USB_DEVICE_ID_MATCH_PRODUCT |
1397 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1399 .idProduct = 0x0001,
1400 .bDeviceSubClass = 2,
1401 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1402 .vendor_name = "MOTU",
1403 .product_name = "Fastlane",
1404 .ifnum = QUIRK_ANY_INTERFACE,
1405 .type = QUIRK_COMPOSITE,
1406 .data = & (const struct snd_usb_audio_quirk[]) {
1409 .type = QUIRK_MIDI_RAW
1413 .type = QUIRK_IGNORE_INTERFACE
1423 /* Creative Sound Blaster MP3+ */
1424 USB_DEVICE(0x041e, 0x3010),
1425 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1426 .vendor_name = "Creative Labs",
1427 .product_name = "Sound Blaster MP3+",
1428 .ifnum = QUIRK_NO_INTERFACE
1433 /* Emagic devices */
1435 USB_DEVICE(0x086a, 0x0001),
1436 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1437 .vendor_name = "Emagic",
1438 /* .product_name = "Unitor8", */
1440 .type = QUIRK_MIDI_EMAGIC,
1441 .data = & (const struct snd_usb_midi_endpoint_info) {
1442 .out_cables = 0x80ff,
1448 USB_DEVICE(0x086a, 0x0002),
1449 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1450 .vendor_name = "Emagic",
1451 /* .product_name = "AMT8", */
1453 .type = QUIRK_MIDI_EMAGIC,
1454 .data = & (const struct snd_usb_midi_endpoint_info) {
1455 .out_cables = 0x80ff,
1461 USB_DEVICE(0x086a, 0x0003),
1462 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1463 .vendor_name = "Emagic",
1464 /* .product_name = "MT4", */
1466 .type = QUIRK_MIDI_EMAGIC,
1467 .data = & (const struct snd_usb_midi_endpoint_info) {
1468 .out_cables = 0x800f,
1474 /* TerraTec devices */
1476 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
1477 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1478 .vendor_name = "TerraTec",
1479 .product_name = "PHASE 26",
1481 .type = QUIRK_MIDI_STANDARD_INTERFACE
1485 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
1486 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1487 .vendor_name = "TerraTec",
1488 .product_name = "PHASE 26",
1490 .type = QUIRK_MIDI_STANDARD_INTERFACE
1494 /* Novation EMS devices */
1496 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
1497 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1498 .vendor_name = "Novation",
1499 .product_name = "ReMOTE Audio/XStation",
1501 .type = QUIRK_MIDI_NOVATION
1505 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
1506 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1507 .vendor_name = "Novation",
1508 .product_name = "Speedio",
1510 .type = QUIRK_MIDI_NOVATION
1514 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
1515 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1516 .vendor_name = "Novation",
1517 .product_name = "ReMOTE25",
1519 .type = QUIRK_MIDI_NOVATION
1524 USB_DEVICE(0x4752, 0x0011),
1525 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1526 .vendor_name = "Miditech",
1527 .product_name = "Midistart-2",
1529 .type = QUIRK_MIDI_MIDITECH
1533 USB_DEVICE(0x7104, 0x2202),
1534 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1535 .vendor_name = "Miditech",
1536 .product_name = "MidiStudio-2",
1538 .type = QUIRK_MIDI_MIDITECH
1544 * Some USB MIDI devices don't have an audio control interface,
1545 * so we have to grab MIDI streaming interfaces here.
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,
1551 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1552 .ifnum = QUIRK_ANY_INTERFACE,
1553 .type = QUIRK_MIDI_STANDARD_INTERFACE
1557 #undef USB_DEVICE_VENDOR_SPEC