blob: d59323ecd571d0121379b404db59b3f261da1b4a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * ALSA USB Audio Driver
3 *
4 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
5 * Clemens Ladisch <clemens@ladisch.de>
6 *
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23/*
24 * The contents of this file are part of the driver's id_table.
25 *
26 * In a perfect world, this file would be empty.
27 */
28
29/*
30 * Use this for devices where other interfaces are standard compliant,
31 * to prevent the quirk being applied to those interfaces. (To work with
32 * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
33 */
34#define USB_DEVICE_VENDOR_SPEC(vend, prod) \
35 .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
36 USB_DEVICE_ID_MATCH_PRODUCT | \
37 USB_DEVICE_ID_MATCH_INT_CLASS, \
38 .idVendor = vend, \
39 .idProduct = prod, \
40 .bInterfaceClass = USB_CLASS_VENDOR_SPEC
41
Andrea Borgiadc61b66f2009-01-12 23:17:47 +010042/* Creative/Toshiba Multimedia Center SB-0500 */
43{
44 USB_DEVICE(0x041e, 0x3048),
45 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
46 .vendor_name = "Toshiba",
47 .product_name = "SB-0500",
48 .ifnum = QUIRK_NO_INTERFACE
49 }
50},
51
Clemens Ladisch25a47b62008-02-25 11:04:19 +010052/* Creative/E-Mu devices */
53{
54 USB_DEVICE(0x041e, 0x3010),
55 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
56 .vendor_name = "Creative Labs",
57 .product_name = "Sound Blaster MP3+",
58 .ifnum = QUIRK_NO_INTERFACE
59 }
60},
61{
62 /* E-Mu 0202 USB */
63 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
64 .idVendor = 0x041e,
65 .idProduct = 0x3f02,
66 .bInterfaceClass = USB_CLASS_AUDIO,
67},
68{
69 /* E-Mu 0404 USB */
70 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
71 .idVendor = 0x041e,
72 .idProduct = 0x3f04,
73 .bInterfaceClass = USB_CLASS_AUDIO,
74},
Eran Tromer97c889a2008-09-26 01:07:03 -040075{
76 /* E-Mu Tracker Pre */
77 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
78 .idVendor = 0x041e,
79 .idProduct = 0x3f0a,
80 .bInterfaceClass = USB_CLASS_AUDIO,
81},
Clemens Ladisch25a47b62008-02-25 11:04:19 +010082
Linus Torvalds1da177e2005-04-16 15:20:36 -070083/*
Daniel Drakea9121452007-05-07 09:27:05 +020084 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
85 * class matches do not take effect without an explicit ID match.
86 */
87{
88 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
89 USB_DEVICE_ID_MATCH_INT_CLASS |
90 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
91 .idVendor = 0x046d,
Daniel Draked4170452007-05-10 08:52:19 +020092 .idProduct = 0x0850,
93 .bInterfaceClass = USB_CLASS_AUDIO,
94 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
95},
96{
97 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
98 USB_DEVICE_ID_MATCH_INT_CLASS |
99 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
100 .idVendor = 0x046d,
George Shapovalovc34532d2007-07-09 10:42:35 +0200101 .idProduct = 0x08ae,
102 .bInterfaceClass = USB_CLASS_AUDIO,
103 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
104},
105{
106 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
107 USB_DEVICE_ID_MATCH_INT_CLASS |
108 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
109 .idVendor = 0x046d,
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200110 .idProduct = 0x08c6,
111 .bInterfaceClass = USB_CLASS_AUDIO,
112 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
113},
114{
115 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
116 USB_DEVICE_ID_MATCH_INT_CLASS |
117 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
118 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200119 .idProduct = 0x08f0,
120 .bInterfaceClass = USB_CLASS_AUDIO,
121 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
122},
123{
124 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
125 USB_DEVICE_ID_MATCH_INT_CLASS |
126 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
127 .idVendor = 0x046d,
Dawid Wrobel31127f22007-10-22 11:57:17 +0200128 .idProduct = 0x08f5,
129 .bInterfaceClass = USB_CLASS_AUDIO,
130 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
131},
132{
133 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
134 USB_DEVICE_ID_MATCH_INT_CLASS |
135 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
136 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200137 .idProduct = 0x08f6,
138 .bInterfaceClass = USB_CLASS_AUDIO,
139 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
140},
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100141
James Courtier-Dutton1e741902007-10-08 18:49:43 +0100142/*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143 * Yamaha devices
144 */
145
146#define YAMAHA_DEVICE(id, name) { \
147 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100148 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149 .vendor_name = "Yamaha", \
150 .product_name = name, \
151 .ifnum = QUIRK_ANY_INTERFACE, \
152 .type = QUIRK_MIDI_YAMAHA \
153 } \
154}
155#define YAMAHA_INTERFACE(id, intf, name) { \
156 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100157 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700158 .vendor_name = "Yamaha", \
159 .product_name = name, \
160 .ifnum = intf, \
161 .type = QUIRK_MIDI_YAMAHA \
162 } \
163}
164YAMAHA_DEVICE(0x1000, "UX256"),
165YAMAHA_DEVICE(0x1001, "MU1000"),
166YAMAHA_DEVICE(0x1002, "MU2000"),
167YAMAHA_DEVICE(0x1003, "MU500"),
168YAMAHA_INTERFACE(0x1004, 3, "UW500"),
169YAMAHA_DEVICE(0x1005, "MOTIF6"),
170YAMAHA_DEVICE(0x1006, "MOTIF7"),
171YAMAHA_DEVICE(0x1007, "MOTIF8"),
172YAMAHA_DEVICE(0x1008, "UX96"),
173YAMAHA_DEVICE(0x1009, "UX16"),
174YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
175YAMAHA_DEVICE(0x100c, "UC-MX"),
176YAMAHA_DEVICE(0x100d, "UC-KX"),
177YAMAHA_DEVICE(0x100e, "S08"),
178YAMAHA_DEVICE(0x100f, "CLP-150"),
179YAMAHA_DEVICE(0x1010, "CLP-170"),
180YAMAHA_DEVICE(0x1011, "P-250"),
181YAMAHA_DEVICE(0x1012, "TYROS"),
182YAMAHA_DEVICE(0x1013, "PF-500"),
183YAMAHA_DEVICE(0x1014, "S90"),
184YAMAHA_DEVICE(0x1015, "MOTIF-R"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100185YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700186YAMAHA_DEVICE(0x1017, "CVP-204"),
187YAMAHA_DEVICE(0x1018, "CVP-206"),
188YAMAHA_DEVICE(0x1019, "CVP-208"),
189YAMAHA_DEVICE(0x101a, "CVP-210"),
190YAMAHA_DEVICE(0x101b, "PSR-1100"),
191YAMAHA_DEVICE(0x101c, "PSR-2100"),
192YAMAHA_DEVICE(0x101d, "CLP-175"),
193YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100194YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700195YAMAHA_DEVICE(0x1020, "EZ-250i"),
196YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
197YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
198YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
199YAMAHA_DEVICE(0x1024, "CVP-301"),
200YAMAHA_DEVICE(0x1025, "CVP-303"),
201YAMAHA_DEVICE(0x1026, "CVP-305"),
202YAMAHA_DEVICE(0x1027, "CVP-307"),
203YAMAHA_DEVICE(0x1028, "CVP-309"),
204YAMAHA_DEVICE(0x1029, "CVP-309GP"),
205YAMAHA_DEVICE(0x102a, "PSR-1500"),
206YAMAHA_DEVICE(0x102b, "PSR-3000"),
207YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
208YAMAHA_DEVICE(0x1030, "PSR-295/293"),
209YAMAHA_DEVICE(0x1031, "DGX-205/203"),
210YAMAHA_DEVICE(0x1032, "DGX-305"),
211YAMAHA_DEVICE(0x1033, "DGX-505"),
212YAMAHA_DEVICE(0x1034, NULL),
213YAMAHA_DEVICE(0x1035, NULL),
214YAMAHA_DEVICE(0x1036, NULL),
215YAMAHA_DEVICE(0x1037, NULL),
216YAMAHA_DEVICE(0x1038, NULL),
217YAMAHA_DEVICE(0x1039, NULL),
218YAMAHA_DEVICE(0x103a, NULL),
219YAMAHA_DEVICE(0x103b, NULL),
220YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200221YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200222YAMAHA_DEVICE(0x103e, NULL),
223YAMAHA_DEVICE(0x103f, NULL),
224YAMAHA_DEVICE(0x1040, NULL),
225YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200226YAMAHA_DEVICE(0x1042, NULL),
227YAMAHA_DEVICE(0x1043, NULL),
228YAMAHA_DEVICE(0x1044, NULL),
229YAMAHA_DEVICE(0x1045, NULL),
Clemens Ladischc85ceac2008-07-10 11:01:06 +0200230YAMAHA_INTERFACE(0x104e, 0, NULL),
Clemens Ladisch83a1a392008-07-10 11:05:42 +0200231YAMAHA_DEVICE(0x104f, NULL),
232YAMAHA_DEVICE(0x1050, NULL),
233YAMAHA_DEVICE(0x1051, NULL),
234YAMAHA_DEVICE(0x1052, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700235YAMAHA_DEVICE(0x2000, "DGP-7"),
236YAMAHA_DEVICE(0x2001, "DGP-5"),
237YAMAHA_DEVICE(0x2002, NULL),
238YAMAHA_DEVICE(0x5000, "CS1D"),
239YAMAHA_DEVICE(0x5001, "DSP1D"),
240YAMAHA_DEVICE(0x5002, "DME32"),
241YAMAHA_DEVICE(0x5003, "DM2000"),
242YAMAHA_DEVICE(0x5004, "02R96"),
243YAMAHA_DEVICE(0x5005, "ACU16-C"),
244YAMAHA_DEVICE(0x5006, "NHB32-C"),
245YAMAHA_DEVICE(0x5007, "DM1000"),
246YAMAHA_DEVICE(0x5008, "01V96"),
247YAMAHA_DEVICE(0x5009, "SPX2000"),
248YAMAHA_DEVICE(0x500a, "PM5D"),
249YAMAHA_DEVICE(0x500b, "DME64N"),
250YAMAHA_DEVICE(0x500c, "DME24N"),
251YAMAHA_DEVICE(0x500d, NULL),
252YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200253YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700254YAMAHA_DEVICE(0x7000, "DTX"),
255YAMAHA_DEVICE(0x7010, "UB99"),
256#undef YAMAHA_DEVICE
257#undef YAMAHA_INTERFACE
258
259/*
260 * Roland/RolandED/Edirol/BOSS devices
261 */
262{
263 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100264 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265 .vendor_name = "Roland",
266 .product_name = "UA-100",
267 .ifnum = QUIRK_ANY_INTERFACE,
268 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100269 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700270 {
271 .ifnum = 0,
272 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
273 .data = & (const struct audioformat) {
274 .format = SNDRV_PCM_FORMAT_S16_LE,
275 .channels = 4,
276 .iface = 0,
277 .altsetting = 1,
278 .altset_idx = 1,
279 .attributes = 0,
280 .endpoint = 0x01,
281 .ep_attr = 0x09,
282 .rates = SNDRV_PCM_RATE_CONTINUOUS,
283 .rate_min = 44100,
284 .rate_max = 44100,
285 }
286 },
287 {
288 .ifnum = 1,
289 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
290 .data = & (const struct audioformat) {
291 .format = SNDRV_PCM_FORMAT_S16_LE,
292 .channels = 2,
293 .iface = 1,
294 .altsetting = 1,
295 .altset_idx = 1,
296 .attributes = EP_CS_ATTR_FILL_MAX,
297 .endpoint = 0x81,
298 .ep_attr = 0x05,
299 .rates = SNDRV_PCM_RATE_CONTINUOUS,
300 .rate_min = 44100,
301 .rate_max = 44100,
302 }
303 },
304 {
305 .ifnum = 2,
306 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100307 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308 .out_cables = 0x0007,
309 .in_cables = 0x0007
310 }
311 },
312 {
313 .ifnum = -1
314 }
315 }
316 }
317},
318{
319 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100320 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700321 .vendor_name = "EDIROL",
322 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200323 .ifnum = QUIRK_ANY_INTERFACE,
324 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100325 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200326 {
327 .ifnum = 0,
328 .type = QUIRK_IGNORE_INTERFACE
329 },
330 {
331 .ifnum = 1,
332 .type = QUIRK_IGNORE_INTERFACE
333 },
334 {
335 .ifnum = 2,
336 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100337 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200338 .out_cables = 0x000f,
339 .in_cables = 0x000f
340 }
341 },
342 {
343 .ifnum = -1
344 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345 }
346 }
347},
348{
349 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100350 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700351 .vendor_name = "Roland",
352 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200353 .ifnum = QUIRK_ANY_INTERFACE,
354 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100355 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200356 {
357 .ifnum = 0,
358 .type = QUIRK_IGNORE_INTERFACE
359 },
360 {
361 .ifnum = 1,
362 .type = QUIRK_IGNORE_INTERFACE
363 },
364 {
365 .ifnum = 2,
366 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100367 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200368 .out_cables = 0x003f,
369 .in_cables = 0x003f
370 }
371 },
372 {
373 .ifnum = -1
374 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700375 }
376 }
377},
378{
379 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100380 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700381 .vendor_name = "Roland",
382 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200383 .ifnum = QUIRK_ANY_INTERFACE,
384 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100385 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200386 {
387 .ifnum = 0,
388 .type = QUIRK_IGNORE_INTERFACE
389 },
390 {
391 .ifnum = 1,
392 .type = QUIRK_IGNORE_INTERFACE
393 },
394 {
395 .ifnum = 2,
396 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100397 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200398 .out_cables = 0x0005,
399 .in_cables = 0x0005
400 }
401 },
402 {
403 .ifnum = -1
404 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700405 }
406 }
407},
408{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100409 /* Has ID 0x0099 when not in "Advanced Driver" mode.
410 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100412 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413 .vendor_name = "EDIROL",
414 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200415 .ifnum = QUIRK_ANY_INTERFACE,
416 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100417 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200418 {
419 .ifnum = 0,
420 .type = QUIRK_IGNORE_INTERFACE
421 },
422 {
423 .ifnum = 1,
424 .type = QUIRK_IGNORE_INTERFACE
425 },
426 {
427 .ifnum = 2,
428 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100429 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200430 .out_cables = 0x0003,
431 .in_cables = 0x0003
432 }
433 },
434 {
435 .ifnum = -1
436 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700437 }
438 }
439},
440{
441 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100442 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700443 .vendor_name = "Roland",
444 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200445 .ifnum = QUIRK_ANY_INTERFACE,
446 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100447 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200448 {
449 .ifnum = 0,
450 .type = QUIRK_IGNORE_INTERFACE
451 },
452 {
453 .ifnum = 1,
454 .type = QUIRK_IGNORE_INTERFACE
455 },
456 {
457 .ifnum = 2,
458 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100459 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200460 .out_cables = 0x0013,
461 .in_cables = 0x0013
462 }
463 },
464 {
465 .ifnum = -1
466 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700467 }
468 }
469},
470{
471 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100472 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700473 .vendor_name = "Roland",
474 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200475 .ifnum = QUIRK_ANY_INTERFACE,
476 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100477 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200478 {
479 .ifnum = 0,
480 .type = QUIRK_IGNORE_INTERFACE
481 },
482 {
483 .ifnum = 1,
484 .type = QUIRK_IGNORE_INTERFACE
485 },
486 {
487 .ifnum = 2,
488 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100489 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200490 .out_cables = 0x0001,
491 .in_cables = 0x0001
492 }
493 },
494 {
495 .ifnum = -1
496 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497 }
498 }
499},
500{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100501 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700502 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100503 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504 .vendor_name = "EDIROL",
505 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200506 .ifnum = QUIRK_ANY_INTERFACE,
507 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100508 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200509 {
510 .ifnum = 0,
511 .type = QUIRK_IGNORE_INTERFACE
512 },
513 {
514 .ifnum = 1,
515 .type = QUIRK_IGNORE_INTERFACE
516 },
517 {
518 .ifnum = 2,
519 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100520 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200521 .out_cables = 0x0001,
522 .in_cables = 0x0001
523 }
524 },
525 {
526 .ifnum = -1
527 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528 }
529 }
530},
531{
532 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100533 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700534 .vendor_name = "Roland",
535 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200536 .ifnum = QUIRK_ANY_INTERFACE,
537 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100538 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200539 {
540 .ifnum = 0,
541 .type = QUIRK_IGNORE_INTERFACE
542 },
543 {
544 .ifnum = 1,
545 .type = QUIRK_IGNORE_INTERFACE
546 },
547 {
548 .ifnum = 2,
549 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100550 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200551 .out_cables = 0x0013,
552 .in_cables = 0x0013
553 }
554 },
555 {
556 .ifnum = -1
557 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700558 }
559 }
560},
561{
562 /* thanks to Emiliano Grilli <emillo@libero.it>
563 * for helping researching this data */
564 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100565 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700566 .vendor_name = "Roland",
567 .product_name = "SC-D70",
568 .ifnum = QUIRK_ANY_INTERFACE,
569 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100570 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700571 {
572 .ifnum = 0,
573 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
574 .data = & (const struct audioformat) {
575 .format = SNDRV_PCM_FORMAT_S24_3LE,
576 .channels = 2,
577 .iface = 0,
578 .altsetting = 1,
579 .altset_idx = 1,
580 .attributes = 0,
581 .endpoint = 0x01,
582 .ep_attr = 0x01,
583 .rates = SNDRV_PCM_RATE_CONTINUOUS,
584 .rate_min = 44100,
585 .rate_max = 44100,
586 }
587 },
588 {
589 .ifnum = 1,
590 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
591 .data = & (const struct audioformat) {
592 .format = SNDRV_PCM_FORMAT_S24_3LE,
593 .channels = 2,
594 .iface = 1,
595 .altsetting = 1,
596 .altset_idx = 1,
597 .attributes = 0,
598 .endpoint = 0x81,
599 .ep_attr = 0x01,
600 .rates = SNDRV_PCM_RATE_CONTINUOUS,
601 .rate_min = 44100,
602 .rate_max = 44100,
603 }
604 },
605 {
606 .ifnum = 2,
607 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100608 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700609 .out_cables = 0x0007,
610 .in_cables = 0x0007
611 }
612 },
613 {
614 .ifnum = -1
615 }
616 }
617 }
618},
619{ /*
620 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
621 * If the advanced mode switch at the back of the unit is off, the
622 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
623 * but offers only 16-bit PCM.
624 * In advanced mode, the UA-5 will output S24_3LE samples (two
625 * channels) at the rate indicated on the front switch, including
626 * the 96kHz sample rate.
627 */
628 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100629 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700630 .vendor_name = "EDIROL",
631 .product_name = "UA-5",
632 .ifnum = QUIRK_ANY_INTERFACE,
633 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100634 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700635 {
636 .ifnum = 1,
637 .type = QUIRK_AUDIO_STANDARD_INTERFACE
638 },
639 {
640 .ifnum = 2,
641 .type = QUIRK_AUDIO_STANDARD_INTERFACE
642 },
643 {
644 .ifnum = -1
645 }
646 }
647 }
648},
649{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200650 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700651 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100652 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700653 .vendor_name = "Roland",
654 .product_name = "XV-5050",
655 .ifnum = 0,
656 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100657 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700658 .out_cables = 0x0001,
659 .in_cables = 0x0001
660 }
661 }
662},
663{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200664 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700665 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100666 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700667 .vendor_name = "EDIROL",
668 .product_name = "UM-880",
669 .ifnum = 0,
670 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100671 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700672 .out_cables = 0x01ff,
673 .in_cables = 0x01ff
674 }
675 }
676},
677{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200678 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700679 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100680 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700681 .vendor_name = "EDIROL",
682 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200683 .ifnum = QUIRK_ANY_INTERFACE,
684 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100685 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200686 {
687 .ifnum = 0,
688 .type = QUIRK_IGNORE_INTERFACE
689 },
690 {
691 .ifnum = 1,
692 .type = QUIRK_IGNORE_INTERFACE
693 },
694 {
695 .ifnum = 2,
696 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100697 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200698 .out_cables = 0x000f,
699 .in_cables = 0x000f
700 }
701 },
702 {
703 .ifnum = -1
704 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700705 }
706 }
707},
708{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200709 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700710 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100711 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700712 .vendor_name = "Roland",
713 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200714 .ifnum = QUIRK_ANY_INTERFACE,
715 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100716 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200717 {
718 .ifnum = 0,
719 .type = QUIRK_IGNORE_INTERFACE
720 },
721 {
722 .ifnum = 1,
723 .type = QUIRK_IGNORE_INTERFACE
724 },
725 {
726 .ifnum = 2,
727 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100728 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200729 .out_cables = 0x0001,
730 .in_cables = 0x0001
731 }
732 },
733 {
734 .ifnum = -1
735 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700736 }
737 }
738},
739{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200740 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700741 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100742 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700743 .vendor_name = "Roland",
744 .product_name = "V-SYNTH",
745 .ifnum = 0,
746 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100747 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700748 .out_cables = 0x0001,
749 .in_cables = 0x0001
750 }
751 }
752},
753{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200754 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700755 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100756 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700757 .vendor_name = "EDIROL",
758 .product_name = "UM-550",
759 .ifnum = 0,
760 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100761 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700762 .out_cables = 0x003f,
763 .in_cables = 0x003f
764 }
765 }
766},
767{
768 /*
769 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
770 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
771 * and no MIDI.
772 */
773 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100774 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700775 .vendor_name = "EDIROL",
776 .product_name = "UA-20",
777 .ifnum = QUIRK_ANY_INTERFACE,
778 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100779 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700780 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100781 .ifnum = 0,
782 .type = QUIRK_IGNORE_INTERFACE
783 },
784 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700785 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100786 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
787 .data = & (const struct audioformat) {
788 .format = SNDRV_PCM_FORMAT_S24_3LE,
789 .channels = 2,
790 .iface = 1,
791 .altsetting = 1,
792 .altset_idx = 1,
793 .attributes = 0,
794 .endpoint = 0x01,
795 .ep_attr = 0x01,
796 .rates = SNDRV_PCM_RATE_CONTINUOUS,
797 .rate_min = 44100,
798 .rate_max = 44100,
799 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700800 },
801 {
802 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100803 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
804 .data = & (const struct audioformat) {
805 .format = SNDRV_PCM_FORMAT_S24_3LE,
806 .channels = 2,
807 .iface = 2,
808 .altsetting = 1,
809 .altset_idx = 1,
810 .attributes = 0,
811 .endpoint = 0x82,
812 .ep_attr = 0x01,
813 .rates = SNDRV_PCM_RATE_CONTINUOUS,
814 .rate_min = 44100,
815 .rate_max = 44100,
816 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700817 },
818 {
819 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100820 .type = QUIRK_MIDI_FIXED_ENDPOINT,
821 .data = & (const struct snd_usb_midi_endpoint_info) {
822 .out_cables = 0x0001,
823 .in_cables = 0x0001
824 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700825 },
826 {
827 .ifnum = -1
828 }
829 }
830 }
831},
832{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200833 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700834 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100835 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700836 .vendor_name = "EDIROL",
837 .product_name = "SD-20",
838 .ifnum = 0,
839 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100840 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700841 .out_cables = 0x0003,
842 .in_cables = 0x0007
843 }
844 }
845},
846{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200847 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700848 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100849 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700850 .vendor_name = "EDIROL",
851 .product_name = "SD-80",
852 .ifnum = 0,
853 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100854 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700855 .out_cables = 0x000f,
856 .in_cables = 0x000f
857 }
858 }
859},
860{ /*
861 * This quirk is for the "Advanced" modes of the Edirol UA-700.
862 * If the sample format switch is not in an advanced setting, the
863 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
864 * but offers only 16-bit PCM and no MIDI.
865 */
866 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100867 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700868 .vendor_name = "EDIROL",
869 .product_name = "UA-700",
870 .ifnum = QUIRK_ANY_INTERFACE,
871 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100872 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700873 {
874 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200875 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700876 },
877 {
878 .ifnum = 2,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200879 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700880 },
881 {
882 .ifnum = 3,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +0200883 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700884 },
885 {
886 .ifnum = -1
887 }
888 }
889 }
890},
891{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200892 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100894 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700895 .vendor_name = "Roland",
896 .product_name = "XV-2020",
897 .ifnum = 0,
898 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100899 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700900 .out_cables = 0x0001,
901 .in_cables = 0x0001
902 }
903 }
904},
905{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200906 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700907 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100908 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700909 .vendor_name = "Roland",
910 .product_name = "VariOS",
911 .ifnum = 0,
912 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100913 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700914 .out_cables = 0x0007,
915 .in_cables = 0x0007
916 }
917 }
918},
919{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200920 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700921 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100922 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700923 .vendor_name = "EDIROL",
924 .product_name = "PCR",
925 .ifnum = 0,
926 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100927 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700928 .out_cables = 0x0003,
929 .in_cables = 0x0007
930 }
931 }
932},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200933 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700934{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200935 /*
936 * Has ID 0x0038 when not in "Advanced Driver" mode;
937 * later revisions use IDs 0x0054 and 0x00a2.
938 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700939 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100940 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700941 .vendor_name = "Roland",
942 .product_name = "Digital Piano",
943 .ifnum = 0,
944 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100945 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700946 .out_cables = 0x0001,
947 .in_cables = 0x0001
948 }
949 }
950},
951{
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200952 /*
953 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
954 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
955 * and no MIDI.
956 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700957 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100958 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700959 .vendor_name = "BOSS",
960 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200961 .ifnum = QUIRK_ANY_INTERFACE,
962 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100963 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200964 {
965 .ifnum = 1,
966 .type = QUIRK_AUDIO_STANDARD_INTERFACE
967 },
968 {
969 .ifnum = 2,
970 .type = QUIRK_AUDIO_STANDARD_INTERFACE
971 },
972 {
973 .ifnum = 3,
974 .type = QUIRK_MIDI_STANDARD_INTERFACE
975 },
976 {
977 .ifnum = -1
978 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700979 }
980 }
981},
982{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200983 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700984 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100985 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700986 .vendor_name = "Roland",
987 .product_name = "GI-20",
988 .ifnum = 0,
989 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100990 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700991 .out_cables = 0x0001,
992 .in_cables = 0x0001
993 }
994 }
995},
996{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200997 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700998 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100999 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001000 .vendor_name = "Roland",
1001 .product_name = "RS-70",
1002 .ifnum = 0,
1003 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001004 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001005 .out_cables = 0x0001,
1006 .in_cables = 0x0001
1007 }
1008 }
1009},
1010{
1011 USB_DEVICE(0x0582, 0x0044),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001012 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001013 .vendor_name = "Roland",
1014 .product_name = "UA-1000",
1015 .ifnum = QUIRK_ANY_INTERFACE,
1016 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001017 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001018 {
1019 .ifnum = 1,
1020 .type = QUIRK_AUDIO_EDIROL_UA1000
1021 },
1022 {
1023 .ifnum = 2,
1024 .type = QUIRK_AUDIO_EDIROL_UA1000
1025 },
1026 {
1027 .ifnum = 3,
1028 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001029 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001030 .out_cables = 0x0003,
1031 .in_cables = 0x0003
1032 }
1033 },
1034 {
1035 .ifnum = -1
1036 }
1037 }
1038 }
1039},
1040{
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001041 /* has ID 0x0049 when not in "Advanced Driver" mode */
1042 USB_DEVICE(0x0582, 0x0047),
1043 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1044 /* .vendor_name = "EDIROL", */
1045 /* .product_name = "UR-80", */
1046 .ifnum = QUIRK_ANY_INTERFACE,
1047 .type = QUIRK_COMPOSITE,
1048 .data = (const struct snd_usb_audio_quirk[]) {
1049 /* in the 96 kHz modes, only interface 1 is there */
1050 {
1051 .ifnum = 1,
1052 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1053 },
1054 {
1055 .ifnum = 2,
1056 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1057 },
1058 {
1059 .ifnum = -1
1060 }
1061 }
1062 }
1063},
1064{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001065 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001066 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001067 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001068 /* .vendor_name = "EDIROL", */
1069 /* .product_name = "UR-80", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001070 .ifnum = 0,
1071 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001072 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001073 .out_cables = 0x0003,
1074 .in_cables = 0x0007
1075 }
1076 }
1077},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001078 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001079{
Clemens Ladischf38cc312007-02-09 20:52:55 +01001080 /* has ID 0x004e when not in "Advanced Driver" mode */
1081 USB_DEVICE(0x0582, 0x004c),
1082 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1083 .vendor_name = "EDIROL",
1084 .product_name = "PCR-A",
1085 .ifnum = QUIRK_ANY_INTERFACE,
1086 .type = QUIRK_COMPOSITE,
1087 .data = (const struct snd_usb_audio_quirk[]) {
1088 {
1089 .ifnum = 1,
1090 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1091 },
1092 {
1093 .ifnum = 2,
1094 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1095 },
1096 {
1097 .ifnum = -1
1098 }
1099 }
1100 }
1101},
1102{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001103 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001104 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001105 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001106 .vendor_name = "EDIROL",
1107 .product_name = "PCR-A",
1108 .ifnum = 0,
1109 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001110 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001111 .out_cables = 0x0003,
1112 .in_cables = 0x0007
1113 }
1114 }
1115},
1116{
1117 /*
1118 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1119 * is standard compliant, but has only 16-bit PCM.
1120 */
1121 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001122 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001123 .vendor_name = "EDIROL",
1124 .product_name = "UA-3FX",
1125 .ifnum = QUIRK_ANY_INTERFACE,
1126 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001127 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001128 {
1129 .ifnum = 1,
1130 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1131 },
1132 {
1133 .ifnum = 2,
1134 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1135 },
1136 {
1137 .ifnum = -1
1138 }
1139 }
1140 }
1141},
1142{
1143 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001144 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001145 .vendor_name = "EDIROL",
1146 .product_name = "UM-1SX",
1147 .ifnum = 0,
1148 .type = QUIRK_MIDI_STANDARD_INTERFACE
1149 }
1150},
Takashi Iwaif1676842007-07-09 10:39:44 +02001151{
1152 USB_DEVICE(0x0582, 0x0060),
1153 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1154 .vendor_name = "Roland",
1155 .product_name = "EXR Series",
1156 .ifnum = 0,
1157 .type = QUIRK_MIDI_STANDARD_INTERFACE
1158 }
1159},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001160{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001161 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001162 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001163 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001164 .vendor_name = "EDIROL",
1165 .product_name = "PCR-1",
1166 .ifnum = 0,
1167 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001168 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001169 .out_cables = 0x0001,
1170 .in_cables = 0x0003
1171 }
1172 }
1173},
1174{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001175 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001176 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001177 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001178 .vendor_name = "Roland",
1179 .product_name = "SP-606",
1180 .ifnum = 3,
1181 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001182 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001183 .out_cables = 0x0001,
1184 .in_cables = 0x0001
1185 }
1186 }
1187},
1188{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001189 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001190 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001191 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001192 .vendor_name = "Roland",
1193 .product_name = "FANTOM-X",
1194 .ifnum = 0,
1195 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001196 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001197 .out_cables = 0x0001,
1198 .in_cables = 0x0001
1199 }
1200 }
1201},
1202{ /*
1203 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1204 * If the switch is not in an advanced setting, the UA-25 has
1205 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1206 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1207 */
1208 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001209 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001210 .vendor_name = "EDIROL",
1211 .product_name = "UA-25",
1212 .ifnum = QUIRK_ANY_INTERFACE,
1213 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001214 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001215 {
1216 .ifnum = 0,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001217 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001218 },
1219 {
1220 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001221 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001222 },
1223 {
1224 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001225 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001226 },
1227 {
1228 .ifnum = -1
1229 }
1230 }
1231 }
1232},
1233{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001234 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001235 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001236 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001237 .vendor_name = "BOSS",
1238 .product_name = "DR-880",
1239 .ifnum = 0,
1240 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001241 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001242 .out_cables = 0x0001,
1243 .in_cables = 0x0001
1244 }
1245 }
1246},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001247{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001248 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001249 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001250 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001251 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001252 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001253 .ifnum = 0,
1254 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001255 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001256 .out_cables = 0x0003,
1257 .in_cables = 0x0003
1258 }
1259 }
1260},
Bjoern Fayd0b0fac2007-02-05 12:27:21 +01001261/* Roland UA-101 in High-Speed Mode only */
1262{
1263 USB_DEVICE(0x0582, 0x007d),
1264 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1265 .vendor_name = "Roland",
1266 .product_name = "UA-101",
1267 .ifnum = QUIRK_ANY_INTERFACE,
1268 .type = QUIRK_COMPOSITE,
1269 .data = (const struct snd_usb_audio_quirk[]) {
1270 {
1271 .ifnum = 0,
1272 .type = QUIRK_AUDIO_EDIROL_UA101
1273 },
1274 {
1275 .ifnum = 1,
1276 .type = QUIRK_AUDIO_EDIROL_UA101
1277 },
1278 {
1279 .ifnum = 2,
1280 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1281 .data = & (const struct snd_usb_midi_endpoint_info) {
1282 .out_cables = 0x0001,
1283 .in_cables = 0x0001
1284 }
1285 },
1286 {
1287 .ifnum = -1
1288 }
1289 }
1290 }
1291},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001292{
1293 /* has ID 0x0081 when not in "Advanced Driver" mode */
1294 USB_DEVICE(0x0582, 0x0080),
1295 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1296 .vendor_name = "Roland",
1297 .product_name = "G-70",
1298 .ifnum = 0,
1299 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1300 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001301 .out_cables = 0x0001,
1302 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001303 }
1304 }
1305},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001306 /* TODO: add Roland V-SYNTH XT support */
1307 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001308{
1309 /* has ID 0x008c when not in "Advanced Driver" mode */
1310 USB_DEVICE(0x0582, 0x008b),
1311 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1312 .vendor_name = "EDIROL",
1313 .product_name = "PC-50",
1314 .ifnum = 0,
1315 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1316 .data = & (const struct snd_usb_midi_endpoint_info) {
1317 .out_cables = 0x0001,
1318 .in_cables = 0x0001
1319 }
1320 }
1321},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001322 /* TODO: add Edirol PC-80 support */
Takashi Iwai9b0d39b2007-08-10 15:07:06 +02001323{
1324 USB_DEVICE(0x0582, 0x0096),
1325 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1326 .vendor_name = "EDIROL",
1327 .product_name = "UA-1EX",
1328 .ifnum = QUIRK_ANY_INTERFACE,
1329 .type = QUIRK_COMPOSITE,
1330 .data = (const struct snd_usb_audio_quirk[]) {
1331 {
1332 .ifnum = 0,
1333 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1334 },
1335 {
1336 .ifnum = 1,
1337 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1338 },
1339 {
1340 .ifnum = -1
1341 }
1342 }
1343 }
1344},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001345{
1346 USB_DEVICE(0x0582, 0x009a),
1347 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1348 .vendor_name = "EDIROL",
1349 .product_name = "UM-3EX",
1350 .ifnum = 0,
1351 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1352 .data = & (const struct snd_usb_midi_endpoint_info) {
1353 .out_cables = 0x000f,
1354 .in_cables = 0x000f
1355 }
1356 }
1357},
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001358{
1359 /*
1360 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
1361 * is standard compliant, but has only 16-bit PCM and no MIDI.
1362 */
1363 USB_DEVICE(0x0582, 0x00a3),
1364 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1365 .vendor_name = "EDIROL",
1366 .product_name = "UA-4FX",
1367 .ifnum = QUIRK_ANY_INTERFACE,
1368 .type = QUIRK_COMPOSITE,
1369 .data = (const struct snd_usb_audio_quirk[]) {
1370 {
1371 .ifnum = 0,
1372 .type = QUIRK_AUDIO_EDIROL_UAXX
1373 },
1374 {
1375 .ifnum = 1,
1376 .type = QUIRK_AUDIO_EDIROL_UAXX
1377 },
1378 {
1379 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001380 .type = QUIRK_AUDIO_EDIROL_UAXX
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001381 },
1382 {
1383 .ifnum = -1
1384 }
1385 }
1386 }
1387},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001388 /* TODO: add Edirol MD-P1 support */
Carlo Beccaria87823092007-07-03 08:04:25 +02001389{
Clemens Ladisch25a47b62008-02-25 11:04:19 +01001390 USB_DEVICE(0x582, 0x00a6),
1391 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1392 .vendor_name = "Roland",
1393 .product_name = "Juno-G",
1394 .ifnum = 0,
1395 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1396 .data = & (const struct snd_usb_midi_endpoint_info) {
1397 .out_cables = 0x0001,
1398 .in_cables = 0x0001
1399 }
1400 }
1401},
1402{
Carlo Beccaria87823092007-07-03 08:04:25 +02001403 /* Roland SH-201 */
1404 USB_DEVICE(0x0582, 0x00ad),
1405 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1406 .vendor_name = "Roland",
1407 .product_name = "SH-201",
1408 .ifnum = QUIRK_ANY_INTERFACE,
1409 .type = QUIRK_COMPOSITE,
1410 .data = (const struct snd_usb_audio_quirk[]) {
1411 {
1412 .ifnum = 0,
1413 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1414 },
1415 {
1416 .ifnum = 1,
1417 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1418 },
1419 {
1420 .ifnum = 2,
1421 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1422 .data = & (const struct snd_usb_midi_endpoint_info) {
1423 .out_cables = 0x0001,
1424 .in_cables = 0x0001
1425 }
1426 },
1427 {
1428 .ifnum = -1
1429 }
1430 }
1431 }
1432},
Chris Mennie62b12632008-05-19 16:21:33 +02001433{
1434 /* Roland SonicCell */
1435 USB_DEVICE(0x0582, 0x00c2),
1436 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1437 .vendor_name = "Roland",
1438 .product_name = "SonicCell",
1439 .ifnum = QUIRK_ANY_INTERFACE,
1440 .type = QUIRK_COMPOSITE,
1441 .data = (const struct snd_usb_audio_quirk[]) {
1442 {
1443 .ifnum = 0,
1444 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1445 },
1446 {
1447 .ifnum = 1,
1448 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1449 },
1450 {
1451 .ifnum = 2,
1452 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1453 .data = & (const struct snd_usb_midi_endpoint_info) {
1454 .out_cables = 0x0001,
1455 .in_cables = 0x0001
1456 }
1457 },
1458 {
1459 .ifnum = -1
1460 }
1461 }
1462 }
1463},
Clemens Ladischb38addb2008-07-28 10:19:39 +02001464{
1465 /* BOSS GT-10 */
1466 USB_DEVICE(0x0582, 0x00da),
1467 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1468 .ifnum = QUIRK_ANY_INTERFACE,
1469 .type = QUIRK_COMPOSITE,
1470 .data = (const struct snd_usb_audio_quirk[]) {
1471 {
1472 .ifnum = 0,
1473 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1474 },
1475 {
1476 .ifnum = 1,
1477 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1478 },
1479 {
1480 .ifnum = 2,
1481 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1482 .data = & (const struct snd_usb_midi_endpoint_info) {
1483 .out_cables = 0x0001,
1484 .in_cables = 0x0001
1485 }
1486 },
1487 {
1488 .ifnum = -1
1489 }
1490 }
1491 }
1492},
Takashi Iwaie2736262008-10-20 16:07:45 +02001493{
1494 /* Advanced modes of the Edirol UA-25EX.
1495 * For the standard mode, UA-25EX has ID 0582:00e7, which
1496 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1497 */
1498 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
1499 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1500 .vendor_name = "EDIROL",
1501 .product_name = "UA-25EX",
1502 .ifnum = QUIRK_ANY_INTERFACE,
1503 .type = QUIRK_COMPOSITE,
1504 .data = (const struct snd_usb_audio_quirk[]) {
1505 {
1506 .ifnum = 0,
1507 .type = QUIRK_AUDIO_EDIROL_UAXX
1508 },
1509 {
1510 .ifnum = 1,
1511 .type = QUIRK_AUDIO_EDIROL_UAXX
1512 },
1513 {
1514 .ifnum = 2,
1515 .type = QUIRK_AUDIO_EDIROL_UAXX
1516 },
1517 {
1518 .ifnum = -1
1519 }
1520 }
1521 }
1522},
Chris Mennie62b12632008-05-19 16:21:33 +02001523
Clemens Ladischa25f1752005-10-05 13:23:19 +02001524/* Guillemot devices */
1525{
1526 /*
1527 * This is for the "Windows Edition" where the external MIDI ports are
1528 * the only MIDI ports; the control data is reported through HID
1529 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1530 * compliant USB MIDI ports for external MIDI and controls.
1531 */
1532 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001533 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001534 .vendor_name = "Hercules",
1535 .product_name = "DJ Console (WE)",
1536 .ifnum = 4,
1537 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001538 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001539 .out_cables = 0x0001,
1540 .in_cables = 0x0001
1541 }
1542 }
1543},
1544
Linus Torvalds1da177e2005-04-16 15:20:36 -07001545/* Midiman/M-Audio devices */
1546{
1547 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001548 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001549 .vendor_name = "M-Audio",
1550 .product_name = "MidiSport 2x2",
1551 .ifnum = QUIRK_ANY_INTERFACE,
1552 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001553 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001554 .out_cables = 0x0003,
1555 .in_cables = 0x0003
1556 }
1557 }
1558},
1559{
1560 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001561 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001562 .vendor_name = "M-Audio",
1563 .product_name = "MidiSport 1x1",
1564 .ifnum = QUIRK_ANY_INTERFACE,
1565 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001566 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001567 .out_cables = 0x0001,
1568 .in_cables = 0x0001
1569 }
1570 }
1571},
1572{
1573 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001574 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001575 .vendor_name = "M-Audio",
1576 .product_name = "Keystation",
1577 .ifnum = QUIRK_ANY_INTERFACE,
1578 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001579 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001580 .out_cables = 0x0001,
1581 .in_cables = 0x0001
1582 }
1583 }
1584},
1585{
1586 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001587 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001588 .vendor_name = "M-Audio",
1589 .product_name = "MidiSport 4x4",
1590 .ifnum = QUIRK_ANY_INTERFACE,
1591 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001592 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001593 .out_cables = 0x000f,
1594 .in_cables = 0x000f
1595 }
1596 }
1597},
1598{
1599 /*
1600 * For hardware revision 1.05; in the later revisions (1.10 and
1601 * 1.21), 0x1031 is the ID for the device without firmware.
1602 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1603 */
1604 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001605 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001606 .vendor_name = "M-Audio",
1607 .product_name = "MidiSport 8x8",
1608 .ifnum = QUIRK_ANY_INTERFACE,
1609 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001610 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001611 .out_cables = 0x01ff,
1612 .in_cables = 0x01ff
1613 }
1614 }
1615},
1616{
1617 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001618 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001619 .vendor_name = "M-Audio",
1620 .product_name = "MidiSport 8x8",
1621 .ifnum = QUIRK_ANY_INTERFACE,
1622 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001623 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001624 .out_cables = 0x01ff,
1625 .in_cables = 0x01ff
1626 }
1627 }
1628},
1629{
1630 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001631 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001632 .vendor_name = "M-Audio",
1633 .product_name = "MidiSport 2x4",
1634 .ifnum = QUIRK_ANY_INTERFACE,
1635 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001636 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001637 .out_cables = 0x000f,
1638 .in_cables = 0x0003
1639 }
1640 }
1641},
1642{
1643 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001644 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001645 .vendor_name = "M-Audio",
1646 .product_name = "Quattro",
1647 .ifnum = QUIRK_ANY_INTERFACE,
1648 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001649 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001650 /*
1651 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1652 * and share endpoints with the other interfaces.
1653 * Ignore them. The other interfaces can do 24 bits,
1654 * but captured samples are big-endian (see usbaudio.c).
1655 */
1656 {
1657 .ifnum = 0,
1658 .type = QUIRK_IGNORE_INTERFACE
1659 },
1660 {
1661 .ifnum = 1,
1662 .type = QUIRK_IGNORE_INTERFACE
1663 },
1664 {
1665 .ifnum = 2,
1666 .type = QUIRK_IGNORE_INTERFACE
1667 },
1668 {
1669 .ifnum = 3,
1670 .type = QUIRK_IGNORE_INTERFACE
1671 },
1672 {
1673 .ifnum = 4,
1674 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1675 },
1676 {
1677 .ifnum = 5,
1678 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1679 },
1680 {
1681 .ifnum = 6,
1682 .type = QUIRK_IGNORE_INTERFACE
1683 },
1684 {
1685 .ifnum = 7,
1686 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1687 },
1688 {
1689 .ifnum = 8,
1690 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1691 },
1692 {
1693 .ifnum = 9,
1694 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001695 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001696 .out_cables = 0x0001,
1697 .in_cables = 0x0001
1698 }
1699 },
1700 {
1701 .ifnum = -1
1702 }
1703 }
1704 }
1705},
1706{
1707 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001708 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001709 .vendor_name = "M-Audio",
1710 .product_name = "AudioPhile",
1711 .ifnum = 6,
1712 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001713 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001714 .out_cables = 0x0001,
1715 .in_cables = 0x0001
1716 }
1717 }
1718},
1719{
1720 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001721 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001722 .vendor_name = "M-Audio",
1723 .product_name = "Ozone",
1724 .ifnum = 3,
1725 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001726 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001727 .out_cables = 0x0001,
1728 .in_cables = 0x0001
1729 }
1730 }
1731},
1732{
1733 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001734 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001735 .vendor_name = "M-Audio",
1736 .product_name = "OmniStudio",
1737 .ifnum = QUIRK_ANY_INTERFACE,
1738 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001739 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001740 {
1741 .ifnum = 0,
1742 .type = QUIRK_IGNORE_INTERFACE
1743 },
1744 {
1745 .ifnum = 1,
1746 .type = QUIRK_IGNORE_INTERFACE
1747 },
1748 {
1749 .ifnum = 2,
1750 .type = QUIRK_IGNORE_INTERFACE
1751 },
1752 {
1753 .ifnum = 3,
1754 .type = QUIRK_IGNORE_INTERFACE
1755 },
1756 {
1757 .ifnum = 4,
1758 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1759 },
1760 {
1761 .ifnum = 5,
1762 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1763 },
1764 {
1765 .ifnum = 6,
1766 .type = QUIRK_IGNORE_INTERFACE
1767 },
1768 {
1769 .ifnum = 7,
1770 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1771 },
1772 {
1773 .ifnum = 8,
1774 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1775 },
1776 {
1777 .ifnum = 9,
1778 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001779 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001780 .out_cables = 0x0001,
1781 .in_cables = 0x0001
1782 }
1783 },
1784 {
1785 .ifnum = -1
1786 }
1787 }
1788 }
1789},
Clemens Ladisch2ea547dc2007-09-17 09:33:17 +02001790{
1791 USB_DEVICE(0x0763, 0x2019),
1792 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1793 /* .vendor_name = "M-Audio", */
1794 /* .product_name = "Ozone Academic", */
1795 .ifnum = QUIRK_ANY_INTERFACE,
1796 .type = QUIRK_COMPOSITE,
1797 .data = & (const struct snd_usb_audio_quirk[]) {
1798 {
1799 .ifnum = 0,
1800 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1801 },
1802 {
1803 .ifnum = 1,
1804 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1805 },
1806 {
1807 .ifnum = 2,
1808 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1809 },
1810 {
1811 .ifnum = 3,
1812 .type = QUIRK_MIDI_MIDIMAN,
1813 .data = & (const struct snd_usb_midi_endpoint_info) {
1814 .out_cables = 0x0001,
1815 .in_cables = 0x0001
1816 }
1817 },
1818 {
1819 .ifnum = -1
1820 }
1821 }
1822 }
1823},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001824
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001825/* Casio devices */
1826{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01001827 USB_DEVICE(0x07cf, 0x6801),
1828 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1829 .vendor_name = "Casio",
1830 .product_name = "PL-40R",
1831 .ifnum = 0,
1832 .type = QUIRK_MIDI_YAMAHA
1833 }
1834},
1835{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001836 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001837 USB_DEVICE(0x07cf, 0x6802),
1838 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1839 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001840 .product_name = "Keyboard",
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001841 .ifnum = 0,
1842 .type = QUIRK_MIDI_YAMAHA
1843 }
1844},
1845
Linus Torvalds1da177e2005-04-16 15:20:36 -07001846/* Mark of the Unicorn devices */
1847{
1848 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02001849 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1850 USB_DEVICE_ID_MATCH_PRODUCT |
1851 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1852 .idVendor = 0x07fd,
1853 .idProduct = 0x0001,
1854 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001855 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001856 .vendor_name = "MOTU",
1857 .product_name = "Fastlane",
1858 .ifnum = QUIRK_ANY_INTERFACE,
1859 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001860 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001861 {
1862 .ifnum = 0,
Clemens Ladisch6155aff2005-07-04 09:20:42 +02001863 .type = QUIRK_MIDI_RAW
Linus Torvalds1da177e2005-04-16 15:20:36 -07001864 },
1865 {
1866 .ifnum = 1,
1867 .type = QUIRK_IGNORE_INTERFACE
1868 },
1869 {
1870 .ifnum = -1
1871 }
1872 }
1873 }
1874},
1875
Linus Torvalds1da177e2005-04-16 15:20:36 -07001876/* Emagic devices */
1877{
1878 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001879 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001880 .vendor_name = "Emagic",
1881 /* .product_name = "Unitor8", */
1882 .ifnum = 2,
1883 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001884 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001885 .out_cables = 0x80ff,
1886 .in_cables = 0x80ff
1887 }
1888 }
1889},
1890{
1891 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001892 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001893 .vendor_name = "Emagic",
1894 /* .product_name = "AMT8", */
1895 .ifnum = 2,
1896 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001897 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001898 .out_cables = 0x80ff,
1899 .in_cables = 0x80ff
1900 }
1901 }
1902},
1903{
1904 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001905 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001906 .vendor_name = "Emagic",
1907 /* .product_name = "MT4", */
1908 .ifnum = 2,
1909 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001910 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001911 .out_cables = 0x800f,
1912 .in_cables = 0x8003
1913 }
1914 }
1915},
1916
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001917/* TerraTec devices */
1918{
1919 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001920 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001921 .vendor_name = "TerraTec",
1922 .product_name = "PHASE 26",
1923 .ifnum = 3,
1924 .type = QUIRK_MIDI_STANDARD_INTERFACE
1925 }
1926},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001927{
1928 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001929 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001930 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001931 .product_name = "PHASE 26",
1932 .ifnum = 3,
1933 .type = QUIRK_MIDI_STANDARD_INTERFACE
1934 }
1935},
Clemens Ladischb2b82292006-02-08 12:38:23 +01001936{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02001937 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
1938 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1939 .vendor_name = "TerraTec",
1940 .product_name = "PHASE 26",
1941 .ifnum = 3,
1942 .type = QUIRK_MIDI_STANDARD_INTERFACE
1943 }
1944},
1945{
Clemens Ladischb2b82292006-02-08 12:38:23 +01001946 USB_DEVICE(0x0ccd, 0x0035),
1947 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1948 .vendor_name = "Miditech",
1949 .product_name = "Play'n Roll",
1950 .ifnum = 0,
1951 .type = QUIRK_MIDI_CME
1952 }
1953},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001954
Mark Hills0f28ecd2007-08-10 08:01:54 +02001955/* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
1956{
1957 USB_DEVICE(0x103d, 0x0100),
1958 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1959 .vendor_name = "Stanton",
1960 .product_name = "ScratchAmp",
1961 .ifnum = QUIRK_NO_INTERFACE
1962 }
1963},
1964{
1965 USB_DEVICE(0x103d, 0x0101),
1966 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1967 .vendor_name = "Stanton",
1968 .product_name = "ScratchAmp",
1969 .ifnum = QUIRK_NO_INTERFACE
1970 }
1971},
1972
Linus Torvalds1da177e2005-04-16 15:20:36 -07001973/* Novation EMS devices */
1974{
1975 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001976 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001977 .vendor_name = "Novation",
1978 .product_name = "ReMOTE Audio/XStation",
1979 .ifnum = 4,
1980 .type = QUIRK_MIDI_NOVATION
1981 }
1982},
1983{
1984 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001985 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001986 .vendor_name = "Novation",
1987 .product_name = "Speedio",
1988 .ifnum = 3,
1989 .type = QUIRK_MIDI_NOVATION
1990 }
1991},
1992{
1993 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001994 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001995 .vendor_name = "Novation",
1996 .product_name = "ReMOTE25",
1997 .ifnum = 0,
1998 .type = QUIRK_MIDI_NOVATION
1999 }
2000},
2001
Mark Hills3a7788b2007-09-03 08:20:09 +02002002/* */
Clemens Ladisch15944802007-08-29 17:38:14 +02002003{
Mark Hills3a7788b2007-09-03 08:20:09 +02002004 /* aka. Serato Scratch Live DJ Box */
Clemens Ladisch15944802007-08-29 17:38:14 +02002005 USB_DEVICE(0x13e5, 0x0001),
Mark Hills3a7788b2007-09-03 08:20:09 +02002006 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2007 .vendor_name = "Rane",
2008 .product_name = "SL-1",
2009 .ifnum = QUIRK_NO_INTERFACE
Clemens Ladisch15944802007-08-29 17:38:14 +02002010 }
2011},
2012
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002013/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002014{
Clemens Ladischf38275f2005-07-25 16:17:29 +02002015 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002016 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002017 .vendor_name = "Miditech",
2018 .product_name = "Midistart-2",
2019 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002020 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002021 }
2022},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002023
2024/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002025{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002026 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002027 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002028 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002029 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002030 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002031 }
2032},
2033
2034{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002035 /*
2036 * Some USB MIDI devices don't have an audio control interface,
2037 * so we have to grab MIDI streaming interfaces here.
2038 */
2039 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
2040 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2041 .bInterfaceClass = USB_CLASS_AUDIO,
2042 .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002043 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002044 .ifnum = QUIRK_ANY_INTERFACE,
2045 .type = QUIRK_MIDI_STANDARD_INTERFACE
2046 }
2047},
2048
2049#undef USB_DEVICE_VENDOR_SPEC