blob: 862ed16a7e8e70db9c0af906e239277a64bd79b2 [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
Andrea Borgiadc61b662009-01-12 23:17:47 +010053/* Creative/Toshiba Multimedia Center SB-0500 */
54{
55 USB_DEVICE(0x041e, 0x3048),
56 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
57 .vendor_name = "Toshiba",
58 .product_name = "SB-0500",
59 .ifnum = QUIRK_NO_INTERFACE
60 }
61},
62
Clemens Ladisch25a47b62008-02-25 11:04:19 +010063/* Creative/E-Mu devices */
64{
65 USB_DEVICE(0x041e, 0x3010),
66 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
67 .vendor_name = "Creative Labs",
68 .product_name = "Sound Blaster MP3+",
69 .ifnum = QUIRK_NO_INTERFACE
70 }
71},
72{
73 /* E-Mu 0202 USB */
74 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
75 .idVendor = 0x041e,
76 .idProduct = 0x3f02,
77 .bInterfaceClass = USB_CLASS_AUDIO,
78},
79{
80 /* E-Mu 0404 USB */
81 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
82 .idVendor = 0x041e,
83 .idProduct = 0x3f04,
84 .bInterfaceClass = USB_CLASS_AUDIO,
85},
Eran Tromer97c889a2008-09-26 01:07:03 -040086{
87 /* E-Mu Tracker Pre */
88 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
89 .idVendor = 0x041e,
90 .idProduct = 0x3f0a,
91 .bInterfaceClass = USB_CLASS_AUDIO,
92},
Joseph Teichman1cdfa9f2011-02-08 01:22:36 -050093{
94 /* E-Mu 0204 USB */
95 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
96 .idVendor = 0x041e,
97 .idProduct = 0x3f19,
98 .bInterfaceClass = USB_CLASS_AUDIO,
99},
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100100
Linus Torvalds1da177e2005-04-16 15:20:36 -0700101/*
Daniel Drakea9121452007-05-07 09:27:05 +0200102 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
103 * class matches do not take effect without an explicit ID match.
104 */
105{
106 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
107 USB_DEVICE_ID_MATCH_INT_CLASS |
108 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
109 .idVendor = 0x046d,
Daniel Draked4170452007-05-10 08:52:19 +0200110 .idProduct = 0x0850,
111 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100112 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Draked4170452007-05-10 08:52:19 +0200113},
114{
115 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
116 USB_DEVICE_ID_MATCH_INT_CLASS |
117 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
118 .idVendor = 0x046d,
George Shapovalovc34532d2007-07-09 10:42:35 +0200119 .idProduct = 0x08ae,
120 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100121 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
George Shapovalovc34532d2007-07-09 10:42:35 +0200122},
123{
124 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
125 USB_DEVICE_ID_MATCH_INT_CLASS |
126 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
127 .idVendor = 0x046d,
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200128 .idProduct = 0x08c6,
129 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100130 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200131},
132{
133 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
134 USB_DEVICE_ID_MATCH_INT_CLASS |
135 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
136 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200137 .idProduct = 0x08f0,
138 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100139 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Drakea9121452007-05-07 09:27:05 +0200140},
141{
142 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
143 USB_DEVICE_ID_MATCH_INT_CLASS |
144 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
145 .idVendor = 0x046d,
Dawid Wrobel31127f22007-10-22 11:57:17 +0200146 .idProduct = 0x08f5,
147 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100148 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Dawid Wrobel31127f22007-10-22 11:57:17 +0200149},
150{
151 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
152 USB_DEVICE_ID_MATCH_INT_CLASS |
153 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
154 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200155 .idProduct = 0x08f6,
156 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100157 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Drakea9121452007-05-07 09:27:05 +0200158},
Signed-off-by: Peter Stokes5c6c9e62009-01-14 09:47:57 +0100159{
Takashi Iwai82716582013-06-04 16:02:54 +0200160 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
161 USB_DEVICE_ID_MATCH_INT_CLASS |
162 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
163 .idVendor = 0x046d,
164 .idProduct = 0x0990,
165 .bInterfaceClass = USB_CLASS_AUDIO,
166 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
Signed-off-by: Peter Stokes5c6c9e62009-01-14 09:47:57 +0100167 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
168 .vendor_name = "Logitech, Inc.",
169 .product_name = "QuickCam Pro 9000",
170 .ifnum = QUIRK_NO_INTERFACE
171 }
172},
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100173
James Courtier-Dutton1e741902007-10-08 18:49:43 +0100174/*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700175 * Yamaha devices
176 */
177
178#define YAMAHA_DEVICE(id, name) { \
179 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100180 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700181 .vendor_name = "Yamaha", \
182 .product_name = name, \
183 .ifnum = QUIRK_ANY_INTERFACE, \
184 .type = QUIRK_MIDI_YAMAHA \
185 } \
186}
187#define YAMAHA_INTERFACE(id, intf, name) { \
188 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100189 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700190 .vendor_name = "Yamaha", \
191 .product_name = name, \
192 .ifnum = intf, \
193 .type = QUIRK_MIDI_YAMAHA \
194 } \
195}
196YAMAHA_DEVICE(0x1000, "UX256"),
197YAMAHA_DEVICE(0x1001, "MU1000"),
198YAMAHA_DEVICE(0x1002, "MU2000"),
199YAMAHA_DEVICE(0x1003, "MU500"),
200YAMAHA_INTERFACE(0x1004, 3, "UW500"),
201YAMAHA_DEVICE(0x1005, "MOTIF6"),
202YAMAHA_DEVICE(0x1006, "MOTIF7"),
203YAMAHA_DEVICE(0x1007, "MOTIF8"),
204YAMAHA_DEVICE(0x1008, "UX96"),
205YAMAHA_DEVICE(0x1009, "UX16"),
206YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
207YAMAHA_DEVICE(0x100c, "UC-MX"),
208YAMAHA_DEVICE(0x100d, "UC-KX"),
209YAMAHA_DEVICE(0x100e, "S08"),
210YAMAHA_DEVICE(0x100f, "CLP-150"),
211YAMAHA_DEVICE(0x1010, "CLP-170"),
212YAMAHA_DEVICE(0x1011, "P-250"),
213YAMAHA_DEVICE(0x1012, "TYROS"),
214YAMAHA_DEVICE(0x1013, "PF-500"),
215YAMAHA_DEVICE(0x1014, "S90"),
216YAMAHA_DEVICE(0x1015, "MOTIF-R"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100217YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700218YAMAHA_DEVICE(0x1017, "CVP-204"),
219YAMAHA_DEVICE(0x1018, "CVP-206"),
220YAMAHA_DEVICE(0x1019, "CVP-208"),
221YAMAHA_DEVICE(0x101a, "CVP-210"),
222YAMAHA_DEVICE(0x101b, "PSR-1100"),
223YAMAHA_DEVICE(0x101c, "PSR-2100"),
224YAMAHA_DEVICE(0x101d, "CLP-175"),
225YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100226YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700227YAMAHA_DEVICE(0x1020, "EZ-250i"),
228YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
229YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
230YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
231YAMAHA_DEVICE(0x1024, "CVP-301"),
232YAMAHA_DEVICE(0x1025, "CVP-303"),
233YAMAHA_DEVICE(0x1026, "CVP-305"),
234YAMAHA_DEVICE(0x1027, "CVP-307"),
235YAMAHA_DEVICE(0x1028, "CVP-309"),
236YAMAHA_DEVICE(0x1029, "CVP-309GP"),
237YAMAHA_DEVICE(0x102a, "PSR-1500"),
238YAMAHA_DEVICE(0x102b, "PSR-3000"),
239YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
240YAMAHA_DEVICE(0x1030, "PSR-295/293"),
241YAMAHA_DEVICE(0x1031, "DGX-205/203"),
242YAMAHA_DEVICE(0x1032, "DGX-305"),
243YAMAHA_DEVICE(0x1033, "DGX-505"),
244YAMAHA_DEVICE(0x1034, NULL),
245YAMAHA_DEVICE(0x1035, NULL),
246YAMAHA_DEVICE(0x1036, NULL),
247YAMAHA_DEVICE(0x1037, NULL),
248YAMAHA_DEVICE(0x1038, NULL),
249YAMAHA_DEVICE(0x1039, NULL),
250YAMAHA_DEVICE(0x103a, NULL),
251YAMAHA_DEVICE(0x103b, NULL),
252YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200253YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200254YAMAHA_DEVICE(0x103e, NULL),
255YAMAHA_DEVICE(0x103f, NULL),
256YAMAHA_DEVICE(0x1040, NULL),
257YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200258YAMAHA_DEVICE(0x1042, NULL),
259YAMAHA_DEVICE(0x1043, NULL),
260YAMAHA_DEVICE(0x1044, NULL),
261YAMAHA_DEVICE(0x1045, NULL),
Clemens Ladischc85ceac2008-07-10 11:01:06 +0200262YAMAHA_INTERFACE(0x104e, 0, NULL),
Clemens Ladisch83a1a392008-07-10 11:05:42 +0200263YAMAHA_DEVICE(0x104f, NULL),
264YAMAHA_DEVICE(0x1050, NULL),
265YAMAHA_DEVICE(0x1051, NULL),
266YAMAHA_DEVICE(0x1052, NULL),
Clemens Ladisch422fdc32010-10-04 13:09:12 +0200267YAMAHA_INTERFACE(0x1053, 0, NULL),
268YAMAHA_INTERFACE(0x1054, 0, NULL),
269YAMAHA_DEVICE(0x1055, NULL),
270YAMAHA_DEVICE(0x1056, NULL),
271YAMAHA_DEVICE(0x1057, NULL),
272YAMAHA_DEVICE(0x1058, NULL),
273YAMAHA_DEVICE(0x1059, NULL),
274YAMAHA_DEVICE(0x105a, NULL),
275YAMAHA_DEVICE(0x105b, NULL),
276YAMAHA_DEVICE(0x105c, NULL),
277YAMAHA_DEVICE(0x105d, NULL),
Clemens Ladisch8c3f5d82011-12-19 23:09:15 +0100278{
279 USB_DEVICE(0x0499, 0x1503),
280 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
281 /* .vendor_name = "Yamaha", */
282 /* .product_name = "MOX6/MOX8", */
283 .ifnum = QUIRK_ANY_INTERFACE,
284 .type = QUIRK_COMPOSITE,
285 .data = (const struct snd_usb_audio_quirk[]) {
286 {
287 .ifnum = 1,
288 .type = QUIRK_AUDIO_STANDARD_INTERFACE
289 },
290 {
291 .ifnum = 2,
292 .type = QUIRK_AUDIO_STANDARD_INTERFACE
293 },
294 {
295 .ifnum = 3,
296 .type = QUIRK_MIDI_YAMAHA
297 },
298 {
299 .ifnum = -1
300 }
301 }
302 }
303},
Vlad Catoic650e882014-10-18 17:45:41 -0500304{
305 USB_DEVICE(0x0499, 0x1509),
306 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
307 /* .vendor_name = "Yamaha", */
308 /* .product_name = "Steinberg UR22", */
309 .ifnum = QUIRK_ANY_INTERFACE,
310 .type = QUIRK_COMPOSITE,
311 .data = (const struct snd_usb_audio_quirk[]) {
312 {
313 .ifnum = 1,
314 .type = QUIRK_AUDIO_STANDARD_INTERFACE
315 },
316 {
317 .ifnum = 2,
318 .type = QUIRK_AUDIO_STANDARD_INTERFACE
319 },
320 {
321 .ifnum = 3,
322 .type = QUIRK_MIDI_YAMAHA
323 },
324 {
325 .ifnum = 4,
326 .type = QUIRK_IGNORE_INTERFACE
327 },
328 {
329 .ifnum = -1
330 }
331 }
332 }
333},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700334YAMAHA_DEVICE(0x2000, "DGP-7"),
335YAMAHA_DEVICE(0x2001, "DGP-5"),
336YAMAHA_DEVICE(0x2002, NULL),
Clemens Ladisch422fdc32010-10-04 13:09:12 +0200337YAMAHA_DEVICE(0x2003, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338YAMAHA_DEVICE(0x5000, "CS1D"),
339YAMAHA_DEVICE(0x5001, "DSP1D"),
340YAMAHA_DEVICE(0x5002, "DME32"),
341YAMAHA_DEVICE(0x5003, "DM2000"),
342YAMAHA_DEVICE(0x5004, "02R96"),
343YAMAHA_DEVICE(0x5005, "ACU16-C"),
344YAMAHA_DEVICE(0x5006, "NHB32-C"),
345YAMAHA_DEVICE(0x5007, "DM1000"),
346YAMAHA_DEVICE(0x5008, "01V96"),
347YAMAHA_DEVICE(0x5009, "SPX2000"),
348YAMAHA_DEVICE(0x500a, "PM5D"),
349YAMAHA_DEVICE(0x500b, "DME64N"),
350YAMAHA_DEVICE(0x500c, "DME24N"),
351YAMAHA_DEVICE(0x500d, NULL),
352YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200353YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700354YAMAHA_DEVICE(0x7000, "DTX"),
355YAMAHA_DEVICE(0x7010, "UB99"),
356#undef YAMAHA_DEVICE
357#undef YAMAHA_INTERFACE
358
359/*
360 * Roland/RolandED/Edirol/BOSS devices
361 */
362{
363 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100364 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700365 .vendor_name = "Roland",
366 .product_name = "UA-100",
367 .ifnum = QUIRK_ANY_INTERFACE,
368 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100369 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700370 {
371 .ifnum = 0,
372 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
373 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100374 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700375 .channels = 4,
376 .iface = 0,
377 .altsetting = 1,
378 .altset_idx = 1,
379 .attributes = 0,
380 .endpoint = 0x01,
381 .ep_attr = 0x09,
382 .rates = SNDRV_PCM_RATE_CONTINUOUS,
383 .rate_min = 44100,
384 .rate_max = 44100,
385 }
386 },
387 {
388 .ifnum = 1,
389 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
390 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100391 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700392 .channels = 2,
393 .iface = 1,
394 .altsetting = 1,
395 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100396 .attributes = UAC_EP_CS_ATTR_FILL_MAX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397 .endpoint = 0x81,
398 .ep_attr = 0x05,
399 .rates = SNDRV_PCM_RATE_CONTINUOUS,
400 .rate_min = 44100,
401 .rate_max = 44100,
402 }
403 },
404 {
405 .ifnum = 2,
406 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100407 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408 .out_cables = 0x0007,
409 .in_cables = 0x0007
410 }
411 },
412 {
413 .ifnum = -1
414 }
415 }
416 }
417},
418{
419 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100420 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700421 .vendor_name = "EDIROL",
422 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200423 .ifnum = QUIRK_ANY_INTERFACE,
424 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100425 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200426 {
427 .ifnum = 0,
428 .type = QUIRK_IGNORE_INTERFACE
429 },
430 {
431 .ifnum = 1,
432 .type = QUIRK_IGNORE_INTERFACE
433 },
434 {
435 .ifnum = 2,
436 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100437 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200438 .out_cables = 0x000f,
439 .in_cables = 0x000f
440 }
441 },
442 {
443 .ifnum = -1
444 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700445 }
446 }
447},
448{
449 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100450 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700451 .vendor_name = "Roland",
452 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200453 .ifnum = QUIRK_ANY_INTERFACE,
454 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100455 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200456 {
457 .ifnum = 0,
458 .type = QUIRK_IGNORE_INTERFACE
459 },
460 {
461 .ifnum = 1,
462 .type = QUIRK_IGNORE_INTERFACE
463 },
464 {
465 .ifnum = 2,
466 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100467 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200468 .out_cables = 0x003f,
469 .in_cables = 0x003f
470 }
471 },
472 {
473 .ifnum = -1
474 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700475 }
476 }
477},
478{
479 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100480 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700481 .vendor_name = "Roland",
482 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200483 .ifnum = QUIRK_ANY_INTERFACE,
484 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100485 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200486 {
487 .ifnum = 0,
488 .type = QUIRK_IGNORE_INTERFACE
489 },
490 {
491 .ifnum = 1,
492 .type = QUIRK_IGNORE_INTERFACE
493 },
494 {
495 .ifnum = 2,
496 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100497 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200498 .out_cables = 0x0005,
499 .in_cables = 0x0005
500 }
501 },
502 {
503 .ifnum = -1
504 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700505 }
506 }
507},
508{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100509 /* Has ID 0x0099 when not in "Advanced Driver" mode.
510 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700511 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100512 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700513 .vendor_name = "EDIROL",
514 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200515 .ifnum = QUIRK_ANY_INTERFACE,
516 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100517 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200518 {
519 .ifnum = 0,
520 .type = QUIRK_IGNORE_INTERFACE
521 },
522 {
523 .ifnum = 1,
524 .type = QUIRK_IGNORE_INTERFACE
525 },
526 {
527 .ifnum = 2,
528 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100529 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200530 .out_cables = 0x0003,
531 .in_cables = 0x0003
532 }
533 },
534 {
535 .ifnum = -1
536 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700537 }
538 }
539},
540{
541 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100542 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700543 .vendor_name = "Roland",
544 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200545 .ifnum = QUIRK_ANY_INTERFACE,
546 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100547 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200548 {
549 .ifnum = 0,
550 .type = QUIRK_IGNORE_INTERFACE
551 },
552 {
553 .ifnum = 1,
554 .type = QUIRK_IGNORE_INTERFACE
555 },
556 {
557 .ifnum = 2,
558 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100559 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200560 .out_cables = 0x0013,
561 .in_cables = 0x0013
562 }
563 },
564 {
565 .ifnum = -1
566 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700567 }
568 }
569},
570{
571 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100572 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700573 .vendor_name = "Roland",
574 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200575 .ifnum = QUIRK_ANY_INTERFACE,
576 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100577 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200578 {
579 .ifnum = 0,
580 .type = QUIRK_IGNORE_INTERFACE
581 },
582 {
583 .ifnum = 1,
584 .type = QUIRK_IGNORE_INTERFACE
585 },
586 {
587 .ifnum = 2,
588 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100589 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200590 .out_cables = 0x0001,
591 .in_cables = 0x0001
592 }
593 },
594 {
595 .ifnum = -1
596 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700597 }
598 }
599},
600{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100601 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700602 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100603 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604 .vendor_name = "EDIROL",
605 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200606 .ifnum = QUIRK_ANY_INTERFACE,
607 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100608 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200609 {
610 .ifnum = 0,
611 .type = QUIRK_IGNORE_INTERFACE
612 },
613 {
614 .ifnum = 1,
615 .type = QUIRK_IGNORE_INTERFACE
616 },
617 {
618 .ifnum = 2,
619 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100620 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200621 .out_cables = 0x0001,
622 .in_cables = 0x0001
623 }
624 },
625 {
626 .ifnum = -1
627 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700628 }
629 }
630},
631{
632 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100633 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700634 .vendor_name = "Roland",
635 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200636 .ifnum = QUIRK_ANY_INTERFACE,
637 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100638 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200639 {
640 .ifnum = 0,
641 .type = QUIRK_IGNORE_INTERFACE
642 },
643 {
644 .ifnum = 1,
645 .type = QUIRK_IGNORE_INTERFACE
646 },
647 {
648 .ifnum = 2,
649 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100650 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200651 .out_cables = 0x0013,
652 .in_cables = 0x0013
653 }
654 },
655 {
656 .ifnum = -1
657 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700658 }
659 }
660},
661{
662 /* thanks to Emiliano Grilli <emillo@libero.it>
663 * for helping researching this data */
664 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100665 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700666 .vendor_name = "Roland",
667 .product_name = "SC-D70",
668 .ifnum = QUIRK_ANY_INTERFACE,
669 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100670 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700671 {
672 .ifnum = 0,
673 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
674 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100675 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700676 .channels = 2,
677 .iface = 0,
678 .altsetting = 1,
679 .altset_idx = 1,
680 .attributes = 0,
681 .endpoint = 0x01,
682 .ep_attr = 0x01,
683 .rates = SNDRV_PCM_RATE_CONTINUOUS,
684 .rate_min = 44100,
685 .rate_max = 44100,
686 }
687 },
688 {
689 .ifnum = 1,
690 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
691 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100692 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700693 .channels = 2,
694 .iface = 1,
695 .altsetting = 1,
696 .altset_idx = 1,
697 .attributes = 0,
698 .endpoint = 0x81,
699 .ep_attr = 0x01,
700 .rates = SNDRV_PCM_RATE_CONTINUOUS,
701 .rate_min = 44100,
702 .rate_max = 44100,
703 }
704 },
705 {
706 .ifnum = 2,
707 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100708 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700709 .out_cables = 0x0007,
710 .in_cables = 0x0007
711 }
712 },
713 {
714 .ifnum = -1
715 }
716 }
717 }
718},
719{ /*
720 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
721 * If the advanced mode switch at the back of the unit is off, the
722 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
723 * but offers only 16-bit PCM.
724 * In advanced mode, the UA-5 will output S24_3LE samples (two
725 * channels) at the rate indicated on the front switch, including
726 * the 96kHz sample rate.
727 */
728 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100729 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700730 .vendor_name = "EDIROL",
731 .product_name = "UA-5",
732 .ifnum = QUIRK_ANY_INTERFACE,
733 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100734 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700735 {
736 .ifnum = 1,
737 .type = QUIRK_AUDIO_STANDARD_INTERFACE
738 },
739 {
740 .ifnum = 2,
741 .type = QUIRK_AUDIO_STANDARD_INTERFACE
742 },
743 {
744 .ifnum = -1
745 }
746 }
747 }
748},
749{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200750 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700751 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100752 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700753 .vendor_name = "Roland",
754 .product_name = "XV-5050",
755 .ifnum = 0,
756 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100757 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700758 .out_cables = 0x0001,
759 .in_cables = 0x0001
760 }
761 }
762},
763{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200764 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100766 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700767 .vendor_name = "EDIROL",
768 .product_name = "UM-880",
769 .ifnum = 0,
770 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100771 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700772 .out_cables = 0x01ff,
773 .in_cables = 0x01ff
774 }
775 }
776},
777{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200778 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700779 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100780 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700781 .vendor_name = "EDIROL",
782 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200783 .ifnum = QUIRK_ANY_INTERFACE,
784 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100785 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200786 {
787 .ifnum = 0,
Clemens Ladisch061b8692011-01-10 16:30:54 +0100788 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200789 },
790 {
791 .ifnum = 1,
Clemens Ladisch061b8692011-01-10 16:30:54 +0100792 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200793 },
794 {
795 .ifnum = 2,
796 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100797 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200798 .out_cables = 0x000f,
799 .in_cables = 0x000f
800 }
801 },
802 {
803 .ifnum = -1
804 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700805 }
806 }
807},
808{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200809 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700810 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100811 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700812 .vendor_name = "Roland",
813 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200814 .ifnum = QUIRK_ANY_INTERFACE,
815 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100816 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200817 {
818 .ifnum = 0,
819 .type = QUIRK_IGNORE_INTERFACE
820 },
821 {
822 .ifnum = 1,
823 .type = QUIRK_IGNORE_INTERFACE
824 },
825 {
826 .ifnum = 2,
827 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100828 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200829 .out_cables = 0x0001,
830 .in_cables = 0x0001
831 }
832 },
833 {
834 .ifnum = -1
835 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700836 }
837 }
838},
839{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200840 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700841 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100842 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700843 .vendor_name = "Roland",
844 .product_name = "V-SYNTH",
845 .ifnum = 0,
846 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100847 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700848 .out_cables = 0x0001,
849 .in_cables = 0x0001
850 }
851 }
852},
853{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200854 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700855 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100856 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700857 .vendor_name = "EDIROL",
858 .product_name = "UM-550",
859 .ifnum = 0,
860 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100861 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700862 .out_cables = 0x003f,
863 .in_cables = 0x003f
864 }
865 }
866},
867{
868 /*
869 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
870 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
871 * and no MIDI.
872 */
873 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100874 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700875 .vendor_name = "EDIROL",
876 .product_name = "UA-20",
877 .ifnum = QUIRK_ANY_INTERFACE,
878 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100879 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700880 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100881 .ifnum = 0,
882 .type = QUIRK_IGNORE_INTERFACE
883 },
884 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700885 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100886 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
887 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100888 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100889 .channels = 2,
890 .iface = 1,
891 .altsetting = 1,
892 .altset_idx = 1,
893 .attributes = 0,
894 .endpoint = 0x01,
895 .ep_attr = 0x01,
896 .rates = SNDRV_PCM_RATE_CONTINUOUS,
897 .rate_min = 44100,
898 .rate_max = 44100,
899 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700900 },
901 {
902 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100903 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
904 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100905 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100906 .channels = 2,
907 .iface = 2,
908 .altsetting = 1,
909 .altset_idx = 1,
910 .attributes = 0,
911 .endpoint = 0x82,
912 .ep_attr = 0x01,
913 .rates = SNDRV_PCM_RATE_CONTINUOUS,
914 .rate_min = 44100,
915 .rate_max = 44100,
916 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700917 },
918 {
919 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100920 .type = QUIRK_MIDI_FIXED_ENDPOINT,
921 .data = & (const struct snd_usb_midi_endpoint_info) {
922 .out_cables = 0x0001,
923 .in_cables = 0x0001
924 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700925 },
926 {
927 .ifnum = -1
928 }
929 }
930 }
931},
932{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200933 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700934 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100935 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700936 .vendor_name = "EDIROL",
937 .product_name = "SD-20",
938 .ifnum = 0,
939 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100940 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700941 .out_cables = 0x0003,
942 .in_cables = 0x0007
943 }
944 }
945},
946{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200947 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700948 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100949 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700950 .vendor_name = "EDIROL",
951 .product_name = "SD-80",
952 .ifnum = 0,
953 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100954 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700955 .out_cables = 0x000f,
956 .in_cables = 0x000f
957 }
958 }
959},
960{ /*
961 * This quirk is for the "Advanced" modes of the Edirol UA-700.
962 * If the sample format switch is not in an advanced setting, the
963 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
964 * but offers only 16-bit PCM and no MIDI.
965 */
966 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100967 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700968 .vendor_name = "EDIROL",
969 .product_name = "UA-700",
970 .ifnum = QUIRK_ANY_INTERFACE,
971 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100972 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700973 {
974 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200975 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700976 },
977 {
978 .ifnum = 2,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200979 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700980 },
981 {
982 .ifnum = 3,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +0200983 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700984 },
985 {
986 .ifnum = -1
987 }
988 }
989 }
990},
991{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200992 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700993 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100994 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700995 .vendor_name = "Roland",
996 .product_name = "XV-2020",
997 .ifnum = 0,
998 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100999 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001000 .out_cables = 0x0001,
1001 .in_cables = 0x0001
1002 }
1003 }
1004},
1005{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001006 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001007 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001008 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001009 .vendor_name = "Roland",
1010 .product_name = "VariOS",
1011 .ifnum = 0,
1012 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001013 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001014 .out_cables = 0x0007,
1015 .in_cables = 0x0007
1016 }
1017 }
1018},
1019{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001020 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001021 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001022 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001023 .vendor_name = "EDIROL",
1024 .product_name = "PCR",
1025 .ifnum = 0,
1026 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001027 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001028 .out_cables = 0x0003,
1029 .in_cables = 0x0007
1030 }
1031 }
1032},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001033 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001034{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001035 /*
1036 * Has ID 0x0038 when not in "Advanced Driver" mode;
1037 * later revisions use IDs 0x0054 and 0x00a2.
1038 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001039 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001040 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001041 .vendor_name = "Roland",
1042 .product_name = "Digital Piano",
1043 .ifnum = 0,
1044 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001045 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001046 .out_cables = 0x0001,
1047 .in_cables = 0x0001
1048 }
1049 }
1050},
1051{
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001052 /*
1053 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
1054 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
1055 * and no MIDI.
1056 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001057 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001058 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001059 .vendor_name = "BOSS",
1060 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001061 .ifnum = QUIRK_ANY_INTERFACE,
1062 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001063 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001064 {
1065 .ifnum = 1,
1066 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1067 },
1068 {
1069 .ifnum = 2,
1070 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1071 },
1072 {
1073 .ifnum = 3,
1074 .type = QUIRK_MIDI_STANDARD_INTERFACE
1075 },
1076 {
1077 .ifnum = -1
1078 }
Linus Torvalds1da177e2005-04-16 15:20:36 -07001079 }
1080 }
1081},
1082{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001083 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001084 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001085 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001086 .vendor_name = "Roland",
1087 .product_name = "GI-20",
1088 .ifnum = 0,
1089 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001090 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001091 .out_cables = 0x0001,
1092 .in_cables = 0x0001
1093 }
1094 }
1095},
1096{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001097 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001098 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001099 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001100 .vendor_name = "Roland",
1101 .product_name = "RS-70",
1102 .ifnum = 0,
1103 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001104 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001105 .out_cables = 0x0001,
1106 .in_cables = 0x0001
1107 }
1108 }
1109},
1110{
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001111 /* has ID 0x0049 when not in "Advanced Driver" mode */
1112 USB_DEVICE(0x0582, 0x0047),
1113 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1114 /* .vendor_name = "EDIROL", */
1115 /* .product_name = "UR-80", */
1116 .ifnum = QUIRK_ANY_INTERFACE,
1117 .type = QUIRK_COMPOSITE,
1118 .data = (const struct snd_usb_audio_quirk[]) {
1119 /* in the 96 kHz modes, only interface 1 is there */
1120 {
1121 .ifnum = 1,
1122 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1123 },
1124 {
1125 .ifnum = 2,
1126 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1127 },
1128 {
1129 .ifnum = -1
1130 }
1131 }
1132 }
1133},
1134{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001135 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001136 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001137 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001138 /* .vendor_name = "EDIROL", */
1139 /* .product_name = "UR-80", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001140 .ifnum = 0,
1141 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001142 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001143 .out_cables = 0x0003,
1144 .in_cables = 0x0007
1145 }
1146 }
1147},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001148 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001149{
Clemens Ladischf38cc312007-02-09 20:52:55 +01001150 /* has ID 0x004e when not in "Advanced Driver" mode */
1151 USB_DEVICE(0x0582, 0x004c),
1152 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1153 .vendor_name = "EDIROL",
1154 .product_name = "PCR-A",
1155 .ifnum = QUIRK_ANY_INTERFACE,
1156 .type = QUIRK_COMPOSITE,
1157 .data = (const struct snd_usb_audio_quirk[]) {
1158 {
1159 .ifnum = 1,
1160 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1161 },
1162 {
1163 .ifnum = 2,
1164 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1165 },
1166 {
1167 .ifnum = -1
1168 }
1169 }
1170 }
1171},
1172{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001173 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001174 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001175 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001176 .vendor_name = "EDIROL",
1177 .product_name = "PCR-A",
1178 .ifnum = 0,
1179 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001180 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001181 .out_cables = 0x0003,
1182 .in_cables = 0x0007
1183 }
1184 }
1185},
1186{
1187 /*
1188 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1189 * is standard compliant, but has only 16-bit PCM.
1190 */
1191 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001192 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001193 .vendor_name = "EDIROL",
1194 .product_name = "UA-3FX",
1195 .ifnum = QUIRK_ANY_INTERFACE,
1196 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001197 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001198 {
1199 .ifnum = 1,
1200 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1201 },
1202 {
1203 .ifnum = 2,
1204 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1205 },
1206 {
1207 .ifnum = -1
1208 }
1209 }
1210 }
1211},
1212{
1213 USB_DEVICE(0x0582, 0x0052),
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 = "UM-1SX",
1217 .ifnum = 0,
1218 .type = QUIRK_MIDI_STANDARD_INTERFACE
1219 }
1220},
Takashi Iwaif1676842007-07-09 10:39:44 +02001221{
1222 USB_DEVICE(0x0582, 0x0060),
1223 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1224 .vendor_name = "Roland",
1225 .product_name = "EXR Series",
1226 .ifnum = 0,
1227 .type = QUIRK_MIDI_STANDARD_INTERFACE
1228 }
1229},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001230{
Clemens Ladischaa702012010-08-30 16:32:43 +02001231 /* has ID 0x0066 when not in "Advanced Driver" mode */
1232 USB_DEVICE(0x0582, 0x0064),
1233 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1234 /* .vendor_name = "EDIROL", */
1235 /* .product_name = "PCR-1", */
1236 .ifnum = QUIRK_ANY_INTERFACE,
1237 .type = QUIRK_COMPOSITE,
1238 .data = (const struct snd_usb_audio_quirk[]) {
1239 {
1240 .ifnum = 1,
1241 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1242 },
1243 {
1244 .ifnum = 2,
1245 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1246 },
1247 {
1248 .ifnum = -1
1249 }
1250 }
1251 }
1252},
1253{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001254 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001255 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001256 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischaa702012010-08-30 16:32:43 +02001257 /* .vendor_name = "EDIROL", */
1258 /* .product_name = "PCR-1", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001259 .ifnum = 0,
1260 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001261 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001262 .out_cables = 0x0001,
1263 .in_cables = 0x0003
1264 }
1265 }
1266},
1267{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001268 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001269 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001270 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001271 .vendor_name = "Roland",
1272 .product_name = "SP-606",
1273 .ifnum = 3,
1274 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001275 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001276 .out_cables = 0x0001,
1277 .in_cables = 0x0001
1278 }
1279 }
1280},
1281{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001282 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001283 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001284 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001285 .vendor_name = "Roland",
1286 .product_name = "FANTOM-X",
1287 .ifnum = 0,
1288 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001289 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001290 .out_cables = 0x0001,
1291 .in_cables = 0x0001
1292 }
1293 }
1294},
1295{ /*
1296 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1297 * If the switch is not in an advanced setting, the UA-25 has
1298 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1299 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1300 */
1301 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001302 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001303 .vendor_name = "EDIROL",
1304 .product_name = "UA-25",
1305 .ifnum = QUIRK_ANY_INTERFACE,
1306 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001307 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001308 {
1309 .ifnum = 0,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001310 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001311 },
1312 {
1313 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001314 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001315 },
1316 {
1317 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001318 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001319 },
1320 {
1321 .ifnum = -1
1322 }
1323 }
1324 }
1325},
1326{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001327 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001328 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001329 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001330 .vendor_name = "BOSS",
1331 .product_name = "DR-880",
1332 .ifnum = 0,
1333 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001334 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001335 .out_cables = 0x0001,
1336 .in_cables = 0x0001
1337 }
1338 }
1339},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001340{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001341 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001342 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001343 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001344 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001345 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001346 .ifnum = 0,
1347 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001348 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001349 .out_cables = 0x0003,
1350 .in_cables = 0x0003
1351 }
1352 }
1353},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001354{
1355 /* has ID 0x0081 when not in "Advanced Driver" mode */
1356 USB_DEVICE(0x0582, 0x0080),
1357 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1358 .vendor_name = "Roland",
1359 .product_name = "G-70",
1360 .ifnum = 0,
1361 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1362 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001363 .out_cables = 0x0001,
1364 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001365 }
1366 }
1367},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001368 /* TODO: add Roland V-SYNTH XT support */
1369 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001370{
1371 /* has ID 0x008c when not in "Advanced Driver" mode */
1372 USB_DEVICE(0x0582, 0x008b),
1373 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1374 .vendor_name = "EDIROL",
1375 .product_name = "PC-50",
1376 .ifnum = 0,
1377 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1378 .data = & (const struct snd_usb_midi_endpoint_info) {
1379 .out_cables = 0x0001,
1380 .in_cables = 0x0001
1381 }
1382 }
1383},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001384 /* TODO: add Edirol PC-80 support */
Takashi Iwai9b0d39b2007-08-10 15:07:06 +02001385{
1386 USB_DEVICE(0x0582, 0x0096),
1387 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1388 .vendor_name = "EDIROL",
1389 .product_name = "UA-1EX",
1390 .ifnum = QUIRK_ANY_INTERFACE,
1391 .type = QUIRK_COMPOSITE,
1392 .data = (const struct snd_usb_audio_quirk[]) {
1393 {
1394 .ifnum = 0,
1395 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1396 },
1397 {
1398 .ifnum = 1,
1399 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1400 },
1401 {
1402 .ifnum = -1
1403 }
1404 }
1405 }
1406},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001407{
1408 USB_DEVICE(0x0582, 0x009a),
1409 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1410 .vendor_name = "EDIROL",
1411 .product_name = "UM-3EX",
1412 .ifnum = 0,
1413 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1414 .data = & (const struct snd_usb_midi_endpoint_info) {
1415 .out_cables = 0x000f,
1416 .in_cables = 0x000f
1417 }
1418 }
1419},
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001420{
1421 /*
1422 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
1423 * is standard compliant, but has only 16-bit PCM and no MIDI.
1424 */
1425 USB_DEVICE(0x0582, 0x00a3),
1426 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1427 .vendor_name = "EDIROL",
1428 .product_name = "UA-4FX",
1429 .ifnum = QUIRK_ANY_INTERFACE,
1430 .type = QUIRK_COMPOSITE,
1431 .data = (const struct snd_usb_audio_quirk[]) {
1432 {
1433 .ifnum = 0,
1434 .type = QUIRK_AUDIO_EDIROL_UAXX
1435 },
1436 {
1437 .ifnum = 1,
1438 .type = QUIRK_AUDIO_EDIROL_UAXX
1439 },
1440 {
1441 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001442 .type = QUIRK_AUDIO_EDIROL_UAXX
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001443 },
1444 {
1445 .ifnum = -1
1446 }
1447 }
1448 }
1449},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001450 /* TODO: add Edirol MD-P1 support */
Carlo Beccaria87823092007-07-03 08:04:25 +02001451{
Clemens Ladisch25a47b62008-02-25 11:04:19 +01001452 USB_DEVICE(0x582, 0x00a6),
1453 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1454 .vendor_name = "Roland",
1455 .product_name = "Juno-G",
1456 .ifnum = 0,
1457 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1458 .data = & (const struct snd_usb_midi_endpoint_info) {
1459 .out_cables = 0x0001,
1460 .in_cables = 0x0001
1461 }
1462 }
1463},
1464{
Carlo Beccaria87823092007-07-03 08:04:25 +02001465 /* Roland SH-201 */
1466 USB_DEVICE(0x0582, 0x00ad),
1467 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1468 .vendor_name = "Roland",
1469 .product_name = "SH-201",
1470 .ifnum = QUIRK_ANY_INTERFACE,
1471 .type = QUIRK_COMPOSITE,
1472 .data = (const struct snd_usb_audio_quirk[]) {
1473 {
1474 .ifnum = 0,
1475 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1476 },
1477 {
1478 .ifnum = 1,
1479 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1480 },
1481 {
1482 .ifnum = 2,
1483 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1484 .data = & (const struct snd_usb_midi_endpoint_info) {
1485 .out_cables = 0x0001,
1486 .in_cables = 0x0001
1487 }
1488 },
1489 {
1490 .ifnum = -1
1491 }
1492 }
1493 }
1494},
Chris Mennie62b12632008-05-19 16:21:33 +02001495{
1496 /* Roland SonicCell */
1497 USB_DEVICE(0x0582, 0x00c2),
1498 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1499 .vendor_name = "Roland",
1500 .product_name = "SonicCell",
1501 .ifnum = QUIRK_ANY_INTERFACE,
1502 .type = QUIRK_COMPOSITE,
1503 .data = (const struct snd_usb_audio_quirk[]) {
1504 {
1505 .ifnum = 0,
1506 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1507 },
1508 {
1509 .ifnum = 1,
1510 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1511 },
1512 {
1513 .ifnum = 2,
1514 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1515 .data = & (const struct snd_usb_midi_endpoint_info) {
1516 .out_cables = 0x0001,
1517 .in_cables = 0x0001
1518 }
1519 },
1520 {
1521 .ifnum = -1
1522 }
1523 }
1524 }
1525},
Clemens Ladischb38addb2008-07-28 10:19:39 +02001526{
Takashi Iwai6efd2cd2009-06-01 10:59:51 +02001527 /* Edirol M-16DX */
1528 /* FIXME: This quirk gives a good-working capture stream but the
1529 * playback seems problematic because of lacking of sync
1530 * with capture stream. It needs to sync with the capture
1531 * clock. As now, you'll get frequent sound distortions
1532 * via the playback.
1533 */
1534 USB_DEVICE(0x0582, 0x00c4),
1535 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1536 .ifnum = QUIRK_ANY_INTERFACE,
1537 .type = QUIRK_COMPOSITE,
1538 .data = (const struct snd_usb_audio_quirk[]) {
1539 {
1540 .ifnum = 0,
1541 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1542 },
1543 {
1544 .ifnum = 1,
1545 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1546 },
1547 {
1548 .ifnum = 2,
1549 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1550 .data = & (const struct snd_usb_midi_endpoint_info) {
1551 .out_cables = 0x0001,
1552 .in_cables = 0x0001
1553 }
1554 },
1555 {
1556 .ifnum = -1
1557 }
1558 }
1559 }
1560},
1561{
Clemens Ladischb38addb2008-07-28 10:19:39 +02001562 /* BOSS GT-10 */
1563 USB_DEVICE(0x0582, 0x00da),
1564 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1565 .ifnum = QUIRK_ANY_INTERFACE,
1566 .type = QUIRK_COMPOSITE,
1567 .data = (const struct snd_usb_audio_quirk[]) {
1568 {
1569 .ifnum = 0,
1570 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1571 },
1572 {
1573 .ifnum = 1,
1574 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1575 },
1576 {
1577 .ifnum = 2,
1578 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1579 .data = & (const struct snd_usb_midi_endpoint_info) {
1580 .out_cables = 0x0001,
1581 .in_cables = 0x0001
1582 }
1583 },
1584 {
1585 .ifnum = -1
1586 }
1587 }
1588 }
1589},
Takashi Iwaie2736262008-10-20 16:07:45 +02001590{
1591 /* Advanced modes of the Edirol UA-25EX.
1592 * For the standard mode, UA-25EX has ID 0582:00e7, which
1593 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1594 */
1595 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
1596 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1597 .vendor_name = "EDIROL",
1598 .product_name = "UA-25EX",
1599 .ifnum = QUIRK_ANY_INTERFACE,
1600 .type = QUIRK_COMPOSITE,
1601 .data = (const struct snd_usb_audio_quirk[]) {
1602 {
1603 .ifnum = 0,
1604 .type = QUIRK_AUDIO_EDIROL_UAXX
1605 },
1606 {
1607 .ifnum = 1,
1608 .type = QUIRK_AUDIO_EDIROL_UAXX
1609 },
1610 {
1611 .ifnum = 2,
1612 .type = QUIRK_AUDIO_EDIROL_UAXX
1613 },
1614 {
1615 .ifnum = -1
1616 }
1617 }
1618 }
1619},
Clemens Ladischd867bba2009-11-19 14:34:33 +01001620{
1621 /* has ID 0x00ea when not in Advanced Driver mode */
1622 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e9),
1623 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1624 /* .vendor_name = "Roland", */
1625 /* .product_name = "UA-1G", */
1626 .ifnum = QUIRK_ANY_INTERFACE,
1627 .type = QUIRK_COMPOSITE,
1628 .data = (const struct snd_usb_audio_quirk[]) {
1629 {
1630 .ifnum = 0,
1631 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1632 },
1633 {
1634 .ifnum = 1,
1635 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1636 },
1637 {
1638 .ifnum = -1
1639 }
1640 }
1641 }
1642},
Clemens Ladisch9d0c9192010-08-30 16:42:17 +02001643{
Clemens Ladische1986922011-02-17 14:26:51 +01001644 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0104),
1645 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1646 /* .vendor_name = "Roland", */
1647 /* .product_name = "UM-1G", */
1648 .ifnum = 0,
1649 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1650 .data = & (const struct snd_usb_midi_endpoint_info) {
1651 .out_cables = 0x0001,
1652 .in_cables = 0x0001
1653 }
1654 }
1655},
1656{
Clemens Ladisch927c9422012-02-04 20:51:43 +01001657 /* Edirol UM-3G */
1658 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
1659 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1660 .ifnum = 0,
Clemens Ladischd2f9d1f2013-06-02 19:49:07 +02001661 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1662 .data = & (const struct snd_usb_midi_endpoint_info) {
1663 .out_cables = 0x0007,
1664 .in_cables = 0x0007
1665 }
Clemens Ladisch927c9422012-02-04 20:51:43 +01001666 }
1667},
1668{
Keith A. Milnercb6f4b52011-03-21 20:15:08 +00001669 /* Boss JS-8 Jam Station */
1670 USB_DEVICE(0x0582, 0x0109),
1671 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1672 /* .vendor_name = "BOSS", */
1673 /* .product_name = "JS-8", */
1674 .ifnum = QUIRK_ANY_INTERFACE,
1675 .type = QUIRK_COMPOSITE,
1676 .data = (const struct snd_usb_audio_quirk[]) {
1677 {
1678 .ifnum = 0,
1679 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1680 },
1681 {
1682 .ifnum = 1,
1683 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1684 },
1685 {
1686 .ifnum = 2,
1687 .type = QUIRK_MIDI_STANDARD_INTERFACE
1688 },
1689 {
1690 .ifnum = -1
1691 }
1692 }
1693 }
1694},
1695{
Clemens Ladisch9d0c9192010-08-30 16:42:17 +02001696 /* has ID 0x0110 when not in Advanced Driver mode */
1697 USB_DEVICE_VENDOR_SPEC(0x0582, 0x010f),
1698 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1699 /* .vendor_name = "Roland", */
1700 /* .product_name = "A-PRO", */
Clemens Ladisch40ce8152013-01-31 21:14:33 +01001701 .ifnum = 0,
Clemens Ladisch9d0c9192010-08-30 16:42:17 +02001702 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1703 .data = & (const struct snd_usb_midi_endpoint_info) {
1704 .out_cables = 0x0003,
1705 .in_cables = 0x0007
1706 }
1707 }
1708},
Clemens Ladisch7b280792010-08-30 16:45:38 +02001709{
John F Leachae7cc702011-11-28 19:41:27 -05001710 /* Roland GAIA SH-01 */
1711 USB_DEVICE(0x0582, 0x0111),
1712 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
1713 .vendor_name = "Roland",
1714 .product_name = "GAIA",
1715 .ifnum = QUIRK_ANY_INTERFACE,
1716 .type = QUIRK_COMPOSITE,
1717 .data = (const struct snd_usb_audio_quirk[]) {
1718 {
1719 .ifnum = 0,
1720 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1721 },
1722 {
1723 .ifnum = 1,
1724 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1725 },
1726 {
1727 .ifnum = 2,
1728 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1729 .data = &(const struct snd_usb_midi_endpoint_info) {
1730 .out_cables = 0x0003,
1731 .in_cables = 0x0003
1732 }
1733 },
1734 {
1735 .ifnum = -1
1736 }
1737 }
1738 }
1739},
1740{
Clemens Ladisch7b280792010-08-30 16:45:38 +02001741 USB_DEVICE(0x0582, 0x0113),
1742 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1743 /* .vendor_name = "BOSS", */
1744 /* .product_name = "ME-25", */
1745 .ifnum = QUIRK_ANY_INTERFACE,
1746 .type = QUIRK_COMPOSITE,
1747 .data = (const struct snd_usb_audio_quirk[]) {
1748 {
1749 .ifnum = 0,
1750 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1751 },
1752 {
1753 .ifnum = 1,
1754 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1755 },
1756 {
1757 .ifnum = 2,
1758 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1759 .data = & (const struct snd_usb_midi_endpoint_info) {
1760 .out_cables = 0x0001,
1761 .in_cables = 0x0001
1762 }
1763 },
1764 {
1765 .ifnum = -1
1766 }
1767 }
1768 }
1769},
Daniel Mack0ef28322011-05-18 11:28:43 +02001770{
1771 USB_DEVICE(0x0582, 0x0127),
1772 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1773 /* .vendor_name = "Roland", */
1774 /* .product_name = "GR-55", */
1775 .ifnum = QUIRK_ANY_INTERFACE,
1776 .type = QUIRK_COMPOSITE,
1777 .data = (const struct snd_usb_audio_quirk[]) {
1778 {
1779 .ifnum = 0,
1780 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1781 },
1782 {
1783 .ifnum = 1,
1784 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1785 },
1786 {
1787 .ifnum = 2,
1788 .type = QUIRK_MIDI_STANDARD_INTERFACE
1789 },
1790 {
1791 .ifnum = -1
1792 }
1793 }
1794 }
1795},
David G Turner6a6d8222011-07-21 19:00:57 +02001796{
Daniele Guerrieri14515a02011-09-16 08:31:45 +02001797 /* Added support for Roland UM-ONE which differs from UM-1 */
1798 USB_DEVICE(0x0582, 0x012a),
1799 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1800 /* .vendor_name = "ROLAND", */
1801 /* .product_name = "UM-ONE", */
1802 .ifnum = 0,
1803 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1804 .data = & (const struct snd_usb_midi_endpoint_info) {
1805 .out_cables = 0x0001,
1806 .in_cables = 0x0003
1807 }
1808 }
1809},
1810{
David G Turner6a6d8222011-07-21 19:00:57 +02001811 USB_DEVICE(0x0582, 0x011e),
1812 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1813 /* .vendor_name = "BOSS", */
1814 /* .product_name = "BR-800", */
1815 .ifnum = QUIRK_ANY_INTERFACE,
1816 .type = QUIRK_COMPOSITE,
1817 .data = (const struct snd_usb_audio_quirk[]) {
1818 {
1819 .ifnum = 0,
1820 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1821 },
1822 {
1823 .ifnum = 1,
1824 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1825 },
1826 {
1827 .ifnum = 2,
1828 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1829 .data = & (const struct snd_usb_midi_endpoint_info) {
1830 .out_cables = 0x0001,
1831 .in_cables = 0x0001
1832 }
1833 },
1834 {
1835 .ifnum = -1
1836 }
1837 }
1838 }
1839},
Kazutomo Yoshiic9c9e4e2011-08-09 23:39:13 -05001840{
1841 USB_DEVICE(0x0582, 0x0130),
1842 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1843 /* .vendor_name = "BOSS", */
1844 /* .product_name = "MICRO BR-80", */
1845 .ifnum = QUIRK_ANY_INTERFACE,
1846 .type = QUIRK_COMPOSITE,
1847 .data = (const struct snd_usb_audio_quirk[]) {
1848 {
1849 .ifnum = 0,
1850 .type = QUIRK_IGNORE_INTERFACE
1851 },
1852 {
1853 .ifnum = 1,
1854 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1855 },
1856 {
1857 .ifnum = 2,
1858 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1859 },
1860 {
1861 .ifnum = 3,
1862 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1863 .data = & (const struct snd_usb_midi_endpoint_info) {
1864 .out_cables = 0x0001,
1865 .in_cables = 0x0001
1866 }
1867 },
1868 {
1869 .ifnum = -1
1870 }
1871 }
1872 }
1873},
Daniel Macka5af88b2015-03-12 09:41:32 +01001874{
1875 USB_DEVICE(0x0582, 0x0159),
1876 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1877 /* .vendor_name = "Roland", */
1878 /* .product_name = "UA-22", */
1879 .ifnum = QUIRK_ANY_INTERFACE,
1880 .type = QUIRK_COMPOSITE,
1881 .data = (const struct snd_usb_audio_quirk[]) {
1882 {
1883 .ifnum = 0,
1884 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1885 },
1886 {
1887 .ifnum = 1,
1888 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1889 },
1890 {
1891 .ifnum = 2,
1892 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1893 .data = & (const struct snd_usb_midi_endpoint_info) {
1894 .out_cables = 0x0001,
1895 .in_cables = 0x0001
1896 }
1897 },
1898 {
1899 .ifnum = -1
1900 }
1901 }
1902 }
1903},
Chris Mennie62b12632008-05-19 16:21:33 +02001904
Clemens Ladischa25f1752005-10-05 13:23:19 +02001905/* Guillemot devices */
1906{
1907 /*
1908 * This is for the "Windows Edition" where the external MIDI ports are
1909 * the only MIDI ports; the control data is reported through HID
1910 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1911 * compliant USB MIDI ports for external MIDI and controls.
1912 */
1913 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001914 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001915 .vendor_name = "Hercules",
1916 .product_name = "DJ Console (WE)",
1917 .ifnum = 4,
1918 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001919 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001920 .out_cables = 0x0001,
1921 .in_cables = 0x0001
1922 }
1923 }
1924},
1925
Linus Torvalds1da177e2005-04-16 15:20:36 -07001926/* Midiman/M-Audio devices */
1927{
1928 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001929 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001930 .vendor_name = "M-Audio",
1931 .product_name = "MidiSport 2x2",
1932 .ifnum = QUIRK_ANY_INTERFACE,
1933 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001934 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001935 .out_cables = 0x0003,
1936 .in_cables = 0x0003
1937 }
1938 }
1939},
1940{
1941 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001942 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001943 .vendor_name = "M-Audio",
1944 .product_name = "MidiSport 1x1",
1945 .ifnum = QUIRK_ANY_INTERFACE,
1946 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001947 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001948 .out_cables = 0x0001,
1949 .in_cables = 0x0001
1950 }
1951 }
1952},
1953{
1954 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001955 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001956 .vendor_name = "M-Audio",
1957 .product_name = "Keystation",
1958 .ifnum = QUIRK_ANY_INTERFACE,
1959 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001960 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001961 .out_cables = 0x0001,
1962 .in_cables = 0x0001
1963 }
1964 }
1965},
1966{
1967 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001968 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001969 .vendor_name = "M-Audio",
1970 .product_name = "MidiSport 4x4",
1971 .ifnum = QUIRK_ANY_INTERFACE,
1972 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001973 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001974 .out_cables = 0x000f,
1975 .in_cables = 0x000f
1976 }
1977 }
1978},
1979{
1980 /*
1981 * For hardware revision 1.05; in the later revisions (1.10 and
1982 * 1.21), 0x1031 is the ID for the device without firmware.
1983 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1984 */
1985 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001986 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001987 .vendor_name = "M-Audio",
1988 .product_name = "MidiSport 8x8",
1989 .ifnum = QUIRK_ANY_INTERFACE,
1990 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001991 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001992 .out_cables = 0x01ff,
1993 .in_cables = 0x01ff
1994 }
1995 }
1996},
1997{
1998 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001999 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002000 .vendor_name = "M-Audio",
2001 .product_name = "MidiSport 8x8",
2002 .ifnum = QUIRK_ANY_INTERFACE,
2003 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002004 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002005 .out_cables = 0x01ff,
2006 .in_cables = 0x01ff
2007 }
2008 }
2009},
2010{
2011 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002012 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002013 .vendor_name = "M-Audio",
2014 .product_name = "MidiSport 2x4",
2015 .ifnum = QUIRK_ANY_INTERFACE,
2016 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002017 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002018 .out_cables = 0x000f,
2019 .in_cables = 0x0003
2020 }
2021 }
2022},
2023{
2024 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002025 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002026 .vendor_name = "M-Audio",
2027 .product_name = "Quattro",
2028 .ifnum = QUIRK_ANY_INTERFACE,
2029 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002030 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002031 /*
2032 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
2033 * and share endpoints with the other interfaces.
2034 * Ignore them. The other interfaces can do 24 bits,
2035 * but captured samples are big-endian (see usbaudio.c).
2036 */
2037 {
2038 .ifnum = 0,
2039 .type = QUIRK_IGNORE_INTERFACE
2040 },
2041 {
2042 .ifnum = 1,
2043 .type = QUIRK_IGNORE_INTERFACE
2044 },
2045 {
2046 .ifnum = 2,
2047 .type = QUIRK_IGNORE_INTERFACE
2048 },
2049 {
2050 .ifnum = 3,
2051 .type = QUIRK_IGNORE_INTERFACE
2052 },
2053 {
2054 .ifnum = 4,
2055 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2056 },
2057 {
2058 .ifnum = 5,
2059 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2060 },
2061 {
2062 .ifnum = 6,
2063 .type = QUIRK_IGNORE_INTERFACE
2064 },
2065 {
2066 .ifnum = 7,
2067 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2068 },
2069 {
2070 .ifnum = 8,
2071 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2072 },
2073 {
2074 .ifnum = 9,
2075 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002076 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002077 .out_cables = 0x0001,
2078 .in_cables = 0x0001
2079 }
2080 },
2081 {
2082 .ifnum = -1
2083 }
2084 }
2085 }
2086},
2087{
2088 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002089 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002090 .vendor_name = "M-Audio",
2091 .product_name = "AudioPhile",
2092 .ifnum = 6,
2093 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002094 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002095 .out_cables = 0x0001,
2096 .in_cables = 0x0001
2097 }
2098 }
2099},
2100{
2101 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002102 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002103 .vendor_name = "M-Audio",
2104 .product_name = "Ozone",
2105 .ifnum = 3,
2106 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002107 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002108 .out_cables = 0x0001,
2109 .in_cables = 0x0001
2110 }
2111 }
2112},
2113{
2114 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002115 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002116 .vendor_name = "M-Audio",
2117 .product_name = "OmniStudio",
2118 .ifnum = QUIRK_ANY_INTERFACE,
2119 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002120 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002121 {
2122 .ifnum = 0,
2123 .type = QUIRK_IGNORE_INTERFACE
2124 },
2125 {
2126 .ifnum = 1,
2127 .type = QUIRK_IGNORE_INTERFACE
2128 },
2129 {
2130 .ifnum = 2,
2131 .type = QUIRK_IGNORE_INTERFACE
2132 },
2133 {
2134 .ifnum = 3,
2135 .type = QUIRK_IGNORE_INTERFACE
2136 },
2137 {
2138 .ifnum = 4,
2139 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2140 },
2141 {
2142 .ifnum = 5,
2143 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2144 },
2145 {
2146 .ifnum = 6,
2147 .type = QUIRK_IGNORE_INTERFACE
2148 },
2149 {
2150 .ifnum = 7,
2151 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2152 },
2153 {
2154 .ifnum = 8,
2155 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2156 },
2157 {
2158 .ifnum = 9,
2159 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002160 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002161 .out_cables = 0x0001,
2162 .in_cables = 0x0001
2163 }
2164 },
2165 {
2166 .ifnum = -1
2167 }
2168 }
2169 }
2170},
Clemens Ladisch2ea547dc2007-09-17 09:33:17 +02002171{
2172 USB_DEVICE(0x0763, 0x2019),
2173 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2174 /* .vendor_name = "M-Audio", */
2175 /* .product_name = "Ozone Academic", */
2176 .ifnum = QUIRK_ANY_INTERFACE,
2177 .type = QUIRK_COMPOSITE,
2178 .data = & (const struct snd_usb_audio_quirk[]) {
2179 {
2180 .ifnum = 0,
2181 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2182 },
2183 {
2184 .ifnum = 1,
2185 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2186 },
2187 {
2188 .ifnum = 2,
2189 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2190 },
2191 {
2192 .ifnum = 3,
2193 .type = QUIRK_MIDI_MIDIMAN,
2194 .data = & (const struct snd_usb_midi_endpoint_info) {
2195 .out_cables = 0x0001,
2196 .in_cables = 0x0001
2197 }
2198 },
2199 {
2200 .ifnum = -1
2201 }
2202 }
2203 }
2204},
Felix Homannfca5bca2010-03-25 11:29:14 +01002205{
Daniel Mackc91d9cd2011-05-18 11:28:45 +02002206 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
Felix Homannfca5bca2010-03-25 11:29:14 +01002207 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2208 /* .vendor_name = "M-Audio", */
Clemens Ladisch65f04442010-09-02 12:58:25 +02002209 /* .product_name = "Fast Track Ultra", */
Felix Homannfca5bca2010-03-25 11:29:14 +01002210 .ifnum = QUIRK_ANY_INTERFACE,
2211 .type = QUIRK_COMPOSITE,
2212 .data = & (const struct snd_usb_audio_quirk[]) {
2213 {
2214 .ifnum = 0,
Daniel Mackd5a0bf62011-05-25 09:09:03 +02002215 .type = QUIRK_AUDIO_STANDARD_MIXER,
Felix Homannfca5bca2010-03-25 11:29:14 +01002216 },
2217 {
2218 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002219 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2220 .data = & (const struct audioformat) {
2221 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2222 .channels = 8,
2223 .iface = 1,
2224 .altsetting = 1,
2225 .altset_idx = 1,
2226 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2227 .endpoint = 0x01,
2228 .ep_attr = 0x09,
2229 .rates = SNDRV_PCM_RATE_44100 |
2230 SNDRV_PCM_RATE_48000 |
2231 SNDRV_PCM_RATE_88200 |
2232 SNDRV_PCM_RATE_96000,
2233 .rate_min = 44100,
2234 .rate_max = 96000,
2235 .nr_rates = 4,
2236 .rate_table = (unsigned int[]) {
2237 44100, 48000, 88200, 96000
2238 }
2239 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002240 },
2241 {
2242 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002243 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2244 .data = & (const struct audioformat) {
2245 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2246 .channels = 8,
2247 .iface = 2,
2248 .altsetting = 1,
2249 .altset_idx = 1,
2250 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2251 .endpoint = 0x81,
2252 .ep_attr = 0x05,
2253 .rates = SNDRV_PCM_RATE_44100 |
2254 SNDRV_PCM_RATE_48000 |
2255 SNDRV_PCM_RATE_88200 |
2256 SNDRV_PCM_RATE_96000,
2257 .rate_min = 44100,
2258 .rate_max = 96000,
2259 .nr_rates = 4,
2260 .rate_table = (unsigned int[]) {
2261 44100, 48000, 88200, 96000
2262 }
2263 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002264 },
2265 /* interface 3 (MIDI) is standard compliant */
2266 {
2267 .ifnum = -1
2268 }
2269 }
2270 }
2271},
2272{
Daniel Mackc91d9cd2011-05-18 11:28:45 +02002273 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
Felix Homannfca5bca2010-03-25 11:29:14 +01002274 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2275 /* .vendor_name = "M-Audio", */
2276 /* .product_name = "Fast Track Ultra 8R", */
2277 .ifnum = QUIRK_ANY_INTERFACE,
2278 .type = QUIRK_COMPOSITE,
2279 .data = & (const struct snd_usb_audio_quirk[]) {
2280 {
2281 .ifnum = 0,
Daniel Mackd5a0bf62011-05-25 09:09:03 +02002282 .type = QUIRK_AUDIO_STANDARD_MIXER,
Felix Homannfca5bca2010-03-25 11:29:14 +01002283 },
2284 {
2285 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002286 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2287 .data = & (const struct audioformat) {
2288 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2289 .channels = 8,
2290 .iface = 1,
2291 .altsetting = 1,
2292 .altset_idx = 1,
2293 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2294 .endpoint = 0x01,
2295 .ep_attr = 0x09,
2296 .rates = SNDRV_PCM_RATE_44100 |
2297 SNDRV_PCM_RATE_48000 |
2298 SNDRV_PCM_RATE_88200 |
2299 SNDRV_PCM_RATE_96000,
2300 .rate_min = 44100,
2301 .rate_max = 96000,
2302 .nr_rates = 4,
2303 .rate_table = (unsigned int[]) {
2304 44100, 48000, 88200, 96000
2305 }
2306 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002307 },
2308 {
2309 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002310 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2311 .data = & (const struct audioformat) {
2312 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2313 .channels = 8,
2314 .iface = 2,
2315 .altsetting = 1,
2316 .altset_idx = 1,
2317 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2318 .endpoint = 0x81,
2319 .ep_attr = 0x05,
2320 .rates = SNDRV_PCM_RATE_44100 |
2321 SNDRV_PCM_RATE_48000 |
2322 SNDRV_PCM_RATE_88200 |
2323 SNDRV_PCM_RATE_96000,
2324 .rate_min = 44100,
2325 .rate_max = 96000,
2326 .nr_rates = 4,
2327 .rate_table = (unsigned int[]) {
2328 44100, 48000, 88200, 96000
2329 }
2330 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002331 },
2332 /* interface 3 (MIDI) is standard compliant */
2333 {
2334 .ifnum = -1
2335 }
2336 }
2337 }
2338},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002339
Clemens Ladisch0243ef72006-03-09 07:55:55 +01002340/* Casio devices */
2341{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01002342 USB_DEVICE(0x07cf, 0x6801),
2343 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2344 .vendor_name = "Casio",
2345 .product_name = "PL-40R",
2346 .ifnum = 0,
2347 .type = QUIRK_MIDI_YAMAHA
2348 }
2349},
2350{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002351 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef72006-03-09 07:55:55 +01002352 USB_DEVICE(0x07cf, 0x6802),
2353 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2354 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002355 .product_name = "Keyboard",
Clemens Ladisch0243ef72006-03-09 07:55:55 +01002356 .ifnum = 0,
2357 .type = QUIRK_MIDI_YAMAHA
2358 }
2359},
2360
Linus Torvalds1da177e2005-04-16 15:20:36 -07002361/* Mark of the Unicorn devices */
2362{
2363 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02002364 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
2365 USB_DEVICE_ID_MATCH_PRODUCT |
2366 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
2367 .idVendor = 0x07fd,
2368 .idProduct = 0x0001,
2369 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002370 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002371 .vendor_name = "MOTU",
2372 .product_name = "Fastlane",
2373 .ifnum = QUIRK_ANY_INTERFACE,
2374 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002375 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002376 {
2377 .ifnum = 0,
Clemens Ladischc7f57212010-10-22 18:20:48 +02002378 .type = QUIRK_MIDI_RAW_BYTES
Linus Torvalds1da177e2005-04-16 15:20:36 -07002379 },
2380 {
2381 .ifnum = 1,
2382 .type = QUIRK_IGNORE_INTERFACE
2383 },
2384 {
2385 .ifnum = -1
2386 }
2387 }
2388 }
2389},
2390
Linus Torvalds1da177e2005-04-16 15:20:36 -07002391/* Emagic devices */
2392{
2393 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002394 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002395 .vendor_name = "Emagic",
2396 /* .product_name = "Unitor8", */
2397 .ifnum = 2,
2398 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002399 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002400 .out_cables = 0x80ff,
2401 .in_cables = 0x80ff
2402 }
2403 }
2404},
2405{
2406 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002407 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002408 .vendor_name = "Emagic",
2409 /* .product_name = "AMT8", */
2410 .ifnum = 2,
2411 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002412 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002413 .out_cables = 0x80ff,
2414 .in_cables = 0x80ff
2415 }
2416 }
2417},
2418{
2419 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002420 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002421 .vendor_name = "Emagic",
2422 /* .product_name = "MT4", */
2423 .ifnum = 2,
2424 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002425 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002426 .out_cables = 0x800f,
2427 .in_cables = 0x8003
2428 }
2429 }
2430},
2431
Daniel Mack56a9eb12011-05-18 11:28:42 +02002432/* KORG devices */
2433{
2434 USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
2435 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2436 .vendor_name = "KORG, Inc.",
2437 /* .product_name = "PANDORA PX5D", */
2438 .ifnum = 3,
2439 .type = QUIRK_MIDI_STANDARD_INTERFACE,
2440 }
2441},
2442
Sergiusz Urbaniak1bba1602011-12-05 20:27:46 +01002443{
2444 USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
2445 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2446 .vendor_name = "KORG, Inc.",
2447 /* .product_name = "ToneLab ST", */
2448 .ifnum = 3,
2449 .type = QUIRK_MIDI_STANDARD_INTERFACE,
2450 }
2451},
2452
Krzysztof Foltman4434ade2010-05-20 20:31:10 +01002453/* AKAI devices */
2454{
2455 USB_DEVICE(0x09e8, 0x0062),
2456 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2457 .vendor_name = "AKAI",
2458 .product_name = "MPD16",
2459 .ifnum = 0,
2460 .type = QUIRK_MIDI_AKAI,
2461 }
2462},
2463
Dominic Sacré02f2bb42015-06-30 17:41:33 +02002464/* Steinberg devices */
2465{
2466 /* Steinberg MI2 */
2467 USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x2040),
2468 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2469 .ifnum = QUIRK_ANY_INTERFACE,
2470 .type = QUIRK_COMPOSITE,
2471 .data = & (const struct snd_usb_audio_quirk[]) {
2472 {
2473 .ifnum = 0,
2474 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2475 },
2476 {
2477 .ifnum = 1,
2478 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2479 },
2480 {
2481 .ifnum = 2,
2482 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2483 },
2484 {
2485 .ifnum = 3,
2486 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2487 .data = &(const struct snd_usb_midi_endpoint_info) {
2488 .out_cables = 0x0001,
2489 .in_cables = 0x0001
2490 }
2491 },
2492 {
2493 .ifnum = -1
2494 }
2495 }
2496 }
2497},
2498{
2499 /* Steinberg MI4 */
2500 USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x4040),
2501 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2502 .ifnum = QUIRK_ANY_INTERFACE,
2503 .type = QUIRK_COMPOSITE,
2504 .data = & (const struct snd_usb_audio_quirk[]) {
2505 {
2506 .ifnum = 0,
2507 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2508 },
2509 {
2510 .ifnum = 1,
2511 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2512 },
2513 {
2514 .ifnum = 2,
2515 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2516 },
2517 {
2518 .ifnum = 3,
2519 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2520 .data = &(const struct snd_usb_midi_endpoint_info) {
2521 .out_cables = 0x0001,
2522 .in_cables = 0x0001
2523 }
2524 },
2525 {
2526 .ifnum = -1
2527 }
2528 }
2529 }
2530},
2531
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002532/* TerraTec devices */
2533{
2534 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002535 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002536 .vendor_name = "TerraTec",
2537 .product_name = "PHASE 26",
2538 .ifnum = 3,
2539 .type = QUIRK_MIDI_STANDARD_INTERFACE
2540 }
2541},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002542{
2543 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002544 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002545 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07002546 .product_name = "PHASE 26",
2547 .ifnum = 3,
2548 .type = QUIRK_MIDI_STANDARD_INTERFACE
2549 }
2550},
Clemens Ladischb2b82292006-02-08 12:38:23 +01002551{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02002552 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
2553 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2554 .vendor_name = "TerraTec",
2555 .product_name = "PHASE 26",
2556 .ifnum = 3,
2557 .type = QUIRK_MIDI_STANDARD_INTERFACE
2558 }
2559},
2560{
Andrea Borgiaca85b6b2009-06-02 19:21:17 +02002561 USB_DEVICE(0x0ccd, 0x0028),
Andrea Borgia93bfd012009-06-01 10:48:54 +02002562 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2563 .vendor_name = "TerraTec",
Andrea Borgiad9e89bf2009-06-14 12:16:17 +02002564 .product_name = "Aureon5.1MkII",
Andrea Borgia93bfd012009-06-01 10:48:54 +02002565 .ifnum = QUIRK_NO_INTERFACE
2566 }
2567},
2568{
Clemens Ladischb2b82292006-02-08 12:38:23 +01002569 USB_DEVICE(0x0ccd, 0x0035),
2570 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2571 .vendor_name = "Miditech",
2572 .product_name = "Play'n Roll",
2573 .ifnum = 0,
2574 .type = QUIRK_MIDI_CME
2575 }
2576},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002577
Mark Hills0f28ecd2007-08-10 08:01:54 +02002578/* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
2579{
2580 USB_DEVICE(0x103d, 0x0100),
2581 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2582 .vendor_name = "Stanton",
2583 .product_name = "ScratchAmp",
2584 .ifnum = QUIRK_NO_INTERFACE
2585 }
2586},
2587{
2588 USB_DEVICE(0x103d, 0x0101),
2589 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2590 .vendor_name = "Stanton",
2591 .product_name = "ScratchAmp",
2592 .ifnum = QUIRK_NO_INTERFACE
2593 }
2594},
2595
Linus Torvalds1da177e2005-04-16 15:20:36 -07002596/* Novation EMS devices */
2597{
2598 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002599 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002600 .vendor_name = "Novation",
2601 .product_name = "ReMOTE Audio/XStation",
2602 .ifnum = 4,
2603 .type = QUIRK_MIDI_NOVATION
2604 }
2605},
2606{
2607 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002608 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002609 .vendor_name = "Novation",
2610 .product_name = "Speedio",
2611 .ifnum = 3,
2612 .type = QUIRK_MIDI_NOVATION
2613 }
2614},
2615{
Clemens Ladischc7f57212010-10-22 18:20:48 +02002616 USB_DEVICE(0x1235, 0x000e),
2617 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2618 /* .vendor_name = "Novation", */
2619 /* .product_name = "Launchpad", */
2620 .ifnum = 0,
2621 .type = QUIRK_MIDI_RAW_BYTES
2622 }
2623},
2624{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002625 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002626 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002627 .vendor_name = "Novation",
2628 .product_name = "ReMOTE25",
2629 .ifnum = 0,
2630 .type = QUIRK_MIDI_NOVATION
2631 }
2632},
2633
Sebastien Alaiwand39e82d2010-02-16 08:55:08 +01002634/* Access Music devices */
2635{
2636 /* VirusTI Desktop */
2637 USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
2638 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2639 .ifnum = QUIRK_ANY_INTERFACE,
2640 .type = QUIRK_COMPOSITE,
2641 .data = &(const struct snd_usb_audio_quirk[]) {
2642 {
2643 .ifnum = 3,
2644 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2645 .data = &(const struct snd_usb_midi_endpoint_info) {
2646 .out_cables = 0x0003,
2647 .in_cables = 0x0003
2648 }
2649 },
2650 {
2651 .ifnum = 4,
2652 .type = QUIRK_IGNORE_INTERFACE
2653 },
2654 {
2655 .ifnum = -1
2656 }
2657 }
2658 }
2659},
2660
Mark Hills3a7788b2007-09-03 08:20:09 +02002661/* */
Clemens Ladisch15944802007-08-29 17:38:14 +02002662{
Mark Hills3a7788b2007-09-03 08:20:09 +02002663 /* aka. Serato Scratch Live DJ Box */
Clemens Ladisch15944802007-08-29 17:38:14 +02002664 USB_DEVICE(0x13e5, 0x0001),
Mark Hills3a7788b2007-09-03 08:20:09 +02002665 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2666 .vendor_name = "Rane",
2667 .product_name = "SL-1",
2668 .ifnum = QUIRK_NO_INTERFACE
Clemens Ladisch15944802007-08-29 17:38:14 +02002669 }
2670},
2671
Daniel Mack54a8c502011-02-11 11:08:06 +00002672/* Native Instruments MK2 series */
2673{
Daniel Mack759e8902011-05-18 11:28:41 +02002674 /* Komplete Audio 6 */
Daniel Mack9cdc3522011-04-11 17:56:32 +02002675 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2676 .idVendor = 0x17cc,
2677 .idProduct = 0x1000,
2678},
2679{
Daniel Mack54a8c502011-02-11 11:08:06 +00002680 /* Traktor Audio 6 */
2681 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2682 .idVendor = 0x17cc,
2683 .idProduct = 0x1010,
2684},
2685{
2686 /* Traktor Audio 10 */
2687 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2688 .idVendor = 0x17cc,
2689 .idProduct = 0x1020,
2690},
2691
Clemens Ladischd05e96b2015-11-15 22:38:29 +01002692/* QinHeng devices */
2693{
2694 USB_DEVICE(0x1a86, 0x752d),
2695 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2696 .vendor_name = "QinHeng",
2697 .product_name = "CH345",
2698 .ifnum = 1,
2699 .type = QUIRK_MIDI_CH345
2700 }
2701},
2702
Miller Puckette02651d12011-08-04 12:25:56 -07002703/* KeithMcMillen Stringport */
2704{
2705 USB_DEVICE(0x1f38, 0x0001),
2706 .bInterfaceClass = USB_CLASS_AUDIO,
2707},
2708
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002709/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002710{
Clemens Ladischf38275f2005-07-25 16:17:29 +02002711 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002712 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002713 .vendor_name = "Miditech",
2714 .product_name = "Midistart-2",
2715 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002716 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002717 }
2718},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002719
2720/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002721{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002722 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002723 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002724 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002725 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002726 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002727 }
2728},
2729
John S. Gruber52a7a582009-12-27 12:19:59 -05002730/* Hauppauge HVR-950Q and HVR-850 */
2731{
2732 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
2733 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2734 USB_DEVICE_ID_MATCH_INT_CLASS |
2735 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2736 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002737 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
John S. Gruber52a7a582009-12-27 12:19:59 -05002738 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2739 .vendor_name = "Hauppauge",
2740 .product_name = "HVR-950Q",
2741 .ifnum = QUIRK_ANY_INTERFACE,
2742 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2743 }
2744},
2745{
John S Gruberdd2f8c22010-08-01 09:53:37 -04002746 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
John S. Gruber52a7a582009-12-27 12:19:59 -05002747 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2748 USB_DEVICE_ID_MATCH_INT_CLASS |
2749 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2750 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002751 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
John S. Gruber52a7a582009-12-27 12:19:59 -05002752 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2753 .vendor_name = "Hauppauge",
2754 .product_name = "HVR-850",
2755 .ifnum = QUIRK_ANY_INTERFACE,
2756 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2757 }
2758},
John S Gruberdd2f8c22010-08-01 09:53:37 -04002759{
2760 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
2761 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2762 USB_DEVICE_ID_MATCH_INT_CLASS |
2763 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2764 .bInterfaceClass = USB_CLASS_AUDIO,
2765 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2766 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2767 .vendor_name = "Hauppauge",
2768 .product_name = "HVR-950Q",
2769 .ifnum = QUIRK_ANY_INTERFACE,
2770 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2771 }
2772},
2773{
2774 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
2775 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2776 USB_DEVICE_ID_MATCH_INT_CLASS |
2777 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2778 .bInterfaceClass = USB_CLASS_AUDIO,
2779 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2780 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2781 .vendor_name = "Hauppauge",
2782 .product_name = "HVR-950Q",
2783 .ifnum = QUIRK_ANY_INTERFACE,
2784 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2785 }
2786},
2787{
2788 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
2789 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2790 USB_DEVICE_ID_MATCH_INT_CLASS |
2791 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2792 .bInterfaceClass = USB_CLASS_AUDIO,
2793 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2794 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2795 .vendor_name = "Hauppauge",
2796 .product_name = "HVR-950Q",
2797 .ifnum = QUIRK_ANY_INTERFACE,
2798 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2799 }
2800},
2801{
2802 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
2803 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2804 USB_DEVICE_ID_MATCH_INT_CLASS |
2805 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2806 .bInterfaceClass = USB_CLASS_AUDIO,
2807 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2808 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2809 .vendor_name = "Hauppauge",
2810 .product_name = "HVR-950Q",
2811 .ifnum = QUIRK_ANY_INTERFACE,
2812 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2813 }
2814},
2815{
2816 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
2817 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2818 USB_DEVICE_ID_MATCH_INT_CLASS |
2819 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2820 .bInterfaceClass = USB_CLASS_AUDIO,
2821 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2822 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2823 .vendor_name = "Hauppauge",
2824 .product_name = "HVR-950Q",
2825 .ifnum = QUIRK_ANY_INTERFACE,
2826 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2827 }
2828},
2829{
2830 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
2831 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2832 USB_DEVICE_ID_MATCH_INT_CLASS |
2833 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2834 .bInterfaceClass = USB_CLASS_AUDIO,
2835 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2836 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2837 .vendor_name = "Hauppauge",
2838 .product_name = "HVR-950Q",
2839 .ifnum = QUIRK_ANY_INTERFACE,
2840 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2841 }
2842},
2843{
2844 USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
2845 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2846 USB_DEVICE_ID_MATCH_INT_CLASS |
2847 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2848 .bInterfaceClass = USB_CLASS_AUDIO,
2849 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2850 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2851 .vendor_name = "Hauppauge",
2852 .product_name = "HVR-950Q",
2853 .ifnum = QUIRK_ANY_INTERFACE,
2854 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2855 }
2856},
John S. Gruber52a7a582009-12-27 12:19:59 -05002857
Chris J Arges40717382010-02-17 12:12:52 -06002858/* Digidesign Mbox */
2859{
2860 /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
2861 USB_DEVICE(0x0dba, 0x1000),
2862 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2863 .vendor_name = "Digidesign",
2864 .product_name = "MBox",
2865 .ifnum = QUIRK_ANY_INTERFACE,
2866 .type = QUIRK_COMPOSITE,
2867 .data = (const struct snd_usb_audio_quirk[]){
2868 {
2869 .ifnum = 0,
2870 .type = QUIRK_IGNORE_INTERFACE,
2871 },
2872 {
2873 .ifnum = 1,
2874 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2875 .data = &(const struct audioformat) {
Clemens Ladisch29088fe2010-03-04 19:46:16 +01002876 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
Chris J Arges40717382010-02-17 12:12:52 -06002877 .channels = 2,
2878 .iface = 1,
2879 .altsetting = 1,
2880 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002881 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
Chris J Arges40717382010-02-17 12:12:52 -06002882 .endpoint = 0x02,
2883 .ep_attr = 0x01,
2884 .maxpacksize = 0x130,
2885 .rates = SNDRV_PCM_RATE_44100 |
2886 SNDRV_PCM_RATE_48000,
2887 .rate_min = 44100,
2888 .rate_max = 48000,
2889 .nr_rates = 2,
2890 .rate_table = (unsigned int[]) {
2891 44100, 48000
2892 }
2893 }
2894 },
2895 {
2896 .ifnum = -1
2897 }
2898 }
2899
2900 }
2901},
2902
Marko Friedemannf596a252012-09-03 10:12:40 +02002903/* Microsoft XboxLive Headset/Xbox Communicator */
2904{
2905 USB_DEVICE(0x045e, 0x0283),
2906 .bInterfaceClass = USB_CLASS_PER_INTERFACE,
2907 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2908 .vendor_name = "Microsoft",
2909 .product_name = "XboxLive Headset/Xbox Communicator",
2910 .ifnum = QUIRK_ANY_INTERFACE,
2911 .type = QUIRK_COMPOSITE,
2912 .data = &(const struct snd_usb_audio_quirk[]) {
2913 {
2914 /* playback */
2915 .ifnum = 0,
2916 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2917 .data = &(const struct audioformat) {
2918 .formats = SNDRV_PCM_FMTBIT_S16_LE,
2919 .channels = 1,
2920 .iface = 0,
2921 .altsetting = 0,
2922 .altset_idx = 0,
2923 .attributes = 0,
2924 .endpoint = 0x04,
2925 .ep_attr = 0x05,
2926 .rates = SNDRV_PCM_RATE_CONTINUOUS,
2927 .rate_min = 22050,
2928 .rate_max = 22050
2929 }
2930 },
2931 {
2932 /* capture */
2933 .ifnum = 1,
2934 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2935 .data = &(const struct audioformat) {
2936 .formats = SNDRV_PCM_FMTBIT_S16_LE,
2937 .channels = 1,
2938 .iface = 1,
2939 .altsetting = 0,
2940 .altset_idx = 0,
2941 .attributes = 0,
2942 .endpoint = 0x85,
2943 .ep_attr = 0x05,
2944 .rates = SNDRV_PCM_RATE_CONTINUOUS,
2945 .rate_min = 16000,
2946 .rate_max = 16000
2947 }
2948 },
2949 {
2950 .ifnum = -1
2951 }
2952 }
2953 }
2954},
2955
Clemens Ladischf38275f2005-07-25 16:17:29 +02002956{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002957 /*
2958 * Some USB MIDI devices don't have an audio control interface,
2959 * so we have to grab MIDI streaming interfaces here.
2960 */
2961 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
2962 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2963 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002964 .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002965 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002966 .ifnum = QUIRK_ANY_INTERFACE,
2967 .type = QUIRK_MIDI_STANDARD_INTERFACE
2968 }
2969},
2970
2971#undef USB_DEVICE_VENDOR_SPEC