blob: e1e245d0e5ecbed7735f9e30adf0e6732db28583 [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,
Daniel Mackde48c7b2010-02-22 23:49:13 +010094 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Draked4170452007-05-10 08:52:19 +020095},
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,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100103 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
George Shapovalovc34532d2007-07-09 10:42:35 +0200104},
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,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100112 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200113},
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,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100121 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Drakea9121452007-05-07 09:27:05 +0200122},
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,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100130 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Dawid Wrobel31127f22007-10-22 11:57:17 +0200131},
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,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100139 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Drakea9121452007-05-07 09:27:05 +0200140},
Signed-off-by: Peter Stokes5c6c9e62009-01-14 09:47:57 +0100141{
142 USB_DEVICE(0x046d, 0x0990),
143 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
144 .vendor_name = "Logitech, Inc.",
145 .product_name = "QuickCam Pro 9000",
146 .ifnum = QUIRK_NO_INTERFACE
147 }
148},
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100149
James Courtier-Dutton1e741902007-10-08 18:49:43 +0100150/*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151 * Yamaha devices
152 */
153
154#define YAMAHA_DEVICE(id, name) { \
155 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100156 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157 .vendor_name = "Yamaha", \
158 .product_name = name, \
159 .ifnum = QUIRK_ANY_INTERFACE, \
160 .type = QUIRK_MIDI_YAMAHA \
161 } \
162}
163#define YAMAHA_INTERFACE(id, intf, name) { \
164 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100165 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166 .vendor_name = "Yamaha", \
167 .product_name = name, \
168 .ifnum = intf, \
169 .type = QUIRK_MIDI_YAMAHA \
170 } \
171}
172YAMAHA_DEVICE(0x1000, "UX256"),
173YAMAHA_DEVICE(0x1001, "MU1000"),
174YAMAHA_DEVICE(0x1002, "MU2000"),
175YAMAHA_DEVICE(0x1003, "MU500"),
176YAMAHA_INTERFACE(0x1004, 3, "UW500"),
177YAMAHA_DEVICE(0x1005, "MOTIF6"),
178YAMAHA_DEVICE(0x1006, "MOTIF7"),
179YAMAHA_DEVICE(0x1007, "MOTIF8"),
180YAMAHA_DEVICE(0x1008, "UX96"),
181YAMAHA_DEVICE(0x1009, "UX16"),
182YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
183YAMAHA_DEVICE(0x100c, "UC-MX"),
184YAMAHA_DEVICE(0x100d, "UC-KX"),
185YAMAHA_DEVICE(0x100e, "S08"),
186YAMAHA_DEVICE(0x100f, "CLP-150"),
187YAMAHA_DEVICE(0x1010, "CLP-170"),
188YAMAHA_DEVICE(0x1011, "P-250"),
189YAMAHA_DEVICE(0x1012, "TYROS"),
190YAMAHA_DEVICE(0x1013, "PF-500"),
191YAMAHA_DEVICE(0x1014, "S90"),
192YAMAHA_DEVICE(0x1015, "MOTIF-R"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100193YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700194YAMAHA_DEVICE(0x1017, "CVP-204"),
195YAMAHA_DEVICE(0x1018, "CVP-206"),
196YAMAHA_DEVICE(0x1019, "CVP-208"),
197YAMAHA_DEVICE(0x101a, "CVP-210"),
198YAMAHA_DEVICE(0x101b, "PSR-1100"),
199YAMAHA_DEVICE(0x101c, "PSR-2100"),
200YAMAHA_DEVICE(0x101d, "CLP-175"),
201YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100202YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700203YAMAHA_DEVICE(0x1020, "EZ-250i"),
204YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
205YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
206YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
207YAMAHA_DEVICE(0x1024, "CVP-301"),
208YAMAHA_DEVICE(0x1025, "CVP-303"),
209YAMAHA_DEVICE(0x1026, "CVP-305"),
210YAMAHA_DEVICE(0x1027, "CVP-307"),
211YAMAHA_DEVICE(0x1028, "CVP-309"),
212YAMAHA_DEVICE(0x1029, "CVP-309GP"),
213YAMAHA_DEVICE(0x102a, "PSR-1500"),
214YAMAHA_DEVICE(0x102b, "PSR-3000"),
215YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
216YAMAHA_DEVICE(0x1030, "PSR-295/293"),
217YAMAHA_DEVICE(0x1031, "DGX-205/203"),
218YAMAHA_DEVICE(0x1032, "DGX-305"),
219YAMAHA_DEVICE(0x1033, "DGX-505"),
220YAMAHA_DEVICE(0x1034, NULL),
221YAMAHA_DEVICE(0x1035, NULL),
222YAMAHA_DEVICE(0x1036, NULL),
223YAMAHA_DEVICE(0x1037, NULL),
224YAMAHA_DEVICE(0x1038, NULL),
225YAMAHA_DEVICE(0x1039, NULL),
226YAMAHA_DEVICE(0x103a, NULL),
227YAMAHA_DEVICE(0x103b, NULL),
228YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200229YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200230YAMAHA_DEVICE(0x103e, NULL),
231YAMAHA_DEVICE(0x103f, NULL),
232YAMAHA_DEVICE(0x1040, NULL),
233YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200234YAMAHA_DEVICE(0x1042, NULL),
235YAMAHA_DEVICE(0x1043, NULL),
236YAMAHA_DEVICE(0x1044, NULL),
237YAMAHA_DEVICE(0x1045, NULL),
Clemens Ladischc85ceac2008-07-10 11:01:06 +0200238YAMAHA_INTERFACE(0x104e, 0, NULL),
Clemens Ladisch83a1a392008-07-10 11:05:42 +0200239YAMAHA_DEVICE(0x104f, NULL),
240YAMAHA_DEVICE(0x1050, NULL),
241YAMAHA_DEVICE(0x1051, NULL),
242YAMAHA_DEVICE(0x1052, NULL),
Clemens Ladisch422fdc32010-10-04 13:09:12 +0200243YAMAHA_INTERFACE(0x1053, 0, NULL),
244YAMAHA_INTERFACE(0x1054, 0, NULL),
245YAMAHA_DEVICE(0x1055, NULL),
246YAMAHA_DEVICE(0x1056, NULL),
247YAMAHA_DEVICE(0x1057, NULL),
248YAMAHA_DEVICE(0x1058, NULL),
249YAMAHA_DEVICE(0x1059, NULL),
250YAMAHA_DEVICE(0x105a, NULL),
251YAMAHA_DEVICE(0x105b, NULL),
252YAMAHA_DEVICE(0x105c, NULL),
253YAMAHA_DEVICE(0x105d, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700254YAMAHA_DEVICE(0x2000, "DGP-7"),
255YAMAHA_DEVICE(0x2001, "DGP-5"),
256YAMAHA_DEVICE(0x2002, NULL),
Clemens Ladisch422fdc32010-10-04 13:09:12 +0200257YAMAHA_DEVICE(0x2003, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700258YAMAHA_DEVICE(0x5000, "CS1D"),
259YAMAHA_DEVICE(0x5001, "DSP1D"),
260YAMAHA_DEVICE(0x5002, "DME32"),
261YAMAHA_DEVICE(0x5003, "DM2000"),
262YAMAHA_DEVICE(0x5004, "02R96"),
263YAMAHA_DEVICE(0x5005, "ACU16-C"),
264YAMAHA_DEVICE(0x5006, "NHB32-C"),
265YAMAHA_DEVICE(0x5007, "DM1000"),
266YAMAHA_DEVICE(0x5008, "01V96"),
267YAMAHA_DEVICE(0x5009, "SPX2000"),
268YAMAHA_DEVICE(0x500a, "PM5D"),
269YAMAHA_DEVICE(0x500b, "DME64N"),
270YAMAHA_DEVICE(0x500c, "DME24N"),
271YAMAHA_DEVICE(0x500d, NULL),
272YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200273YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700274YAMAHA_DEVICE(0x7000, "DTX"),
275YAMAHA_DEVICE(0x7010, "UB99"),
276#undef YAMAHA_DEVICE
277#undef YAMAHA_INTERFACE
278
279/*
280 * Roland/RolandED/Edirol/BOSS devices
281 */
282{
283 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100284 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700285 .vendor_name = "Roland",
286 .product_name = "UA-100",
287 .ifnum = QUIRK_ANY_INTERFACE,
288 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100289 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700290 {
291 .ifnum = 0,
292 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
293 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100294 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700295 .channels = 4,
296 .iface = 0,
297 .altsetting = 1,
298 .altset_idx = 1,
299 .attributes = 0,
300 .endpoint = 0x01,
301 .ep_attr = 0x09,
302 .rates = SNDRV_PCM_RATE_CONTINUOUS,
303 .rate_min = 44100,
304 .rate_max = 44100,
305 }
306 },
307 {
308 .ifnum = 1,
309 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
310 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100311 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312 .channels = 2,
313 .iface = 1,
314 .altsetting = 1,
315 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100316 .attributes = UAC_EP_CS_ATTR_FILL_MAX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700317 .endpoint = 0x81,
318 .ep_attr = 0x05,
319 .rates = SNDRV_PCM_RATE_CONTINUOUS,
320 .rate_min = 44100,
321 .rate_max = 44100,
322 }
323 },
324 {
325 .ifnum = 2,
326 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100327 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700328 .out_cables = 0x0007,
329 .in_cables = 0x0007
330 }
331 },
332 {
333 .ifnum = -1
334 }
335 }
336 }
337},
338{
339 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100340 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700341 .vendor_name = "EDIROL",
342 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200343 .ifnum = QUIRK_ANY_INTERFACE,
344 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100345 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200346 {
347 .ifnum = 0,
348 .type = QUIRK_IGNORE_INTERFACE
349 },
350 {
351 .ifnum = 1,
352 .type = QUIRK_IGNORE_INTERFACE
353 },
354 {
355 .ifnum = 2,
356 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100357 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200358 .out_cables = 0x000f,
359 .in_cables = 0x000f
360 }
361 },
362 {
363 .ifnum = -1
364 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700365 }
366 }
367},
368{
369 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100370 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700371 .vendor_name = "Roland",
372 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200373 .ifnum = QUIRK_ANY_INTERFACE,
374 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100375 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200376 {
377 .ifnum = 0,
378 .type = QUIRK_IGNORE_INTERFACE
379 },
380 {
381 .ifnum = 1,
382 .type = QUIRK_IGNORE_INTERFACE
383 },
384 {
385 .ifnum = 2,
386 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100387 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200388 .out_cables = 0x003f,
389 .in_cables = 0x003f
390 }
391 },
392 {
393 .ifnum = -1
394 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700395 }
396 }
397},
398{
399 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100400 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401 .vendor_name = "Roland",
402 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200403 .ifnum = QUIRK_ANY_INTERFACE,
404 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100405 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200406 {
407 .ifnum = 0,
408 .type = QUIRK_IGNORE_INTERFACE
409 },
410 {
411 .ifnum = 1,
412 .type = QUIRK_IGNORE_INTERFACE
413 },
414 {
415 .ifnum = 2,
416 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100417 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200418 .out_cables = 0x0005,
419 .in_cables = 0x0005
420 }
421 },
422 {
423 .ifnum = -1
424 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700425 }
426 }
427},
428{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100429 /* Has ID 0x0099 when not in "Advanced Driver" mode.
430 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700431 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100432 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433 .vendor_name = "EDIROL",
434 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200435 .ifnum = QUIRK_ANY_INTERFACE,
436 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100437 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200438 {
439 .ifnum = 0,
440 .type = QUIRK_IGNORE_INTERFACE
441 },
442 {
443 .ifnum = 1,
444 .type = QUIRK_IGNORE_INTERFACE
445 },
446 {
447 .ifnum = 2,
448 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100449 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200450 .out_cables = 0x0003,
451 .in_cables = 0x0003
452 }
453 },
454 {
455 .ifnum = -1
456 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700457 }
458 }
459},
460{
461 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100462 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700463 .vendor_name = "Roland",
464 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200465 .ifnum = QUIRK_ANY_INTERFACE,
466 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100467 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200468 {
469 .ifnum = 0,
470 .type = QUIRK_IGNORE_INTERFACE
471 },
472 {
473 .ifnum = 1,
474 .type = QUIRK_IGNORE_INTERFACE
475 },
476 {
477 .ifnum = 2,
478 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100479 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200480 .out_cables = 0x0013,
481 .in_cables = 0x0013
482 }
483 },
484 {
485 .ifnum = -1
486 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700487 }
488 }
489},
490{
491 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100492 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700493 .vendor_name = "Roland",
494 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200495 .ifnum = QUIRK_ANY_INTERFACE,
496 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100497 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200498 {
499 .ifnum = 0,
500 .type = QUIRK_IGNORE_INTERFACE
501 },
502 {
503 .ifnum = 1,
504 .type = QUIRK_IGNORE_INTERFACE
505 },
506 {
507 .ifnum = 2,
508 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100509 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200510 .out_cables = 0x0001,
511 .in_cables = 0x0001
512 }
513 },
514 {
515 .ifnum = -1
516 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700517 }
518 }
519},
520{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100521 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700522 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100523 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700524 .vendor_name = "EDIROL",
525 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200526 .ifnum = QUIRK_ANY_INTERFACE,
527 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100528 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200529 {
530 .ifnum = 0,
531 .type = QUIRK_IGNORE_INTERFACE
532 },
533 {
534 .ifnum = 1,
535 .type = QUIRK_IGNORE_INTERFACE
536 },
537 {
538 .ifnum = 2,
539 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100540 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200541 .out_cables = 0x0001,
542 .in_cables = 0x0001
543 }
544 },
545 {
546 .ifnum = -1
547 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700548 }
549 }
550},
551{
552 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100553 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700554 .vendor_name = "Roland",
555 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200556 .ifnum = QUIRK_ANY_INTERFACE,
557 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100558 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200559 {
560 .ifnum = 0,
561 .type = QUIRK_IGNORE_INTERFACE
562 },
563 {
564 .ifnum = 1,
565 .type = QUIRK_IGNORE_INTERFACE
566 },
567 {
568 .ifnum = 2,
569 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100570 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200571 .out_cables = 0x0013,
572 .in_cables = 0x0013
573 }
574 },
575 {
576 .ifnum = -1
577 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700578 }
579 }
580},
581{
582 /* thanks to Emiliano Grilli <emillo@libero.it>
583 * for helping researching this data */
584 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100585 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700586 .vendor_name = "Roland",
587 .product_name = "SC-D70",
588 .ifnum = QUIRK_ANY_INTERFACE,
589 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100590 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700591 {
592 .ifnum = 0,
593 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
594 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100595 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700596 .channels = 2,
597 .iface = 0,
598 .altsetting = 1,
599 .altset_idx = 1,
600 .attributes = 0,
601 .endpoint = 0x01,
602 .ep_attr = 0x01,
603 .rates = SNDRV_PCM_RATE_CONTINUOUS,
604 .rate_min = 44100,
605 .rate_max = 44100,
606 }
607 },
608 {
609 .ifnum = 1,
610 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
611 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100612 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700613 .channels = 2,
614 .iface = 1,
615 .altsetting = 1,
616 .altset_idx = 1,
617 .attributes = 0,
618 .endpoint = 0x81,
619 .ep_attr = 0x01,
620 .rates = SNDRV_PCM_RATE_CONTINUOUS,
621 .rate_min = 44100,
622 .rate_max = 44100,
623 }
624 },
625 {
626 .ifnum = 2,
627 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100628 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700629 .out_cables = 0x0007,
630 .in_cables = 0x0007
631 }
632 },
633 {
634 .ifnum = -1
635 }
636 }
637 }
638},
639{ /*
640 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
641 * If the advanced mode switch at the back of the unit is off, the
642 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
643 * but offers only 16-bit PCM.
644 * In advanced mode, the UA-5 will output S24_3LE samples (two
645 * channels) at the rate indicated on the front switch, including
646 * the 96kHz sample rate.
647 */
648 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100649 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 .vendor_name = "EDIROL",
651 .product_name = "UA-5",
652 .ifnum = QUIRK_ANY_INTERFACE,
653 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100654 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700655 {
656 .ifnum = 1,
657 .type = QUIRK_AUDIO_STANDARD_INTERFACE
658 },
659 {
660 .ifnum = 2,
661 .type = QUIRK_AUDIO_STANDARD_INTERFACE
662 },
663 {
664 .ifnum = -1
665 }
666 }
667 }
668},
669{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200670 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700671 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100672 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700673 .vendor_name = "Roland",
674 .product_name = "XV-5050",
675 .ifnum = 0,
676 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100677 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700678 .out_cables = 0x0001,
679 .in_cables = 0x0001
680 }
681 }
682},
683{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200684 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700685 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100686 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700687 .vendor_name = "EDIROL",
688 .product_name = "UM-880",
689 .ifnum = 0,
690 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100691 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700692 .out_cables = 0x01ff,
693 .in_cables = 0x01ff
694 }
695 }
696},
697{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200698 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700699 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100700 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700701 .vendor_name = "EDIROL",
702 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200703 .ifnum = QUIRK_ANY_INTERFACE,
704 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100705 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200706 {
707 .ifnum = 0,
Clemens Ladisch061b8692011-01-10 16:30:54 +0100708 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200709 },
710 {
711 .ifnum = 1,
Clemens Ladisch061b8692011-01-10 16:30:54 +0100712 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200713 },
714 {
715 .ifnum = 2,
716 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100717 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200718 .out_cables = 0x000f,
719 .in_cables = 0x000f
720 }
721 },
722 {
723 .ifnum = -1
724 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700725 }
726 }
727},
728{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200729 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700730 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100731 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700732 .vendor_name = "Roland",
733 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200734 .ifnum = QUIRK_ANY_INTERFACE,
735 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100736 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200737 {
738 .ifnum = 0,
739 .type = QUIRK_IGNORE_INTERFACE
740 },
741 {
742 .ifnum = 1,
743 .type = QUIRK_IGNORE_INTERFACE
744 },
745 {
746 .ifnum = 2,
747 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100748 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200749 .out_cables = 0x0001,
750 .in_cables = 0x0001
751 }
752 },
753 {
754 .ifnum = -1
755 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700756 }
757 }
758},
759{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200760 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100762 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700763 .vendor_name = "Roland",
764 .product_name = "V-SYNTH",
765 .ifnum = 0,
766 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100767 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700768 .out_cables = 0x0001,
769 .in_cables = 0x0001
770 }
771 }
772},
773{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200774 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700775 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100776 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700777 .vendor_name = "EDIROL",
778 .product_name = "UM-550",
779 .ifnum = 0,
780 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100781 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700782 .out_cables = 0x003f,
783 .in_cables = 0x003f
784 }
785 }
786},
787{
788 /*
789 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
790 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
791 * and no MIDI.
792 */
793 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100794 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700795 .vendor_name = "EDIROL",
796 .product_name = "UA-20",
797 .ifnum = QUIRK_ANY_INTERFACE,
798 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100799 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700800 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100801 .ifnum = 0,
802 .type = QUIRK_IGNORE_INTERFACE
803 },
804 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700805 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100806 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
807 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100808 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100809 .channels = 2,
810 .iface = 1,
811 .altsetting = 1,
812 .altset_idx = 1,
813 .attributes = 0,
814 .endpoint = 0x01,
815 .ep_attr = 0x01,
816 .rates = SNDRV_PCM_RATE_CONTINUOUS,
817 .rate_min = 44100,
818 .rate_max = 44100,
819 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700820 },
821 {
822 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100823 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
824 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100825 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100826 .channels = 2,
827 .iface = 2,
828 .altsetting = 1,
829 .altset_idx = 1,
830 .attributes = 0,
831 .endpoint = 0x82,
832 .ep_attr = 0x01,
833 .rates = SNDRV_PCM_RATE_CONTINUOUS,
834 .rate_min = 44100,
835 .rate_max = 44100,
836 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700837 },
838 {
839 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100840 .type = QUIRK_MIDI_FIXED_ENDPOINT,
841 .data = & (const struct snd_usb_midi_endpoint_info) {
842 .out_cables = 0x0001,
843 .in_cables = 0x0001
844 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700845 },
846 {
847 .ifnum = -1
848 }
849 }
850 }
851},
852{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200853 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700854 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100855 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700856 .vendor_name = "EDIROL",
857 .product_name = "SD-20",
858 .ifnum = 0,
859 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100860 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700861 .out_cables = 0x0003,
862 .in_cables = 0x0007
863 }
864 }
865},
866{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200867 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700868 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100869 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700870 .vendor_name = "EDIROL",
871 .product_name = "SD-80",
872 .ifnum = 0,
873 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100874 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700875 .out_cables = 0x000f,
876 .in_cables = 0x000f
877 }
878 }
879},
880{ /*
881 * This quirk is for the "Advanced" modes of the Edirol UA-700.
882 * If the sample format switch is not in an advanced setting, the
883 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
884 * but offers only 16-bit PCM and no MIDI.
885 */
886 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100887 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700888 .vendor_name = "EDIROL",
889 .product_name = "UA-700",
890 .ifnum = QUIRK_ANY_INTERFACE,
891 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100892 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893 {
894 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200895 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700896 },
897 {
898 .ifnum = 2,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200899 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700900 },
901 {
902 .ifnum = 3,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +0200903 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700904 },
905 {
906 .ifnum = -1
907 }
908 }
909 }
910},
911{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200912 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700913 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100914 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700915 .vendor_name = "Roland",
916 .product_name = "XV-2020",
917 .ifnum = 0,
918 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100919 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700920 .out_cables = 0x0001,
921 .in_cables = 0x0001
922 }
923 }
924},
925{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200926 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700927 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100928 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700929 .vendor_name = "Roland",
930 .product_name = "VariOS",
931 .ifnum = 0,
932 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100933 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700934 .out_cables = 0x0007,
935 .in_cables = 0x0007
936 }
937 }
938},
939{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200940 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700941 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100942 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700943 .vendor_name = "EDIROL",
944 .product_name = "PCR",
945 .ifnum = 0,
946 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100947 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700948 .out_cables = 0x0003,
949 .in_cables = 0x0007
950 }
951 }
952},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200953 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700954{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200955 /*
956 * Has ID 0x0038 when not in "Advanced Driver" mode;
957 * later revisions use IDs 0x0054 and 0x00a2.
958 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700959 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100960 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700961 .vendor_name = "Roland",
962 .product_name = "Digital Piano",
963 .ifnum = 0,
964 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100965 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700966 .out_cables = 0x0001,
967 .in_cables = 0x0001
968 }
969 }
970},
971{
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200972 /*
973 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
974 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
975 * and no MIDI.
976 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700977 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100978 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700979 .vendor_name = "BOSS",
980 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200981 .ifnum = QUIRK_ANY_INTERFACE,
982 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100983 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200984 {
985 .ifnum = 1,
986 .type = QUIRK_AUDIO_STANDARD_INTERFACE
987 },
988 {
989 .ifnum = 2,
990 .type = QUIRK_AUDIO_STANDARD_INTERFACE
991 },
992 {
993 .ifnum = 3,
994 .type = QUIRK_MIDI_STANDARD_INTERFACE
995 },
996 {
997 .ifnum = -1
998 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700999 }
1000 }
1001},
1002{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001003 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001004 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001005 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001006 .vendor_name = "Roland",
1007 .product_name = "GI-20",
1008 .ifnum = 0,
1009 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001010 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001011 .out_cables = 0x0001,
1012 .in_cables = 0x0001
1013 }
1014 }
1015},
1016{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001017 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001018 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001019 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001020 .vendor_name = "Roland",
1021 .product_name = "RS-70",
1022 .ifnum = 0,
1023 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001024 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001025 .out_cables = 0x0001,
1026 .in_cables = 0x0001
1027 }
1028 }
1029},
1030{
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001031 /* has ID 0x0049 when not in "Advanced Driver" mode */
1032 USB_DEVICE(0x0582, 0x0047),
1033 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1034 /* .vendor_name = "EDIROL", */
1035 /* .product_name = "UR-80", */
1036 .ifnum = QUIRK_ANY_INTERFACE,
1037 .type = QUIRK_COMPOSITE,
1038 .data = (const struct snd_usb_audio_quirk[]) {
1039 /* in the 96 kHz modes, only interface 1 is there */
1040 {
1041 .ifnum = 1,
1042 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1043 },
1044 {
1045 .ifnum = 2,
1046 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1047 },
1048 {
1049 .ifnum = -1
1050 }
1051 }
1052 }
1053},
1054{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001055 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001056 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001057 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001058 /* .vendor_name = "EDIROL", */
1059 /* .product_name = "UR-80", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001060 .ifnum = 0,
1061 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001062 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001063 .out_cables = 0x0003,
1064 .in_cables = 0x0007
1065 }
1066 }
1067},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001068 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001069{
Clemens Ladischf38cc312007-02-09 20:52:55 +01001070 /* has ID 0x004e when not in "Advanced Driver" mode */
1071 USB_DEVICE(0x0582, 0x004c),
1072 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1073 .vendor_name = "EDIROL",
1074 .product_name = "PCR-A",
1075 .ifnum = QUIRK_ANY_INTERFACE,
1076 .type = QUIRK_COMPOSITE,
1077 .data = (const struct snd_usb_audio_quirk[]) {
1078 {
1079 .ifnum = 1,
1080 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1081 },
1082 {
1083 .ifnum = 2,
1084 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1085 },
1086 {
1087 .ifnum = -1
1088 }
1089 }
1090 }
1091},
1092{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001093 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001094 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001095 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001096 .vendor_name = "EDIROL",
1097 .product_name = "PCR-A",
1098 .ifnum = 0,
1099 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001100 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001101 .out_cables = 0x0003,
1102 .in_cables = 0x0007
1103 }
1104 }
1105},
1106{
1107 /*
1108 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1109 * is standard compliant, but has only 16-bit PCM.
1110 */
1111 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001112 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001113 .vendor_name = "EDIROL",
1114 .product_name = "UA-3FX",
1115 .ifnum = QUIRK_ANY_INTERFACE,
1116 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001117 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001118 {
1119 .ifnum = 1,
1120 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1121 },
1122 {
1123 .ifnum = 2,
1124 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1125 },
1126 {
1127 .ifnum = -1
1128 }
1129 }
1130 }
1131},
1132{
1133 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001134 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001135 .vendor_name = "EDIROL",
1136 .product_name = "UM-1SX",
1137 .ifnum = 0,
1138 .type = QUIRK_MIDI_STANDARD_INTERFACE
1139 }
1140},
Takashi Iwaif1676842007-07-09 10:39:44 +02001141{
1142 USB_DEVICE(0x0582, 0x0060),
1143 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1144 .vendor_name = "Roland",
1145 .product_name = "EXR Series",
1146 .ifnum = 0,
1147 .type = QUIRK_MIDI_STANDARD_INTERFACE
1148 }
1149},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001150{
Clemens Ladischaa70201f2010-08-30 16:32:43 +02001151 /* has ID 0x0066 when not in "Advanced Driver" mode */
1152 USB_DEVICE(0x0582, 0x0064),
1153 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1154 /* .vendor_name = "EDIROL", */
1155 /* .product_name = "PCR-1", */
1156 .ifnum = QUIRK_ANY_INTERFACE,
1157 .type = QUIRK_COMPOSITE,
1158 .data = (const struct snd_usb_audio_quirk[]) {
1159 {
1160 .ifnum = 1,
1161 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1162 },
1163 {
1164 .ifnum = 2,
1165 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1166 },
1167 {
1168 .ifnum = -1
1169 }
1170 }
1171 }
1172},
1173{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001174 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001175 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001176 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischaa70201f2010-08-30 16:32:43 +02001177 /* .vendor_name = "EDIROL", */
1178 /* .product_name = "PCR-1", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001179 .ifnum = 0,
1180 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001181 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001182 .out_cables = 0x0001,
1183 .in_cables = 0x0003
1184 }
1185 }
1186},
1187{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001188 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001189 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001190 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001191 .vendor_name = "Roland",
1192 .product_name = "SP-606",
1193 .ifnum = 3,
1194 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001195 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001196 .out_cables = 0x0001,
1197 .in_cables = 0x0001
1198 }
1199 }
1200},
1201{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001202 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001203 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001204 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001205 .vendor_name = "Roland",
1206 .product_name = "FANTOM-X",
1207 .ifnum = 0,
1208 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001209 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001210 .out_cables = 0x0001,
1211 .in_cables = 0x0001
1212 }
1213 }
1214},
1215{ /*
1216 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1217 * If the switch is not in an advanced setting, the UA-25 has
1218 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1219 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1220 */
1221 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001222 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001223 .vendor_name = "EDIROL",
1224 .product_name = "UA-25",
1225 .ifnum = QUIRK_ANY_INTERFACE,
1226 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001227 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001228 {
1229 .ifnum = 0,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001230 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001231 },
1232 {
1233 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001234 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001235 },
1236 {
1237 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001238 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001239 },
1240 {
1241 .ifnum = -1
1242 }
1243 }
1244 }
1245},
1246{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001247 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001248 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001249 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001250 .vendor_name = "BOSS",
1251 .product_name = "DR-880",
1252 .ifnum = 0,
1253 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001254 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001255 .out_cables = 0x0001,
1256 .in_cables = 0x0001
1257 }
1258 }
1259},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001260{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001261 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001262 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001263 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001264 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001265 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001266 .ifnum = 0,
1267 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001268 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001269 .out_cables = 0x0003,
1270 .in_cables = 0x0003
1271 }
1272 }
1273},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001274{
1275 /* has ID 0x0081 when not in "Advanced Driver" mode */
1276 USB_DEVICE(0x0582, 0x0080),
1277 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1278 .vendor_name = "Roland",
1279 .product_name = "G-70",
1280 .ifnum = 0,
1281 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1282 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001283 .out_cables = 0x0001,
1284 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001285 }
1286 }
1287},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001288 /* TODO: add Roland V-SYNTH XT support */
1289 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001290{
1291 /* has ID 0x008c when not in "Advanced Driver" mode */
1292 USB_DEVICE(0x0582, 0x008b),
1293 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1294 .vendor_name = "EDIROL",
1295 .product_name = "PC-50",
1296 .ifnum = 0,
1297 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1298 .data = & (const struct snd_usb_midi_endpoint_info) {
1299 .out_cables = 0x0001,
1300 .in_cables = 0x0001
1301 }
1302 }
1303},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001304 /* TODO: add Edirol PC-80 support */
Takashi Iwai9b0d39b2007-08-10 15:07:06 +02001305{
1306 USB_DEVICE(0x0582, 0x0096),
1307 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1308 .vendor_name = "EDIROL",
1309 .product_name = "UA-1EX",
1310 .ifnum = QUIRK_ANY_INTERFACE,
1311 .type = QUIRK_COMPOSITE,
1312 .data = (const struct snd_usb_audio_quirk[]) {
1313 {
1314 .ifnum = 0,
1315 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1316 },
1317 {
1318 .ifnum = 1,
1319 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1320 },
1321 {
1322 .ifnum = -1
1323 }
1324 }
1325 }
1326},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001327{
1328 USB_DEVICE(0x0582, 0x009a),
1329 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1330 .vendor_name = "EDIROL",
1331 .product_name = "UM-3EX",
1332 .ifnum = 0,
1333 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1334 .data = & (const struct snd_usb_midi_endpoint_info) {
1335 .out_cables = 0x000f,
1336 .in_cables = 0x000f
1337 }
1338 }
1339},
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001340{
1341 /*
1342 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
1343 * is standard compliant, but has only 16-bit PCM and no MIDI.
1344 */
1345 USB_DEVICE(0x0582, 0x00a3),
1346 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1347 .vendor_name = "EDIROL",
1348 .product_name = "UA-4FX",
1349 .ifnum = QUIRK_ANY_INTERFACE,
1350 .type = QUIRK_COMPOSITE,
1351 .data = (const struct snd_usb_audio_quirk[]) {
1352 {
1353 .ifnum = 0,
1354 .type = QUIRK_AUDIO_EDIROL_UAXX
1355 },
1356 {
1357 .ifnum = 1,
1358 .type = QUIRK_AUDIO_EDIROL_UAXX
1359 },
1360 {
1361 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001362 .type = QUIRK_AUDIO_EDIROL_UAXX
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001363 },
1364 {
1365 .ifnum = -1
1366 }
1367 }
1368 }
1369},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001370 /* TODO: add Edirol MD-P1 support */
Carlo Beccaria87823092007-07-03 08:04:25 +02001371{
Clemens Ladisch25a47b62008-02-25 11:04:19 +01001372 USB_DEVICE(0x582, 0x00a6),
1373 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1374 .vendor_name = "Roland",
1375 .product_name = "Juno-G",
1376 .ifnum = 0,
1377 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1378 .data = & (const struct snd_usb_midi_endpoint_info) {
1379 .out_cables = 0x0001,
1380 .in_cables = 0x0001
1381 }
1382 }
1383},
1384{
Carlo Beccaria87823092007-07-03 08:04:25 +02001385 /* Roland SH-201 */
1386 USB_DEVICE(0x0582, 0x00ad),
1387 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1388 .vendor_name = "Roland",
1389 .product_name = "SH-201",
1390 .ifnum = QUIRK_ANY_INTERFACE,
1391 .type = QUIRK_COMPOSITE,
1392 .data = (const struct snd_usb_audio_quirk[]) {
1393 {
1394 .ifnum = 0,
1395 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1396 },
1397 {
1398 .ifnum = 1,
1399 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1400 },
1401 {
1402 .ifnum = 2,
1403 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1404 .data = & (const struct snd_usb_midi_endpoint_info) {
1405 .out_cables = 0x0001,
1406 .in_cables = 0x0001
1407 }
1408 },
1409 {
1410 .ifnum = -1
1411 }
1412 }
1413 }
1414},
Chris Mennie62b12632008-05-19 16:21:33 +02001415{
1416 /* Roland SonicCell */
1417 USB_DEVICE(0x0582, 0x00c2),
1418 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1419 .vendor_name = "Roland",
1420 .product_name = "SonicCell",
1421 .ifnum = QUIRK_ANY_INTERFACE,
1422 .type = QUIRK_COMPOSITE,
1423 .data = (const struct snd_usb_audio_quirk[]) {
1424 {
1425 .ifnum = 0,
1426 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1427 },
1428 {
1429 .ifnum = 1,
1430 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1431 },
1432 {
1433 .ifnum = 2,
1434 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1435 .data = & (const struct snd_usb_midi_endpoint_info) {
1436 .out_cables = 0x0001,
1437 .in_cables = 0x0001
1438 }
1439 },
1440 {
1441 .ifnum = -1
1442 }
1443 }
1444 }
1445},
Clemens Ladischb38addb2008-07-28 10:19:39 +02001446{
Takashi Iwai6efd2cd2009-06-01 10:59:51 +02001447 /* Edirol M-16DX */
1448 /* FIXME: This quirk gives a good-working capture stream but the
1449 * playback seems problematic because of lacking of sync
1450 * with capture stream. It needs to sync with the capture
1451 * clock. As now, you'll get frequent sound distortions
1452 * via the playback.
1453 */
1454 USB_DEVICE(0x0582, 0x00c4),
1455 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1456 .ifnum = QUIRK_ANY_INTERFACE,
1457 .type = QUIRK_COMPOSITE,
1458 .data = (const struct snd_usb_audio_quirk[]) {
1459 {
1460 .ifnum = 0,
1461 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1462 },
1463 {
1464 .ifnum = 1,
1465 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1466 },
1467 {
1468 .ifnum = 2,
1469 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1470 .data = & (const struct snd_usb_midi_endpoint_info) {
1471 .out_cables = 0x0001,
1472 .in_cables = 0x0001
1473 }
1474 },
1475 {
1476 .ifnum = -1
1477 }
1478 }
1479 }
1480},
1481{
Clemens Ladischb38addb2008-07-28 10:19:39 +02001482 /* BOSS GT-10 */
1483 USB_DEVICE(0x0582, 0x00da),
1484 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1485 .ifnum = QUIRK_ANY_INTERFACE,
1486 .type = QUIRK_COMPOSITE,
1487 .data = (const struct snd_usb_audio_quirk[]) {
1488 {
1489 .ifnum = 0,
1490 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1491 },
1492 {
1493 .ifnum = 1,
1494 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1495 },
1496 {
1497 .ifnum = 2,
1498 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1499 .data = & (const struct snd_usb_midi_endpoint_info) {
1500 .out_cables = 0x0001,
1501 .in_cables = 0x0001
1502 }
1503 },
1504 {
1505 .ifnum = -1
1506 }
1507 }
1508 }
1509},
Takashi Iwaie2736262008-10-20 16:07:45 +02001510{
1511 /* Advanced modes of the Edirol UA-25EX.
1512 * For the standard mode, UA-25EX has ID 0582:00e7, which
1513 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1514 */
1515 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
1516 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1517 .vendor_name = "EDIROL",
1518 .product_name = "UA-25EX",
1519 .ifnum = QUIRK_ANY_INTERFACE,
1520 .type = QUIRK_COMPOSITE,
1521 .data = (const struct snd_usb_audio_quirk[]) {
1522 {
1523 .ifnum = 0,
1524 .type = QUIRK_AUDIO_EDIROL_UAXX
1525 },
1526 {
1527 .ifnum = 1,
1528 .type = QUIRK_AUDIO_EDIROL_UAXX
1529 },
1530 {
1531 .ifnum = 2,
1532 .type = QUIRK_AUDIO_EDIROL_UAXX
1533 },
1534 {
1535 .ifnum = -1
1536 }
1537 }
1538 }
1539},
Clemens Ladischd867bba2009-11-19 14:34:33 +01001540{
1541 /* has ID 0x00ea when not in Advanced Driver mode */
1542 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e9),
1543 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1544 /* .vendor_name = "Roland", */
1545 /* .product_name = "UA-1G", */
1546 .ifnum = QUIRK_ANY_INTERFACE,
1547 .type = QUIRK_COMPOSITE,
1548 .data = (const struct snd_usb_audio_quirk[]) {
1549 {
1550 .ifnum = 0,
1551 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1552 },
1553 {
1554 .ifnum = 1,
1555 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1556 },
1557 {
1558 .ifnum = -1
1559 }
1560 }
1561 }
1562},
Clemens Ladisch9d0c9192010-08-30 16:42:17 +02001563{
1564 /* has ID 0x0110 when not in Advanced Driver mode */
1565 USB_DEVICE_VENDOR_SPEC(0x0582, 0x010f),
1566 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1567 /* .vendor_name = "Roland", */
1568 /* .product_name = "A-PRO", */
1569 .ifnum = 1,
1570 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1571 .data = & (const struct snd_usb_midi_endpoint_info) {
1572 .out_cables = 0x0003,
1573 .in_cables = 0x0007
1574 }
1575 }
1576},
Clemens Ladisch7b280792010-08-30 16:45:38 +02001577{
1578 USB_DEVICE(0x0582, 0x0113),
1579 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1580 /* .vendor_name = "BOSS", */
1581 /* .product_name = "ME-25", */
1582 .ifnum = QUIRK_ANY_INTERFACE,
1583 .type = QUIRK_COMPOSITE,
1584 .data = (const struct snd_usb_audio_quirk[]) {
1585 {
1586 .ifnum = 0,
1587 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1588 },
1589 {
1590 .ifnum = 1,
1591 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1592 },
1593 {
1594 .ifnum = 2,
1595 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1596 .data = & (const struct snd_usb_midi_endpoint_info) {
1597 .out_cables = 0x0001,
1598 .in_cables = 0x0001
1599 }
1600 },
1601 {
1602 .ifnum = -1
1603 }
1604 }
1605 }
1606},
Chris Mennie62b12632008-05-19 16:21:33 +02001607
Clemens Ladischa25f1752005-10-05 13:23:19 +02001608/* Guillemot devices */
1609{
1610 /*
1611 * This is for the "Windows Edition" where the external MIDI ports are
1612 * the only MIDI ports; the control data is reported through HID
1613 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1614 * compliant USB MIDI ports for external MIDI and controls.
1615 */
1616 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001617 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001618 .vendor_name = "Hercules",
1619 .product_name = "DJ Console (WE)",
1620 .ifnum = 4,
1621 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001622 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001623 .out_cables = 0x0001,
1624 .in_cables = 0x0001
1625 }
1626 }
1627},
1628
Linus Torvalds1da177e2005-04-16 15:20:36 -07001629/* Midiman/M-Audio devices */
1630{
1631 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001632 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001633 .vendor_name = "M-Audio",
1634 .product_name = "MidiSport 2x2",
1635 .ifnum = QUIRK_ANY_INTERFACE,
1636 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001637 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001638 .out_cables = 0x0003,
1639 .in_cables = 0x0003
1640 }
1641 }
1642},
1643{
1644 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001645 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001646 .vendor_name = "M-Audio",
1647 .product_name = "MidiSport 1x1",
1648 .ifnum = QUIRK_ANY_INTERFACE,
1649 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001650 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001651 .out_cables = 0x0001,
1652 .in_cables = 0x0001
1653 }
1654 }
1655},
1656{
1657 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001658 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001659 .vendor_name = "M-Audio",
1660 .product_name = "Keystation",
1661 .ifnum = QUIRK_ANY_INTERFACE,
1662 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001663 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001664 .out_cables = 0x0001,
1665 .in_cables = 0x0001
1666 }
1667 }
1668},
1669{
1670 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001671 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001672 .vendor_name = "M-Audio",
1673 .product_name = "MidiSport 4x4",
1674 .ifnum = QUIRK_ANY_INTERFACE,
1675 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001676 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001677 .out_cables = 0x000f,
1678 .in_cables = 0x000f
1679 }
1680 }
1681},
1682{
1683 /*
1684 * For hardware revision 1.05; in the later revisions (1.10 and
1685 * 1.21), 0x1031 is the ID for the device without firmware.
1686 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1687 */
1688 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001689 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001690 .vendor_name = "M-Audio",
1691 .product_name = "MidiSport 8x8",
1692 .ifnum = QUIRK_ANY_INTERFACE,
1693 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001694 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001695 .out_cables = 0x01ff,
1696 .in_cables = 0x01ff
1697 }
1698 }
1699},
1700{
1701 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001702 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001703 .vendor_name = "M-Audio",
1704 .product_name = "MidiSport 8x8",
1705 .ifnum = QUIRK_ANY_INTERFACE,
1706 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001707 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001708 .out_cables = 0x01ff,
1709 .in_cables = 0x01ff
1710 }
1711 }
1712},
1713{
1714 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001715 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001716 .vendor_name = "M-Audio",
1717 .product_name = "MidiSport 2x4",
1718 .ifnum = QUIRK_ANY_INTERFACE,
1719 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001720 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001721 .out_cables = 0x000f,
1722 .in_cables = 0x0003
1723 }
1724 }
1725},
1726{
1727 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001728 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001729 .vendor_name = "M-Audio",
1730 .product_name = "Quattro",
1731 .ifnum = QUIRK_ANY_INTERFACE,
1732 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001733 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001734 /*
1735 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1736 * and share endpoints with the other interfaces.
1737 * Ignore them. The other interfaces can do 24 bits,
1738 * but captured samples are big-endian (see usbaudio.c).
1739 */
1740 {
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},
1790{
1791 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001792 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001793 .vendor_name = "M-Audio",
1794 .product_name = "AudioPhile",
1795 .ifnum = 6,
1796 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001797 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001798 .out_cables = 0x0001,
1799 .in_cables = 0x0001
1800 }
1801 }
1802},
1803{
1804 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001805 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001806 .vendor_name = "M-Audio",
1807 .product_name = "Ozone",
1808 .ifnum = 3,
1809 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001810 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001811 .out_cables = 0x0001,
1812 .in_cables = 0x0001
1813 }
1814 }
1815},
1816{
1817 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001818 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001819 .vendor_name = "M-Audio",
1820 .product_name = "OmniStudio",
1821 .ifnum = QUIRK_ANY_INTERFACE,
1822 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001823 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001824 {
1825 .ifnum = 0,
1826 .type = QUIRK_IGNORE_INTERFACE
1827 },
1828 {
1829 .ifnum = 1,
1830 .type = QUIRK_IGNORE_INTERFACE
1831 },
1832 {
1833 .ifnum = 2,
1834 .type = QUIRK_IGNORE_INTERFACE
1835 },
1836 {
1837 .ifnum = 3,
1838 .type = QUIRK_IGNORE_INTERFACE
1839 },
1840 {
1841 .ifnum = 4,
1842 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1843 },
1844 {
1845 .ifnum = 5,
1846 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1847 },
1848 {
1849 .ifnum = 6,
1850 .type = QUIRK_IGNORE_INTERFACE
1851 },
1852 {
1853 .ifnum = 7,
1854 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1855 },
1856 {
1857 .ifnum = 8,
1858 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1859 },
1860 {
1861 .ifnum = 9,
1862 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001863 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001864 .out_cables = 0x0001,
1865 .in_cables = 0x0001
1866 }
1867 },
1868 {
1869 .ifnum = -1
1870 }
1871 }
1872 }
1873},
Clemens Ladisch2ea547dc2007-09-17 09:33:17 +02001874{
1875 USB_DEVICE(0x0763, 0x2019),
1876 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1877 /* .vendor_name = "M-Audio", */
1878 /* .product_name = "Ozone Academic", */
1879 .ifnum = QUIRK_ANY_INTERFACE,
1880 .type = QUIRK_COMPOSITE,
1881 .data = & (const struct snd_usb_audio_quirk[]) {
1882 {
1883 .ifnum = 0,
1884 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1885 },
1886 {
1887 .ifnum = 1,
1888 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1889 },
1890 {
1891 .ifnum = 2,
1892 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1893 },
1894 {
1895 .ifnum = 3,
1896 .type = QUIRK_MIDI_MIDIMAN,
1897 .data = & (const struct snd_usb_midi_endpoint_info) {
1898 .out_cables = 0x0001,
1899 .in_cables = 0x0001
1900 }
1901 },
1902 {
1903 .ifnum = -1
1904 }
1905 }
1906 }
1907},
Felix Homannfca5bca2010-03-25 11:29:14 +01001908{
1909 USB_DEVICE(0x0763, 0x2080),
1910 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1911 /* .vendor_name = "M-Audio", */
Clemens Ladisch65f04442010-09-02 12:58:25 +02001912 /* .product_name = "Fast Track Ultra", */
Felix Homannfca5bca2010-03-25 11:29:14 +01001913 .ifnum = QUIRK_ANY_INTERFACE,
1914 .type = QUIRK_COMPOSITE,
1915 .data = & (const struct snd_usb_audio_quirk[]) {
1916 {
1917 .ifnum = 0,
1918 .type = QUIRK_IGNORE_INTERFACE
1919 },
1920 {
1921 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02001922 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1923 .data = & (const struct audioformat) {
1924 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1925 .channels = 8,
1926 .iface = 1,
1927 .altsetting = 1,
1928 .altset_idx = 1,
1929 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
1930 .endpoint = 0x01,
1931 .ep_attr = 0x09,
1932 .rates = SNDRV_PCM_RATE_44100 |
1933 SNDRV_PCM_RATE_48000 |
1934 SNDRV_PCM_RATE_88200 |
1935 SNDRV_PCM_RATE_96000,
1936 .rate_min = 44100,
1937 .rate_max = 96000,
1938 .nr_rates = 4,
1939 .rate_table = (unsigned int[]) {
1940 44100, 48000, 88200, 96000
1941 }
1942 }
Felix Homannfca5bca2010-03-25 11:29:14 +01001943 },
1944 {
1945 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02001946 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1947 .data = & (const struct audioformat) {
1948 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1949 .channels = 8,
1950 .iface = 2,
1951 .altsetting = 1,
1952 .altset_idx = 1,
1953 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
1954 .endpoint = 0x81,
1955 .ep_attr = 0x05,
1956 .rates = SNDRV_PCM_RATE_44100 |
1957 SNDRV_PCM_RATE_48000 |
1958 SNDRV_PCM_RATE_88200 |
1959 SNDRV_PCM_RATE_96000,
1960 .rate_min = 44100,
1961 .rate_max = 96000,
1962 .nr_rates = 4,
1963 .rate_table = (unsigned int[]) {
1964 44100, 48000, 88200, 96000
1965 }
1966 }
Felix Homannfca5bca2010-03-25 11:29:14 +01001967 },
1968 /* interface 3 (MIDI) is standard compliant */
1969 {
1970 .ifnum = -1
1971 }
1972 }
1973 }
1974},
1975{
1976 USB_DEVICE(0x0763, 0x2081),
1977 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1978 /* .vendor_name = "M-Audio", */
1979 /* .product_name = "Fast Track Ultra 8R", */
1980 .ifnum = QUIRK_ANY_INTERFACE,
1981 .type = QUIRK_COMPOSITE,
1982 .data = & (const struct snd_usb_audio_quirk[]) {
1983 {
1984 .ifnum = 0,
1985 .type = QUIRK_IGNORE_INTERFACE
1986 },
1987 {
1988 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02001989 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1990 .data = & (const struct audioformat) {
1991 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1992 .channels = 8,
1993 .iface = 1,
1994 .altsetting = 1,
1995 .altset_idx = 1,
1996 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
1997 .endpoint = 0x01,
1998 .ep_attr = 0x09,
1999 .rates = SNDRV_PCM_RATE_44100 |
2000 SNDRV_PCM_RATE_48000 |
2001 SNDRV_PCM_RATE_88200 |
2002 SNDRV_PCM_RATE_96000,
2003 .rate_min = 44100,
2004 .rate_max = 96000,
2005 .nr_rates = 4,
2006 .rate_table = (unsigned int[]) {
2007 44100, 48000, 88200, 96000
2008 }
2009 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002010 },
2011 {
2012 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002013 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2014 .data = & (const struct audioformat) {
2015 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2016 .channels = 8,
2017 .iface = 2,
2018 .altsetting = 1,
2019 .altset_idx = 1,
2020 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2021 .endpoint = 0x81,
2022 .ep_attr = 0x05,
2023 .rates = SNDRV_PCM_RATE_44100 |
2024 SNDRV_PCM_RATE_48000 |
2025 SNDRV_PCM_RATE_88200 |
2026 SNDRV_PCM_RATE_96000,
2027 .rate_min = 44100,
2028 .rate_max = 96000,
2029 .nr_rates = 4,
2030 .rate_table = (unsigned int[]) {
2031 44100, 48000, 88200, 96000
2032 }
2033 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002034 },
2035 /* interface 3 (MIDI) is standard compliant */
2036 {
2037 .ifnum = -1
2038 }
2039 }
2040 }
2041},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002042
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002043/* Casio devices */
2044{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01002045 USB_DEVICE(0x07cf, 0x6801),
2046 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2047 .vendor_name = "Casio",
2048 .product_name = "PL-40R",
2049 .ifnum = 0,
2050 .type = QUIRK_MIDI_YAMAHA
2051 }
2052},
2053{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002054 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002055 USB_DEVICE(0x07cf, 0x6802),
2056 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2057 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002058 .product_name = "Keyboard",
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002059 .ifnum = 0,
2060 .type = QUIRK_MIDI_YAMAHA
2061 }
2062},
2063
Linus Torvalds1da177e2005-04-16 15:20:36 -07002064/* Mark of the Unicorn devices */
2065{
2066 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02002067 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
2068 USB_DEVICE_ID_MATCH_PRODUCT |
2069 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
2070 .idVendor = 0x07fd,
2071 .idProduct = 0x0001,
2072 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002073 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002074 .vendor_name = "MOTU",
2075 .product_name = "Fastlane",
2076 .ifnum = QUIRK_ANY_INTERFACE,
2077 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002078 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002079 {
2080 .ifnum = 0,
Clemens Ladischc7f57212010-10-22 18:20:48 +02002081 .type = QUIRK_MIDI_RAW_BYTES
Linus Torvalds1da177e2005-04-16 15:20:36 -07002082 },
2083 {
2084 .ifnum = 1,
2085 .type = QUIRK_IGNORE_INTERFACE
2086 },
2087 {
2088 .ifnum = -1
2089 }
2090 }
2091 }
2092},
2093
Linus Torvalds1da177e2005-04-16 15:20:36 -07002094/* Emagic devices */
2095{
2096 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002097 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002098 .vendor_name = "Emagic",
2099 /* .product_name = "Unitor8", */
2100 .ifnum = 2,
2101 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002102 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002103 .out_cables = 0x80ff,
2104 .in_cables = 0x80ff
2105 }
2106 }
2107},
2108{
2109 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002110 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002111 .vendor_name = "Emagic",
2112 /* .product_name = "AMT8", */
2113 .ifnum = 2,
2114 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002115 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002116 .out_cables = 0x80ff,
2117 .in_cables = 0x80ff
2118 }
2119 }
2120},
2121{
2122 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002123 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002124 .vendor_name = "Emagic",
2125 /* .product_name = "MT4", */
2126 .ifnum = 2,
2127 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002128 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002129 .out_cables = 0x800f,
2130 .in_cables = 0x8003
2131 }
2132 }
2133},
2134
Krzysztof Foltman4434ade2010-05-20 20:31:10 +01002135/* AKAI devices */
2136{
2137 USB_DEVICE(0x09e8, 0x0062),
2138 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2139 .vendor_name = "AKAI",
2140 .product_name = "MPD16",
2141 .ifnum = 0,
2142 .type = QUIRK_MIDI_AKAI,
2143 }
2144},
2145
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002146/* TerraTec devices */
2147{
2148 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002149 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002150 .vendor_name = "TerraTec",
2151 .product_name = "PHASE 26",
2152 .ifnum = 3,
2153 .type = QUIRK_MIDI_STANDARD_INTERFACE
2154 }
2155},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002156{
2157 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002158 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002159 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07002160 .product_name = "PHASE 26",
2161 .ifnum = 3,
2162 .type = QUIRK_MIDI_STANDARD_INTERFACE
2163 }
2164},
Clemens Ladischb2b82292006-02-08 12:38:23 +01002165{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02002166 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
2167 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2168 .vendor_name = "TerraTec",
2169 .product_name = "PHASE 26",
2170 .ifnum = 3,
2171 .type = QUIRK_MIDI_STANDARD_INTERFACE
2172 }
2173},
2174{
Andrea Borgiaca85b6b2009-06-02 19:21:17 +02002175 USB_DEVICE(0x0ccd, 0x0028),
Andrea Borgia93bfd012009-06-01 10:48:54 +02002176 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2177 .vendor_name = "TerraTec",
Andrea Borgiad9e89bf2009-06-14 12:16:17 +02002178 .product_name = "Aureon5.1MkII",
Andrea Borgia93bfd012009-06-01 10:48:54 +02002179 .ifnum = QUIRK_NO_INTERFACE
2180 }
2181},
2182{
Clemens Ladischb2b82292006-02-08 12:38:23 +01002183 USB_DEVICE(0x0ccd, 0x0035),
2184 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2185 .vendor_name = "Miditech",
2186 .product_name = "Play'n Roll",
2187 .ifnum = 0,
2188 .type = QUIRK_MIDI_CME
2189 }
2190},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002191
Mark Hills0f28ecd2007-08-10 08:01:54 +02002192/* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
2193{
2194 USB_DEVICE(0x103d, 0x0100),
2195 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2196 .vendor_name = "Stanton",
2197 .product_name = "ScratchAmp",
2198 .ifnum = QUIRK_NO_INTERFACE
2199 }
2200},
2201{
2202 USB_DEVICE(0x103d, 0x0101),
2203 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2204 .vendor_name = "Stanton",
2205 .product_name = "ScratchAmp",
2206 .ifnum = QUIRK_NO_INTERFACE
2207 }
2208},
2209
Linus Torvalds1da177e2005-04-16 15:20:36 -07002210/* Novation EMS devices */
2211{
2212 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002213 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002214 .vendor_name = "Novation",
2215 .product_name = "ReMOTE Audio/XStation",
2216 .ifnum = 4,
2217 .type = QUIRK_MIDI_NOVATION
2218 }
2219},
2220{
2221 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002222 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002223 .vendor_name = "Novation",
2224 .product_name = "Speedio",
2225 .ifnum = 3,
2226 .type = QUIRK_MIDI_NOVATION
2227 }
2228},
2229{
Clemens Ladischc7f57212010-10-22 18:20:48 +02002230 USB_DEVICE(0x1235, 0x000e),
2231 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2232 /* .vendor_name = "Novation", */
2233 /* .product_name = "Launchpad", */
2234 .ifnum = 0,
2235 .type = QUIRK_MIDI_RAW_BYTES
2236 }
2237},
2238{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002239 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002240 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002241 .vendor_name = "Novation",
2242 .product_name = "ReMOTE25",
2243 .ifnum = 0,
2244 .type = QUIRK_MIDI_NOVATION
2245 }
2246},
2247
Sebastien Alaiwand39e82d2010-02-16 08:55:08 +01002248/* Access Music devices */
2249{
2250 /* VirusTI Desktop */
2251 USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
2252 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2253 .ifnum = QUIRK_ANY_INTERFACE,
2254 .type = QUIRK_COMPOSITE,
2255 .data = &(const struct snd_usb_audio_quirk[]) {
2256 {
2257 .ifnum = 3,
2258 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2259 .data = &(const struct snd_usb_midi_endpoint_info) {
2260 .out_cables = 0x0003,
2261 .in_cables = 0x0003
2262 }
2263 },
2264 {
2265 .ifnum = 4,
2266 .type = QUIRK_IGNORE_INTERFACE
2267 },
2268 {
2269 .ifnum = -1
2270 }
2271 }
2272 }
2273},
2274
Mark Hills3a7788b2007-09-03 08:20:09 +02002275/* */
Clemens Ladisch15944802007-08-29 17:38:14 +02002276{
Mark Hills3a7788b2007-09-03 08:20:09 +02002277 /* aka. Serato Scratch Live DJ Box */
Clemens Ladisch15944802007-08-29 17:38:14 +02002278 USB_DEVICE(0x13e5, 0x0001),
Mark Hills3a7788b2007-09-03 08:20:09 +02002279 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2280 .vendor_name = "Rane",
2281 .product_name = "SL-1",
2282 .ifnum = QUIRK_NO_INTERFACE
Clemens Ladisch15944802007-08-29 17:38:14 +02002283 }
2284},
2285
Daniel Mack54a8c502011-02-11 11:08:06 +00002286/* Native Instruments MK2 series */
2287{
2288 /* Traktor Audio 6 */
2289 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2290 .idVendor = 0x17cc,
2291 .idProduct = 0x1010,
2292},
2293{
2294 /* Traktor Audio 10 */
2295 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2296 .idVendor = 0x17cc,
2297 .idProduct = 0x1020,
2298},
2299
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002300/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002301{
Clemens Ladischf38275f2005-07-25 16:17:29 +02002302 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002303 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002304 .vendor_name = "Miditech",
2305 .product_name = "Midistart-2",
2306 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002307 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002308 }
2309},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002310
2311/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002312{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002313 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002314 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002315 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002316 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002317 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002318 }
2319},
2320
John S. Gruber52a7a582009-12-27 12:19:59 -05002321/* Hauppauge HVR-950Q and HVR-850 */
2322{
2323 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
2324 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2325 USB_DEVICE_ID_MATCH_INT_CLASS |
2326 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2327 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002328 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
John S. Gruber52a7a582009-12-27 12:19:59 -05002329 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2330 .vendor_name = "Hauppauge",
2331 .product_name = "HVR-950Q",
2332 .ifnum = QUIRK_ANY_INTERFACE,
2333 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2334 }
2335},
2336{
John S Gruberdd2f8c22010-08-01 09:53:37 -04002337 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
John S. Gruber52a7a582009-12-27 12:19:59 -05002338 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2339 USB_DEVICE_ID_MATCH_INT_CLASS |
2340 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2341 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002342 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
John S. Gruber52a7a582009-12-27 12:19:59 -05002343 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2344 .vendor_name = "Hauppauge",
2345 .product_name = "HVR-850",
2346 .ifnum = QUIRK_ANY_INTERFACE,
2347 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2348 }
2349},
John S Gruberdd2f8c22010-08-01 09:53:37 -04002350{
2351 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
2352 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2353 USB_DEVICE_ID_MATCH_INT_CLASS |
2354 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2355 .bInterfaceClass = USB_CLASS_AUDIO,
2356 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2357 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2358 .vendor_name = "Hauppauge",
2359 .product_name = "HVR-950Q",
2360 .ifnum = QUIRK_ANY_INTERFACE,
2361 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2362 }
2363},
2364{
2365 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
2366 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2367 USB_DEVICE_ID_MATCH_INT_CLASS |
2368 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2369 .bInterfaceClass = USB_CLASS_AUDIO,
2370 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2371 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2372 .vendor_name = "Hauppauge",
2373 .product_name = "HVR-950Q",
2374 .ifnum = QUIRK_ANY_INTERFACE,
2375 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2376 }
2377},
2378{
2379 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
2380 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2381 USB_DEVICE_ID_MATCH_INT_CLASS |
2382 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2383 .bInterfaceClass = USB_CLASS_AUDIO,
2384 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2385 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2386 .vendor_name = "Hauppauge",
2387 .product_name = "HVR-950Q",
2388 .ifnum = QUIRK_ANY_INTERFACE,
2389 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2390 }
2391},
2392{
2393 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
2394 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2395 USB_DEVICE_ID_MATCH_INT_CLASS |
2396 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2397 .bInterfaceClass = USB_CLASS_AUDIO,
2398 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2399 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2400 .vendor_name = "Hauppauge",
2401 .product_name = "HVR-950Q",
2402 .ifnum = QUIRK_ANY_INTERFACE,
2403 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2404 }
2405},
2406{
2407 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
2408 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2409 USB_DEVICE_ID_MATCH_INT_CLASS |
2410 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2411 .bInterfaceClass = USB_CLASS_AUDIO,
2412 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2413 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2414 .vendor_name = "Hauppauge",
2415 .product_name = "HVR-950Q",
2416 .ifnum = QUIRK_ANY_INTERFACE,
2417 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2418 }
2419},
2420{
2421 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
2422 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2423 USB_DEVICE_ID_MATCH_INT_CLASS |
2424 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2425 .bInterfaceClass = USB_CLASS_AUDIO,
2426 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2427 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2428 .vendor_name = "Hauppauge",
2429 .product_name = "HVR-950Q",
2430 .ifnum = QUIRK_ANY_INTERFACE,
2431 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2432 }
2433},
2434{
2435 USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
2436 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2437 USB_DEVICE_ID_MATCH_INT_CLASS |
2438 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2439 .bInterfaceClass = USB_CLASS_AUDIO,
2440 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2441 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2442 .vendor_name = "Hauppauge",
2443 .product_name = "HVR-950Q",
2444 .ifnum = QUIRK_ANY_INTERFACE,
2445 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2446 }
2447},
John S. Gruber52a7a582009-12-27 12:19:59 -05002448
Chris J Arges40717382010-02-17 12:12:52 -06002449/* Digidesign Mbox */
2450{
2451 /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
2452 USB_DEVICE(0x0dba, 0x1000),
2453 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2454 .vendor_name = "Digidesign",
2455 .product_name = "MBox",
2456 .ifnum = QUIRK_ANY_INTERFACE,
2457 .type = QUIRK_COMPOSITE,
2458 .data = (const struct snd_usb_audio_quirk[]){
2459 {
2460 .ifnum = 0,
2461 .type = QUIRK_IGNORE_INTERFACE,
2462 },
2463 {
2464 .ifnum = 1,
2465 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2466 .data = &(const struct audioformat) {
Clemens Ladisch29088fe2010-03-04 19:46:16 +01002467 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
Chris J Arges40717382010-02-17 12:12:52 -06002468 .channels = 2,
2469 .iface = 1,
2470 .altsetting = 1,
2471 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002472 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
Chris J Arges40717382010-02-17 12:12:52 -06002473 .endpoint = 0x02,
2474 .ep_attr = 0x01,
2475 .maxpacksize = 0x130,
2476 .rates = SNDRV_PCM_RATE_44100 |
2477 SNDRV_PCM_RATE_48000,
2478 .rate_min = 44100,
2479 .rate_max = 48000,
2480 .nr_rates = 2,
2481 .rate_table = (unsigned int[]) {
2482 44100, 48000
2483 }
2484 }
2485 },
2486 {
2487 .ifnum = -1
2488 }
2489 }
2490
2491 }
2492},
2493
Clemens Ladischf38275f2005-07-25 16:17:29 +02002494{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002495 /*
2496 * Some USB MIDI devices don't have an audio control interface,
2497 * so we have to grab MIDI streaming interfaces here.
2498 */
2499 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
2500 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2501 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002502 .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002503 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002504 .ifnum = QUIRK_ANY_INTERFACE,
2505 .type = QUIRK_MIDI_STANDARD_INTERFACE
2506 }
2507},
2508
2509#undef USB_DEVICE_VENDOR_SPEC