blob: 5d8ef09b9dcc17d01f85d2ca27047a7faa30fe4f [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
Clemens Ladisch25a47b62008-02-25 11:04:19 +010042/* Creative/E-Mu devices */
43{
44 USB_DEVICE(0x041e, 0x3010),
45 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
46 .vendor_name = "Creative Labs",
47 .product_name = "Sound Blaster MP3+",
48 .ifnum = QUIRK_NO_INTERFACE
49 }
50},
51{
52 /* E-Mu 0202 USB */
53 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
54 .idVendor = 0x041e,
55 .idProduct = 0x3f02,
56 .bInterfaceClass = USB_CLASS_AUDIO,
57},
58{
59 /* E-Mu 0404 USB */
60 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
61 .idVendor = 0x041e,
62 .idProduct = 0x3f04,
63 .bInterfaceClass = USB_CLASS_AUDIO,
64},
Eran Tromer97c889a2008-09-26 01:07:03 -040065{
66 /* E-Mu Tracker Pre */
67 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
68 .idVendor = 0x041e,
69 .idProduct = 0x3f0a,
70 .bInterfaceClass = USB_CLASS_AUDIO,
71},
Clemens Ladisch25a47b62008-02-25 11:04:19 +010072
Linus Torvalds1da177e2005-04-16 15:20:36 -070073/*
Daniel Drakea9121452007-05-07 09:27:05 +020074 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
75 * class matches do not take effect without an explicit ID match.
76 */
77{
78 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
79 USB_DEVICE_ID_MATCH_INT_CLASS |
80 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
81 .idVendor = 0x046d,
Daniel Draked4170452007-05-10 08:52:19 +020082 .idProduct = 0x0850,
83 .bInterfaceClass = USB_CLASS_AUDIO,
84 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
85},
86{
87 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
88 USB_DEVICE_ID_MATCH_INT_CLASS |
89 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
90 .idVendor = 0x046d,
George Shapovalovc34532d2007-07-09 10:42:35 +020091 .idProduct = 0x08ae,
92 .bInterfaceClass = USB_CLASS_AUDIO,
93 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
94},
95{
96 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
97 USB_DEVICE_ID_MATCH_INT_CLASS |
98 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
99 .idVendor = 0x046d,
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200100 .idProduct = 0x08c6,
101 .bInterfaceClass = USB_CLASS_AUDIO,
102 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
103},
104{
105 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
106 USB_DEVICE_ID_MATCH_INT_CLASS |
107 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
108 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200109 .idProduct = 0x08f0,
110 .bInterfaceClass = USB_CLASS_AUDIO,
111 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
112},
113{
114 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
115 USB_DEVICE_ID_MATCH_INT_CLASS |
116 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
117 .idVendor = 0x046d,
Dawid Wrobel31127f22007-10-22 11:57:17 +0200118 .idProduct = 0x08f5,
119 .bInterfaceClass = USB_CLASS_AUDIO,
120 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
121},
122{
123 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
124 USB_DEVICE_ID_MATCH_INT_CLASS |
125 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
126 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200127 .idProduct = 0x08f6,
128 .bInterfaceClass = USB_CLASS_AUDIO,
129 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
130},
Signed-off-by: Peter Stokes5c6c9e62009-01-14 09:47:57 +0100131{
132 USB_DEVICE(0x046d, 0x0990),
133 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
134 .vendor_name = "Logitech, Inc.",
135 .product_name = "QuickCam Pro 9000",
136 .ifnum = QUIRK_NO_INTERFACE
137 }
138},
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100139
James Courtier-Dutton1e741902007-10-08 18:49:43 +0100140/*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141 * Yamaha devices
142 */
143
144#define YAMAHA_DEVICE(id, name) { \
145 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100146 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700147 .vendor_name = "Yamaha", \
148 .product_name = name, \
149 .ifnum = QUIRK_ANY_INTERFACE, \
150 .type = QUIRK_MIDI_YAMAHA \
151 } \
152}
153#define YAMAHA_INTERFACE(id, intf, name) { \
154 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100155 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156 .vendor_name = "Yamaha", \
157 .product_name = name, \
158 .ifnum = intf, \
159 .type = QUIRK_MIDI_YAMAHA \
160 } \
161}
162YAMAHA_DEVICE(0x1000, "UX256"),
163YAMAHA_DEVICE(0x1001, "MU1000"),
164YAMAHA_DEVICE(0x1002, "MU2000"),
165YAMAHA_DEVICE(0x1003, "MU500"),
166YAMAHA_INTERFACE(0x1004, 3, "UW500"),
167YAMAHA_DEVICE(0x1005, "MOTIF6"),
168YAMAHA_DEVICE(0x1006, "MOTIF7"),
169YAMAHA_DEVICE(0x1007, "MOTIF8"),
170YAMAHA_DEVICE(0x1008, "UX96"),
171YAMAHA_DEVICE(0x1009, "UX16"),
172YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
173YAMAHA_DEVICE(0x100c, "UC-MX"),
174YAMAHA_DEVICE(0x100d, "UC-KX"),
175YAMAHA_DEVICE(0x100e, "S08"),
176YAMAHA_DEVICE(0x100f, "CLP-150"),
177YAMAHA_DEVICE(0x1010, "CLP-170"),
178YAMAHA_DEVICE(0x1011, "P-250"),
179YAMAHA_DEVICE(0x1012, "TYROS"),
180YAMAHA_DEVICE(0x1013, "PF-500"),
181YAMAHA_DEVICE(0x1014, "S90"),
182YAMAHA_DEVICE(0x1015, "MOTIF-R"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100183YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700184YAMAHA_DEVICE(0x1017, "CVP-204"),
185YAMAHA_DEVICE(0x1018, "CVP-206"),
186YAMAHA_DEVICE(0x1019, "CVP-208"),
187YAMAHA_DEVICE(0x101a, "CVP-210"),
188YAMAHA_DEVICE(0x101b, "PSR-1100"),
189YAMAHA_DEVICE(0x101c, "PSR-2100"),
190YAMAHA_DEVICE(0x101d, "CLP-175"),
191YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100192YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700193YAMAHA_DEVICE(0x1020, "EZ-250i"),
194YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
195YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
196YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
197YAMAHA_DEVICE(0x1024, "CVP-301"),
198YAMAHA_DEVICE(0x1025, "CVP-303"),
199YAMAHA_DEVICE(0x1026, "CVP-305"),
200YAMAHA_DEVICE(0x1027, "CVP-307"),
201YAMAHA_DEVICE(0x1028, "CVP-309"),
202YAMAHA_DEVICE(0x1029, "CVP-309GP"),
203YAMAHA_DEVICE(0x102a, "PSR-1500"),
204YAMAHA_DEVICE(0x102b, "PSR-3000"),
205YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
206YAMAHA_DEVICE(0x1030, "PSR-295/293"),
207YAMAHA_DEVICE(0x1031, "DGX-205/203"),
208YAMAHA_DEVICE(0x1032, "DGX-305"),
209YAMAHA_DEVICE(0x1033, "DGX-505"),
210YAMAHA_DEVICE(0x1034, NULL),
211YAMAHA_DEVICE(0x1035, NULL),
212YAMAHA_DEVICE(0x1036, NULL),
213YAMAHA_DEVICE(0x1037, NULL),
214YAMAHA_DEVICE(0x1038, NULL),
215YAMAHA_DEVICE(0x1039, NULL),
216YAMAHA_DEVICE(0x103a, NULL),
217YAMAHA_DEVICE(0x103b, NULL),
218YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200219YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200220YAMAHA_DEVICE(0x103e, NULL),
221YAMAHA_DEVICE(0x103f, NULL),
222YAMAHA_DEVICE(0x1040, NULL),
223YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200224YAMAHA_DEVICE(0x1042, NULL),
225YAMAHA_DEVICE(0x1043, NULL),
226YAMAHA_DEVICE(0x1044, NULL),
227YAMAHA_DEVICE(0x1045, NULL),
Clemens Ladischc85ceac2008-07-10 11:01:06 +0200228YAMAHA_INTERFACE(0x104e, 0, NULL),
Clemens Ladisch83a1a392008-07-10 11:05:42 +0200229YAMAHA_DEVICE(0x104f, NULL),
230YAMAHA_DEVICE(0x1050, NULL),
231YAMAHA_DEVICE(0x1051, NULL),
232YAMAHA_DEVICE(0x1052, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700233YAMAHA_DEVICE(0x2000, "DGP-7"),
234YAMAHA_DEVICE(0x2001, "DGP-5"),
235YAMAHA_DEVICE(0x2002, NULL),
236YAMAHA_DEVICE(0x5000, "CS1D"),
237YAMAHA_DEVICE(0x5001, "DSP1D"),
238YAMAHA_DEVICE(0x5002, "DME32"),
239YAMAHA_DEVICE(0x5003, "DM2000"),
240YAMAHA_DEVICE(0x5004, "02R96"),
241YAMAHA_DEVICE(0x5005, "ACU16-C"),
242YAMAHA_DEVICE(0x5006, "NHB32-C"),
243YAMAHA_DEVICE(0x5007, "DM1000"),
244YAMAHA_DEVICE(0x5008, "01V96"),
245YAMAHA_DEVICE(0x5009, "SPX2000"),
246YAMAHA_DEVICE(0x500a, "PM5D"),
247YAMAHA_DEVICE(0x500b, "DME64N"),
248YAMAHA_DEVICE(0x500c, "DME24N"),
249YAMAHA_DEVICE(0x500d, NULL),
250YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200251YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700252YAMAHA_DEVICE(0x7000, "DTX"),
253YAMAHA_DEVICE(0x7010, "UB99"),
254#undef YAMAHA_DEVICE
255#undef YAMAHA_INTERFACE
256
257/*
258 * Roland/RolandED/Edirol/BOSS devices
259 */
260{
261 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100262 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263 .vendor_name = "Roland",
264 .product_name = "UA-100",
265 .ifnum = QUIRK_ANY_INTERFACE,
266 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100267 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700268 {
269 .ifnum = 0,
270 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
271 .data = & (const struct audioformat) {
272 .format = SNDRV_PCM_FORMAT_S16_LE,
273 .channels = 4,
274 .iface = 0,
275 .altsetting = 1,
276 .altset_idx = 1,
277 .attributes = 0,
278 .endpoint = 0x01,
279 .ep_attr = 0x09,
280 .rates = SNDRV_PCM_RATE_CONTINUOUS,
281 .rate_min = 44100,
282 .rate_max = 44100,
283 }
284 },
285 {
286 .ifnum = 1,
287 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
288 .data = & (const struct audioformat) {
289 .format = SNDRV_PCM_FORMAT_S16_LE,
290 .channels = 2,
291 .iface = 1,
292 .altsetting = 1,
293 .altset_idx = 1,
294 .attributes = EP_CS_ATTR_FILL_MAX,
295 .endpoint = 0x81,
296 .ep_attr = 0x05,
297 .rates = SNDRV_PCM_RATE_CONTINUOUS,
298 .rate_min = 44100,
299 .rate_max = 44100,
300 }
301 },
302 {
303 .ifnum = 2,
304 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100305 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700306 .out_cables = 0x0007,
307 .in_cables = 0x0007
308 }
309 },
310 {
311 .ifnum = -1
312 }
313 }
314 }
315},
316{
317 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100318 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700319 .vendor_name = "EDIROL",
320 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200321 .ifnum = QUIRK_ANY_INTERFACE,
322 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100323 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200324 {
325 .ifnum = 0,
326 .type = QUIRK_IGNORE_INTERFACE
327 },
328 {
329 .ifnum = 1,
330 .type = QUIRK_IGNORE_INTERFACE
331 },
332 {
333 .ifnum = 2,
334 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100335 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200336 .out_cables = 0x000f,
337 .in_cables = 0x000f
338 }
339 },
340 {
341 .ifnum = -1
342 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700343 }
344 }
345},
346{
347 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100348 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349 .vendor_name = "Roland",
350 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200351 .ifnum = QUIRK_ANY_INTERFACE,
352 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100353 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200354 {
355 .ifnum = 0,
356 .type = QUIRK_IGNORE_INTERFACE
357 },
358 {
359 .ifnum = 1,
360 .type = QUIRK_IGNORE_INTERFACE
361 },
362 {
363 .ifnum = 2,
364 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100365 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200366 .out_cables = 0x003f,
367 .in_cables = 0x003f
368 }
369 },
370 {
371 .ifnum = -1
372 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700373 }
374 }
375},
376{
377 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100378 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379 .vendor_name = "Roland",
380 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200381 .ifnum = QUIRK_ANY_INTERFACE,
382 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100383 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200384 {
385 .ifnum = 0,
386 .type = QUIRK_IGNORE_INTERFACE
387 },
388 {
389 .ifnum = 1,
390 .type = QUIRK_IGNORE_INTERFACE
391 },
392 {
393 .ifnum = 2,
394 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100395 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200396 .out_cables = 0x0005,
397 .in_cables = 0x0005
398 }
399 },
400 {
401 .ifnum = -1
402 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403 }
404 }
405},
406{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100407 /* Has ID 0x0099 when not in "Advanced Driver" mode.
408 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700409 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100410 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411 .vendor_name = "EDIROL",
412 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200413 .ifnum = QUIRK_ANY_INTERFACE,
414 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100415 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200416 {
417 .ifnum = 0,
418 .type = QUIRK_IGNORE_INTERFACE
419 },
420 {
421 .ifnum = 1,
422 .type = QUIRK_IGNORE_INTERFACE
423 },
424 {
425 .ifnum = 2,
426 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100427 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200428 .out_cables = 0x0003,
429 .in_cables = 0x0003
430 }
431 },
432 {
433 .ifnum = -1
434 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700435 }
436 }
437},
438{
439 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100440 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700441 .vendor_name = "Roland",
442 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200443 .ifnum = QUIRK_ANY_INTERFACE,
444 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100445 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200446 {
447 .ifnum = 0,
448 .type = QUIRK_IGNORE_INTERFACE
449 },
450 {
451 .ifnum = 1,
452 .type = QUIRK_IGNORE_INTERFACE
453 },
454 {
455 .ifnum = 2,
456 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100457 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200458 .out_cables = 0x0013,
459 .in_cables = 0x0013
460 }
461 },
462 {
463 .ifnum = -1
464 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700465 }
466 }
467},
468{
469 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100470 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700471 .vendor_name = "Roland",
472 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200473 .ifnum = QUIRK_ANY_INTERFACE,
474 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100475 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200476 {
477 .ifnum = 0,
478 .type = QUIRK_IGNORE_INTERFACE
479 },
480 {
481 .ifnum = 1,
482 .type = QUIRK_IGNORE_INTERFACE
483 },
484 {
485 .ifnum = 2,
486 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100487 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200488 .out_cables = 0x0001,
489 .in_cables = 0x0001
490 }
491 },
492 {
493 .ifnum = -1
494 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700495 }
496 }
497},
498{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100499 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700500 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100501 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700502 .vendor_name = "EDIROL",
503 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200504 .ifnum = QUIRK_ANY_INTERFACE,
505 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100506 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200507 {
508 .ifnum = 0,
509 .type = QUIRK_IGNORE_INTERFACE
510 },
511 {
512 .ifnum = 1,
513 .type = QUIRK_IGNORE_INTERFACE
514 },
515 {
516 .ifnum = 2,
517 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100518 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200519 .out_cables = 0x0001,
520 .in_cables = 0x0001
521 }
522 },
523 {
524 .ifnum = -1
525 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700526 }
527 }
528},
529{
530 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100531 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700532 .vendor_name = "Roland",
533 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200534 .ifnum = QUIRK_ANY_INTERFACE,
535 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100536 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200537 {
538 .ifnum = 0,
539 .type = QUIRK_IGNORE_INTERFACE
540 },
541 {
542 .ifnum = 1,
543 .type = QUIRK_IGNORE_INTERFACE
544 },
545 {
546 .ifnum = 2,
547 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100548 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200549 .out_cables = 0x0013,
550 .in_cables = 0x0013
551 }
552 },
553 {
554 .ifnum = -1
555 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700556 }
557 }
558},
559{
560 /* thanks to Emiliano Grilli <emillo@libero.it>
561 * for helping researching this data */
562 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100563 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700564 .vendor_name = "Roland",
565 .product_name = "SC-D70",
566 .ifnum = QUIRK_ANY_INTERFACE,
567 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100568 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700569 {
570 .ifnum = 0,
571 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
572 .data = & (const struct audioformat) {
573 .format = SNDRV_PCM_FORMAT_S24_3LE,
574 .channels = 2,
575 .iface = 0,
576 .altsetting = 1,
577 .altset_idx = 1,
578 .attributes = 0,
579 .endpoint = 0x01,
580 .ep_attr = 0x01,
581 .rates = SNDRV_PCM_RATE_CONTINUOUS,
582 .rate_min = 44100,
583 .rate_max = 44100,
584 }
585 },
586 {
587 .ifnum = 1,
588 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
589 .data = & (const struct audioformat) {
590 .format = SNDRV_PCM_FORMAT_S24_3LE,
591 .channels = 2,
592 .iface = 1,
593 .altsetting = 1,
594 .altset_idx = 1,
595 .attributes = 0,
596 .endpoint = 0x81,
597 .ep_attr = 0x01,
598 .rates = SNDRV_PCM_RATE_CONTINUOUS,
599 .rate_min = 44100,
600 .rate_max = 44100,
601 }
602 },
603 {
604 .ifnum = 2,
605 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100606 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700607 .out_cables = 0x0007,
608 .in_cables = 0x0007
609 }
610 },
611 {
612 .ifnum = -1
613 }
614 }
615 }
616},
617{ /*
618 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
619 * If the advanced mode switch at the back of the unit is off, the
620 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
621 * but offers only 16-bit PCM.
622 * In advanced mode, the UA-5 will output S24_3LE samples (two
623 * channels) at the rate indicated on the front switch, including
624 * the 96kHz sample rate.
625 */
626 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100627 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700628 .vendor_name = "EDIROL",
629 .product_name = "UA-5",
630 .ifnum = QUIRK_ANY_INTERFACE,
631 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100632 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700633 {
634 .ifnum = 1,
635 .type = QUIRK_AUDIO_STANDARD_INTERFACE
636 },
637 {
638 .ifnum = 2,
639 .type = QUIRK_AUDIO_STANDARD_INTERFACE
640 },
641 {
642 .ifnum = -1
643 }
644 }
645 }
646},
647{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200648 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700649 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100650 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700651 .vendor_name = "Roland",
652 .product_name = "XV-5050",
653 .ifnum = 0,
654 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100655 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700656 .out_cables = 0x0001,
657 .in_cables = 0x0001
658 }
659 }
660},
661{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200662 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700663 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100664 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700665 .vendor_name = "EDIROL",
666 .product_name = "UM-880",
667 .ifnum = 0,
668 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100669 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700670 .out_cables = 0x01ff,
671 .in_cables = 0x01ff
672 }
673 }
674},
675{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200676 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700677 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100678 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700679 .vendor_name = "EDIROL",
680 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200681 .ifnum = QUIRK_ANY_INTERFACE,
682 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100683 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200684 {
685 .ifnum = 0,
686 .type = QUIRK_IGNORE_INTERFACE
687 },
688 {
689 .ifnum = 1,
690 .type = QUIRK_IGNORE_INTERFACE
691 },
692 {
693 .ifnum = 2,
694 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100695 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200696 .out_cables = 0x000f,
697 .in_cables = 0x000f
698 }
699 },
700 {
701 .ifnum = -1
702 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700703 }
704 }
705},
706{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200707 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700708 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100709 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700710 .vendor_name = "Roland",
711 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200712 .ifnum = QUIRK_ANY_INTERFACE,
713 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100714 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200715 {
716 .ifnum = 0,
717 .type = QUIRK_IGNORE_INTERFACE
718 },
719 {
720 .ifnum = 1,
721 .type = QUIRK_IGNORE_INTERFACE
722 },
723 {
724 .ifnum = 2,
725 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100726 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200727 .out_cables = 0x0001,
728 .in_cables = 0x0001
729 }
730 },
731 {
732 .ifnum = -1
733 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700734 }
735 }
736},
737{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200738 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700739 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100740 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700741 .vendor_name = "Roland",
742 .product_name = "V-SYNTH",
743 .ifnum = 0,
744 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100745 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700746 .out_cables = 0x0001,
747 .in_cables = 0x0001
748 }
749 }
750},
751{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200752 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700753 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100754 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700755 .vendor_name = "EDIROL",
756 .product_name = "UM-550",
757 .ifnum = 0,
758 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100759 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700760 .out_cables = 0x003f,
761 .in_cables = 0x003f
762 }
763 }
764},
765{
766 /*
767 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
768 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
769 * and no MIDI.
770 */
771 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100772 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700773 .vendor_name = "EDIROL",
774 .product_name = "UA-20",
775 .ifnum = QUIRK_ANY_INTERFACE,
776 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100777 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700778 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100779 .ifnum = 0,
780 .type = QUIRK_IGNORE_INTERFACE
781 },
782 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700783 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100784 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
785 .data = & (const struct audioformat) {
786 .format = SNDRV_PCM_FORMAT_S24_3LE,
787 .channels = 2,
788 .iface = 1,
789 .altsetting = 1,
790 .altset_idx = 1,
791 .attributes = 0,
792 .endpoint = 0x01,
793 .ep_attr = 0x01,
794 .rates = SNDRV_PCM_RATE_CONTINUOUS,
795 .rate_min = 44100,
796 .rate_max = 44100,
797 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700798 },
799 {
800 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100801 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
802 .data = & (const struct audioformat) {
803 .format = SNDRV_PCM_FORMAT_S24_3LE,
804 .channels = 2,
805 .iface = 2,
806 .altsetting = 1,
807 .altset_idx = 1,
808 .attributes = 0,
809 .endpoint = 0x82,
810 .ep_attr = 0x01,
811 .rates = SNDRV_PCM_RATE_CONTINUOUS,
812 .rate_min = 44100,
813 .rate_max = 44100,
814 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700815 },
816 {
817 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100818 .type = QUIRK_MIDI_FIXED_ENDPOINT,
819 .data = & (const struct snd_usb_midi_endpoint_info) {
820 .out_cables = 0x0001,
821 .in_cables = 0x0001
822 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700823 },
824 {
825 .ifnum = -1
826 }
827 }
828 }
829},
830{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200831 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700832 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100833 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700834 .vendor_name = "EDIROL",
835 .product_name = "SD-20",
836 .ifnum = 0,
837 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100838 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700839 .out_cables = 0x0003,
840 .in_cables = 0x0007
841 }
842 }
843},
844{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200845 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700846 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100847 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700848 .vendor_name = "EDIROL",
849 .product_name = "SD-80",
850 .ifnum = 0,
851 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100852 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700853 .out_cables = 0x000f,
854 .in_cables = 0x000f
855 }
856 }
857},
858{ /*
859 * This quirk is for the "Advanced" modes of the Edirol UA-700.
860 * If the sample format switch is not in an advanced setting, the
861 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
862 * but offers only 16-bit PCM and no MIDI.
863 */
864 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100865 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700866 .vendor_name = "EDIROL",
867 .product_name = "UA-700",
868 .ifnum = QUIRK_ANY_INTERFACE,
869 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100870 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700871 {
872 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200873 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700874 },
875 {
876 .ifnum = 2,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200877 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700878 },
879 {
880 .ifnum = 3,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +0200881 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700882 },
883 {
884 .ifnum = -1
885 }
886 }
887 }
888},
889{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200890 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700891 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100892 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893 .vendor_name = "Roland",
894 .product_name = "XV-2020",
895 .ifnum = 0,
896 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100897 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700898 .out_cables = 0x0001,
899 .in_cables = 0x0001
900 }
901 }
902},
903{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200904 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700905 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100906 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700907 .vendor_name = "Roland",
908 .product_name = "VariOS",
909 .ifnum = 0,
910 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100911 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700912 .out_cables = 0x0007,
913 .in_cables = 0x0007
914 }
915 }
916},
917{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200918 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700919 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100920 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700921 .vendor_name = "EDIROL",
922 .product_name = "PCR",
923 .ifnum = 0,
924 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100925 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700926 .out_cables = 0x0003,
927 .in_cables = 0x0007
928 }
929 }
930},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200931 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700932{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200933 /*
934 * Has ID 0x0038 when not in "Advanced Driver" mode;
935 * later revisions use IDs 0x0054 and 0x00a2.
936 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700937 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100938 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700939 .vendor_name = "Roland",
940 .product_name = "Digital Piano",
941 .ifnum = 0,
942 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100943 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700944 .out_cables = 0x0001,
945 .in_cables = 0x0001
946 }
947 }
948},
949{
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200950 /*
951 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
952 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
953 * and no MIDI.
954 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700955 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100956 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700957 .vendor_name = "BOSS",
958 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200959 .ifnum = QUIRK_ANY_INTERFACE,
960 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100961 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200962 {
963 .ifnum = 1,
964 .type = QUIRK_AUDIO_STANDARD_INTERFACE
965 },
966 {
967 .ifnum = 2,
968 .type = QUIRK_AUDIO_STANDARD_INTERFACE
969 },
970 {
971 .ifnum = 3,
972 .type = QUIRK_MIDI_STANDARD_INTERFACE
973 },
974 {
975 .ifnum = -1
976 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700977 }
978 }
979},
980{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200981 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700982 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100983 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700984 .vendor_name = "Roland",
985 .product_name = "GI-20",
986 .ifnum = 0,
987 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100988 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700989 .out_cables = 0x0001,
990 .in_cables = 0x0001
991 }
992 }
993},
994{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200995 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700996 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100997 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700998 .vendor_name = "Roland",
999 .product_name = "RS-70",
1000 .ifnum = 0,
1001 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001002 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001003 .out_cables = 0x0001,
1004 .in_cables = 0x0001
1005 }
1006 }
1007},
1008{
1009 USB_DEVICE(0x0582, 0x0044),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001010 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001011 .vendor_name = "Roland",
1012 .product_name = "UA-1000",
1013 .ifnum = QUIRK_ANY_INTERFACE,
1014 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001015 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001016 {
1017 .ifnum = 1,
1018 .type = QUIRK_AUDIO_EDIROL_UA1000
1019 },
1020 {
1021 .ifnum = 2,
1022 .type = QUIRK_AUDIO_EDIROL_UA1000
1023 },
1024 {
1025 .ifnum = 3,
1026 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001027 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001028 .out_cables = 0x0003,
1029 .in_cables = 0x0003
1030 }
1031 },
1032 {
1033 .ifnum = -1
1034 }
1035 }
1036 }
1037},
1038{
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001039 /* has ID 0x0049 when not in "Advanced Driver" mode */
1040 USB_DEVICE(0x0582, 0x0047),
1041 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1042 /* .vendor_name = "EDIROL", */
1043 /* .product_name = "UR-80", */
1044 .ifnum = QUIRK_ANY_INTERFACE,
1045 .type = QUIRK_COMPOSITE,
1046 .data = (const struct snd_usb_audio_quirk[]) {
1047 /* in the 96 kHz modes, only interface 1 is there */
1048 {
1049 .ifnum = 1,
1050 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1051 },
1052 {
1053 .ifnum = 2,
1054 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1055 },
1056 {
1057 .ifnum = -1
1058 }
1059 }
1060 }
1061},
1062{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001063 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001064 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001065 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001066 /* .vendor_name = "EDIROL", */
1067 /* .product_name = "UR-80", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001068 .ifnum = 0,
1069 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001070 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001071 .out_cables = 0x0003,
1072 .in_cables = 0x0007
1073 }
1074 }
1075},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001076 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001077{
Clemens Ladischf38cc312007-02-09 20:52:55 +01001078 /* has ID 0x004e when not in "Advanced Driver" mode */
1079 USB_DEVICE(0x0582, 0x004c),
1080 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1081 .vendor_name = "EDIROL",
1082 .product_name = "PCR-A",
1083 .ifnum = QUIRK_ANY_INTERFACE,
1084 .type = QUIRK_COMPOSITE,
1085 .data = (const struct snd_usb_audio_quirk[]) {
1086 {
1087 .ifnum = 1,
1088 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1089 },
1090 {
1091 .ifnum = 2,
1092 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1093 },
1094 {
1095 .ifnum = -1
1096 }
1097 }
1098 }
1099},
1100{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001101 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001102 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001103 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001104 .vendor_name = "EDIROL",
1105 .product_name = "PCR-A",
1106 .ifnum = 0,
1107 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001108 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001109 .out_cables = 0x0003,
1110 .in_cables = 0x0007
1111 }
1112 }
1113},
1114{
1115 /*
1116 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1117 * is standard compliant, but has only 16-bit PCM.
1118 */
1119 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001120 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001121 .vendor_name = "EDIROL",
1122 .product_name = "UA-3FX",
1123 .ifnum = QUIRK_ANY_INTERFACE,
1124 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001125 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001126 {
1127 .ifnum = 1,
1128 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1129 },
1130 {
1131 .ifnum = 2,
1132 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1133 },
1134 {
1135 .ifnum = -1
1136 }
1137 }
1138 }
1139},
1140{
1141 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001142 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001143 .vendor_name = "EDIROL",
1144 .product_name = "UM-1SX",
1145 .ifnum = 0,
1146 .type = QUIRK_MIDI_STANDARD_INTERFACE
1147 }
1148},
Takashi Iwaif1676842007-07-09 10:39:44 +02001149{
1150 USB_DEVICE(0x0582, 0x0060),
1151 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1152 .vendor_name = "Roland",
1153 .product_name = "EXR Series",
1154 .ifnum = 0,
1155 .type = QUIRK_MIDI_STANDARD_INTERFACE
1156 }
1157},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001158{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001159 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001160 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001161 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001162 .vendor_name = "EDIROL",
1163 .product_name = "PCR-1",
1164 .ifnum = 0,
1165 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001166 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001167 .out_cables = 0x0001,
1168 .in_cables = 0x0003
1169 }
1170 }
1171},
1172{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001173 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001174 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001175 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001176 .vendor_name = "Roland",
1177 .product_name = "SP-606",
1178 .ifnum = 3,
1179 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001180 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001181 .out_cables = 0x0001,
1182 .in_cables = 0x0001
1183 }
1184 }
1185},
1186{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001187 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001188 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001189 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001190 .vendor_name = "Roland",
1191 .product_name = "FANTOM-X",
1192 .ifnum = 0,
1193 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001194 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001195 .out_cables = 0x0001,
1196 .in_cables = 0x0001
1197 }
1198 }
1199},
1200{ /*
1201 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1202 * If the switch is not in an advanced setting, the UA-25 has
1203 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1204 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1205 */
1206 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001207 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001208 .vendor_name = "EDIROL",
1209 .product_name = "UA-25",
1210 .ifnum = QUIRK_ANY_INTERFACE,
1211 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001212 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001213 {
1214 .ifnum = 0,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001215 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001216 },
1217 {
1218 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001219 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001220 },
1221 {
1222 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001223 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001224 },
1225 {
1226 .ifnum = -1
1227 }
1228 }
1229 }
1230},
1231{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001232 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001233 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001234 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001235 .vendor_name = "BOSS",
1236 .product_name = "DR-880",
1237 .ifnum = 0,
1238 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001239 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001240 .out_cables = 0x0001,
1241 .in_cables = 0x0001
1242 }
1243 }
1244},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001245{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001246 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001247 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001248 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001249 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001250 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001251 .ifnum = 0,
1252 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001253 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001254 .out_cables = 0x0003,
1255 .in_cables = 0x0003
1256 }
1257 }
1258},
Bjoern Fayd0b0fac2007-02-05 12:27:21 +01001259/* Roland UA-101 in High-Speed Mode only */
1260{
1261 USB_DEVICE(0x0582, 0x007d),
1262 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1263 .vendor_name = "Roland",
1264 .product_name = "UA-101",
1265 .ifnum = QUIRK_ANY_INTERFACE,
1266 .type = QUIRK_COMPOSITE,
1267 .data = (const struct snd_usb_audio_quirk[]) {
1268 {
1269 .ifnum = 0,
1270 .type = QUIRK_AUDIO_EDIROL_UA101
1271 },
1272 {
1273 .ifnum = 1,
1274 .type = QUIRK_AUDIO_EDIROL_UA101
1275 },
1276 {
1277 .ifnum = 2,
1278 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1279 .data = & (const struct snd_usb_midi_endpoint_info) {
1280 .out_cables = 0x0001,
1281 .in_cables = 0x0001
1282 }
1283 },
1284 {
1285 .ifnum = -1
1286 }
1287 }
1288 }
1289},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001290{
1291 /* has ID 0x0081 when not in "Advanced Driver" mode */
1292 USB_DEVICE(0x0582, 0x0080),
1293 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1294 .vendor_name = "Roland",
1295 .product_name = "G-70",
1296 .ifnum = 0,
1297 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1298 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001299 .out_cables = 0x0001,
1300 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001301 }
1302 }
1303},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001304 /* TODO: add Roland V-SYNTH XT support */
1305 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001306{
1307 /* has ID 0x008c when not in "Advanced Driver" mode */
1308 USB_DEVICE(0x0582, 0x008b),
1309 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1310 .vendor_name = "EDIROL",
1311 .product_name = "PC-50",
1312 .ifnum = 0,
1313 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1314 .data = & (const struct snd_usb_midi_endpoint_info) {
1315 .out_cables = 0x0001,
1316 .in_cables = 0x0001
1317 }
1318 }
1319},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001320 /* TODO: add Edirol PC-80 support */
Takashi Iwai9b0d39b2007-08-10 15:07:06 +02001321{
1322 USB_DEVICE(0x0582, 0x0096),
1323 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1324 .vendor_name = "EDIROL",
1325 .product_name = "UA-1EX",
1326 .ifnum = QUIRK_ANY_INTERFACE,
1327 .type = QUIRK_COMPOSITE,
1328 .data = (const struct snd_usb_audio_quirk[]) {
1329 {
1330 .ifnum = 0,
1331 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1332 },
1333 {
1334 .ifnum = 1,
1335 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1336 },
1337 {
1338 .ifnum = -1
1339 }
1340 }
1341 }
1342},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001343{
1344 USB_DEVICE(0x0582, 0x009a),
1345 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1346 .vendor_name = "EDIROL",
1347 .product_name = "UM-3EX",
1348 .ifnum = 0,
1349 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1350 .data = & (const struct snd_usb_midi_endpoint_info) {
1351 .out_cables = 0x000f,
1352 .in_cables = 0x000f
1353 }
1354 }
1355},
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001356{
1357 /*
1358 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
1359 * is standard compliant, but has only 16-bit PCM and no MIDI.
1360 */
1361 USB_DEVICE(0x0582, 0x00a3),
1362 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1363 .vendor_name = "EDIROL",
1364 .product_name = "UA-4FX",
1365 .ifnum = QUIRK_ANY_INTERFACE,
1366 .type = QUIRK_COMPOSITE,
1367 .data = (const struct snd_usb_audio_quirk[]) {
1368 {
1369 .ifnum = 0,
1370 .type = QUIRK_AUDIO_EDIROL_UAXX
1371 },
1372 {
1373 .ifnum = 1,
1374 .type = QUIRK_AUDIO_EDIROL_UAXX
1375 },
1376 {
1377 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001378 .type = QUIRK_AUDIO_EDIROL_UAXX
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001379 },
1380 {
1381 .ifnum = -1
1382 }
1383 }
1384 }
1385},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001386 /* TODO: add Edirol MD-P1 support */
Carlo Beccaria87823092007-07-03 08:04:25 +02001387{
Clemens Ladisch25a47b62008-02-25 11:04:19 +01001388 USB_DEVICE(0x582, 0x00a6),
1389 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1390 .vendor_name = "Roland",
1391 .product_name = "Juno-G",
1392 .ifnum = 0,
1393 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1394 .data = & (const struct snd_usb_midi_endpoint_info) {
1395 .out_cables = 0x0001,
1396 .in_cables = 0x0001
1397 }
1398 }
1399},
1400{
Carlo Beccaria87823092007-07-03 08:04:25 +02001401 /* Roland SH-201 */
1402 USB_DEVICE(0x0582, 0x00ad),
1403 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1404 .vendor_name = "Roland",
1405 .product_name = "SH-201",
1406 .ifnum = QUIRK_ANY_INTERFACE,
1407 .type = QUIRK_COMPOSITE,
1408 .data = (const struct snd_usb_audio_quirk[]) {
1409 {
1410 .ifnum = 0,
1411 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1412 },
1413 {
1414 .ifnum = 1,
1415 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1416 },
1417 {
1418 .ifnum = 2,
1419 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1420 .data = & (const struct snd_usb_midi_endpoint_info) {
1421 .out_cables = 0x0001,
1422 .in_cables = 0x0001
1423 }
1424 },
1425 {
1426 .ifnum = -1
1427 }
1428 }
1429 }
1430},
Chris Mennie62b12632008-05-19 16:21:33 +02001431{
1432 /* Roland SonicCell */
1433 USB_DEVICE(0x0582, 0x00c2),
1434 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1435 .vendor_name = "Roland",
1436 .product_name = "SonicCell",
1437 .ifnum = QUIRK_ANY_INTERFACE,
1438 .type = QUIRK_COMPOSITE,
1439 .data = (const struct snd_usb_audio_quirk[]) {
1440 {
1441 .ifnum = 0,
1442 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1443 },
1444 {
1445 .ifnum = 1,
1446 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1447 },
1448 {
1449 .ifnum = 2,
1450 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1451 .data = & (const struct snd_usb_midi_endpoint_info) {
1452 .out_cables = 0x0001,
1453 .in_cables = 0x0001
1454 }
1455 },
1456 {
1457 .ifnum = -1
1458 }
1459 }
1460 }
1461},
Clemens Ladischb38addb2008-07-28 10:19:39 +02001462{
1463 /* BOSS GT-10 */
1464 USB_DEVICE(0x0582, 0x00da),
1465 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1466 .ifnum = QUIRK_ANY_INTERFACE,
1467 .type = QUIRK_COMPOSITE,
1468 .data = (const struct snd_usb_audio_quirk[]) {
1469 {
1470 .ifnum = 0,
1471 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1472 },
1473 {
1474 .ifnum = 1,
1475 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1476 },
1477 {
1478 .ifnum = 2,
1479 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1480 .data = & (const struct snd_usb_midi_endpoint_info) {
1481 .out_cables = 0x0001,
1482 .in_cables = 0x0001
1483 }
1484 },
1485 {
1486 .ifnum = -1
1487 }
1488 }
1489 }
1490},
Takashi Iwaie2736262008-10-20 16:07:45 +02001491{
1492 /* Advanced modes of the Edirol UA-25EX.
1493 * For the standard mode, UA-25EX has ID 0582:00e7, which
1494 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1495 */
1496 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
1497 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1498 .vendor_name = "EDIROL",
1499 .product_name = "UA-25EX",
1500 .ifnum = QUIRK_ANY_INTERFACE,
1501 .type = QUIRK_COMPOSITE,
1502 .data = (const struct snd_usb_audio_quirk[]) {
1503 {
1504 .ifnum = 0,
1505 .type = QUIRK_AUDIO_EDIROL_UAXX
1506 },
1507 {
1508 .ifnum = 1,
1509 .type = QUIRK_AUDIO_EDIROL_UAXX
1510 },
1511 {
1512 .ifnum = 2,
1513 .type = QUIRK_AUDIO_EDIROL_UAXX
1514 },
1515 {
1516 .ifnum = -1
1517 }
1518 }
1519 }
1520},
Chris Mennie62b12632008-05-19 16:21:33 +02001521
Clemens Ladischa25f1752005-10-05 13:23:19 +02001522/* Guillemot devices */
1523{
1524 /*
1525 * This is for the "Windows Edition" where the external MIDI ports are
1526 * the only MIDI ports; the control data is reported through HID
1527 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1528 * compliant USB MIDI ports for external MIDI and controls.
1529 */
1530 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001531 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001532 .vendor_name = "Hercules",
1533 .product_name = "DJ Console (WE)",
1534 .ifnum = 4,
1535 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001536 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001537 .out_cables = 0x0001,
1538 .in_cables = 0x0001
1539 }
1540 }
1541},
1542
Linus Torvalds1da177e2005-04-16 15:20:36 -07001543/* Midiman/M-Audio devices */
1544{
1545 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001546 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001547 .vendor_name = "M-Audio",
1548 .product_name = "MidiSport 2x2",
1549 .ifnum = QUIRK_ANY_INTERFACE,
1550 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001551 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001552 .out_cables = 0x0003,
1553 .in_cables = 0x0003
1554 }
1555 }
1556},
1557{
1558 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001559 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001560 .vendor_name = "M-Audio",
1561 .product_name = "MidiSport 1x1",
1562 .ifnum = QUIRK_ANY_INTERFACE,
1563 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001564 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001565 .out_cables = 0x0001,
1566 .in_cables = 0x0001
1567 }
1568 }
1569},
1570{
1571 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001572 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001573 .vendor_name = "M-Audio",
1574 .product_name = "Keystation",
1575 .ifnum = QUIRK_ANY_INTERFACE,
1576 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001577 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001578 .out_cables = 0x0001,
1579 .in_cables = 0x0001
1580 }
1581 }
1582},
1583{
1584 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001585 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001586 .vendor_name = "M-Audio",
1587 .product_name = "MidiSport 4x4",
1588 .ifnum = QUIRK_ANY_INTERFACE,
1589 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001590 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001591 .out_cables = 0x000f,
1592 .in_cables = 0x000f
1593 }
1594 }
1595},
1596{
1597 /*
1598 * For hardware revision 1.05; in the later revisions (1.10 and
1599 * 1.21), 0x1031 is the ID for the device without firmware.
1600 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1601 */
1602 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001603 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001604 .vendor_name = "M-Audio",
1605 .product_name = "MidiSport 8x8",
1606 .ifnum = QUIRK_ANY_INTERFACE,
1607 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001608 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001609 .out_cables = 0x01ff,
1610 .in_cables = 0x01ff
1611 }
1612 }
1613},
1614{
1615 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001616 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001617 .vendor_name = "M-Audio",
1618 .product_name = "MidiSport 8x8",
1619 .ifnum = QUIRK_ANY_INTERFACE,
1620 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001621 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001622 .out_cables = 0x01ff,
1623 .in_cables = 0x01ff
1624 }
1625 }
1626},
1627{
1628 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001629 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001630 .vendor_name = "M-Audio",
1631 .product_name = "MidiSport 2x4",
1632 .ifnum = QUIRK_ANY_INTERFACE,
1633 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001634 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001635 .out_cables = 0x000f,
1636 .in_cables = 0x0003
1637 }
1638 }
1639},
1640{
1641 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001642 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001643 .vendor_name = "M-Audio",
1644 .product_name = "Quattro",
1645 .ifnum = QUIRK_ANY_INTERFACE,
1646 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001647 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001648 /*
1649 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1650 * and share endpoints with the other interfaces.
1651 * Ignore them. The other interfaces can do 24 bits,
1652 * but captured samples are big-endian (see usbaudio.c).
1653 */
1654 {
1655 .ifnum = 0,
1656 .type = QUIRK_IGNORE_INTERFACE
1657 },
1658 {
1659 .ifnum = 1,
1660 .type = QUIRK_IGNORE_INTERFACE
1661 },
1662 {
1663 .ifnum = 2,
1664 .type = QUIRK_IGNORE_INTERFACE
1665 },
1666 {
1667 .ifnum = 3,
1668 .type = QUIRK_IGNORE_INTERFACE
1669 },
1670 {
1671 .ifnum = 4,
1672 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1673 },
1674 {
1675 .ifnum = 5,
1676 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1677 },
1678 {
1679 .ifnum = 6,
1680 .type = QUIRK_IGNORE_INTERFACE
1681 },
1682 {
1683 .ifnum = 7,
1684 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1685 },
1686 {
1687 .ifnum = 8,
1688 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1689 },
1690 {
1691 .ifnum = 9,
1692 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001693 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001694 .out_cables = 0x0001,
1695 .in_cables = 0x0001
1696 }
1697 },
1698 {
1699 .ifnum = -1
1700 }
1701 }
1702 }
1703},
1704{
1705 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001706 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001707 .vendor_name = "M-Audio",
1708 .product_name = "AudioPhile",
1709 .ifnum = 6,
1710 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001711 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001712 .out_cables = 0x0001,
1713 .in_cables = 0x0001
1714 }
1715 }
1716},
1717{
1718 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001719 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001720 .vendor_name = "M-Audio",
1721 .product_name = "Ozone",
1722 .ifnum = 3,
1723 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001724 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001725 .out_cables = 0x0001,
1726 .in_cables = 0x0001
1727 }
1728 }
1729},
1730{
1731 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001732 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001733 .vendor_name = "M-Audio",
1734 .product_name = "OmniStudio",
1735 .ifnum = QUIRK_ANY_INTERFACE,
1736 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001737 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001738 {
1739 .ifnum = 0,
1740 .type = QUIRK_IGNORE_INTERFACE
1741 },
1742 {
1743 .ifnum = 1,
1744 .type = QUIRK_IGNORE_INTERFACE
1745 },
1746 {
1747 .ifnum = 2,
1748 .type = QUIRK_IGNORE_INTERFACE
1749 },
1750 {
1751 .ifnum = 3,
1752 .type = QUIRK_IGNORE_INTERFACE
1753 },
1754 {
1755 .ifnum = 4,
1756 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1757 },
1758 {
1759 .ifnum = 5,
1760 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1761 },
1762 {
1763 .ifnum = 6,
1764 .type = QUIRK_IGNORE_INTERFACE
1765 },
1766 {
1767 .ifnum = 7,
1768 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1769 },
1770 {
1771 .ifnum = 8,
1772 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1773 },
1774 {
1775 .ifnum = 9,
1776 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001777 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001778 .out_cables = 0x0001,
1779 .in_cables = 0x0001
1780 }
1781 },
1782 {
1783 .ifnum = -1
1784 }
1785 }
1786 }
1787},
Clemens Ladisch2ea547dc2007-09-17 09:33:17 +02001788{
1789 USB_DEVICE(0x0763, 0x2019),
1790 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1791 /* .vendor_name = "M-Audio", */
1792 /* .product_name = "Ozone Academic", */
1793 .ifnum = QUIRK_ANY_INTERFACE,
1794 .type = QUIRK_COMPOSITE,
1795 .data = & (const struct snd_usb_audio_quirk[]) {
1796 {
1797 .ifnum = 0,
1798 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1799 },
1800 {
1801 .ifnum = 1,
1802 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1803 },
1804 {
1805 .ifnum = 2,
1806 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1807 },
1808 {
1809 .ifnum = 3,
1810 .type = QUIRK_MIDI_MIDIMAN,
1811 .data = & (const struct snd_usb_midi_endpoint_info) {
1812 .out_cables = 0x0001,
1813 .in_cables = 0x0001
1814 }
1815 },
1816 {
1817 .ifnum = -1
1818 }
1819 }
1820 }
1821},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001822
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001823/* Casio devices */
1824{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01001825 USB_DEVICE(0x07cf, 0x6801),
1826 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1827 .vendor_name = "Casio",
1828 .product_name = "PL-40R",
1829 .ifnum = 0,
1830 .type = QUIRK_MIDI_YAMAHA
1831 }
1832},
1833{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001834 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001835 USB_DEVICE(0x07cf, 0x6802),
1836 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1837 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001838 .product_name = "Keyboard",
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001839 .ifnum = 0,
1840 .type = QUIRK_MIDI_YAMAHA
1841 }
1842},
1843
Linus Torvalds1da177e2005-04-16 15:20:36 -07001844/* Mark of the Unicorn devices */
1845{
1846 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02001847 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1848 USB_DEVICE_ID_MATCH_PRODUCT |
1849 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1850 .idVendor = 0x07fd,
1851 .idProduct = 0x0001,
1852 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001853 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001854 .vendor_name = "MOTU",
1855 .product_name = "Fastlane",
1856 .ifnum = QUIRK_ANY_INTERFACE,
1857 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001858 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001859 {
1860 .ifnum = 0,
Clemens Ladisch6155aff2005-07-04 09:20:42 +02001861 .type = QUIRK_MIDI_RAW
Linus Torvalds1da177e2005-04-16 15:20:36 -07001862 },
1863 {
1864 .ifnum = 1,
1865 .type = QUIRK_IGNORE_INTERFACE
1866 },
1867 {
1868 .ifnum = -1
1869 }
1870 }
1871 }
1872},
1873
Linus Torvalds1da177e2005-04-16 15:20:36 -07001874/* Emagic devices */
1875{
1876 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001877 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001878 .vendor_name = "Emagic",
1879 /* .product_name = "Unitor8", */
1880 .ifnum = 2,
1881 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001882 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001883 .out_cables = 0x80ff,
1884 .in_cables = 0x80ff
1885 }
1886 }
1887},
1888{
1889 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001890 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001891 .vendor_name = "Emagic",
1892 /* .product_name = "AMT8", */
1893 .ifnum = 2,
1894 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001895 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001896 .out_cables = 0x80ff,
1897 .in_cables = 0x80ff
1898 }
1899 }
1900},
1901{
1902 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001903 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001904 .vendor_name = "Emagic",
1905 /* .product_name = "MT4", */
1906 .ifnum = 2,
1907 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001908 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001909 .out_cables = 0x800f,
1910 .in_cables = 0x8003
1911 }
1912 }
1913},
1914
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001915/* TerraTec devices */
1916{
1917 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001918 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001919 .vendor_name = "TerraTec",
1920 .product_name = "PHASE 26",
1921 .ifnum = 3,
1922 .type = QUIRK_MIDI_STANDARD_INTERFACE
1923 }
1924},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001925{
1926 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001927 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001928 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001929 .product_name = "PHASE 26",
1930 .ifnum = 3,
1931 .type = QUIRK_MIDI_STANDARD_INTERFACE
1932 }
1933},
Clemens Ladischb2b82292006-02-08 12:38:23 +01001934{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02001935 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
1936 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1937 .vendor_name = "TerraTec",
1938 .product_name = "PHASE 26",
1939 .ifnum = 3,
1940 .type = QUIRK_MIDI_STANDARD_INTERFACE
1941 }
1942},
1943{
Clemens Ladischb2b82292006-02-08 12:38:23 +01001944 USB_DEVICE(0x0ccd, 0x0035),
1945 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1946 .vendor_name = "Miditech",
1947 .product_name = "Play'n Roll",
1948 .ifnum = 0,
1949 .type = QUIRK_MIDI_CME
1950 }
1951},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001952
Mark Hills0f28ecd2007-08-10 08:01:54 +02001953/* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
1954{
1955 USB_DEVICE(0x103d, 0x0100),
1956 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1957 .vendor_name = "Stanton",
1958 .product_name = "ScratchAmp",
1959 .ifnum = QUIRK_NO_INTERFACE
1960 }
1961},
1962{
1963 USB_DEVICE(0x103d, 0x0101),
1964 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1965 .vendor_name = "Stanton",
1966 .product_name = "ScratchAmp",
1967 .ifnum = QUIRK_NO_INTERFACE
1968 }
1969},
1970
Linus Torvalds1da177e2005-04-16 15:20:36 -07001971/* Novation EMS devices */
1972{
1973 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001974 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001975 .vendor_name = "Novation",
1976 .product_name = "ReMOTE Audio/XStation",
1977 .ifnum = 4,
1978 .type = QUIRK_MIDI_NOVATION
1979 }
1980},
1981{
1982 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001983 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001984 .vendor_name = "Novation",
1985 .product_name = "Speedio",
1986 .ifnum = 3,
1987 .type = QUIRK_MIDI_NOVATION
1988 }
1989},
1990{
1991 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001992 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001993 .vendor_name = "Novation",
1994 .product_name = "ReMOTE25",
1995 .ifnum = 0,
1996 .type = QUIRK_MIDI_NOVATION
1997 }
1998},
1999
Mark Hills3a7788b2007-09-03 08:20:09 +02002000/* */
Clemens Ladisch15944802007-08-29 17:38:14 +02002001{
Mark Hills3a7788b2007-09-03 08:20:09 +02002002 /* aka. Serato Scratch Live DJ Box */
Clemens Ladisch15944802007-08-29 17:38:14 +02002003 USB_DEVICE(0x13e5, 0x0001),
Mark Hills3a7788b2007-09-03 08:20:09 +02002004 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2005 .vendor_name = "Rane",
2006 .product_name = "SL-1",
2007 .ifnum = QUIRK_NO_INTERFACE
Clemens Ladisch15944802007-08-29 17:38:14 +02002008 }
2009},
2010
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002011/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002012{
Clemens Ladischf38275f2005-07-25 16:17:29 +02002013 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002014 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002015 .vendor_name = "Miditech",
2016 .product_name = "Midistart-2",
2017 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002018 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002019 }
2020},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002021
2022/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002023{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002024 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002025 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002026 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002027 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002028 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002029 }
2030},
2031
2032{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002033 /*
2034 * Some USB MIDI devices don't have an audio control interface,
2035 * so we have to grab MIDI streaming interfaces here.
2036 */
2037 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
2038 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2039 .bInterfaceClass = USB_CLASS_AUDIO,
2040 .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002041 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002042 .ifnum = QUIRK_ANY_INTERFACE,
2043 .type = QUIRK_MIDI_STANDARD_INTERFACE
2044 }
2045},
2046
2047#undef USB_DEVICE_VENDOR_SPEC