blob: c39f898b15d23a496171e4752a459653b4a3a0bb [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
Kristian Amlie1ef0e0a2011-08-26 13:19:49 +020042/* FTDI devices */
43{
44 USB_DEVICE(0x0403, 0xb8d8),
45 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
46 /* .vendor_name = "STARR LABS", */
47 /* .product_name = "Starr Labs MIDI USB device", */
48 .ifnum = 0,
49 .type = QUIRK_MIDI_FTDI
50 }
51},
52
Alexander Schremmer8f7f3ab12013-01-03 12:59:07 +010053{
54 /* Creative BT-D1 */
55 USB_DEVICE(0x041e, 0x0005),
56 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
57 .ifnum = 1,
58 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
59 .data = &(const struct audioformat) {
60 .formats = SNDRV_PCM_FMTBIT_S16_LE,
61 .channels = 2,
62 .iface = 1,
63 .altsetting = 1,
64 .altset_idx = 1,
65 .endpoint = 0x03,
66 .ep_attr = USB_ENDPOINT_XFER_ISOC,
67 .attributes = 0,
68 .rates = SNDRV_PCM_RATE_CONTINUOUS,
69 .rate_min = 48000,
70 .rate_max = 48000,
71 }
72 }
73},
74
Andrea Borgiadc61b66f2009-01-12 23:17:47 +010075/* Creative/Toshiba Multimedia Center SB-0500 */
76{
77 USB_DEVICE(0x041e, 0x3048),
78 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
79 .vendor_name = "Toshiba",
80 .product_name = "SB-0500",
81 .ifnum = QUIRK_NO_INTERFACE
82 }
83},
84
Clemens Ladisch25a47b62008-02-25 11:04:19 +010085/* Creative/E-Mu devices */
86{
87 USB_DEVICE(0x041e, 0x3010),
88 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
89 .vendor_name = "Creative Labs",
90 .product_name = "Sound Blaster MP3+",
91 .ifnum = QUIRK_NO_INTERFACE
92 }
93},
94{
95 /* E-Mu 0202 USB */
96 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
97 .idVendor = 0x041e,
98 .idProduct = 0x3f02,
99 .bInterfaceClass = USB_CLASS_AUDIO,
100},
101{
102 /* E-Mu 0404 USB */
103 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
104 .idVendor = 0x041e,
105 .idProduct = 0x3f04,
106 .bInterfaceClass = USB_CLASS_AUDIO,
107},
Eran Tromer97c889a2008-09-26 01:07:03 -0400108{
109 /* E-Mu Tracker Pre */
110 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
111 .idVendor = 0x041e,
112 .idProduct = 0x3f0a,
113 .bInterfaceClass = USB_CLASS_AUDIO,
114},
Joseph Teichman1cdfa9f2011-02-08 01:22:36 -0500115{
116 /* E-Mu 0204 USB */
117 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
118 .idVendor = 0x041e,
119 .idProduct = 0x3f19,
120 .bInterfaceClass = USB_CLASS_AUDIO,
121},
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100122
Linus Torvalds1da177e2005-04-16 15:20:36 -0700123/*
Eldad Zackdf68f102012-12-15 05:30:33 +0100124 * HP Wireless Audio
125 * When not ignored, causes instability issues for some users, forcing them to
126 * blacklist the entire module.
127 */
128{
129 USB_DEVICE(0x0424, 0xb832),
130 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
131 .vendor_name = "Standard Microsystems Corp.",
132 .product_name = "HP Wireless Audio",
133 .ifnum = QUIRK_ANY_INTERFACE,
134 .type = QUIRK_COMPOSITE,
135 .data = (const struct snd_usb_audio_quirk[]) {
136 /* Mixer */
137 {
138 .ifnum = 0,
139 .type = QUIRK_IGNORE_INTERFACE,
140 },
141 /* Playback */
142 {
143 .ifnum = 1,
144 .type = QUIRK_IGNORE_INTERFACE,
145 },
146 /* Capture */
147 {
148 .ifnum = 2,
149 .type = QUIRK_IGNORE_INTERFACE,
150 },
151 /* HID Device, .ifnum = 3 */
152 {
153 .ifnum = -1,
154 }
155 }
156 }
157},
158
159/*
Daniel Drakea9121452007-05-07 09:27:05 +0200160 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
161 * class matches do not take effect without an explicit ID match.
162 */
163{
164 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
165 USB_DEVICE_ID_MATCH_INT_CLASS |
166 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
167 .idVendor = 0x046d,
Daniel Draked4170452007-05-10 08:52:19 +0200168 .idProduct = 0x0850,
169 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100170 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Draked4170452007-05-10 08:52:19 +0200171},
172{
173 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
174 USB_DEVICE_ID_MATCH_INT_CLASS |
175 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
176 .idVendor = 0x046d,
George Shapovalovc34532d2007-07-09 10:42:35 +0200177 .idProduct = 0x08ae,
178 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100179 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
George Shapovalovc34532d2007-07-09 10:42:35 +0200180},
181{
182 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
183 USB_DEVICE_ID_MATCH_INT_CLASS |
184 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
185 .idVendor = 0x046d,
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200186 .idProduct = 0x08c6,
187 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100188 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200189},
190{
191 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
192 USB_DEVICE_ID_MATCH_INT_CLASS |
193 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
194 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200195 .idProduct = 0x08f0,
196 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100197 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Drakea9121452007-05-07 09:27:05 +0200198},
199{
200 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
201 USB_DEVICE_ID_MATCH_INT_CLASS |
202 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
203 .idVendor = 0x046d,
Dawid Wrobel31127f22007-10-22 11:57:17 +0200204 .idProduct = 0x08f5,
205 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100206 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Dawid Wrobel31127f22007-10-22 11:57:17 +0200207},
208{
209 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
210 USB_DEVICE_ID_MATCH_INT_CLASS |
211 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
212 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200213 .idProduct = 0x08f6,
214 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100215 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Drakea9121452007-05-07 09:27:05 +0200216},
Signed-off-by: Peter Stokes5c6c9e62009-01-14 09:47:57 +0100217{
218 USB_DEVICE(0x046d, 0x0990),
219 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
220 .vendor_name = "Logitech, Inc.",
221 .product_name = "QuickCam Pro 9000",
222 .ifnum = QUIRK_NO_INTERFACE
223 }
224},
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100225
James Courtier-Dutton1e741902007-10-08 18:49:43 +0100226/*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700227 * Yamaha devices
228 */
229
230#define YAMAHA_DEVICE(id, name) { \
231 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100232 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700233 .vendor_name = "Yamaha", \
234 .product_name = name, \
235 .ifnum = QUIRK_ANY_INTERFACE, \
236 .type = QUIRK_MIDI_YAMAHA \
237 } \
238}
239#define YAMAHA_INTERFACE(id, intf, name) { \
240 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100241 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700242 .vendor_name = "Yamaha", \
243 .product_name = name, \
244 .ifnum = intf, \
245 .type = QUIRK_MIDI_YAMAHA \
246 } \
247}
248YAMAHA_DEVICE(0x1000, "UX256"),
249YAMAHA_DEVICE(0x1001, "MU1000"),
250YAMAHA_DEVICE(0x1002, "MU2000"),
251YAMAHA_DEVICE(0x1003, "MU500"),
252YAMAHA_INTERFACE(0x1004, 3, "UW500"),
253YAMAHA_DEVICE(0x1005, "MOTIF6"),
254YAMAHA_DEVICE(0x1006, "MOTIF7"),
255YAMAHA_DEVICE(0x1007, "MOTIF8"),
256YAMAHA_DEVICE(0x1008, "UX96"),
257YAMAHA_DEVICE(0x1009, "UX16"),
258YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
259YAMAHA_DEVICE(0x100c, "UC-MX"),
260YAMAHA_DEVICE(0x100d, "UC-KX"),
261YAMAHA_DEVICE(0x100e, "S08"),
262YAMAHA_DEVICE(0x100f, "CLP-150"),
263YAMAHA_DEVICE(0x1010, "CLP-170"),
264YAMAHA_DEVICE(0x1011, "P-250"),
265YAMAHA_DEVICE(0x1012, "TYROS"),
266YAMAHA_DEVICE(0x1013, "PF-500"),
267YAMAHA_DEVICE(0x1014, "S90"),
268YAMAHA_DEVICE(0x1015, "MOTIF-R"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100269YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700270YAMAHA_DEVICE(0x1017, "CVP-204"),
271YAMAHA_DEVICE(0x1018, "CVP-206"),
272YAMAHA_DEVICE(0x1019, "CVP-208"),
273YAMAHA_DEVICE(0x101a, "CVP-210"),
274YAMAHA_DEVICE(0x101b, "PSR-1100"),
275YAMAHA_DEVICE(0x101c, "PSR-2100"),
276YAMAHA_DEVICE(0x101d, "CLP-175"),
277YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100278YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700279YAMAHA_DEVICE(0x1020, "EZ-250i"),
280YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
281YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
282YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
283YAMAHA_DEVICE(0x1024, "CVP-301"),
284YAMAHA_DEVICE(0x1025, "CVP-303"),
285YAMAHA_DEVICE(0x1026, "CVP-305"),
286YAMAHA_DEVICE(0x1027, "CVP-307"),
287YAMAHA_DEVICE(0x1028, "CVP-309"),
288YAMAHA_DEVICE(0x1029, "CVP-309GP"),
289YAMAHA_DEVICE(0x102a, "PSR-1500"),
290YAMAHA_DEVICE(0x102b, "PSR-3000"),
291YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
292YAMAHA_DEVICE(0x1030, "PSR-295/293"),
293YAMAHA_DEVICE(0x1031, "DGX-205/203"),
294YAMAHA_DEVICE(0x1032, "DGX-305"),
295YAMAHA_DEVICE(0x1033, "DGX-505"),
296YAMAHA_DEVICE(0x1034, NULL),
297YAMAHA_DEVICE(0x1035, NULL),
298YAMAHA_DEVICE(0x1036, NULL),
299YAMAHA_DEVICE(0x1037, NULL),
300YAMAHA_DEVICE(0x1038, NULL),
301YAMAHA_DEVICE(0x1039, NULL),
302YAMAHA_DEVICE(0x103a, NULL),
303YAMAHA_DEVICE(0x103b, NULL),
304YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200305YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200306YAMAHA_DEVICE(0x103e, NULL),
307YAMAHA_DEVICE(0x103f, NULL),
308YAMAHA_DEVICE(0x1040, NULL),
309YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200310YAMAHA_DEVICE(0x1042, NULL),
311YAMAHA_DEVICE(0x1043, NULL),
312YAMAHA_DEVICE(0x1044, NULL),
313YAMAHA_DEVICE(0x1045, NULL),
Clemens Ladischc85ceac2008-07-10 11:01:06 +0200314YAMAHA_INTERFACE(0x104e, 0, NULL),
Clemens Ladisch83a1a392008-07-10 11:05:42 +0200315YAMAHA_DEVICE(0x104f, NULL),
316YAMAHA_DEVICE(0x1050, NULL),
317YAMAHA_DEVICE(0x1051, NULL),
318YAMAHA_DEVICE(0x1052, NULL),
Clemens Ladisch422fdc32010-10-04 13:09:12 +0200319YAMAHA_INTERFACE(0x1053, 0, NULL),
320YAMAHA_INTERFACE(0x1054, 0, NULL),
321YAMAHA_DEVICE(0x1055, NULL),
322YAMAHA_DEVICE(0x1056, NULL),
323YAMAHA_DEVICE(0x1057, NULL),
324YAMAHA_DEVICE(0x1058, NULL),
325YAMAHA_DEVICE(0x1059, NULL),
326YAMAHA_DEVICE(0x105a, NULL),
327YAMAHA_DEVICE(0x105b, NULL),
328YAMAHA_DEVICE(0x105c, NULL),
329YAMAHA_DEVICE(0x105d, NULL),
Clemens Ladisch8c3f5d82011-12-19 23:09:15 +0100330{
331 USB_DEVICE(0x0499, 0x1503),
332 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
333 /* .vendor_name = "Yamaha", */
334 /* .product_name = "MOX6/MOX8", */
335 .ifnum = QUIRK_ANY_INTERFACE,
336 .type = QUIRK_COMPOSITE,
337 .data = (const struct snd_usb_audio_quirk[]) {
338 {
339 .ifnum = 1,
340 .type = QUIRK_AUDIO_STANDARD_INTERFACE
341 },
342 {
343 .ifnum = 2,
344 .type = QUIRK_AUDIO_STANDARD_INTERFACE
345 },
346 {
347 .ifnum = 3,
348 .type = QUIRK_MIDI_YAMAHA
349 },
350 {
351 .ifnum = -1
352 }
353 }
354 }
355},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700356YAMAHA_DEVICE(0x2000, "DGP-7"),
357YAMAHA_DEVICE(0x2001, "DGP-5"),
358YAMAHA_DEVICE(0x2002, NULL),
Clemens Ladisch422fdc32010-10-04 13:09:12 +0200359YAMAHA_DEVICE(0x2003, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360YAMAHA_DEVICE(0x5000, "CS1D"),
361YAMAHA_DEVICE(0x5001, "DSP1D"),
362YAMAHA_DEVICE(0x5002, "DME32"),
363YAMAHA_DEVICE(0x5003, "DM2000"),
364YAMAHA_DEVICE(0x5004, "02R96"),
365YAMAHA_DEVICE(0x5005, "ACU16-C"),
366YAMAHA_DEVICE(0x5006, "NHB32-C"),
367YAMAHA_DEVICE(0x5007, "DM1000"),
368YAMAHA_DEVICE(0x5008, "01V96"),
369YAMAHA_DEVICE(0x5009, "SPX2000"),
370YAMAHA_DEVICE(0x500a, "PM5D"),
371YAMAHA_DEVICE(0x500b, "DME64N"),
372YAMAHA_DEVICE(0x500c, "DME24N"),
373YAMAHA_DEVICE(0x500d, NULL),
374YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200375YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700376YAMAHA_DEVICE(0x7000, "DTX"),
377YAMAHA_DEVICE(0x7010, "UB99"),
378#undef YAMAHA_DEVICE
379#undef YAMAHA_INTERFACE
380
381/*
382 * Roland/RolandED/Edirol/BOSS devices
383 */
384{
385 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100386 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700387 .vendor_name = "Roland",
388 .product_name = "UA-100",
389 .ifnum = QUIRK_ANY_INTERFACE,
390 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100391 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700392 {
393 .ifnum = 0,
394 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
395 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100396 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397 .channels = 4,
398 .iface = 0,
399 .altsetting = 1,
400 .altset_idx = 1,
401 .attributes = 0,
402 .endpoint = 0x01,
403 .ep_attr = 0x09,
404 .rates = SNDRV_PCM_RATE_CONTINUOUS,
405 .rate_min = 44100,
406 .rate_max = 44100,
407 }
408 },
409 {
410 .ifnum = 1,
411 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
412 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100413 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700414 .channels = 2,
415 .iface = 1,
416 .altsetting = 1,
417 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100418 .attributes = UAC_EP_CS_ATTR_FILL_MAX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700419 .endpoint = 0x81,
420 .ep_attr = 0x05,
421 .rates = SNDRV_PCM_RATE_CONTINUOUS,
422 .rate_min = 44100,
423 .rate_max = 44100,
424 }
425 },
426 {
427 .ifnum = 2,
428 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100429 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700430 .out_cables = 0x0007,
431 .in_cables = 0x0007
432 }
433 },
434 {
435 .ifnum = -1
436 }
437 }
438 }
439},
440{
441 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100442 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700443 .vendor_name = "EDIROL",
444 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200445 .ifnum = QUIRK_ANY_INTERFACE,
446 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100447 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200448 {
449 .ifnum = 0,
450 .type = QUIRK_IGNORE_INTERFACE
451 },
452 {
453 .ifnum = 1,
454 .type = QUIRK_IGNORE_INTERFACE
455 },
456 {
457 .ifnum = 2,
458 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100459 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200460 .out_cables = 0x000f,
461 .in_cables = 0x000f
462 }
463 },
464 {
465 .ifnum = -1
466 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700467 }
468 }
469},
470{
471 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100472 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700473 .vendor_name = "Roland",
474 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200475 .ifnum = QUIRK_ANY_INTERFACE,
476 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100477 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200478 {
479 .ifnum = 0,
480 .type = QUIRK_IGNORE_INTERFACE
481 },
482 {
483 .ifnum = 1,
484 .type = QUIRK_IGNORE_INTERFACE
485 },
486 {
487 .ifnum = 2,
488 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100489 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200490 .out_cables = 0x003f,
491 .in_cables = 0x003f
492 }
493 },
494 {
495 .ifnum = -1
496 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497 }
498 }
499},
500{
501 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100502 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700503 .vendor_name = "Roland",
504 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200505 .ifnum = QUIRK_ANY_INTERFACE,
506 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100507 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200508 {
509 .ifnum = 0,
510 .type = QUIRK_IGNORE_INTERFACE
511 },
512 {
513 .ifnum = 1,
514 .type = QUIRK_IGNORE_INTERFACE
515 },
516 {
517 .ifnum = 2,
518 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100519 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200520 .out_cables = 0x0005,
521 .in_cables = 0x0005
522 }
523 },
524 {
525 .ifnum = -1
526 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700527 }
528 }
529},
530{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100531 /* Has ID 0x0099 when not in "Advanced Driver" mode.
532 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700533 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100534 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700535 .vendor_name = "EDIROL",
536 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200537 .ifnum = QUIRK_ANY_INTERFACE,
538 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100539 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200540 {
541 .ifnum = 0,
542 .type = QUIRK_IGNORE_INTERFACE
543 },
544 {
545 .ifnum = 1,
546 .type = QUIRK_IGNORE_INTERFACE
547 },
548 {
549 .ifnum = 2,
550 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100551 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200552 .out_cables = 0x0003,
553 .in_cables = 0x0003
554 }
555 },
556 {
557 .ifnum = -1
558 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700559 }
560 }
561},
562{
563 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100564 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700565 .vendor_name = "Roland",
566 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200567 .ifnum = QUIRK_ANY_INTERFACE,
568 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100569 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200570 {
571 .ifnum = 0,
572 .type = QUIRK_IGNORE_INTERFACE
573 },
574 {
575 .ifnum = 1,
576 .type = QUIRK_IGNORE_INTERFACE
577 },
578 {
579 .ifnum = 2,
580 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100581 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200582 .out_cables = 0x0013,
583 .in_cables = 0x0013
584 }
585 },
586 {
587 .ifnum = -1
588 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700589 }
590 }
591},
592{
593 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100594 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700595 .vendor_name = "Roland",
596 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200597 .ifnum = QUIRK_ANY_INTERFACE,
598 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100599 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200600 {
601 .ifnum = 0,
602 .type = QUIRK_IGNORE_INTERFACE
603 },
604 {
605 .ifnum = 1,
606 .type = QUIRK_IGNORE_INTERFACE
607 },
608 {
609 .ifnum = 2,
610 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100611 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200612 .out_cables = 0x0001,
613 .in_cables = 0x0001
614 }
615 },
616 {
617 .ifnum = -1
618 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700619 }
620 }
621},
622{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100623 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700624 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100625 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700626 .vendor_name = "EDIROL",
627 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200628 .ifnum = QUIRK_ANY_INTERFACE,
629 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100630 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200631 {
632 .ifnum = 0,
633 .type = QUIRK_IGNORE_INTERFACE
634 },
635 {
636 .ifnum = 1,
637 .type = QUIRK_IGNORE_INTERFACE
638 },
639 {
640 .ifnum = 2,
641 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100642 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200643 .out_cables = 0x0001,
644 .in_cables = 0x0001
645 }
646 },
647 {
648 .ifnum = -1
649 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 }
651 }
652},
653{
654 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100655 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700656 .vendor_name = "Roland",
657 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200658 .ifnum = QUIRK_ANY_INTERFACE,
659 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100660 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200661 {
662 .ifnum = 0,
663 .type = QUIRK_IGNORE_INTERFACE
664 },
665 {
666 .ifnum = 1,
667 .type = QUIRK_IGNORE_INTERFACE
668 },
669 {
670 .ifnum = 2,
671 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100672 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200673 .out_cables = 0x0013,
674 .in_cables = 0x0013
675 }
676 },
677 {
678 .ifnum = -1
679 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700680 }
681 }
682},
683{
684 /* thanks to Emiliano Grilli <emillo@libero.it>
685 * for helping researching this data */
686 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100687 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700688 .vendor_name = "Roland",
689 .product_name = "SC-D70",
690 .ifnum = QUIRK_ANY_INTERFACE,
691 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100692 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700693 {
694 .ifnum = 0,
695 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
696 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100697 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700698 .channels = 2,
699 .iface = 0,
700 .altsetting = 1,
701 .altset_idx = 1,
702 .attributes = 0,
703 .endpoint = 0x01,
704 .ep_attr = 0x01,
705 .rates = SNDRV_PCM_RATE_CONTINUOUS,
706 .rate_min = 44100,
707 .rate_max = 44100,
708 }
709 },
710 {
711 .ifnum = 1,
712 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
713 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100714 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700715 .channels = 2,
716 .iface = 1,
717 .altsetting = 1,
718 .altset_idx = 1,
719 .attributes = 0,
720 .endpoint = 0x81,
721 .ep_attr = 0x01,
722 .rates = SNDRV_PCM_RATE_CONTINUOUS,
723 .rate_min = 44100,
724 .rate_max = 44100,
725 }
726 },
727 {
728 .ifnum = 2,
729 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100730 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700731 .out_cables = 0x0007,
732 .in_cables = 0x0007
733 }
734 },
735 {
736 .ifnum = -1
737 }
738 }
739 }
740},
741{ /*
742 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
743 * If the advanced mode switch at the back of the unit is off, the
744 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
745 * but offers only 16-bit PCM.
746 * In advanced mode, the UA-5 will output S24_3LE samples (two
747 * channels) at the rate indicated on the front switch, including
748 * the 96kHz sample rate.
749 */
750 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100751 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700752 .vendor_name = "EDIROL",
753 .product_name = "UA-5",
754 .ifnum = QUIRK_ANY_INTERFACE,
755 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100756 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700757 {
758 .ifnum = 1,
759 .type = QUIRK_AUDIO_STANDARD_INTERFACE
760 },
761 {
762 .ifnum = 2,
763 .type = QUIRK_AUDIO_STANDARD_INTERFACE
764 },
765 {
766 .ifnum = -1
767 }
768 }
769 }
770},
771{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200772 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700773 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100774 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700775 .vendor_name = "Roland",
776 .product_name = "XV-5050",
777 .ifnum = 0,
778 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100779 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700780 .out_cables = 0x0001,
781 .in_cables = 0x0001
782 }
783 }
784},
785{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200786 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700787 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100788 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700789 .vendor_name = "EDIROL",
790 .product_name = "UM-880",
791 .ifnum = 0,
792 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100793 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700794 .out_cables = 0x01ff,
795 .in_cables = 0x01ff
796 }
797 }
798},
799{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200800 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700801 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100802 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700803 .vendor_name = "EDIROL",
804 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200805 .ifnum = QUIRK_ANY_INTERFACE,
806 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100807 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200808 {
809 .ifnum = 0,
Clemens Ladisch061b8692011-01-10 16:30:54 +0100810 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200811 },
812 {
813 .ifnum = 1,
Clemens Ladisch061b8692011-01-10 16:30:54 +0100814 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200815 },
816 {
817 .ifnum = 2,
818 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100819 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200820 .out_cables = 0x000f,
821 .in_cables = 0x000f
822 }
823 },
824 {
825 .ifnum = -1
826 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700827 }
828 }
829},
830{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200831 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700832 USB_DEVICE(0x0582, 0x001b),
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 = "Roland",
835 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200836 .ifnum = QUIRK_ANY_INTERFACE,
837 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100838 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200839 {
840 .ifnum = 0,
841 .type = QUIRK_IGNORE_INTERFACE
842 },
843 {
844 .ifnum = 1,
845 .type = QUIRK_IGNORE_INTERFACE
846 },
847 {
848 .ifnum = 2,
849 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100850 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200851 .out_cables = 0x0001,
852 .in_cables = 0x0001
853 }
854 },
855 {
856 .ifnum = -1
857 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700858 }
859 }
860},
861{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200862 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700863 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100864 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700865 .vendor_name = "Roland",
866 .product_name = "V-SYNTH",
867 .ifnum = 0,
868 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100869 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700870 .out_cables = 0x0001,
871 .in_cables = 0x0001
872 }
873 }
874},
875{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200876 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700877 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100878 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700879 .vendor_name = "EDIROL",
880 .product_name = "UM-550",
881 .ifnum = 0,
882 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100883 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700884 .out_cables = 0x003f,
885 .in_cables = 0x003f
886 }
887 }
888},
889{
890 /*
891 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
892 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
893 * and no MIDI.
894 */
895 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100896 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700897 .vendor_name = "EDIROL",
898 .product_name = "UA-20",
899 .ifnum = QUIRK_ANY_INTERFACE,
900 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100901 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700902 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100903 .ifnum = 0,
904 .type = QUIRK_IGNORE_INTERFACE
905 },
906 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700907 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100908 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
909 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100910 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100911 .channels = 2,
912 .iface = 1,
913 .altsetting = 1,
914 .altset_idx = 1,
915 .attributes = 0,
916 .endpoint = 0x01,
917 .ep_attr = 0x01,
918 .rates = SNDRV_PCM_RATE_CONTINUOUS,
919 .rate_min = 44100,
920 .rate_max = 44100,
921 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700922 },
923 {
924 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100925 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
926 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100927 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100928 .channels = 2,
929 .iface = 2,
930 .altsetting = 1,
931 .altset_idx = 1,
932 .attributes = 0,
933 .endpoint = 0x82,
934 .ep_attr = 0x01,
935 .rates = SNDRV_PCM_RATE_CONTINUOUS,
936 .rate_min = 44100,
937 .rate_max = 44100,
938 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700939 },
940 {
941 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100942 .type = QUIRK_MIDI_FIXED_ENDPOINT,
943 .data = & (const struct snd_usb_midi_endpoint_info) {
944 .out_cables = 0x0001,
945 .in_cables = 0x0001
946 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700947 },
948 {
949 .ifnum = -1
950 }
951 }
952 }
953},
954{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200955 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700956 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100957 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700958 .vendor_name = "EDIROL",
959 .product_name = "SD-20",
960 .ifnum = 0,
961 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100962 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700963 .out_cables = 0x0003,
964 .in_cables = 0x0007
965 }
966 }
967},
968{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200969 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700970 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100971 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700972 .vendor_name = "EDIROL",
973 .product_name = "SD-80",
974 .ifnum = 0,
975 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100976 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700977 .out_cables = 0x000f,
978 .in_cables = 0x000f
979 }
980 }
981},
982{ /*
983 * This quirk is for the "Advanced" modes of the Edirol UA-700.
984 * If the sample format switch is not in an advanced setting, the
985 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
986 * but offers only 16-bit PCM and no MIDI.
987 */
988 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100989 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700990 .vendor_name = "EDIROL",
991 .product_name = "UA-700",
992 .ifnum = QUIRK_ANY_INTERFACE,
993 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100994 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700995 {
996 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200997 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700998 },
999 {
1000 .ifnum = 2,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001001 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001002 },
1003 {
1004 .ifnum = 3,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001005 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001006 },
1007 {
1008 .ifnum = -1
1009 }
1010 }
1011 }
1012},
1013{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001014 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001015 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001016 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001017 .vendor_name = "Roland",
1018 .product_name = "XV-2020",
1019 .ifnum = 0,
1020 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001021 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001022 .out_cables = 0x0001,
1023 .in_cables = 0x0001
1024 }
1025 }
1026},
1027{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001028 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001029 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001030 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001031 .vendor_name = "Roland",
1032 .product_name = "VariOS",
1033 .ifnum = 0,
1034 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001035 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001036 .out_cables = 0x0007,
1037 .in_cables = 0x0007
1038 }
1039 }
1040},
1041{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001042 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001043 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001044 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001045 .vendor_name = "EDIROL",
1046 .product_name = "PCR",
1047 .ifnum = 0,
1048 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001049 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001050 .out_cables = 0x0003,
1051 .in_cables = 0x0007
1052 }
1053 }
1054},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001055 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001056{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001057 /*
1058 * Has ID 0x0038 when not in "Advanced Driver" mode;
1059 * later revisions use IDs 0x0054 and 0x00a2.
1060 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001061 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001062 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001063 .vendor_name = "Roland",
1064 .product_name = "Digital Piano",
1065 .ifnum = 0,
1066 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001067 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001068 .out_cables = 0x0001,
1069 .in_cables = 0x0001
1070 }
1071 }
1072},
1073{
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001074 /*
1075 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
1076 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
1077 * and no MIDI.
1078 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001079 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001080 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001081 .vendor_name = "BOSS",
1082 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001083 .ifnum = QUIRK_ANY_INTERFACE,
1084 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001085 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001086 {
1087 .ifnum = 1,
1088 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1089 },
1090 {
1091 .ifnum = 2,
1092 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1093 },
1094 {
1095 .ifnum = 3,
1096 .type = QUIRK_MIDI_STANDARD_INTERFACE
1097 },
1098 {
1099 .ifnum = -1
1100 }
Linus Torvalds1da177e2005-04-16 15:20:36 -07001101 }
1102 }
1103},
1104{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001105 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001106 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001107 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001108 .vendor_name = "Roland",
1109 .product_name = "GI-20",
1110 .ifnum = 0,
1111 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001112 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001113 .out_cables = 0x0001,
1114 .in_cables = 0x0001
1115 }
1116 }
1117},
1118{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001119 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001120 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001121 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001122 .vendor_name = "Roland",
1123 .product_name = "RS-70",
1124 .ifnum = 0,
1125 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001126 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001127 .out_cables = 0x0001,
1128 .in_cables = 0x0001
1129 }
1130 }
1131},
1132{
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001133 /* has ID 0x0049 when not in "Advanced Driver" mode */
1134 USB_DEVICE(0x0582, 0x0047),
1135 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1136 /* .vendor_name = "EDIROL", */
1137 /* .product_name = "UR-80", */
1138 .ifnum = QUIRK_ANY_INTERFACE,
1139 .type = QUIRK_COMPOSITE,
1140 .data = (const struct snd_usb_audio_quirk[]) {
1141 /* in the 96 kHz modes, only interface 1 is there */
1142 {
1143 .ifnum = 1,
1144 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1145 },
1146 {
1147 .ifnum = 2,
1148 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1149 },
1150 {
1151 .ifnum = -1
1152 }
1153 }
1154 }
1155},
1156{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001157 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001158 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001159 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001160 /* .vendor_name = "EDIROL", */
1161 /* .product_name = "UR-80", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001162 .ifnum = 0,
1163 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001164 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001165 .out_cables = 0x0003,
1166 .in_cables = 0x0007
1167 }
1168 }
1169},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001170 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001171{
Clemens Ladischf38cc312007-02-09 20:52:55 +01001172 /* has ID 0x004e when not in "Advanced Driver" mode */
1173 USB_DEVICE(0x0582, 0x004c),
1174 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1175 .vendor_name = "EDIROL",
1176 .product_name = "PCR-A",
1177 .ifnum = QUIRK_ANY_INTERFACE,
1178 .type = QUIRK_COMPOSITE,
1179 .data = (const struct snd_usb_audio_quirk[]) {
1180 {
1181 .ifnum = 1,
1182 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1183 },
1184 {
1185 .ifnum = 2,
1186 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1187 },
1188 {
1189 .ifnum = -1
1190 }
1191 }
1192 }
1193},
1194{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001195 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001196 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001197 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001198 .vendor_name = "EDIROL",
1199 .product_name = "PCR-A",
1200 .ifnum = 0,
1201 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001202 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001203 .out_cables = 0x0003,
1204 .in_cables = 0x0007
1205 }
1206 }
1207},
1208{
1209 /*
1210 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1211 * is standard compliant, but has only 16-bit PCM.
1212 */
1213 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001214 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001215 .vendor_name = "EDIROL",
1216 .product_name = "UA-3FX",
1217 .ifnum = QUIRK_ANY_INTERFACE,
1218 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001219 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001220 {
1221 .ifnum = 1,
1222 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1223 },
1224 {
1225 .ifnum = 2,
1226 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1227 },
1228 {
1229 .ifnum = -1
1230 }
1231 }
1232 }
1233},
1234{
1235 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001236 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001237 .vendor_name = "EDIROL",
1238 .product_name = "UM-1SX",
1239 .ifnum = 0,
1240 .type = QUIRK_MIDI_STANDARD_INTERFACE
1241 }
1242},
Takashi Iwaif1676842007-07-09 10:39:44 +02001243{
1244 USB_DEVICE(0x0582, 0x0060),
1245 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1246 .vendor_name = "Roland",
1247 .product_name = "EXR Series",
1248 .ifnum = 0,
1249 .type = QUIRK_MIDI_STANDARD_INTERFACE
1250 }
1251},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001252{
Clemens Ladischaa70201f2010-08-30 16:32:43 +02001253 /* has ID 0x0066 when not in "Advanced Driver" mode */
1254 USB_DEVICE(0x0582, 0x0064),
1255 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1256 /* .vendor_name = "EDIROL", */
1257 /* .product_name = "PCR-1", */
1258 .ifnum = QUIRK_ANY_INTERFACE,
1259 .type = QUIRK_COMPOSITE,
1260 .data = (const struct snd_usb_audio_quirk[]) {
1261 {
1262 .ifnum = 1,
1263 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1264 },
1265 {
1266 .ifnum = 2,
1267 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1268 },
1269 {
1270 .ifnum = -1
1271 }
1272 }
1273 }
1274},
1275{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001276 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001277 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001278 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischaa70201f2010-08-30 16:32:43 +02001279 /* .vendor_name = "EDIROL", */
1280 /* .product_name = "PCR-1", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001281 .ifnum = 0,
1282 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001283 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001284 .out_cables = 0x0001,
1285 .in_cables = 0x0003
1286 }
1287 }
1288},
1289{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001290 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001291 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001292 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001293 .vendor_name = "Roland",
1294 .product_name = "SP-606",
1295 .ifnum = 3,
1296 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001297 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001298 .out_cables = 0x0001,
1299 .in_cables = 0x0001
1300 }
1301 }
1302},
1303{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001304 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001305 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001306 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001307 .vendor_name = "Roland",
1308 .product_name = "FANTOM-X",
1309 .ifnum = 0,
1310 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001311 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001312 .out_cables = 0x0001,
1313 .in_cables = 0x0001
1314 }
1315 }
1316},
1317{ /*
1318 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1319 * If the switch is not in an advanced setting, the UA-25 has
1320 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1321 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1322 */
1323 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001324 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001325 .vendor_name = "EDIROL",
1326 .product_name = "UA-25",
1327 .ifnum = QUIRK_ANY_INTERFACE,
1328 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001329 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001330 {
1331 .ifnum = 0,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001332 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001333 },
1334 {
1335 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001336 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001337 },
1338 {
1339 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001340 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001341 },
1342 {
1343 .ifnum = -1
1344 }
1345 }
1346 }
1347},
1348{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001349 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001350 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001351 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001352 .vendor_name = "BOSS",
1353 .product_name = "DR-880",
1354 .ifnum = 0,
1355 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001356 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001357 .out_cables = 0x0001,
1358 .in_cables = 0x0001
1359 }
1360 }
1361},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001362{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001363 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001364 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001365 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001366 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001367 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001368 .ifnum = 0,
1369 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001370 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001371 .out_cables = 0x0003,
1372 .in_cables = 0x0003
1373 }
1374 }
1375},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001376{
1377 /* has ID 0x0081 when not in "Advanced Driver" mode */
1378 USB_DEVICE(0x0582, 0x0080),
1379 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1380 .vendor_name = "Roland",
1381 .product_name = "G-70",
1382 .ifnum = 0,
1383 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1384 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001385 .out_cables = 0x0001,
1386 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001387 }
1388 }
1389},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001390 /* TODO: add Roland V-SYNTH XT support */
1391 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001392{
1393 /* has ID 0x008c when not in "Advanced Driver" mode */
1394 USB_DEVICE(0x0582, 0x008b),
1395 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1396 .vendor_name = "EDIROL",
1397 .product_name = "PC-50",
1398 .ifnum = 0,
1399 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1400 .data = & (const struct snd_usb_midi_endpoint_info) {
1401 .out_cables = 0x0001,
1402 .in_cables = 0x0001
1403 }
1404 }
1405},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001406 /* TODO: add Edirol PC-80 support */
Takashi Iwai9b0d39b2007-08-10 15:07:06 +02001407{
1408 USB_DEVICE(0x0582, 0x0096),
1409 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1410 .vendor_name = "EDIROL",
1411 .product_name = "UA-1EX",
1412 .ifnum = QUIRK_ANY_INTERFACE,
1413 .type = QUIRK_COMPOSITE,
1414 .data = (const struct snd_usb_audio_quirk[]) {
1415 {
1416 .ifnum = 0,
1417 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1418 },
1419 {
1420 .ifnum = 1,
1421 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1422 },
1423 {
1424 .ifnum = -1
1425 }
1426 }
1427 }
1428},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001429{
1430 USB_DEVICE(0x0582, 0x009a),
1431 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1432 .vendor_name = "EDIROL",
1433 .product_name = "UM-3EX",
1434 .ifnum = 0,
1435 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1436 .data = & (const struct snd_usb_midi_endpoint_info) {
1437 .out_cables = 0x000f,
1438 .in_cables = 0x000f
1439 }
1440 }
1441},
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001442{
1443 /*
1444 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
1445 * is standard compliant, but has only 16-bit PCM and no MIDI.
1446 */
1447 USB_DEVICE(0x0582, 0x00a3),
1448 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1449 .vendor_name = "EDIROL",
1450 .product_name = "UA-4FX",
1451 .ifnum = QUIRK_ANY_INTERFACE,
1452 .type = QUIRK_COMPOSITE,
1453 .data = (const struct snd_usb_audio_quirk[]) {
1454 {
1455 .ifnum = 0,
1456 .type = QUIRK_AUDIO_EDIROL_UAXX
1457 },
1458 {
1459 .ifnum = 1,
1460 .type = QUIRK_AUDIO_EDIROL_UAXX
1461 },
1462 {
1463 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001464 .type = QUIRK_AUDIO_EDIROL_UAXX
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001465 },
1466 {
1467 .ifnum = -1
1468 }
1469 }
1470 }
1471},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001472 /* TODO: add Edirol MD-P1 support */
Carlo Beccaria87823092007-07-03 08:04:25 +02001473{
Clemens Ladisch25a47b62008-02-25 11:04:19 +01001474 USB_DEVICE(0x582, 0x00a6),
1475 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1476 .vendor_name = "Roland",
1477 .product_name = "Juno-G",
1478 .ifnum = 0,
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{
Carlo Beccaria87823092007-07-03 08:04:25 +02001487 /* Roland SH-201 */
1488 USB_DEVICE(0x0582, 0x00ad),
1489 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1490 .vendor_name = "Roland",
1491 .product_name = "SH-201",
1492 .ifnum = QUIRK_ANY_INTERFACE,
1493 .type = QUIRK_COMPOSITE,
1494 .data = (const struct snd_usb_audio_quirk[]) {
1495 {
1496 .ifnum = 0,
1497 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1498 },
1499 {
1500 .ifnum = 1,
1501 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1502 },
1503 {
1504 .ifnum = 2,
1505 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1506 .data = & (const struct snd_usb_midi_endpoint_info) {
1507 .out_cables = 0x0001,
1508 .in_cables = 0x0001
1509 }
1510 },
1511 {
1512 .ifnum = -1
1513 }
1514 }
1515 }
1516},
Chris Mennie62b12632008-05-19 16:21:33 +02001517{
Pete Leigh7a75e742012-10-21 10:29:17 +01001518 /* Advanced mode of the Roland VG-99, with MIDI and 24-bit PCM at 44.1
1519 * kHz. In standard mode, the device has ID 0582:00b3, and offers
1520 * 16-bit PCM at 44.1 kHz with no MIDI.
1521 */
1522 USB_DEVICE(0x0582, 0x00b2),
1523 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1524 .vendor_name = "Roland",
1525 .product_name = "VG-99",
1526 .ifnum = QUIRK_ANY_INTERFACE,
1527 .type = QUIRK_COMPOSITE,
1528 .data = (const struct snd_usb_audio_quirk[]) {
1529 {
1530 .ifnum = 0,
1531 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1532 },
1533 {
1534 .ifnum = 1,
1535 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1536 },
1537 {
1538 .ifnum = 2,
1539 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1540 .data = & (const struct snd_usb_midi_endpoint_info) {
1541 .out_cables = 0x0003,
1542 .in_cables = 0x0003
1543 }
1544 },
1545 {
1546 .ifnum = -1
1547 }
1548 }
1549 }
1550},
1551{
Chris Mennie62b12632008-05-19 16:21:33 +02001552 /* Roland SonicCell */
1553 USB_DEVICE(0x0582, 0x00c2),
1554 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1555 .vendor_name = "Roland",
1556 .product_name = "SonicCell",
1557 .ifnum = QUIRK_ANY_INTERFACE,
1558 .type = QUIRK_COMPOSITE,
1559 .data = (const struct snd_usb_audio_quirk[]) {
1560 {
1561 .ifnum = 0,
1562 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1563 },
1564 {
1565 .ifnum = 1,
1566 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1567 },
1568 {
1569 .ifnum = 2,
1570 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1571 .data = & (const struct snd_usb_midi_endpoint_info) {
1572 .out_cables = 0x0001,
1573 .in_cables = 0x0001
1574 }
1575 },
1576 {
1577 .ifnum = -1
1578 }
1579 }
1580 }
1581},
Clemens Ladischb38addb2008-07-28 10:19:39 +02001582{
Takashi Iwai6efd2cd2009-06-01 10:59:51 +02001583 /* Edirol M-16DX */
1584 /* FIXME: This quirk gives a good-working capture stream but the
1585 * playback seems problematic because of lacking of sync
1586 * with capture stream. It needs to sync with the capture
1587 * clock. As now, you'll get frequent sound distortions
1588 * via the playback.
1589 */
1590 USB_DEVICE(0x0582, 0x00c4),
1591 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1592 .ifnum = QUIRK_ANY_INTERFACE,
1593 .type = QUIRK_COMPOSITE,
1594 .data = (const struct snd_usb_audio_quirk[]) {
1595 {
1596 .ifnum = 0,
1597 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1598 },
1599 {
1600 .ifnum = 1,
1601 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1602 },
1603 {
1604 .ifnum = 2,
1605 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1606 .data = & (const struct snd_usb_midi_endpoint_info) {
1607 .out_cables = 0x0001,
1608 .in_cables = 0x0001
1609 }
1610 },
1611 {
1612 .ifnum = -1
1613 }
1614 }
1615 }
1616},
1617{
Clemens Ladischb38addb2008-07-28 10:19:39 +02001618 /* BOSS GT-10 */
1619 USB_DEVICE(0x0582, 0x00da),
1620 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1621 .ifnum = QUIRK_ANY_INTERFACE,
1622 .type = QUIRK_COMPOSITE,
1623 .data = (const struct snd_usb_audio_quirk[]) {
1624 {
1625 .ifnum = 0,
1626 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1627 },
1628 {
1629 .ifnum = 1,
1630 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1631 },
1632 {
1633 .ifnum = 2,
1634 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1635 .data = & (const struct snd_usb_midi_endpoint_info) {
1636 .out_cables = 0x0001,
1637 .in_cables = 0x0001
1638 }
1639 },
1640 {
1641 .ifnum = -1
1642 }
1643 }
1644 }
1645},
Takashi Iwaie2736262008-10-20 16:07:45 +02001646{
1647 /* Advanced modes of the Edirol UA-25EX.
1648 * For the standard mode, UA-25EX has ID 0582:00e7, which
1649 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1650 */
1651 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
1652 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1653 .vendor_name = "EDIROL",
1654 .product_name = "UA-25EX",
1655 .ifnum = QUIRK_ANY_INTERFACE,
1656 .type = QUIRK_COMPOSITE,
1657 .data = (const struct snd_usb_audio_quirk[]) {
1658 {
1659 .ifnum = 0,
1660 .type = QUIRK_AUDIO_EDIROL_UAXX
1661 },
1662 {
1663 .ifnum = 1,
1664 .type = QUIRK_AUDIO_EDIROL_UAXX
1665 },
1666 {
1667 .ifnum = 2,
1668 .type = QUIRK_AUDIO_EDIROL_UAXX
1669 },
1670 {
1671 .ifnum = -1
1672 }
1673 }
1674 }
1675},
Clemens Ladischd867bba2009-11-19 14:34:33 +01001676{
1677 /* has ID 0x00ea when not in Advanced Driver mode */
1678 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e9),
1679 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1680 /* .vendor_name = "Roland", */
1681 /* .product_name = "UA-1G", */
1682 .ifnum = QUIRK_ANY_INTERFACE,
1683 .type = QUIRK_COMPOSITE,
1684 .data = (const struct snd_usb_audio_quirk[]) {
1685 {
1686 .ifnum = 0,
1687 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1688 },
1689 {
1690 .ifnum = 1,
1691 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1692 },
1693 {
1694 .ifnum = -1
1695 }
1696 }
1697 }
1698},
Clemens Ladisch9d0c9192010-08-30 16:42:17 +02001699{
Clemens Ladische1986922011-02-17 14:26:51 +01001700 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0104),
1701 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1702 /* .vendor_name = "Roland", */
1703 /* .product_name = "UM-1G", */
1704 .ifnum = 0,
1705 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1706 .data = & (const struct snd_usb_midi_endpoint_info) {
1707 .out_cables = 0x0001,
1708 .in_cables = 0x0001
1709 }
1710 }
1711},
1712{
Clemens Ladisch927c9422012-02-04 20:51:43 +01001713 /* Edirol UM-3G */
1714 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
1715 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1716 .ifnum = 0,
1717 .type = QUIRK_MIDI_STANDARD_INTERFACE
1718 }
1719},
1720{
Keith A. Milnercb6f4b52011-03-21 20:15:08 +00001721 /* Boss JS-8 Jam Station */
1722 USB_DEVICE(0x0582, 0x0109),
1723 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1724 /* .vendor_name = "BOSS", */
1725 /* .product_name = "JS-8", */
1726 .ifnum = QUIRK_ANY_INTERFACE,
1727 .type = QUIRK_COMPOSITE,
1728 .data = (const struct snd_usb_audio_quirk[]) {
1729 {
1730 .ifnum = 0,
1731 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1732 },
1733 {
1734 .ifnum = 1,
1735 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1736 },
1737 {
1738 .ifnum = 2,
1739 .type = QUIRK_MIDI_STANDARD_INTERFACE
1740 },
1741 {
1742 .ifnum = -1
1743 }
1744 }
1745 }
1746},
1747{
Clemens Ladisch9d0c9192010-08-30 16:42:17 +02001748 /* has ID 0x0110 when not in Advanced Driver mode */
1749 USB_DEVICE_VENDOR_SPEC(0x0582, 0x010f),
1750 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1751 /* .vendor_name = "Roland", */
1752 /* .product_name = "A-PRO", */
Clemens Ladisch7da58042013-01-31 21:14:33 +01001753 .ifnum = 0,
Clemens Ladisch9d0c9192010-08-30 16:42:17 +02001754 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1755 .data = & (const struct snd_usb_midi_endpoint_info) {
1756 .out_cables = 0x0003,
1757 .in_cables = 0x0007
1758 }
1759 }
1760},
Clemens Ladisch7b280792010-08-30 16:45:38 +02001761{
John F Leachae7cc702011-11-28 19:41:27 -05001762 /* Roland GAIA SH-01 */
1763 USB_DEVICE(0x0582, 0x0111),
1764 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
1765 .vendor_name = "Roland",
1766 .product_name = "GAIA",
1767 .ifnum = QUIRK_ANY_INTERFACE,
1768 .type = QUIRK_COMPOSITE,
1769 .data = (const struct snd_usb_audio_quirk[]) {
1770 {
1771 .ifnum = 0,
1772 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1773 },
1774 {
1775 .ifnum = 1,
1776 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1777 },
1778 {
1779 .ifnum = 2,
1780 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1781 .data = &(const struct snd_usb_midi_endpoint_info) {
1782 .out_cables = 0x0003,
1783 .in_cables = 0x0003
1784 }
1785 },
1786 {
1787 .ifnum = -1
1788 }
1789 }
1790 }
1791},
1792{
Clemens Ladisch7b280792010-08-30 16:45:38 +02001793 USB_DEVICE(0x0582, 0x0113),
1794 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1795 /* .vendor_name = "BOSS", */
1796 /* .product_name = "ME-25", */
1797 .ifnum = QUIRK_ANY_INTERFACE,
1798 .type = QUIRK_COMPOSITE,
1799 .data = (const struct snd_usb_audio_quirk[]) {
1800 {
1801 .ifnum = 0,
1802 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1803 },
1804 {
1805 .ifnum = 1,
1806 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1807 },
1808 {
1809 .ifnum = 2,
1810 .type = QUIRK_MIDI_FIXED_ENDPOINT,
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},
Daniel Mack0ef28322011-05-18 11:28:43 +02001822{
1823 USB_DEVICE(0x0582, 0x0127),
1824 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1825 /* .vendor_name = "Roland", */
1826 /* .product_name = "GR-55", */
1827 .ifnum = QUIRK_ANY_INTERFACE,
1828 .type = QUIRK_COMPOSITE,
1829 .data = (const struct snd_usb_audio_quirk[]) {
1830 {
1831 .ifnum = 0,
1832 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1833 },
1834 {
1835 .ifnum = 1,
1836 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1837 },
1838 {
1839 .ifnum = 2,
1840 .type = QUIRK_MIDI_STANDARD_INTERFACE
1841 },
1842 {
1843 .ifnum = -1
1844 }
1845 }
1846 }
1847},
David G Turner6a6d8222011-07-21 19:00:57 +02001848{
Daniele Guerrieri14515a02011-09-16 08:31:45 +02001849 /* Added support for Roland UM-ONE which differs from UM-1 */
1850 USB_DEVICE(0x0582, 0x012a),
1851 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1852 /* .vendor_name = "ROLAND", */
1853 /* .product_name = "UM-ONE", */
1854 .ifnum = 0,
1855 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1856 .data = & (const struct snd_usb_midi_endpoint_info) {
1857 .out_cables = 0x0001,
1858 .in_cables = 0x0003
1859 }
1860 }
1861},
1862{
David G Turner6a6d8222011-07-21 19:00:57 +02001863 USB_DEVICE(0x0582, 0x011e),
1864 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1865 /* .vendor_name = "BOSS", */
1866 /* .product_name = "BR-800", */
1867 .ifnum = QUIRK_ANY_INTERFACE,
1868 .type = QUIRK_COMPOSITE,
1869 .data = (const struct snd_usb_audio_quirk[]) {
1870 {
1871 .ifnum = 0,
1872 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1873 },
1874 {
1875 .ifnum = 1,
1876 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1877 },
1878 {
1879 .ifnum = 2,
1880 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1881 .data = & (const struct snd_usb_midi_endpoint_info) {
1882 .out_cables = 0x0001,
1883 .in_cables = 0x0001
1884 }
1885 },
1886 {
1887 .ifnum = -1
1888 }
1889 }
1890 }
1891},
Kazutomo Yoshiic9c9e4e2011-08-09 23:39:13 -05001892{
1893 USB_DEVICE(0x0582, 0x0130),
1894 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1895 /* .vendor_name = "BOSS", */
1896 /* .product_name = "MICRO BR-80", */
1897 .ifnum = QUIRK_ANY_INTERFACE,
1898 .type = QUIRK_COMPOSITE,
1899 .data = (const struct snd_usb_audio_quirk[]) {
1900 {
1901 .ifnum = 0,
1902 .type = QUIRK_IGNORE_INTERFACE
1903 },
1904 {
1905 .ifnum = 1,
1906 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1907 },
1908 {
1909 .ifnum = 2,
1910 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1911 },
1912 {
1913 .ifnum = 3,
1914 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1915 .data = & (const struct snd_usb_midi_endpoint_info) {
1916 .out_cables = 0x0001,
1917 .in_cables = 0x0001
1918 }
1919 },
1920 {
1921 .ifnum = -1
1922 }
1923 }
1924 }
1925},
Clemens Ladisch74953e22012-06-23 17:30:47 +02001926{
1927 USB_DEVICE(0x0582, 0x014d),
1928 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1929 /* .vendor_name = "BOSS", */
1930 /* .product_name = "GT-100", */
1931 .ifnum = QUIRK_ANY_INTERFACE,
1932 .type = QUIRK_COMPOSITE,
1933 .data = (const struct snd_usb_audio_quirk[]) {
1934 {
1935 .ifnum = 1,
1936 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1937 },
1938 {
1939 .ifnum = 2,
1940 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1941 },
1942 {
1943 .ifnum = 3,
1944 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1945 .data = & (const struct snd_usb_midi_endpoint_info) {
1946 .out_cables = 0x0001,
1947 .in_cables = 0x0001
1948 }
1949 },
1950 {
1951 .ifnum = -1
1952 }
1953 }
1954 }
1955},
Chris Mennie62b12632008-05-19 16:21:33 +02001956
Clemens Ladischa25f1752005-10-05 13:23:19 +02001957/* Guillemot devices */
1958{
1959 /*
1960 * This is for the "Windows Edition" where the external MIDI ports are
1961 * the only MIDI ports; the control data is reported through HID
1962 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1963 * compliant USB MIDI ports for external MIDI and controls.
1964 */
1965 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001966 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001967 .vendor_name = "Hercules",
1968 .product_name = "DJ Console (WE)",
1969 .ifnum = 4,
1970 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001971 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001972 .out_cables = 0x0001,
1973 .in_cables = 0x0001
1974 }
1975 }
1976},
1977
Linus Torvalds1da177e2005-04-16 15:20:36 -07001978/* Midiman/M-Audio devices */
1979{
1980 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001981 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001982 .vendor_name = "M-Audio",
1983 .product_name = "MidiSport 2x2",
1984 .ifnum = QUIRK_ANY_INTERFACE,
1985 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001986 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001987 .out_cables = 0x0003,
1988 .in_cables = 0x0003
1989 }
1990 }
1991},
1992{
1993 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001994 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001995 .vendor_name = "M-Audio",
1996 .product_name = "MidiSport 1x1",
1997 .ifnum = QUIRK_ANY_INTERFACE,
1998 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001999 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002000 .out_cables = 0x0001,
2001 .in_cables = 0x0001
2002 }
2003 }
2004},
2005{
2006 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002007 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002008 .vendor_name = "M-Audio",
2009 .product_name = "Keystation",
2010 .ifnum = QUIRK_ANY_INTERFACE,
2011 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002012 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002013 .out_cables = 0x0001,
2014 .in_cables = 0x0001
2015 }
2016 }
2017},
2018{
2019 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002020 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002021 .vendor_name = "M-Audio",
2022 .product_name = "MidiSport 4x4",
2023 .ifnum = QUIRK_ANY_INTERFACE,
2024 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002025 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002026 .out_cables = 0x000f,
2027 .in_cables = 0x000f
2028 }
2029 }
2030},
2031{
2032 /*
2033 * For hardware revision 1.05; in the later revisions (1.10 and
2034 * 1.21), 0x1031 is the ID for the device without firmware.
2035 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
2036 */
2037 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002038 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002039 .vendor_name = "M-Audio",
2040 .product_name = "MidiSport 8x8",
2041 .ifnum = QUIRK_ANY_INTERFACE,
2042 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002043 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002044 .out_cables = 0x01ff,
2045 .in_cables = 0x01ff
2046 }
2047 }
2048},
2049{
2050 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002051 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002052 .vendor_name = "M-Audio",
2053 .product_name = "MidiSport 8x8",
2054 .ifnum = QUIRK_ANY_INTERFACE,
2055 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002056 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002057 .out_cables = 0x01ff,
2058 .in_cables = 0x01ff
2059 }
2060 }
2061},
2062{
2063 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002064 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002065 .vendor_name = "M-Audio",
2066 .product_name = "MidiSport 2x4",
2067 .ifnum = QUIRK_ANY_INTERFACE,
2068 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002069 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002070 .out_cables = 0x000f,
2071 .in_cables = 0x0003
2072 }
2073 }
2074},
2075{
2076 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002077 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002078 .vendor_name = "M-Audio",
2079 .product_name = "Quattro",
2080 .ifnum = QUIRK_ANY_INTERFACE,
2081 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002082 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002083 /*
2084 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
2085 * and share endpoints with the other interfaces.
2086 * Ignore them. The other interfaces can do 24 bits,
2087 * but captured samples are big-endian (see usbaudio.c).
2088 */
2089 {
2090 .ifnum = 0,
2091 .type = QUIRK_IGNORE_INTERFACE
2092 },
2093 {
2094 .ifnum = 1,
2095 .type = QUIRK_IGNORE_INTERFACE
2096 },
2097 {
2098 .ifnum = 2,
2099 .type = QUIRK_IGNORE_INTERFACE
2100 },
2101 {
2102 .ifnum = 3,
2103 .type = QUIRK_IGNORE_INTERFACE
2104 },
2105 {
2106 .ifnum = 4,
2107 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2108 },
2109 {
2110 .ifnum = 5,
2111 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2112 },
2113 {
2114 .ifnum = 6,
2115 .type = QUIRK_IGNORE_INTERFACE
2116 },
2117 {
2118 .ifnum = 7,
2119 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2120 },
2121 {
2122 .ifnum = 8,
2123 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2124 },
2125 {
2126 .ifnum = 9,
2127 .type = QUIRK_MIDI_MIDIMAN,
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 = 0x0001,
2130 .in_cables = 0x0001
2131 }
2132 },
2133 {
2134 .ifnum = -1
2135 }
2136 }
2137 }
2138},
2139{
2140 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002141 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002142 .vendor_name = "M-Audio",
2143 .product_name = "AudioPhile",
2144 .ifnum = 6,
2145 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002146 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002147 .out_cables = 0x0001,
2148 .in_cables = 0x0001
2149 }
2150 }
2151},
2152{
2153 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002154 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002155 .vendor_name = "M-Audio",
2156 .product_name = "Ozone",
2157 .ifnum = 3,
2158 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002159 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002160 .out_cables = 0x0001,
2161 .in_cables = 0x0001
2162 }
2163 }
2164},
2165{
2166 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002167 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002168 .vendor_name = "M-Audio",
2169 .product_name = "OmniStudio",
2170 .ifnum = QUIRK_ANY_INTERFACE,
2171 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002172 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002173 {
2174 .ifnum = 0,
2175 .type = QUIRK_IGNORE_INTERFACE
2176 },
2177 {
2178 .ifnum = 1,
2179 .type = QUIRK_IGNORE_INTERFACE
2180 },
2181 {
2182 .ifnum = 2,
2183 .type = QUIRK_IGNORE_INTERFACE
2184 },
2185 {
2186 .ifnum = 3,
2187 .type = QUIRK_IGNORE_INTERFACE
2188 },
2189 {
2190 .ifnum = 4,
2191 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2192 },
2193 {
2194 .ifnum = 5,
2195 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2196 },
2197 {
2198 .ifnum = 6,
2199 .type = QUIRK_IGNORE_INTERFACE
2200 },
2201 {
2202 .ifnum = 7,
2203 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2204 },
2205 {
2206 .ifnum = 8,
2207 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2208 },
2209 {
2210 .ifnum = 9,
2211 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002212 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002213 .out_cables = 0x0001,
2214 .in_cables = 0x0001
2215 }
2216 },
2217 {
2218 .ifnum = -1
2219 }
2220 }
2221 }
2222},
Clemens Ladisch2ea547dc2007-09-17 09:33:17 +02002223{
2224 USB_DEVICE(0x0763, 0x2019),
2225 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2226 /* .vendor_name = "M-Audio", */
2227 /* .product_name = "Ozone Academic", */
2228 .ifnum = QUIRK_ANY_INTERFACE,
2229 .type = QUIRK_COMPOSITE,
2230 .data = & (const struct snd_usb_audio_quirk[]) {
2231 {
2232 .ifnum = 0,
2233 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2234 },
2235 {
2236 .ifnum = 1,
2237 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2238 },
2239 {
2240 .ifnum = 2,
2241 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2242 },
2243 {
2244 .ifnum = 3,
2245 .type = QUIRK_MIDI_MIDIMAN,
2246 .data = & (const struct snd_usb_midi_endpoint_info) {
2247 .out_cables = 0x0001,
2248 .in_cables = 0x0001
2249 }
2250 },
2251 {
2252 .ifnum = -1
2253 }
2254 }
2255 }
2256},
Felix Homannfca5bca2010-03-25 11:29:14 +01002257{
Eldad Zack76f74bc2012-11-28 23:55:38 +01002258 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030),
2259 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2260 /* .vendor_name = "M-Audio", */
2261 /* .product_name = "Fast Track C400", */
2262 .ifnum = QUIRK_ANY_INTERFACE,
2263 .type = QUIRK_COMPOSITE,
2264 .data = &(const struct snd_usb_audio_quirk[]) {
2265 {
2266 .ifnum = 1,
2267 .type = QUIRK_AUDIO_STANDARD_MIXER,
2268 },
2269 /* Playback */
2270 {
2271 .ifnum = 2,
2272 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2273 .data = &(const struct audioformat) {
2274 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2275 .channels = 6,
2276 .iface = 2,
2277 .altsetting = 1,
2278 .altset_idx = 1,
2279 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2280 .endpoint = 0x01,
2281 .ep_attr = 0x09,
2282 .rates = SNDRV_PCM_RATE_44100 |
2283 SNDRV_PCM_RATE_48000 |
2284 SNDRV_PCM_RATE_88200 |
2285 SNDRV_PCM_RATE_96000,
2286 .rate_min = 44100,
2287 .rate_max = 96000,
2288 .nr_rates = 4,
2289 .rate_table = (unsigned int[]) {
2290 44100, 48000, 88200, 96000
2291 },
Eldad Zack2aad2722013-01-13 23:02:02 +01002292 .clock = 0x80,
Eldad Zack76f74bc2012-11-28 23:55:38 +01002293 }
2294 },
2295 /* Capture */
2296 {
2297 .ifnum = 3,
2298 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2299 .data = &(const struct audioformat) {
2300 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2301 .channels = 4,
2302 .iface = 3,
2303 .altsetting = 1,
2304 .altset_idx = 1,
2305 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2306 .endpoint = 0x81,
2307 .ep_attr = 0x05,
2308 .rates = SNDRV_PCM_RATE_44100 |
2309 SNDRV_PCM_RATE_48000 |
2310 SNDRV_PCM_RATE_88200 |
2311 SNDRV_PCM_RATE_96000,
2312 .rate_min = 44100,
2313 .rate_max = 96000,
2314 .nr_rates = 4,
2315 .rate_table = (unsigned int[]) {
2316 44100, 48000, 88200, 96000
2317 },
Eldad Zack2aad2722013-01-13 23:02:02 +01002318 .clock = 0x80,
Eldad Zack76f74bc2012-11-28 23:55:38 +01002319 }
2320 },
2321 /* MIDI */
2322 {
2323 .ifnum = -1 /* Interface = 4 */
2324 }
2325 }
2326 }
2327},
2328{
Matt Gruskine9a25e02013-02-09 12:56:35 -05002329 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2031),
2330 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2331 /* .vendor_name = "M-Audio", */
2332 /* .product_name = "Fast Track C600", */
2333 .ifnum = QUIRK_ANY_INTERFACE,
2334 .type = QUIRK_COMPOSITE,
2335 .data = &(const struct snd_usb_audio_quirk[]) {
2336 {
2337 .ifnum = 1,
2338 .type = QUIRK_AUDIO_STANDARD_MIXER,
2339 },
2340 /* Playback */
2341 {
2342 .ifnum = 2,
2343 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2344 .data = &(const struct audioformat) {
2345 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2346 .channels = 8,
2347 .iface = 2,
2348 .altsetting = 1,
2349 .altset_idx = 1,
2350 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2351 .endpoint = 0x01,
2352 .ep_attr = 0x09,
2353 .rates = SNDRV_PCM_RATE_44100 |
2354 SNDRV_PCM_RATE_48000 |
2355 SNDRV_PCM_RATE_88200 |
2356 SNDRV_PCM_RATE_96000,
2357 .rate_min = 44100,
2358 .rate_max = 96000,
2359 .nr_rates = 4,
2360 .rate_table = (unsigned int[]) {
2361 44100, 48000, 88200, 96000
2362 },
2363 .clock = 0x80,
2364 }
2365 },
2366 /* Capture */
2367 {
2368 .ifnum = 3,
2369 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2370 .data = &(const struct audioformat) {
2371 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2372 .channels = 6,
2373 .iface = 3,
2374 .altsetting = 1,
2375 .altset_idx = 1,
2376 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2377 .endpoint = 0x81,
2378 .ep_attr = 0x05,
2379 .rates = SNDRV_PCM_RATE_44100 |
2380 SNDRV_PCM_RATE_48000 |
2381 SNDRV_PCM_RATE_88200 |
2382 SNDRV_PCM_RATE_96000,
2383 .rate_min = 44100,
2384 .rate_max = 96000,
2385 .nr_rates = 4,
2386 .rate_table = (unsigned int[]) {
2387 44100, 48000, 88200, 96000
2388 },
2389 .clock = 0x80,
2390 }
2391 },
2392 /* MIDI */
2393 {
2394 .ifnum = -1 /* Interface = 4 */
2395 }
2396 }
2397 }
2398},
2399{
Daniel Mackc91d9cd2011-05-18 11:28:45 +02002400 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
Felix Homannfca5bca2010-03-25 11:29:14 +01002401 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2402 /* .vendor_name = "M-Audio", */
Clemens Ladisch65f04442010-09-02 12:58:25 +02002403 /* .product_name = "Fast Track Ultra", */
Felix Homannfca5bca2010-03-25 11:29:14 +01002404 .ifnum = QUIRK_ANY_INTERFACE,
2405 .type = QUIRK_COMPOSITE,
2406 .data = & (const struct snd_usb_audio_quirk[]) {
2407 {
2408 .ifnum = 0,
Daniel Mackd5a0bf62011-05-25 09:09:03 +02002409 .type = QUIRK_AUDIO_STANDARD_MIXER,
Felix Homannfca5bca2010-03-25 11:29:14 +01002410 },
2411 {
2412 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002413 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2414 .data = & (const struct audioformat) {
2415 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2416 .channels = 8,
2417 .iface = 1,
2418 .altsetting = 1,
2419 .altset_idx = 1,
2420 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2421 .endpoint = 0x01,
2422 .ep_attr = 0x09,
2423 .rates = SNDRV_PCM_RATE_44100 |
2424 SNDRV_PCM_RATE_48000 |
2425 SNDRV_PCM_RATE_88200 |
2426 SNDRV_PCM_RATE_96000,
2427 .rate_min = 44100,
2428 .rate_max = 96000,
2429 .nr_rates = 4,
2430 .rate_table = (unsigned int[]) {
2431 44100, 48000, 88200, 96000
2432 }
2433 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002434 },
2435 {
2436 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002437 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2438 .data = & (const struct audioformat) {
2439 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2440 .channels = 8,
2441 .iface = 2,
2442 .altsetting = 1,
2443 .altset_idx = 1,
2444 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2445 .endpoint = 0x81,
2446 .ep_attr = 0x05,
2447 .rates = SNDRV_PCM_RATE_44100 |
2448 SNDRV_PCM_RATE_48000 |
2449 SNDRV_PCM_RATE_88200 |
2450 SNDRV_PCM_RATE_96000,
2451 .rate_min = 44100,
2452 .rate_max = 96000,
2453 .nr_rates = 4,
2454 .rate_table = (unsigned int[]) {
2455 44100, 48000, 88200, 96000
2456 }
2457 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002458 },
2459 /* interface 3 (MIDI) is standard compliant */
2460 {
2461 .ifnum = -1
2462 }
2463 }
2464 }
2465},
2466{
Daniel Mackc91d9cd2011-05-18 11:28:45 +02002467 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
Felix Homannfca5bca2010-03-25 11:29:14 +01002468 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2469 /* .vendor_name = "M-Audio", */
2470 /* .product_name = "Fast Track Ultra 8R", */
2471 .ifnum = QUIRK_ANY_INTERFACE,
2472 .type = QUIRK_COMPOSITE,
2473 .data = & (const struct snd_usb_audio_quirk[]) {
2474 {
2475 .ifnum = 0,
Daniel Mackd5a0bf62011-05-25 09:09:03 +02002476 .type = QUIRK_AUDIO_STANDARD_MIXER,
Felix Homannfca5bca2010-03-25 11:29:14 +01002477 },
2478 {
2479 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002480 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2481 .data = & (const struct audioformat) {
2482 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2483 .channels = 8,
2484 .iface = 1,
2485 .altsetting = 1,
2486 .altset_idx = 1,
2487 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2488 .endpoint = 0x01,
2489 .ep_attr = 0x09,
2490 .rates = SNDRV_PCM_RATE_44100 |
2491 SNDRV_PCM_RATE_48000 |
2492 SNDRV_PCM_RATE_88200 |
2493 SNDRV_PCM_RATE_96000,
2494 .rate_min = 44100,
2495 .rate_max = 96000,
2496 .nr_rates = 4,
2497 .rate_table = (unsigned int[]) {
2498 44100, 48000, 88200, 96000
2499 }
2500 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002501 },
2502 {
2503 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002504 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2505 .data = & (const struct audioformat) {
2506 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2507 .channels = 8,
2508 .iface = 2,
2509 .altsetting = 1,
2510 .altset_idx = 1,
2511 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2512 .endpoint = 0x81,
2513 .ep_attr = 0x05,
2514 .rates = SNDRV_PCM_RATE_44100 |
2515 SNDRV_PCM_RATE_48000 |
2516 SNDRV_PCM_RATE_88200 |
2517 SNDRV_PCM_RATE_96000,
2518 .rate_min = 44100,
2519 .rate_max = 96000,
2520 .nr_rates = 4,
2521 .rate_table = (unsigned int[]) {
2522 44100, 48000, 88200, 96000
2523 }
2524 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002525 },
2526 /* interface 3 (MIDI) is standard compliant */
2527 {
2528 .ifnum = -1
2529 }
2530 }
2531 }
2532},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002533
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002534/* Casio devices */
2535{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01002536 USB_DEVICE(0x07cf, 0x6801),
2537 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2538 .vendor_name = "Casio",
2539 .product_name = "PL-40R",
2540 .ifnum = 0,
2541 .type = QUIRK_MIDI_YAMAHA
2542 }
2543},
2544{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002545 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002546 USB_DEVICE(0x07cf, 0x6802),
2547 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2548 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002549 .product_name = "Keyboard",
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002550 .ifnum = 0,
2551 .type = QUIRK_MIDI_YAMAHA
2552 }
2553},
2554
Linus Torvalds1da177e2005-04-16 15:20:36 -07002555/* Mark of the Unicorn devices */
2556{
2557 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02002558 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
2559 USB_DEVICE_ID_MATCH_PRODUCT |
2560 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
2561 .idVendor = 0x07fd,
2562 .idProduct = 0x0001,
2563 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002564 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002565 .vendor_name = "MOTU",
2566 .product_name = "Fastlane",
2567 .ifnum = QUIRK_ANY_INTERFACE,
2568 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002569 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002570 {
2571 .ifnum = 0,
Clemens Ladischc7f57212010-10-22 18:20:48 +02002572 .type = QUIRK_MIDI_RAW_BYTES
Linus Torvalds1da177e2005-04-16 15:20:36 -07002573 },
2574 {
2575 .ifnum = 1,
2576 .type = QUIRK_IGNORE_INTERFACE
2577 },
2578 {
2579 .ifnum = -1
2580 }
2581 }
2582 }
2583},
2584
Linus Torvalds1da177e2005-04-16 15:20:36 -07002585/* Emagic devices */
2586{
2587 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002588 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002589 .vendor_name = "Emagic",
2590 /* .product_name = "Unitor8", */
2591 .ifnum = 2,
2592 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002593 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002594 .out_cables = 0x80ff,
2595 .in_cables = 0x80ff
2596 }
2597 }
2598},
2599{
2600 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002601 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002602 .vendor_name = "Emagic",
2603 /* .product_name = "AMT8", */
2604 .ifnum = 2,
2605 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002606 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002607 .out_cables = 0x80ff,
2608 .in_cables = 0x80ff
2609 }
2610 }
2611},
2612{
2613 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002614 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002615 .vendor_name = "Emagic",
2616 /* .product_name = "MT4", */
2617 .ifnum = 2,
2618 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002619 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002620 .out_cables = 0x800f,
2621 .in_cables = 0x8003
2622 }
2623 }
2624},
2625
Daniel Mack56a9eb12011-05-18 11:28:42 +02002626/* KORG devices */
2627{
2628 USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
2629 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2630 .vendor_name = "KORG, Inc.",
2631 /* .product_name = "PANDORA PX5D", */
2632 .ifnum = 3,
2633 .type = QUIRK_MIDI_STANDARD_INTERFACE,
2634 }
2635},
2636
Sergiusz Urbaniak1bba1602011-12-05 20:27:46 +01002637{
2638 USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
2639 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2640 .vendor_name = "KORG, Inc.",
2641 /* .product_name = "ToneLab ST", */
2642 .ifnum = 3,
2643 .type = QUIRK_MIDI_STANDARD_INTERFACE,
2644 }
2645},
2646
Krzysztof Foltman4434ade2010-05-20 20:31:10 +01002647/* AKAI devices */
2648{
2649 USB_DEVICE(0x09e8, 0x0062),
2650 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2651 .vendor_name = "AKAI",
2652 .product_name = "MPD16",
2653 .ifnum = 0,
2654 .type = QUIRK_MIDI_AKAI,
2655 }
2656},
2657
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002658/* TerraTec devices */
2659{
2660 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002661 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002662 .vendor_name = "TerraTec",
2663 .product_name = "PHASE 26",
2664 .ifnum = 3,
2665 .type = QUIRK_MIDI_STANDARD_INTERFACE
2666 }
2667},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002668{
2669 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002670 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002671 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07002672 .product_name = "PHASE 26",
2673 .ifnum = 3,
2674 .type = QUIRK_MIDI_STANDARD_INTERFACE
2675 }
2676},
Clemens Ladischb2b82292006-02-08 12:38:23 +01002677{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02002678 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
2679 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2680 .vendor_name = "TerraTec",
2681 .product_name = "PHASE 26",
2682 .ifnum = 3,
2683 .type = QUIRK_MIDI_STANDARD_INTERFACE
2684 }
2685},
2686{
Andrea Borgiaca85b6b2009-06-02 19:21:17 +02002687 USB_DEVICE(0x0ccd, 0x0028),
Andrea Borgia93bfd012009-06-01 10:48:54 +02002688 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2689 .vendor_name = "TerraTec",
Andrea Borgiad9e89bf2009-06-14 12:16:17 +02002690 .product_name = "Aureon5.1MkII",
Andrea Borgia93bfd012009-06-01 10:48:54 +02002691 .ifnum = QUIRK_NO_INTERFACE
2692 }
2693},
2694{
Clemens Ladischb2b82292006-02-08 12:38:23 +01002695 USB_DEVICE(0x0ccd, 0x0035),
2696 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2697 .vendor_name = "Miditech",
2698 .product_name = "Play'n Roll",
2699 .ifnum = 0,
2700 .type = QUIRK_MIDI_CME
2701 }
2702},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002703
Mark Hills0f28ecd2007-08-10 08:01:54 +02002704/* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
2705{
2706 USB_DEVICE(0x103d, 0x0100),
2707 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2708 .vendor_name = "Stanton",
2709 .product_name = "ScratchAmp",
2710 .ifnum = QUIRK_NO_INTERFACE
2711 }
2712},
2713{
2714 USB_DEVICE(0x103d, 0x0101),
2715 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2716 .vendor_name = "Stanton",
2717 .product_name = "ScratchAmp",
2718 .ifnum = QUIRK_NO_INTERFACE
2719 }
2720},
2721
Linus Torvalds1da177e2005-04-16 15:20:36 -07002722/* Novation EMS devices */
2723{
2724 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002725 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002726 .vendor_name = "Novation",
2727 .product_name = "ReMOTE Audio/XStation",
2728 .ifnum = 4,
2729 .type = QUIRK_MIDI_NOVATION
2730 }
2731},
2732{
2733 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002734 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002735 .vendor_name = "Novation",
2736 .product_name = "Speedio",
2737 .ifnum = 3,
2738 .type = QUIRK_MIDI_NOVATION
2739 }
2740},
2741{
Clemens Ladischc7f57212010-10-22 18:20:48 +02002742 USB_DEVICE(0x1235, 0x000e),
2743 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2744 /* .vendor_name = "Novation", */
2745 /* .product_name = "Launchpad", */
2746 .ifnum = 0,
2747 .type = QUIRK_MIDI_RAW_BYTES
2748 }
2749},
2750{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002751 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002752 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002753 .vendor_name = "Novation",
2754 .product_name = "ReMOTE25",
2755 .ifnum = 0,
2756 .type = QUIRK_MIDI_NOVATION
2757 }
2758},
2759
Sebastien Alaiwand39e82d2010-02-16 08:55:08 +01002760/* Access Music devices */
2761{
2762 /* VirusTI Desktop */
2763 USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
2764 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2765 .ifnum = QUIRK_ANY_INTERFACE,
2766 .type = QUIRK_COMPOSITE,
2767 .data = &(const struct snd_usb_audio_quirk[]) {
2768 {
2769 .ifnum = 3,
2770 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2771 .data = &(const struct snd_usb_midi_endpoint_info) {
2772 .out_cables = 0x0003,
2773 .in_cables = 0x0003
2774 }
2775 },
2776 {
2777 .ifnum = 4,
2778 .type = QUIRK_IGNORE_INTERFACE
2779 },
2780 {
2781 .ifnum = -1
2782 }
2783 }
2784 }
2785},
2786
Mark Hills3a7788b2007-09-03 08:20:09 +02002787/* */
Clemens Ladisch15944802007-08-29 17:38:14 +02002788{
Mark Hills3a7788b2007-09-03 08:20:09 +02002789 /* aka. Serato Scratch Live DJ Box */
Clemens Ladisch15944802007-08-29 17:38:14 +02002790 USB_DEVICE(0x13e5, 0x0001),
Mark Hills3a7788b2007-09-03 08:20:09 +02002791 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2792 .vendor_name = "Rane",
2793 .product_name = "SL-1",
2794 .ifnum = QUIRK_NO_INTERFACE
Clemens Ladisch15944802007-08-29 17:38:14 +02002795 }
2796},
2797
Daniel Mack54a8c502011-02-11 11:08:06 +00002798/* Native Instruments MK2 series */
2799{
Daniel Mack759e890f2011-05-18 11:28:41 +02002800 /* Komplete Audio 6 */
Daniel Mack9cdc3522011-04-11 17:56:32 +02002801 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2802 .idVendor = 0x17cc,
2803 .idProduct = 0x1000,
2804},
2805{
Daniel Mack54a8c502011-02-11 11:08:06 +00002806 /* Traktor Audio 6 */
2807 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2808 .idVendor = 0x17cc,
2809 .idProduct = 0x1010,
2810},
2811{
2812 /* Traktor Audio 10 */
2813 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2814 .idVendor = 0x17cc,
2815 .idProduct = 0x1020,
2816},
2817
Miller Puckette02651d12011-08-04 12:25:56 -07002818/* KeithMcMillen Stringport */
2819{
2820 USB_DEVICE(0x1f38, 0x0001),
2821 .bInterfaceClass = USB_CLASS_AUDIO,
2822},
2823
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002824/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002825{
Clemens Ladischf38275f2005-07-25 16:17:29 +02002826 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002827 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002828 .vendor_name = "Miditech",
2829 .product_name = "Midistart-2",
2830 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002831 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002832 }
2833},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002834
2835/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002836{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002837 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002838 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002839 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002840 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002841 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002842 }
2843},
2844
John S. Gruber52a7a582009-12-27 12:19:59 -05002845/* Hauppauge HVR-950Q and HVR-850 */
2846{
2847 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
2848 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2849 USB_DEVICE_ID_MATCH_INT_CLASS |
2850 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2851 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002852 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
John S. Gruber52a7a582009-12-27 12:19:59 -05002853 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2854 .vendor_name = "Hauppauge",
2855 .product_name = "HVR-950Q",
2856 .ifnum = QUIRK_ANY_INTERFACE,
2857 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2858 }
2859},
2860{
John S Gruberdd2f8c22010-08-01 09:53:37 -04002861 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
John S. Gruber52a7a582009-12-27 12:19:59 -05002862 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2863 USB_DEVICE_ID_MATCH_INT_CLASS |
2864 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2865 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002866 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
John S. Gruber52a7a582009-12-27 12:19:59 -05002867 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2868 .vendor_name = "Hauppauge",
2869 .product_name = "HVR-850",
2870 .ifnum = QUIRK_ANY_INTERFACE,
2871 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2872 }
2873},
John S Gruberdd2f8c22010-08-01 09:53:37 -04002874{
2875 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
2876 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2877 USB_DEVICE_ID_MATCH_INT_CLASS |
2878 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2879 .bInterfaceClass = USB_CLASS_AUDIO,
2880 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2881 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2882 .vendor_name = "Hauppauge",
2883 .product_name = "HVR-950Q",
2884 .ifnum = QUIRK_ANY_INTERFACE,
2885 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2886 }
2887},
2888{
2889 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
2890 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2891 USB_DEVICE_ID_MATCH_INT_CLASS |
2892 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2893 .bInterfaceClass = USB_CLASS_AUDIO,
2894 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2895 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2896 .vendor_name = "Hauppauge",
2897 .product_name = "HVR-950Q",
2898 .ifnum = QUIRK_ANY_INTERFACE,
2899 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2900 }
2901},
2902{
2903 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
2904 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2905 USB_DEVICE_ID_MATCH_INT_CLASS |
2906 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2907 .bInterfaceClass = USB_CLASS_AUDIO,
2908 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2909 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2910 .vendor_name = "Hauppauge",
2911 .product_name = "HVR-950Q",
2912 .ifnum = QUIRK_ANY_INTERFACE,
2913 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2914 }
2915},
2916{
2917 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
2918 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2919 USB_DEVICE_ID_MATCH_INT_CLASS |
2920 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2921 .bInterfaceClass = USB_CLASS_AUDIO,
2922 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2923 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2924 .vendor_name = "Hauppauge",
2925 .product_name = "HVR-950Q",
2926 .ifnum = QUIRK_ANY_INTERFACE,
2927 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2928 }
2929},
2930{
2931 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
2932 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2933 USB_DEVICE_ID_MATCH_INT_CLASS |
2934 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2935 .bInterfaceClass = USB_CLASS_AUDIO,
2936 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2937 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2938 .vendor_name = "Hauppauge",
2939 .product_name = "HVR-950Q",
2940 .ifnum = QUIRK_ANY_INTERFACE,
2941 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2942 }
2943},
2944{
2945 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
2946 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2947 USB_DEVICE_ID_MATCH_INT_CLASS |
2948 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2949 .bInterfaceClass = USB_CLASS_AUDIO,
2950 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2951 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2952 .vendor_name = "Hauppauge",
2953 .product_name = "HVR-950Q",
2954 .ifnum = QUIRK_ANY_INTERFACE,
2955 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2956 }
2957},
2958{
2959 USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
2960 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2961 USB_DEVICE_ID_MATCH_INT_CLASS |
2962 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2963 .bInterfaceClass = USB_CLASS_AUDIO,
2964 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2965 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2966 .vendor_name = "Hauppauge",
2967 .product_name = "HVR-950Q",
2968 .ifnum = QUIRK_ANY_INTERFACE,
2969 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2970 }
2971},
John S. Gruber52a7a582009-12-27 12:19:59 -05002972
Chris J Arges40717382010-02-17 12:12:52 -06002973/* Digidesign Mbox */
2974{
2975 /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
2976 USB_DEVICE(0x0dba, 0x1000),
2977 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2978 .vendor_name = "Digidesign",
2979 .product_name = "MBox",
2980 .ifnum = QUIRK_ANY_INTERFACE,
2981 .type = QUIRK_COMPOSITE,
2982 .data = (const struct snd_usb_audio_quirk[]){
2983 {
2984 .ifnum = 0,
2985 .type = QUIRK_IGNORE_INTERFACE,
2986 },
2987 {
2988 .ifnum = 1,
2989 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2990 .data = &(const struct audioformat) {
Clemens Ladisch29088fe2010-03-04 19:46:16 +01002991 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
Chris J Arges40717382010-02-17 12:12:52 -06002992 .channels = 2,
2993 .iface = 1,
2994 .altsetting = 1,
2995 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002996 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
Chris J Arges40717382010-02-17 12:12:52 -06002997 .endpoint = 0x02,
2998 .ep_attr = 0x01,
2999 .maxpacksize = 0x130,
3000 .rates = SNDRV_PCM_RATE_44100 |
3001 SNDRV_PCM_RATE_48000,
3002 .rate_min = 44100,
3003 .rate_max = 48000,
3004 .nr_rates = 2,
3005 .rate_table = (unsigned int[]) {
3006 44100, 48000
3007 }
3008 }
3009 },
3010 {
3011 .ifnum = -1
3012 }
3013 }
3014
3015 }
3016},
Damien Zammitcb998642012-12-19 11:27:22 +01003017
3018/* DIGIDESIGN MBOX 2 */
3019{
3020 USB_DEVICE(0x0dba, 0x3000),
3021 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3022 .vendor_name = "Digidesign",
3023 .product_name = "Mbox 2",
3024 .ifnum = QUIRK_ANY_INTERFACE,
3025 .type = QUIRK_COMPOSITE,
3026 .data = (const struct snd_usb_audio_quirk[]) {
3027 {
3028 .ifnum = 0,
3029 .type = QUIRK_IGNORE_INTERFACE
3030 },
3031 {
3032 .ifnum = 1,
3033 .type = QUIRK_IGNORE_INTERFACE
3034 },
3035 {
3036 .ifnum = 2,
3037 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3038 .data = &(const struct audioformat) {
3039 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
3040 .channels = 2,
3041 .iface = 2,
3042 .altsetting = 2,
3043 .altset_idx = 1,
3044 .attributes = 0x00,
3045 .endpoint = 0x03,
3046 .ep_attr = USB_ENDPOINT_SYNC_ASYNC,
3047 .maxpacksize = 0x128,
3048 .rates = SNDRV_PCM_RATE_48000,
3049 .rate_min = 48000,
3050 .rate_max = 48000,
3051 .nr_rates = 1,
3052 .rate_table = (unsigned int[]) {
3053 48000
3054 }
3055 }
3056 },
3057 {
3058 .ifnum = 3,
3059 .type = QUIRK_IGNORE_INTERFACE
3060 },
3061 {
3062 .ifnum = 4,
3063 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3064 .data = &(const struct audioformat) {
3065 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
3066 .channels = 2,
3067 .iface = 4,
3068 .altsetting = 2,
3069 .altset_idx = 1,
3070 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
3071 .endpoint = 0x85,
3072 .ep_attr = USB_ENDPOINT_SYNC_SYNC,
3073 .maxpacksize = 0x128,
3074 .rates = SNDRV_PCM_RATE_48000,
3075 .rate_min = 48000,
3076 .rate_max = 48000,
3077 .nr_rates = 1,
3078 .rate_table = (unsigned int[]) {
3079 48000
3080 }
3081 }
3082 },
3083 {
3084 .ifnum = 5,
3085 .type = QUIRK_IGNORE_INTERFACE
3086 },
3087 {
3088 .ifnum = 6,
Damien Zammitb7b435e2013-01-04 09:51:44 +01003089 .type = QUIRK_MIDI_MIDIMAN,
Damien Zammitcb998642012-12-19 11:27:22 +01003090 .data = &(const struct snd_usb_midi_endpoint_info) {
3091 .out_ep = 0x02,
3092 .out_cables = 0x0001,
3093 .in_ep = 0x81,
3094 .in_interval = 0x01,
3095 .in_cables = 0x0001
3096 }
3097 },
3098 {
3099 .ifnum = -1
3100 }
3101 }
3102 }
3103},
Oto Petřík613769f2012-09-24 14:25:04 +02003104{
3105 /* Tascam US122 MKII - playback-only support */
3106 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
3107 .idVendor = 0x0644,
3108 .idProduct = 0x8021,
3109 .bInterfaceClass = USB_CLASS_AUDIO,
3110 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3111 .vendor_name = "TASCAM",
3112 .product_name = "US122 MKII",
3113 .ifnum = QUIRK_ANY_INTERFACE,
3114 .type = QUIRK_COMPOSITE,
3115 .data = (const struct snd_usb_audio_quirk[]) {
3116 {
3117 .ifnum = 0,
3118 .type = QUIRK_IGNORE_INTERFACE
3119 },
3120 {
3121 .ifnum = 1,
3122 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3123 .data = &(const struct audioformat) {
3124 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
3125 .channels = 2,
3126 .iface = 1,
3127 .altsetting = 1,
3128 .altset_idx = 1,
3129 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
3130 .endpoint = 0x02,
3131 .ep_attr = USB_ENDPOINT_XFER_ISOC,
3132 .rates = SNDRV_PCM_RATE_44100 |
3133 SNDRV_PCM_RATE_48000 |
3134 SNDRV_PCM_RATE_88200 |
3135 SNDRV_PCM_RATE_96000,
3136 .rate_min = 44100,
3137 .rate_max = 96000,
3138 .nr_rates = 4,
3139 .rate_table = (unsigned int[]) {
3140 44100, 48000, 88200, 96000
3141 }
3142 }
3143 },
3144 {
3145 .ifnum = -1
3146 }
3147 }
3148 }
3149},
Chris J Arges40717382010-02-17 12:12:52 -06003150
Marko Friedemannc05fce52012-09-03 10:12:40 +02003151/* Microsoft XboxLive Headset/Xbox Communicator */
3152{
3153 USB_DEVICE(0x045e, 0x0283),
3154 .bInterfaceClass = USB_CLASS_PER_INTERFACE,
3155 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3156 .vendor_name = "Microsoft",
3157 .product_name = "XboxLive Headset/Xbox Communicator",
3158 .ifnum = QUIRK_ANY_INTERFACE,
3159 .type = QUIRK_COMPOSITE,
3160 .data = &(const struct snd_usb_audio_quirk[]) {
3161 {
3162 /* playback */
3163 .ifnum = 0,
3164 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3165 .data = &(const struct audioformat) {
3166 .formats = SNDRV_PCM_FMTBIT_S16_LE,
3167 .channels = 1,
3168 .iface = 0,
3169 .altsetting = 0,
3170 .altset_idx = 0,
3171 .attributes = 0,
3172 .endpoint = 0x04,
3173 .ep_attr = 0x05,
3174 .rates = SNDRV_PCM_RATE_CONTINUOUS,
3175 .rate_min = 22050,
3176 .rate_max = 22050
3177 }
3178 },
3179 {
3180 /* capture */
3181 .ifnum = 1,
3182 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3183 .data = &(const struct audioformat) {
3184 .formats = SNDRV_PCM_FMTBIT_S16_LE,
3185 .channels = 1,
3186 .iface = 1,
3187 .altsetting = 0,
3188 .altset_idx = 0,
3189 .attributes = 0,
3190 .endpoint = 0x85,
3191 .ep_attr = 0x05,
3192 .rates = SNDRV_PCM_RATE_CONTINUOUS,
3193 .rate_min = 16000,
3194 .rate_max = 16000
3195 }
3196 },
3197 {
3198 .ifnum = -1
3199 }
3200 }
3201 }
3202},
3203
Didier Villevaloisc9024662012-10-21 18:29:12 +02003204/* Reloop Play */
3205{
3206 USB_DEVICE(0x200c, 0x100b),
3207 .bInterfaceClass = USB_CLASS_PER_INTERFACE,
3208 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3209 .ifnum = QUIRK_ANY_INTERFACE,
3210 .type = QUIRK_COMPOSITE,
3211 .data = &(const struct snd_usb_audio_quirk[]) {
3212 {
3213 .ifnum = 0,
3214 .type = QUIRK_AUDIO_STANDARD_MIXER,
3215 },
3216 {
3217 .ifnum = 1,
3218 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3219 .data = &(const struct audioformat) {
3220 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
3221 .channels = 4,
3222 .iface = 1,
3223 .altsetting = 1,
3224 .altset_idx = 1,
3225 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
3226 .endpoint = 0x01,
3227 .ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
3228 .rates = SNDRV_PCM_RATE_44100 |
3229 SNDRV_PCM_RATE_48000,
3230 .rate_min = 44100,
3231 .rate_max = 48000,
3232 .nr_rates = 2,
3233 .rate_table = (unsigned int[]) {
3234 44100, 48000
3235 }
3236 }
3237 },
3238 {
3239 .ifnum = -1
3240 }
3241 }
3242 }
3243},
3244
Clemens Ladischf38275f2005-07-25 16:17:29 +02003245{
Linus Torvalds1da177e2005-04-16 15:20:36 -07003246 /*
Martin Schwenke1762a592012-11-13 19:38:03 +11003247 * Focusrite Scarlett 18i6
3248 *
3249 * Avoid mixer creation, which otherwise fails because some of
3250 * the interface descriptor subtypes for interface 0 are
3251 * unknown. That should be fixed or worked-around but this at
3252 * least allows the device to be used successfully with a DAW
3253 * and an external mixer. See comments below about other
3254 * ignored interfaces.
3255 */
3256 USB_DEVICE(0x1235, 0x8004),
3257 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
3258 .vendor_name = "Focusrite",
3259 .product_name = "Scarlett 18i6",
3260 .ifnum = QUIRK_ANY_INTERFACE,
3261 .type = QUIRK_COMPOSITE,
3262 .data = & (const struct snd_usb_audio_quirk[]) {
3263 {
3264 /* InterfaceSubClass 1 (Control Device) */
3265 .ifnum = 0,
3266 .type = QUIRK_IGNORE_INTERFACE
3267 },
3268 {
3269 .ifnum = 1,
3270 .type = QUIRK_AUDIO_STANDARD_INTERFACE
3271 },
3272 {
3273 .ifnum = 2,
3274 .type = QUIRK_AUDIO_STANDARD_INTERFACE
3275 },
3276 {
3277 /* InterfaceSubClass 1 (Control Device) */
3278 .ifnum = 3,
3279 .type = QUIRK_IGNORE_INTERFACE
3280 },
3281 {
3282 .ifnum = 4,
3283 .type = QUIRK_MIDI_STANDARD_INTERFACE
3284 },
3285 {
3286 /* InterfaceSubClass 1 (Device Firmware Update) */
3287 .ifnum = 5,
3288 .type = QUIRK_IGNORE_INTERFACE
3289 },
3290 {
3291 .ifnum = -1
3292 }
3293 }
3294 }
3295},
3296
3297{
3298 /*
Linus Torvalds1da177e2005-04-16 15:20:36 -07003299 * Some USB MIDI devices don't have an audio control interface,
3300 * so we have to grab MIDI streaming interfaces here.
3301 */
3302 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
3303 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
3304 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01003305 .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01003306 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07003307 .ifnum = QUIRK_ANY_INTERFACE,
3308 .type = QUIRK_MIDI_STANDARD_INTERFACE
3309 }
3310},
3311
3312#undef USB_DEVICE_VENDOR_SPEC