[ALSA] usb-audio: add another ID for the TerraTec PHASE26
[safe/jmp/linux-2.6] / sound / usb / usbquirks.h
1 /*
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), \
48         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \
49                 .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), \
57         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \
58                 .vendor_name = "Yamaha", \
59                 .product_name = name, \
60                 .ifnum = intf, \
61                 .type = QUIRK_MIDI_YAMAHA \
62         } \
63 }
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"),
144 #undef YAMAHA_DEVICE
145 #undef YAMAHA_INTERFACE
146
147 /*
148  * Roland/RolandED/Edirol/BOSS devices
149  */
150 {
151         USB_DEVICE(0x0582, 0x0000),
152         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
153                 .vendor_name = "Roland",
154                 .product_name = "UA-100",
155                 .ifnum = QUIRK_ANY_INTERFACE,
156                 .type = QUIRK_COMPOSITE,
157                 .data = (const snd_usb_audio_quirk_t[]) {
158                         {
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,
195                                 .data = & (const snd_usb_midi_endpoint_info_t) {
196                                         .out_cables = 0x0007,
197                                         .in_cables  = 0x0007
198                                 }
199                         },
200                         {
201                                 .ifnum = -1
202                         }
203                 }
204         }
205 },
206 {
207         USB_DEVICE(0x0582, 0x0002),
208         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
209                 .vendor_name = "EDIROL",
210                 .product_name = "UM-4",
211                 .ifnum = QUIRK_ANY_INTERFACE,
212                 .type = QUIRK_COMPOSITE,
213                 .data = (const snd_usb_audio_quirk_t[]) {
214                         {
215                                 .ifnum = 0,
216                                 .type = QUIRK_IGNORE_INTERFACE
217                         },
218                         {
219                                 .ifnum = 1,
220                                 .type = QUIRK_IGNORE_INTERFACE
221                         },
222                         {
223                                 .ifnum = 2,
224                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
225                                 .data = & (const snd_usb_midi_endpoint_info_t) {
226                                         .out_cables = 0x000f,
227                                         .in_cables  = 0x000f
228                                 }
229                         },
230                         {
231                                 .ifnum = -1
232                         }
233                 }
234         }
235 },
236 {
237         USB_DEVICE(0x0582, 0x0003),
238         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
239                 .vendor_name = "Roland",
240                 .product_name = "SC-8850",
241                 .ifnum = QUIRK_ANY_INTERFACE,
242                 .type = QUIRK_COMPOSITE,
243                 .data = (const snd_usb_audio_quirk_t[]) {
244                         {
245                                 .ifnum = 0,
246                                 .type = QUIRK_IGNORE_INTERFACE
247                         },
248                         {
249                                 .ifnum = 1,
250                                 .type = QUIRK_IGNORE_INTERFACE
251                         },
252                         {
253                                 .ifnum = 2,
254                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
255                                 .data = & (const snd_usb_midi_endpoint_info_t) {
256                                         .out_cables = 0x003f,
257                                         .in_cables  = 0x003f
258                                 }
259                         },
260                         {
261                                 .ifnum = -1
262                         }
263                 }
264         }
265 },
266 {
267         USB_DEVICE(0x0582, 0x0004),
268         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
269                 .vendor_name = "Roland",
270                 .product_name = "U-8",
271                 .ifnum = QUIRK_ANY_INTERFACE,
272                 .type = QUIRK_COMPOSITE,
273                 .data = (const snd_usb_audio_quirk_t[]) {
274                         {
275                                 .ifnum = 0,
276                                 .type = QUIRK_IGNORE_INTERFACE
277                         },
278                         {
279                                 .ifnum = 1,
280                                 .type = QUIRK_IGNORE_INTERFACE
281                         },
282                         {
283                                 .ifnum = 2,
284                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
285                                 .data = & (const snd_usb_midi_endpoint_info_t) {
286                                         .out_cables = 0x0005,
287                                         .in_cables  = 0x0005
288                                 }
289                         },
290                         {
291                                 .ifnum = -1
292                         }
293                 }
294         }
295 },
296 {
297         USB_DEVICE(0x0582, 0x0005),
298         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
299                 .vendor_name = "EDIROL",
300                 .product_name = "UM-2",
301                 .ifnum = QUIRK_ANY_INTERFACE,
302                 .type = QUIRK_COMPOSITE,
303                 .data = (const snd_usb_audio_quirk_t[]) {
304                         {
305                                 .ifnum = 0,
306                                 .type = QUIRK_IGNORE_INTERFACE
307                         },
308                         {
309                                 .ifnum = 1,
310                                 .type = QUIRK_IGNORE_INTERFACE
311                         },
312                         {
313                                 .ifnum = 2,
314                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
315                                 .data = & (const snd_usb_midi_endpoint_info_t) {
316                                         .out_cables = 0x0003,
317                                         .in_cables  = 0x0003
318                                 }
319                         },
320                         {
321                                 .ifnum = -1
322                         }
323                 }
324         }
325 },
326 {
327         USB_DEVICE(0x0582, 0x0007),
328         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
329                 .vendor_name = "Roland",
330                 .product_name = "SC-8820",
331                 .ifnum = QUIRK_ANY_INTERFACE,
332                 .type = QUIRK_COMPOSITE,
333                 .data = (const snd_usb_audio_quirk_t[]) {
334                         {
335                                 .ifnum = 0,
336                                 .type = QUIRK_IGNORE_INTERFACE
337                         },
338                         {
339                                 .ifnum = 1,
340                                 .type = QUIRK_IGNORE_INTERFACE
341                         },
342                         {
343                                 .ifnum = 2,
344                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
345                                 .data = & (const snd_usb_midi_endpoint_info_t) {
346                                         .out_cables = 0x0013,
347                                         .in_cables  = 0x0013
348                                 }
349                         },
350                         {
351                                 .ifnum = -1
352                         }
353                 }
354         }
355 },
356 {
357         USB_DEVICE(0x0582, 0x0008),
358         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
359                 .vendor_name = "Roland",
360                 .product_name = "PC-300",
361                 .ifnum = QUIRK_ANY_INTERFACE,
362                 .type = QUIRK_COMPOSITE,
363                 .data = (const snd_usb_audio_quirk_t[]) {
364                         {
365                                 .ifnum = 0,
366                                 .type = QUIRK_IGNORE_INTERFACE
367                         },
368                         {
369                                 .ifnum = 1,
370                                 .type = QUIRK_IGNORE_INTERFACE
371                         },
372                         {
373                                 .ifnum = 2,
374                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
375                                 .data = & (const snd_usb_midi_endpoint_info_t) {
376                                         .out_cables = 0x0001,
377                                         .in_cables  = 0x0001
378                                 }
379                         },
380                         {
381                                 .ifnum = -1
382                         }
383                 }
384         }
385 },
386 {
387         USB_DEVICE(0x0582, 0x0009),
388         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
389                 .vendor_name = "EDIROL",
390                 .product_name = "UM-1",
391                 .ifnum = QUIRK_ANY_INTERFACE,
392                 .type = QUIRK_COMPOSITE,
393                 .data = (const snd_usb_audio_quirk_t[]) {
394                         {
395                                 .ifnum = 0,
396                                 .type = QUIRK_IGNORE_INTERFACE
397                         },
398                         {
399                                 .ifnum = 1,
400                                 .type = QUIRK_IGNORE_INTERFACE
401                         },
402                         {
403                                 .ifnum = 2,
404                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
405                                 .data = & (const snd_usb_midi_endpoint_info_t) {
406                                         .out_cables = 0x0001,
407                                         .in_cables  = 0x0001
408                                 }
409                         },
410                         {
411                                 .ifnum = -1
412                         }
413                 }
414         }
415 },
416 {
417         USB_DEVICE(0x0582, 0x000b),
418         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
419                 .vendor_name = "Roland",
420                 .product_name = "SK-500",
421                 .ifnum = QUIRK_ANY_INTERFACE,
422                 .type = QUIRK_COMPOSITE,
423                 .data = (const snd_usb_audio_quirk_t[]) {
424                         {
425                                 .ifnum = 0,
426                                 .type = QUIRK_IGNORE_INTERFACE
427                         },
428                         {
429                                 .ifnum = 1,
430                                 .type = QUIRK_IGNORE_INTERFACE
431                         },
432                         {
433                                 .ifnum = 2,
434                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
435                                 .data = & (const snd_usb_midi_endpoint_info_t) {
436                                         .out_cables = 0x0013,
437                                         .in_cables  = 0x0013
438                                 }
439                         },
440                         {
441                                 .ifnum = -1
442                         }
443                 }
444         }
445 },
446 {
447         /* thanks to Emiliano Grilli <emillo@libero.it>
448          * for helping researching this data */
449         USB_DEVICE(0x0582, 0x000c),
450         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
451                 .vendor_name = "Roland",
452                 .product_name = "SC-D70",
453                 .ifnum = QUIRK_ANY_INTERFACE,
454                 .type = QUIRK_COMPOSITE,
455                 .data = (const snd_usb_audio_quirk_t[]) {
456                         {
457                                 .ifnum = 0,
458                                 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
459                                 .data = & (const struct audioformat) {
460                                         .format = SNDRV_PCM_FORMAT_S24_3LE,
461                                         .channels = 2,
462                                         .iface = 0,
463                                         .altsetting = 1,
464                                         .altset_idx = 1,
465                                         .attributes = 0,
466                                         .endpoint = 0x01,
467                                         .ep_attr = 0x01,
468                                         .rates = SNDRV_PCM_RATE_CONTINUOUS,
469                                         .rate_min = 44100,
470                                         .rate_max = 44100,
471                                 }
472                         },
473                         {
474                                 .ifnum = 1,
475                                 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
476                                 .data = & (const struct audioformat) {
477                                         .format = SNDRV_PCM_FORMAT_S24_3LE,
478                                         .channels = 2,
479                                         .iface = 1,
480                                         .altsetting = 1,
481                                         .altset_idx = 1,
482                                         .attributes = 0,
483                                         .endpoint = 0x81,
484                                         .ep_attr = 0x01,
485                                         .rates = SNDRV_PCM_RATE_CONTINUOUS,
486                                         .rate_min = 44100,
487                                         .rate_max = 44100,
488                                 }
489                         },
490                         {
491                                 .ifnum = 2,
492                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
493                                 .data = & (const snd_usb_midi_endpoint_info_t) {
494                                         .out_cables = 0x0007,
495                                         .in_cables  = 0x0007
496                                 }
497                         },
498                         {
499                                 .ifnum = -1
500                         }
501                 }
502         }
503 },
504 {       /*
505          * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
506          * If the advanced mode switch at the back of the unit is off, the
507          * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
508          * but offers only 16-bit PCM.
509          * In advanced mode, the UA-5 will output S24_3LE samples (two
510          * channels) at the rate indicated on the front switch, including
511          * the 96kHz sample rate.
512          */
513         USB_DEVICE(0x0582, 0x0010),
514         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
515                 .vendor_name = "EDIROL",
516                 .product_name = "UA-5",
517                 .ifnum = QUIRK_ANY_INTERFACE,
518                 .type = QUIRK_COMPOSITE,
519                 .data = (const snd_usb_audio_quirk_t[]) {
520                         {
521                                 .ifnum = 1,
522                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
523                         },
524                         {
525                                 .ifnum = 2,
526                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
527                         },
528                         {
529                                 .ifnum = -1
530                         }
531                 }
532         }
533 },
534 {
535         USB_DEVICE(0x0582, 0x0012),
536         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
537                 .vendor_name = "Roland",
538                 .product_name = "XV-5050",
539                 .ifnum = 0,
540                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
541                 .data = & (const snd_usb_midi_endpoint_info_t) {
542                         .out_cables = 0x0001,
543                         .in_cables  = 0x0001
544                 }
545         }
546 },
547 {
548         USB_DEVICE(0x0582, 0x0014),
549         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
550                 .vendor_name = "EDIROL",
551                 .product_name = "UM-880",
552                 .ifnum = 0,
553                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
554                 .data = & (const snd_usb_midi_endpoint_info_t) {
555                         .out_cables = 0x01ff,
556                         .in_cables  = 0x01ff
557                 }
558         }
559 },
560 {
561         USB_DEVICE(0x0582, 0x0016),
562         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
563                 .vendor_name = "EDIROL",
564                 .product_name = "SD-90",
565                 .ifnum = QUIRK_ANY_INTERFACE,
566                 .type = QUIRK_COMPOSITE,
567                 .data = (const snd_usb_audio_quirk_t[]) {
568                         {
569                                 .ifnum = 0,
570                                 .type = QUIRK_IGNORE_INTERFACE
571                         },
572                         {
573                                 .ifnum = 1,
574                                 .type = QUIRK_IGNORE_INTERFACE
575                         },
576                         {
577                                 .ifnum = 2,
578                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
579                                 .data = & (const snd_usb_midi_endpoint_info_t) {
580                                         .out_cables = 0x000f,
581                                         .in_cables  = 0x000f
582                                 }
583                         },
584                         {
585                                 .ifnum = -1
586                         }
587                 }
588         }
589 },
590 {
591         USB_DEVICE(0x0582, 0x001b),
592         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
593                 .vendor_name = "Roland",
594                 .product_name = "MMP-2",
595                 .ifnum = QUIRK_ANY_INTERFACE,
596                 .type = QUIRK_COMPOSITE,
597                 .data = (const snd_usb_audio_quirk_t[]) {
598                         {
599                                 .ifnum = 0,
600                                 .type = QUIRK_IGNORE_INTERFACE
601                         },
602                         {
603                                 .ifnum = 1,
604                                 .type = QUIRK_IGNORE_INTERFACE
605                         },
606                         {
607                                 .ifnum = 2,
608                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
609                                 .data = & (const snd_usb_midi_endpoint_info_t) {
610                                         .out_cables = 0x0001,
611                                         .in_cables  = 0x0001
612                                 }
613                         },
614                         {
615                                 .ifnum = -1
616                         }
617                 }
618         }
619 },
620 {
621         USB_DEVICE(0x0582, 0x001d),
622         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
623                 .vendor_name = "Roland",
624                 .product_name = "V-SYNTH",
625                 .ifnum = 0,
626                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
627                 .data = & (const snd_usb_midi_endpoint_info_t) {
628                         .out_cables = 0x0001,
629                         .in_cables  = 0x0001
630                 }
631         }
632 },
633 {
634         USB_DEVICE(0x0582, 0x0023),
635         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
636                 .vendor_name = "EDIROL",
637                 .product_name = "UM-550",
638                 .ifnum = 0,
639                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
640                 .data = & (const snd_usb_midi_endpoint_info_t) {
641                         .out_cables = 0x003f,
642                         .in_cables  = 0x003f
643                 }
644         }
645 },
646 {
647         /*
648          * This quirk is for the "Advanced Driver" mode. If off, the UA-20
649          * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
650          * and no MIDI.
651          */
652         USB_DEVICE(0x0582, 0x0025),
653         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
654                 .vendor_name = "EDIROL",
655                 .product_name = "UA-20",
656                 .ifnum = QUIRK_ANY_INTERFACE,
657                 .type = QUIRK_COMPOSITE,
658                 .data = (const snd_usb_audio_quirk_t[]) {
659                         {
660                                 .ifnum = 1,
661                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
662                         },
663                         {
664                                 .ifnum = 2,
665                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
666                         },
667                         {
668                                 .ifnum = 3,
669                                 .type = QUIRK_MIDI_STANDARD_INTERFACE
670                         },
671                         {
672                                 .ifnum = -1
673                         }
674                 }
675         }
676 },
677 {
678         USB_DEVICE(0x0582, 0x0027),
679         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
680                 .vendor_name = "EDIROL",
681                 .product_name = "SD-20",
682                 .ifnum = 0,
683                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
684                 .data = & (const snd_usb_midi_endpoint_info_t) {
685                         .out_cables = 0x0003,
686                         .in_cables  = 0x0007
687                 }
688         }
689 },
690 {
691         USB_DEVICE(0x0582, 0x0029),
692         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
693                 .vendor_name = "EDIROL",
694                 .product_name = "SD-80",
695                 .ifnum = 0,
696                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
697                 .data = & (const snd_usb_midi_endpoint_info_t) {
698                         .out_cables = 0x000f,
699                         .in_cables  = 0x000f
700                 }
701         }
702 },
703 {       /*
704          * This quirk is for the "Advanced" modes of the Edirol UA-700.
705          * If the sample format switch is not in an advanced setting, the
706          * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
707          * but offers only 16-bit PCM and no MIDI.
708          */
709         USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
710         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
711                 .vendor_name = "EDIROL",
712                 .product_name = "UA-700",
713                 .ifnum = QUIRK_ANY_INTERFACE,
714                 .type = QUIRK_COMPOSITE,
715                 .data = (const snd_usb_audio_quirk_t[]) {
716                         {
717                                 .ifnum = 1,
718                                 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
719                         },
720                         {
721                                 .ifnum = 2,
722                                 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
723                         },
724                         {
725                                 .ifnum = 3,
726                                 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
727                         },
728                         {
729                                 .ifnum = -1
730                         }
731                 }
732         }
733 },
734 {
735         USB_DEVICE(0x0582, 0x002d),
736         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
737                 .vendor_name = "Roland",
738                 .product_name = "XV-2020",
739                 .ifnum = 0,
740                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
741                 .data = & (const snd_usb_midi_endpoint_info_t) {
742                         .out_cables = 0x0001,
743                         .in_cables  = 0x0001
744                 }
745         }
746 },
747 {
748         USB_DEVICE(0x0582, 0x002f),
749         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
750                 .vendor_name = "Roland",
751                 .product_name = "VariOS",
752                 .ifnum = 0,
753                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
754                 .data = & (const snd_usb_midi_endpoint_info_t) {
755                         .out_cables = 0x0007,
756                         .in_cables  = 0x0007
757                 }
758         }
759 },
760 {
761         USB_DEVICE(0x0582, 0x0033),
762         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
763                 .vendor_name = "EDIROL",
764                 .product_name = "PCR",
765                 .ifnum = 0,
766                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
767                 .data = & (const snd_usb_midi_endpoint_info_t) {
768                         .out_cables = 0x0003,
769                         .in_cables  = 0x0007
770                 }
771         }
772 },
773 {
774         USB_DEVICE(0x0582, 0x0037),
775         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
776                 .vendor_name = "Roland",
777                 .product_name = "Digital Piano",
778                 .ifnum = 0,
779                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
780                 .data = & (const snd_usb_midi_endpoint_info_t) {
781                         .out_cables = 0x0001,
782                         .in_cables  = 0x0001
783                 }
784         }
785 },
786 {
787         /*
788          * This quirk is for the "Advanced Driver" mode.  If off, the GS-10
789          * has ID 0x003c and is standard compliant, but has only 16-bit PCM
790          * and no MIDI.
791          */
792         USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
793         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
794                 .vendor_name = "BOSS",
795                 .product_name = "GS-10",
796                 .ifnum = QUIRK_ANY_INTERFACE,
797                 .type = QUIRK_COMPOSITE,
798                 .data = & (const snd_usb_audio_quirk_t[]) {
799                         {
800                                 .ifnum = 1,
801                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
802                         },
803                         {
804                                 .ifnum = 2,
805                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
806                         },
807                         {
808                                 .ifnum = 3,
809                                 .type = QUIRK_MIDI_STANDARD_INTERFACE
810                         },
811                         {
812                                 .ifnum = -1
813                         }
814                 }
815         }
816 },
817 {
818         USB_DEVICE(0x0582, 0x0040),
819         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
820                 .vendor_name = "Roland",
821                 .product_name = "GI-20",
822                 .ifnum = 0,
823                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
824                 .data = & (const snd_usb_midi_endpoint_info_t) {
825                         .out_cables = 0x0001,
826                         .in_cables  = 0x0001
827                 }
828         }
829 },
830 {
831         USB_DEVICE(0x0582, 0x0042),
832         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
833                 .vendor_name = "Roland",
834                 .product_name = "RS-70",
835                 .ifnum = 0,
836                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
837                 .data = & (const snd_usb_midi_endpoint_info_t) {
838                         .out_cables = 0x0001,
839                         .in_cables  = 0x0001
840                 }
841         }
842 },
843 {
844         USB_DEVICE(0x0582, 0x0044),
845         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
846                 .vendor_name = "Roland",
847                 .product_name = "UA-1000",
848                 .ifnum = QUIRK_ANY_INTERFACE,
849                 .type = QUIRK_COMPOSITE,
850                 .data = (const snd_usb_audio_quirk_t[]) {
851                         {
852                                 .ifnum = 1,
853                                 .type = QUIRK_AUDIO_EDIROL_UA1000
854                         },
855                         {
856                                 .ifnum = 2,
857                                 .type = QUIRK_AUDIO_EDIROL_UA1000
858                         },
859                         {
860                                 .ifnum = 3,
861                                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
862                                 .data = & (const snd_usb_midi_endpoint_info_t) {
863                                         .out_cables = 0x0003,
864                                         .in_cables  = 0x0003
865                                 }
866                         },
867                         {
868                                 .ifnum = -1
869                         }
870                 }
871         }
872 },
873 {
874         USB_DEVICE(0x0582, 0x0048),
875         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
876                 .vendor_name = "EDIROL",
877                 .product_name = "UR-80",
878                 .ifnum = 0,
879                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
880                 .data = & (const snd_usb_midi_endpoint_info_t) {
881                         .out_cables = 0x0003,
882                         .in_cables  = 0x0007
883                 }
884         }
885 },
886 {
887         USB_DEVICE(0x0582, 0x004d),
888         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
889                 .vendor_name = "EDIROL",
890                 .product_name = "PCR-A",
891                 .ifnum = 0,
892                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
893                 .data = & (const snd_usb_midi_endpoint_info_t) {
894                         .out_cables = 0x0003,
895                         .in_cables  = 0x0007
896                 }
897         }
898 },
899 {
900         /*
901          * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
902          * is standard compliant, but has only 16-bit PCM.
903          */
904         USB_DEVICE(0x0582, 0x0050),
905         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
906                 .vendor_name = "EDIROL",
907                 .product_name = "UA-3FX",
908                 .ifnum = QUIRK_ANY_INTERFACE,
909                 .type = QUIRK_COMPOSITE,
910                 .data = (const snd_usb_audio_quirk_t[]) {
911                         {
912                                 .ifnum = 1,
913                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
914                         },
915                         {
916                                 .ifnum = 2,
917                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
918                         },
919                         {
920                                 .ifnum = -1
921                         }
922                 }
923         }
924 },
925 {
926         USB_DEVICE(0x0582, 0x0052),
927         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
928                 .vendor_name = "EDIROL",
929                 .product_name = "UM-1SX",
930                 .ifnum = 0,
931                 .type = QUIRK_MIDI_STANDARD_INTERFACE
932         }
933 },
934 {
935         USB_DEVICE(0x0582, 0x0065),
936         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
937                 .vendor_name = "EDIROL",
938                 .product_name = "PCR-1",
939                 .ifnum = 0,
940                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
941                 .data = & (const snd_usb_midi_endpoint_info_t) {
942                         .out_cables = 0x0001,
943                         .in_cables  = 0x0003
944                 }
945         }
946 },
947 {
948         USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
949         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
950                 .vendor_name = "Roland",
951                 .product_name = "SP-606",
952                 .ifnum = 3,
953                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
954                 .data = & (const snd_usb_midi_endpoint_info_t) {
955                         .out_cables = 0x0001,
956                         .in_cables  = 0x0001
957                 }
958         }
959 },
960 {
961         USB_DEVICE(0x0582, 0x006d),
962         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
963                 .vendor_name = "Roland",
964                 .product_name = "FANTOM-X",
965                 .ifnum = 0,
966                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
967                 .data = & (const snd_usb_midi_endpoint_info_t) {
968                         .out_cables = 0x0001,
969                         .in_cables  = 0x0001
970                 }
971         }
972 },
973 {       /*
974          * This quirk is for the "Advanced" modes of the Edirol UA-25.
975          * If the switch is not in an advanced setting, the UA-25 has
976          * ID 0x0582/0x0073 and is standard compliant (no quirks), but
977          * offers only 16-bit PCM at 44.1 kHz and no MIDI.
978          */
979         USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
980         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
981                 .vendor_name = "EDIROL",
982                 .product_name = "UA-25",
983                 .ifnum = QUIRK_ANY_INTERFACE,
984                 .type = QUIRK_COMPOSITE,
985                 .data = (const snd_usb_audio_quirk_t[]) {
986                         {
987                                 .ifnum = 0,
988                                 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
989                         },
990                         {
991                                 .ifnum = 1,
992                                 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
993                         },
994                         {
995                                 .ifnum = 2,
996                                 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
997                         },
998                         {
999                                 .ifnum = -1
1000                         }
1001                 }
1002         }
1003 },
1004 {
1005         USB_DEVICE(0x0582, 0x0075),
1006         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1007                 .vendor_name = "BOSS",
1008                 .product_name = "DR-880",
1009                 .ifnum = 0,
1010                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1011                 .data = & (const snd_usb_midi_endpoint_info_t) {
1012                         .out_cables = 0x0001,
1013                         .in_cables  = 0x0001
1014                 }
1015         }
1016 },
1017 {
1018         USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
1019         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1020                 .vendor_name = "Roland",
1021                 /* RD-700SX, RD-300SX */
1022                 .ifnum = 0,
1023                 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1024                 .data = & (const snd_usb_midi_endpoint_info_t) {
1025                         .out_cables = 0x0003,
1026                         .in_cables  = 0x0003
1027                 }
1028         }
1029 },
1030
1031 /* Midiman/M-Audio devices */
1032 {
1033         USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
1034         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1035                 .vendor_name = "M-Audio",
1036                 .product_name = "MidiSport 2x2",
1037                 .ifnum = QUIRK_ANY_INTERFACE,
1038                 .type = QUIRK_MIDI_MIDIMAN,
1039                 .data = & (const snd_usb_midi_endpoint_info_t) {
1040                         .out_cables = 0x0003,
1041                         .in_cables  = 0x0003
1042                 }
1043         }
1044 },
1045 {
1046         USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
1047         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1048                 .vendor_name = "M-Audio",
1049                 .product_name = "MidiSport 1x1",
1050                 .ifnum = QUIRK_ANY_INTERFACE,
1051                 .type = QUIRK_MIDI_MIDIMAN,
1052                 .data = & (const snd_usb_midi_endpoint_info_t) {
1053                         .out_cables = 0x0001,
1054                         .in_cables  = 0x0001
1055                 }
1056         }
1057 },
1058 {
1059         USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
1060         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1061                 .vendor_name = "M-Audio",
1062                 .product_name = "Keystation",
1063                 .ifnum = QUIRK_ANY_INTERFACE,
1064                 .type = QUIRK_MIDI_MIDIMAN,
1065                 .data = & (const snd_usb_midi_endpoint_info_t) {
1066                         .out_cables = 0x0001,
1067                         .in_cables  = 0x0001
1068                 }
1069         }
1070 },
1071 {
1072         USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
1073         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1074                 .vendor_name = "M-Audio",
1075                 .product_name = "MidiSport 4x4",
1076                 .ifnum = QUIRK_ANY_INTERFACE,
1077                 .type = QUIRK_MIDI_MIDIMAN,
1078                 .data = & (const snd_usb_midi_endpoint_info_t) {
1079                         .out_cables = 0x000f,
1080                         .in_cables  = 0x000f
1081                 }
1082         }
1083 },
1084 {
1085         /*
1086          * For hardware revision 1.05; in the later revisions (1.10 and
1087          * 1.21), 0x1031 is the ID for the device without firmware.
1088          * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1089          */
1090         USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
1091         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1092                 .vendor_name = "M-Audio",
1093                 .product_name = "MidiSport 8x8",
1094                 .ifnum = QUIRK_ANY_INTERFACE,
1095                 .type = QUIRK_MIDI_MIDIMAN,
1096                 .data = & (const snd_usb_midi_endpoint_info_t) {
1097                         .out_cables = 0x01ff,
1098                         .in_cables  = 0x01ff
1099                 }
1100         }
1101 },
1102 {
1103         USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
1104         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1105                 .vendor_name = "M-Audio",
1106                 .product_name = "MidiSport 8x8",
1107                 .ifnum = QUIRK_ANY_INTERFACE,
1108                 .type = QUIRK_MIDI_MIDIMAN,
1109                 .data = & (const snd_usb_midi_endpoint_info_t) {
1110                         .out_cables = 0x01ff,
1111                         .in_cables  = 0x01ff
1112                 }
1113         }
1114 },
1115 {
1116         USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
1117         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1118                 .vendor_name = "M-Audio",
1119                 .product_name = "MidiSport 2x4",
1120                 .ifnum = QUIRK_ANY_INTERFACE,
1121                 .type = QUIRK_MIDI_MIDIMAN,
1122                 .data = & (const snd_usb_midi_endpoint_info_t) {
1123                         .out_cables = 0x000f,
1124                         .in_cables  = 0x0003
1125                 }
1126         }
1127 },
1128 {
1129         USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
1130         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1131                 .vendor_name = "M-Audio",
1132                 .product_name = "Quattro",
1133                 .ifnum = QUIRK_ANY_INTERFACE,
1134                 .type = QUIRK_COMPOSITE,
1135                 .data = & (const snd_usb_audio_quirk_t[]) {
1136                         /*
1137                          * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1138                          * and share endpoints with the other interfaces.
1139                          * Ignore them.  The other interfaces can do 24 bits,
1140                          * but captured samples are big-endian (see usbaudio.c).
1141                          */
1142                         {
1143                                 .ifnum = 0,
1144                                 .type = QUIRK_IGNORE_INTERFACE
1145                         },
1146                         {
1147                                 .ifnum = 1,
1148                                 .type = QUIRK_IGNORE_INTERFACE
1149                         },
1150                         {
1151                                 .ifnum = 2,
1152                                 .type = QUIRK_IGNORE_INTERFACE
1153                         },
1154                         {
1155                                 .ifnum = 3,
1156                                 .type = QUIRK_IGNORE_INTERFACE
1157                         },
1158                         {
1159                                 .ifnum = 4,
1160                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1161                         },
1162                         {
1163                                 .ifnum = 5,
1164                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1165                         },
1166                         {
1167                                 .ifnum = 6,
1168                                 .type = QUIRK_IGNORE_INTERFACE
1169                         },
1170                         {
1171                                 .ifnum = 7,
1172                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1173                         },
1174                         {
1175                                 .ifnum = 8,
1176                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1177                         },
1178                         {
1179                                 .ifnum = 9,
1180                                 .type = QUIRK_MIDI_MIDIMAN,
1181                                 .data = & (const snd_usb_midi_endpoint_info_t) {
1182                                         .out_cables = 0x0001,
1183                                         .in_cables  = 0x0001
1184                                 }
1185                         },
1186                         {
1187                                 .ifnum = -1
1188                         }
1189                 }
1190         }
1191 },
1192 {
1193         USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
1194         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1195                 .vendor_name = "M-Audio",
1196                 .product_name = "AudioPhile",
1197                 .ifnum = 6,
1198                 .type = QUIRK_MIDI_MIDIMAN,
1199                 .data = & (const snd_usb_midi_endpoint_info_t) {
1200                         .out_cables = 0x0001,
1201                         .in_cables  = 0x0001
1202                 }
1203         }
1204 },
1205 {
1206         USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
1207         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1208                 .vendor_name = "M-Audio",
1209                 .product_name = "Ozone",
1210                 .ifnum = 3,
1211                 .type = QUIRK_MIDI_MIDIMAN,
1212                 .data = & (const snd_usb_midi_endpoint_info_t) {
1213                         .out_cables = 0x0001,
1214                         .in_cables  = 0x0001
1215                 }
1216         }
1217 },
1218 {
1219         USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
1220         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1221                 .vendor_name = "M-Audio",
1222                 .product_name = "OmniStudio",
1223                 .ifnum = QUIRK_ANY_INTERFACE,
1224                 .type = QUIRK_COMPOSITE,
1225                 .data = & (const snd_usb_audio_quirk_t[]) {
1226                         {
1227                                 .ifnum = 0,
1228                                 .type = QUIRK_IGNORE_INTERFACE
1229                         },
1230                         {
1231                                 .ifnum = 1,
1232                                 .type = QUIRK_IGNORE_INTERFACE
1233                         },
1234                         {
1235                                 .ifnum = 2,
1236                                 .type = QUIRK_IGNORE_INTERFACE
1237                         },
1238                         {
1239                                 .ifnum = 3,
1240                                 .type = QUIRK_IGNORE_INTERFACE
1241                         },
1242                         {
1243                                 .ifnum = 4,
1244                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1245                         },
1246                         {
1247                                 .ifnum = 5,
1248                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1249                         },
1250                         {
1251                                 .ifnum = 6,
1252                                 .type = QUIRK_IGNORE_INTERFACE
1253                         },
1254                         {
1255                                 .ifnum = 7,
1256                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1257                         },
1258                         {
1259                                 .ifnum = 8,
1260                                 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1261                         },
1262                         {
1263                                 .ifnum = 9,
1264                                 .type = QUIRK_MIDI_MIDIMAN,
1265                                 .data = & (const snd_usb_midi_endpoint_info_t) {
1266                                         .out_cables = 0x0001,
1267                                         .in_cables  = 0x0001
1268                                 }
1269                         },
1270                         {
1271                                 .ifnum = -1
1272                         }
1273                 }
1274         }
1275 },
1276
1277 /* Mark of the Unicorn devices */
1278 {
1279         /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
1280         .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1281                        USB_DEVICE_ID_MATCH_PRODUCT |
1282                        USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1283         .idVendor = 0x07fd,
1284         .idProduct = 0x0001,
1285         .bDeviceSubClass = 2,
1286         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1287                 .vendor_name = "MOTU",
1288                 .product_name = "Fastlane",
1289                 .ifnum = QUIRK_ANY_INTERFACE,
1290                 .type = QUIRK_COMPOSITE,
1291                 .data = & (const snd_usb_audio_quirk_t[]) {
1292                         {
1293                                 .ifnum = 0,
1294                                 .type = QUIRK_MIDI_RAW
1295                         },
1296                         {
1297                                 .ifnum = 1,
1298                                 .type = QUIRK_IGNORE_INTERFACE
1299                         },
1300                         {
1301                                 .ifnum = -1
1302                         }
1303                 }
1304         }
1305 },
1306
1307 {
1308         /* Creative Sound Blaster MP3+ */
1309         USB_DEVICE(0x041e, 0x3010),
1310         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1311                 .vendor_name = "Creative Labs",
1312                 .product_name = "Sound Blaster MP3+",
1313                 .ifnum = QUIRK_NO_INTERFACE
1314         }
1315         
1316 },
1317
1318 /* Emagic devices */
1319 {
1320         USB_DEVICE(0x086a, 0x0001),
1321         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1322                 .vendor_name = "Emagic",
1323                 /* .product_name = "Unitor8", */
1324                 .ifnum = 2,
1325                 .type = QUIRK_MIDI_EMAGIC,
1326                 .data = & (const snd_usb_midi_endpoint_info_t) {
1327                         .out_cables = 0x80ff,
1328                         .in_cables  = 0x80ff
1329                 }
1330         }
1331 },
1332 {
1333         USB_DEVICE(0x086a, 0x0002),
1334         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1335                 .vendor_name = "Emagic",
1336                 /* .product_name = "AMT8", */
1337                 .ifnum = 2,
1338                 .type = QUIRK_MIDI_EMAGIC,
1339                 .data = & (const snd_usb_midi_endpoint_info_t) {
1340                         .out_cables = 0x80ff,
1341                         .in_cables  = 0x80ff
1342                 }
1343         }
1344 },
1345 {
1346         USB_DEVICE(0x086a, 0x0003),
1347         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1348                 .vendor_name = "Emagic",
1349                 /* .product_name = "MT4", */
1350                 .ifnum = 2,
1351                 .type = QUIRK_MIDI_EMAGIC,
1352                 .data = & (const snd_usb_midi_endpoint_info_t) {
1353                         .out_cables = 0x800f,
1354                         .in_cables  = 0x8003
1355                 }
1356         }
1357 },
1358
1359 /* TerraTec devices */
1360 {
1361         USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
1362         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1363                 .vendor_name = "TerraTec",
1364                 .product_name = "PHASE 26",
1365                 .ifnum = 3,
1366                 .type = QUIRK_MIDI_STANDARD_INTERFACE
1367         }
1368 },
1369 {
1370         USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
1371         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1372                 .vendor_name = "TerraTec",
1373                 .product_name = "PHASE 26",
1374                 .ifnum = 3,
1375                 .type = QUIRK_MIDI_STANDARD_INTERFACE
1376         }
1377 },
1378
1379 /* Novation EMS devices */
1380 {
1381         USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
1382         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1383                 .vendor_name = "Novation",
1384                 .product_name = "ReMOTE Audio/XStation",
1385                 .ifnum = 4,
1386                 .type = QUIRK_MIDI_NOVATION
1387         }
1388 },
1389 {
1390         USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
1391         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1392                 .vendor_name = "Novation",
1393                 .product_name = "Speedio",
1394                 .ifnum = 3,
1395                 .type = QUIRK_MIDI_NOVATION
1396         }
1397 },
1398 {
1399         USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
1400         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1401                 .vendor_name = "Novation",
1402                 .product_name = "ReMOTE25",
1403                 .ifnum = 0,
1404                 .type = QUIRK_MIDI_NOVATION
1405         }
1406 },
1407
1408 {
1409         USB_DEVICE(0x4752, 0x0011),
1410         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1411                 .vendor_name = "Miditech",
1412                 .product_name = "Midistart-2",
1413                 .ifnum = 0,
1414                 .type = QUIRK_MIDI_MIDITECH
1415         }
1416 },
1417 {
1418         USB_DEVICE(0x7104, 0x2202),
1419         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1420                 .vendor_name = "Miditech",
1421                 .product_name = "MidiStudio-2",
1422                 .ifnum = 0,
1423                 .type = QUIRK_MIDI_MIDITECH
1424         }
1425 },
1426
1427 {
1428         /*
1429          * Some USB MIDI devices don't have an audio control interface,
1430          * so we have to grab MIDI streaming interfaces here.
1431          */
1432         .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
1433                        USB_DEVICE_ID_MATCH_INT_SUBCLASS,
1434         .bInterfaceClass = USB_CLASS_AUDIO,
1435         .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
1436         .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
1437                 .ifnum = QUIRK_ANY_INTERFACE,
1438                 .type = QUIRK_MIDI_STANDARD_INTERFACE
1439         }
1440 },
1441
1442 #undef USB_DEVICE_VENDOR_SPEC