blob: 988bb9d00192c4b2ee5128eb19192a3d6d0304c3 [file] [log] [blame]
Thomas Gleixner1a59d1b82019-05-27 08:55:05 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
3 * ALSA USB Audio Driver
4 *
5 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
6 * Clemens Ladisch <clemens@ladisch.de>
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 */
8
9/*
10 * The contents of this file are part of the driver's id_table.
11 *
12 * In a perfect world, this file would be empty.
13 */
14
15/*
16 * Use this for devices where other interfaces are standard compliant,
17 * to prevent the quirk being applied to those interfaces. (To work with
18 * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
19 */
20#define USB_DEVICE_VENDOR_SPEC(vend, prod) \
21 .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
22 USB_DEVICE_ID_MATCH_PRODUCT | \
23 USB_DEVICE_ID_MATCH_INT_CLASS, \
24 .idVendor = vend, \
25 .idProduct = prod, \
26 .bInterfaceClass = USB_CLASS_VENDOR_SPEC
27
Takashi Iwaifa106352020-08-17 10:21:39 +020028/* A standard entry matching with vid/pid and the audio class/subclass */
29#define USB_AUDIO_DEVICE(vend, prod) \
30 .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
31 USB_DEVICE_ID_MATCH_INT_CLASS | \
32 USB_DEVICE_ID_MATCH_INT_SUBCLASS, \
33 .idVendor = vend, \
34 .idProduct = prod, \
35 .bInterfaceClass = USB_CLASS_AUDIO, \
36 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
37
Kristian Amlie1ef0e0a2011-08-26 13:19:49 +020038/* FTDI devices */
39{
40 USB_DEVICE(0x0403, 0xb8d8),
41 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
42 /* .vendor_name = "STARR LABS", */
43 /* .product_name = "Starr Labs MIDI USB device", */
44 .ifnum = 0,
45 .type = QUIRK_MIDI_FTDI
46 }
47},
48
Alexander Schremmer8f7f3ab12013-01-03 12:59:07 +010049{
50 /* Creative BT-D1 */
51 USB_DEVICE(0x041e, 0x0005),
52 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
53 .ifnum = 1,
54 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
55 .data = &(const struct audioformat) {
56 .formats = SNDRV_PCM_FMTBIT_S16_LE,
57 .channels = 2,
58 .iface = 1,
59 .altsetting = 1,
60 .altset_idx = 1,
61 .endpoint = 0x03,
62 .ep_attr = USB_ENDPOINT_XFER_ISOC,
63 .attributes = 0,
64 .rates = SNDRV_PCM_RATE_CONTINUOUS,
65 .rate_min = 48000,
66 .rate_max = 48000,
67 }
68 }
69},
70
Clemens Ladisch25a47b62008-02-25 11:04:19 +010071{
72 /* E-Mu 0202 USB */
73 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
74 .idVendor = 0x041e,
75 .idProduct = 0x3f02,
76 .bInterfaceClass = USB_CLASS_AUDIO,
77},
78{
79 /* E-Mu 0404 USB */
80 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
81 .idVendor = 0x041e,
82 .idProduct = 0x3f04,
83 .bInterfaceClass = USB_CLASS_AUDIO,
84},
Eran Tromer97c889a2008-09-26 01:07:03 -040085{
86 /* E-Mu Tracker Pre */
87 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
88 .idVendor = 0x041e,
89 .idProduct = 0x3f0a,
90 .bInterfaceClass = USB_CLASS_AUDIO,
91},
Joseph Teichman1cdfa9f2011-02-08 01:22:36 -050092{
93 /* E-Mu 0204 USB */
94 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
95 .idVendor = 0x041e,
96 .idProduct = 0x3f19,
97 .bInterfaceClass = USB_CLASS_AUDIO,
98},
Clemens Ladisch25a47b62008-02-25 11:04:19 +010099
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100/*
Eldad Zackdf68f102012-12-15 05:30:33 +0100101 * HP Wireless Audio
102 * When not ignored, causes instability issues for some users, forcing them to
Takashi Iwai52bedfb2020-07-14 19:26:31 +0200103 * skip the entire module.
Eldad Zackdf68f102012-12-15 05:30:33 +0100104 */
105{
106 USB_DEVICE(0x0424, 0xb832),
107 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
108 .vendor_name = "Standard Microsystems Corp.",
109 .product_name = "HP Wireless Audio",
110 .ifnum = QUIRK_ANY_INTERFACE,
111 .type = QUIRK_COMPOSITE,
112 .data = (const struct snd_usb_audio_quirk[]) {
113 /* Mixer */
114 {
115 .ifnum = 0,
116 .type = QUIRK_IGNORE_INTERFACE,
117 },
118 /* Playback */
119 {
120 .ifnum = 1,
121 .type = QUIRK_IGNORE_INTERFACE,
122 },
123 /* Capture */
124 {
125 .ifnum = 2,
126 .type = QUIRK_IGNORE_INTERFACE,
127 },
128 /* HID Device, .ifnum = 3 */
129 {
130 .ifnum = -1,
131 }
132 }
133 }
134},
135
136/*
Daniel Drakea9121452007-05-07 09:27:05 +0200137 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
138 * class matches do not take effect without an explicit ID match.
139 */
Takashi Iwaifa106352020-08-17 10:21:39 +0200140{ USB_AUDIO_DEVICE(0x046d, 0x0850) },
141{ USB_AUDIO_DEVICE(0x046d, 0x08ae) },
142{ USB_AUDIO_DEVICE(0x046d, 0x08c6) },
143{ USB_AUDIO_DEVICE(0x046d, 0x08f0) },
144{ USB_AUDIO_DEVICE(0x046d, 0x08f5) },
145{ USB_AUDIO_DEVICE(0x046d, 0x08f6) },
146{ USB_AUDIO_DEVICE(0x046d, 0x0990) },
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100147
James Courtier-Dutton1e741902007-10-08 18:49:43 +0100148/*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149 * Yamaha devices
150 */
151
152#define YAMAHA_DEVICE(id, name) { \
153 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100154 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700155 .vendor_name = "Yamaha", \
156 .product_name = name, \
157 .ifnum = QUIRK_ANY_INTERFACE, \
158 .type = QUIRK_MIDI_YAMAHA \
159 } \
160}
161#define YAMAHA_INTERFACE(id, intf, name) { \
162 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100163 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164 .vendor_name = "Yamaha", \
165 .product_name = name, \
166 .ifnum = intf, \
167 .type = QUIRK_MIDI_YAMAHA \
168 } \
169}
170YAMAHA_DEVICE(0x1000, "UX256"),
171YAMAHA_DEVICE(0x1001, "MU1000"),
172YAMAHA_DEVICE(0x1002, "MU2000"),
173YAMAHA_DEVICE(0x1003, "MU500"),
174YAMAHA_INTERFACE(0x1004, 3, "UW500"),
175YAMAHA_DEVICE(0x1005, "MOTIF6"),
176YAMAHA_DEVICE(0x1006, "MOTIF7"),
177YAMAHA_DEVICE(0x1007, "MOTIF8"),
178YAMAHA_DEVICE(0x1008, "UX96"),
179YAMAHA_DEVICE(0x1009, "UX16"),
180YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
181YAMAHA_DEVICE(0x100c, "UC-MX"),
182YAMAHA_DEVICE(0x100d, "UC-KX"),
183YAMAHA_DEVICE(0x100e, "S08"),
184YAMAHA_DEVICE(0x100f, "CLP-150"),
185YAMAHA_DEVICE(0x1010, "CLP-170"),
186YAMAHA_DEVICE(0x1011, "P-250"),
187YAMAHA_DEVICE(0x1012, "TYROS"),
188YAMAHA_DEVICE(0x1013, "PF-500"),
189YAMAHA_DEVICE(0x1014, "S90"),
190YAMAHA_DEVICE(0x1015, "MOTIF-R"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100191YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192YAMAHA_DEVICE(0x1017, "CVP-204"),
193YAMAHA_DEVICE(0x1018, "CVP-206"),
194YAMAHA_DEVICE(0x1019, "CVP-208"),
195YAMAHA_DEVICE(0x101a, "CVP-210"),
196YAMAHA_DEVICE(0x101b, "PSR-1100"),
197YAMAHA_DEVICE(0x101c, "PSR-2100"),
198YAMAHA_DEVICE(0x101d, "CLP-175"),
199YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100200YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700201YAMAHA_DEVICE(0x1020, "EZ-250i"),
202YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
203YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
204YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
205YAMAHA_DEVICE(0x1024, "CVP-301"),
206YAMAHA_DEVICE(0x1025, "CVP-303"),
207YAMAHA_DEVICE(0x1026, "CVP-305"),
208YAMAHA_DEVICE(0x1027, "CVP-307"),
209YAMAHA_DEVICE(0x1028, "CVP-309"),
210YAMAHA_DEVICE(0x1029, "CVP-309GP"),
211YAMAHA_DEVICE(0x102a, "PSR-1500"),
212YAMAHA_DEVICE(0x102b, "PSR-3000"),
213YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
214YAMAHA_DEVICE(0x1030, "PSR-295/293"),
215YAMAHA_DEVICE(0x1031, "DGX-205/203"),
216YAMAHA_DEVICE(0x1032, "DGX-305"),
217YAMAHA_DEVICE(0x1033, "DGX-505"),
218YAMAHA_DEVICE(0x1034, NULL),
219YAMAHA_DEVICE(0x1035, NULL),
220YAMAHA_DEVICE(0x1036, NULL),
221YAMAHA_DEVICE(0x1037, NULL),
222YAMAHA_DEVICE(0x1038, NULL),
223YAMAHA_DEVICE(0x1039, NULL),
224YAMAHA_DEVICE(0x103a, NULL),
225YAMAHA_DEVICE(0x103b, NULL),
226YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200227YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200228YAMAHA_DEVICE(0x103e, NULL),
229YAMAHA_DEVICE(0x103f, NULL),
230YAMAHA_DEVICE(0x1040, NULL),
231YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200232YAMAHA_DEVICE(0x1042, NULL),
233YAMAHA_DEVICE(0x1043, NULL),
234YAMAHA_DEVICE(0x1044, NULL),
235YAMAHA_DEVICE(0x1045, NULL),
Clemens Ladischc85ceac2008-07-10 11:01:06 +0200236YAMAHA_INTERFACE(0x104e, 0, NULL),
Clemens Ladisch83a1a392008-07-10 11:05:42 +0200237YAMAHA_DEVICE(0x104f, NULL),
238YAMAHA_DEVICE(0x1050, NULL),
239YAMAHA_DEVICE(0x1051, NULL),
240YAMAHA_DEVICE(0x1052, NULL),
Clemens Ladisch422fdc32010-10-04 13:09:12 +0200241YAMAHA_INTERFACE(0x1053, 0, NULL),
242YAMAHA_INTERFACE(0x1054, 0, NULL),
243YAMAHA_DEVICE(0x1055, NULL),
244YAMAHA_DEVICE(0x1056, NULL),
245YAMAHA_DEVICE(0x1057, NULL),
246YAMAHA_DEVICE(0x1058, NULL),
247YAMAHA_DEVICE(0x1059, NULL),
248YAMAHA_DEVICE(0x105a, NULL),
249YAMAHA_DEVICE(0x105b, NULL),
250YAMAHA_DEVICE(0x105c, NULL),
251YAMAHA_DEVICE(0x105d, NULL),
Clemens Ladisch8c3f5d82011-12-19 23:09:15 +0100252{
253 USB_DEVICE(0x0499, 0x1503),
254 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
255 /* .vendor_name = "Yamaha", */
256 /* .product_name = "MOX6/MOX8", */
257 .ifnum = QUIRK_ANY_INTERFACE,
258 .type = QUIRK_COMPOSITE,
259 .data = (const struct snd_usb_audio_quirk[]) {
260 {
261 .ifnum = 1,
262 .type = QUIRK_AUDIO_STANDARD_INTERFACE
263 },
264 {
265 .ifnum = 2,
266 .type = QUIRK_AUDIO_STANDARD_INTERFACE
267 },
268 {
269 .ifnum = 3,
270 .type = QUIRK_MIDI_YAMAHA
271 },
272 {
273 .ifnum = -1
274 }
275 }
276 }
277},
Trulan Martinae3f0c22013-04-24 21:19:19 -0400278{
279 USB_DEVICE(0x0499, 0x1507),
280 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
281 /* .vendor_name = "Yamaha", */
282 /* .product_name = "THR10", */
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},
Trulan Martin1b153622013-04-24 21:19:20 -0400304{
Vlad Catoif0b127f2014-10-18 17:45:41 -0500305 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},
334{
Trulan Martin1b153622013-04-24 21:19:20 -0400335 USB_DEVICE(0x0499, 0x150a),
336 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
337 /* .vendor_name = "Yamaha", */
338 /* .product_name = "THR5A", */
339 .ifnum = QUIRK_ANY_INTERFACE,
340 .type = QUIRK_COMPOSITE,
341 .data = (const struct snd_usb_audio_quirk[]) {
342 {
343 .ifnum = 1,
344 .type = QUIRK_AUDIO_STANDARD_INTERFACE
345 },
346 {
347 .ifnum = 2,
348 .type = QUIRK_AUDIO_STANDARD_INTERFACE
349 },
350 {
351 .ifnum = 3,
352 .type = QUIRK_MIDI_YAMAHA
353 },
354 {
355 .ifnum = -1
356 }
357 }
358 }
359},
Trulan Martin03e02212013-04-24 21:19:21 -0400360{
361 USB_DEVICE(0x0499, 0x150c),
362 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
363 /* .vendor_name = "Yamaha", */
364 /* .product_name = "THR10C", */
365 .ifnum = QUIRK_ANY_INTERFACE,
366 .type = QUIRK_COMPOSITE,
367 .data = (const struct snd_usb_audio_quirk[]) {
368 {
369 .ifnum = 1,
370 .type = QUIRK_AUDIO_STANDARD_INTERFACE
371 },
372 {
373 .ifnum = 2,
374 .type = QUIRK_AUDIO_STANDARD_INTERFACE
375 },
376 {
377 .ifnum = 3,
378 .type = QUIRK_MIDI_YAMAHA
379 },
380 {
381 .ifnum = -1
382 }
383 }
384 }
385},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700386YAMAHA_DEVICE(0x2000, "DGP-7"),
387YAMAHA_DEVICE(0x2001, "DGP-5"),
388YAMAHA_DEVICE(0x2002, NULL),
Clemens Ladisch422fdc32010-10-04 13:09:12 +0200389YAMAHA_DEVICE(0x2003, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700390YAMAHA_DEVICE(0x5000, "CS1D"),
391YAMAHA_DEVICE(0x5001, "DSP1D"),
392YAMAHA_DEVICE(0x5002, "DME32"),
393YAMAHA_DEVICE(0x5003, "DM2000"),
394YAMAHA_DEVICE(0x5004, "02R96"),
395YAMAHA_DEVICE(0x5005, "ACU16-C"),
396YAMAHA_DEVICE(0x5006, "NHB32-C"),
397YAMAHA_DEVICE(0x5007, "DM1000"),
398YAMAHA_DEVICE(0x5008, "01V96"),
399YAMAHA_DEVICE(0x5009, "SPX2000"),
400YAMAHA_DEVICE(0x500a, "PM5D"),
401YAMAHA_DEVICE(0x500b, "DME64N"),
402YAMAHA_DEVICE(0x500c, "DME24N"),
403YAMAHA_DEVICE(0x500d, NULL),
404YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200405YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700406YAMAHA_DEVICE(0x7000, "DTX"),
407YAMAHA_DEVICE(0x7010, "UB99"),
408#undef YAMAHA_DEVICE
409#undef YAMAHA_INTERFACE
Clemens Ladischaafe77c2013-03-31 23:43:12 +0200410/* this catches most recent vendor-specific Yamaha devices */
411{
412 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
413 USB_DEVICE_ID_MATCH_INT_CLASS,
414 .idVendor = 0x0499,
415 .bInterfaceClass = USB_CLASS_VENDOR_SPEC,
416 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
417 .ifnum = QUIRK_ANY_INTERFACE,
418 .type = QUIRK_AUTODETECT
419 }
420},
Linus Torvalds1da177e2005-04-16 15:20:36 -0700421
422/*
423 * Roland/RolandED/Edirol/BOSS devices
424 */
425{
426 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100427 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700428 .vendor_name = "Roland",
429 .product_name = "UA-100",
430 .ifnum = QUIRK_ANY_INTERFACE,
431 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100432 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433 {
434 .ifnum = 0,
435 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
436 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100437 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700438 .channels = 4,
439 .iface = 0,
440 .altsetting = 1,
441 .altset_idx = 1,
442 .attributes = 0,
443 .endpoint = 0x01,
444 .ep_attr = 0x09,
445 .rates = SNDRV_PCM_RATE_CONTINUOUS,
446 .rate_min = 44100,
447 .rate_max = 44100,
448 }
449 },
450 {
451 .ifnum = 1,
452 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
453 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100454 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700455 .channels = 2,
456 .iface = 1,
457 .altsetting = 1,
458 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100459 .attributes = UAC_EP_CS_ATTR_FILL_MAX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700460 .endpoint = 0x81,
461 .ep_attr = 0x05,
462 .rates = SNDRV_PCM_RATE_CONTINUOUS,
463 .rate_min = 44100,
464 .rate_max = 44100,
465 }
466 },
467 {
468 .ifnum = 2,
469 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100470 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700471 .out_cables = 0x0007,
472 .in_cables = 0x0007
473 }
474 },
475 {
476 .ifnum = -1
477 }
478 }
479 }
480},
481{
482 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100483 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700484 .vendor_name = "EDIROL",
485 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200486 .ifnum = QUIRK_ANY_INTERFACE,
487 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100488 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200489 {
490 .ifnum = 0,
491 .type = QUIRK_IGNORE_INTERFACE
492 },
493 {
494 .ifnum = 1,
495 .type = QUIRK_IGNORE_INTERFACE
496 },
497 {
498 .ifnum = 2,
499 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100500 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200501 .out_cables = 0x000f,
502 .in_cables = 0x000f
503 }
504 },
505 {
506 .ifnum = -1
507 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700508 }
509 }
510},
511{
512 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100513 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700514 .vendor_name = "Roland",
515 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200516 .ifnum = QUIRK_ANY_INTERFACE,
517 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100518 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200519 {
520 .ifnum = 0,
521 .type = QUIRK_IGNORE_INTERFACE
522 },
523 {
524 .ifnum = 1,
525 .type = QUIRK_IGNORE_INTERFACE
526 },
527 {
528 .ifnum = 2,
529 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100530 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200531 .out_cables = 0x003f,
532 .in_cables = 0x003f
533 }
534 },
535 {
536 .ifnum = -1
537 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700538 }
539 }
540},
541{
542 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100543 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700544 .vendor_name = "Roland",
545 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200546 .ifnum = QUIRK_ANY_INTERFACE,
547 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100548 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200549 {
550 .ifnum = 0,
551 .type = QUIRK_IGNORE_INTERFACE
552 },
553 {
554 .ifnum = 1,
555 .type = QUIRK_IGNORE_INTERFACE
556 },
557 {
558 .ifnum = 2,
559 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100560 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200561 .out_cables = 0x0005,
562 .in_cables = 0x0005
563 }
564 },
565 {
566 .ifnum = -1
567 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700568 }
569 }
570},
571{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100572 /* Has ID 0x0099 when not in "Advanced Driver" mode.
573 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700574 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100575 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 .vendor_name = "EDIROL",
577 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200578 .ifnum = QUIRK_ANY_INTERFACE,
579 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100580 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200581 {
582 .ifnum = 0,
583 .type = QUIRK_IGNORE_INTERFACE
584 },
585 {
586 .ifnum = 1,
587 .type = QUIRK_IGNORE_INTERFACE
588 },
589 {
590 .ifnum = 2,
591 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100592 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200593 .out_cables = 0x0003,
594 .in_cables = 0x0003
595 }
596 },
597 {
598 .ifnum = -1
599 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700600 }
601 }
602},
603{
604 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100605 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700606 .vendor_name = "Roland",
607 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200608 .ifnum = QUIRK_ANY_INTERFACE,
609 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100610 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200611 {
612 .ifnum = 0,
613 .type = QUIRK_IGNORE_INTERFACE
614 },
615 {
616 .ifnum = 1,
617 .type = QUIRK_IGNORE_INTERFACE
618 },
619 {
620 .ifnum = 2,
621 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100622 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200623 .out_cables = 0x0013,
624 .in_cables = 0x0013
625 }
626 },
627 {
628 .ifnum = -1
629 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700630 }
631 }
632},
633{
634 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100635 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700636 .vendor_name = "Roland",
637 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200638 .ifnum = QUIRK_ANY_INTERFACE,
639 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100640 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200641 {
642 .ifnum = 0,
643 .type = QUIRK_IGNORE_INTERFACE
644 },
645 {
646 .ifnum = 1,
647 .type = QUIRK_IGNORE_INTERFACE
648 },
649 {
650 .ifnum = 2,
651 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100652 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200653 .out_cables = 0x0001,
654 .in_cables = 0x0001
655 }
656 },
657 {
658 .ifnum = -1
659 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700660 }
661 }
662},
663{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100664 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700665 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100666 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700667 .vendor_name = "EDIROL",
668 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200669 .ifnum = QUIRK_ANY_INTERFACE,
670 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100671 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200672 {
673 .ifnum = 0,
674 .type = QUIRK_IGNORE_INTERFACE
675 },
676 {
677 .ifnum = 1,
678 .type = QUIRK_IGNORE_INTERFACE
679 },
680 {
681 .ifnum = 2,
682 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100683 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200684 .out_cables = 0x0001,
685 .in_cables = 0x0001
686 }
687 },
688 {
689 .ifnum = -1
690 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700691 }
692 }
693},
694{
695 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100696 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700697 .vendor_name = "Roland",
698 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200699 .ifnum = QUIRK_ANY_INTERFACE,
700 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100701 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200702 {
703 .ifnum = 0,
704 .type = QUIRK_IGNORE_INTERFACE
705 },
706 {
707 .ifnum = 1,
708 .type = QUIRK_IGNORE_INTERFACE
709 },
710 {
711 .ifnum = 2,
712 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100713 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200714 .out_cables = 0x0013,
715 .in_cables = 0x0013
716 }
717 },
718 {
719 .ifnum = -1
720 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700721 }
722 }
723},
724{
725 /* thanks to Emiliano Grilli <emillo@libero.it>
726 * for helping researching this data */
727 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100728 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700729 .vendor_name = "Roland",
730 .product_name = "SC-D70",
731 .ifnum = QUIRK_ANY_INTERFACE,
732 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100733 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700734 {
735 .ifnum = 0,
Takamichi Horikawa6d1f2f62015-04-21 11:23:57 +0900736 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Linus Torvalds1da177e2005-04-16 15:20:36 -0700737 },
738 {
739 .ifnum = 1,
Takamichi Horikawa6d1f2f62015-04-21 11:23:57 +0900740 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Linus Torvalds1da177e2005-04-16 15:20:36 -0700741 },
742 {
743 .ifnum = 2,
744 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100745 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700746 .out_cables = 0x0007,
747 .in_cables = 0x0007
748 }
749 },
750 {
751 .ifnum = -1
752 }
753 }
754 }
755},
756{ /*
757 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
758 * If the advanced mode switch at the back of the unit is off, the
759 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
760 * but offers only 16-bit PCM.
761 * In advanced mode, the UA-5 will output S24_3LE samples (two
762 * channels) at the rate indicated on the front switch, including
763 * the 96kHz sample rate.
764 */
765 USB_DEVICE(0x0582, 0x0010),
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 = "UA-5",
769 .ifnum = QUIRK_ANY_INTERFACE,
770 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100771 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700772 {
773 .ifnum = 1,
774 .type = QUIRK_AUDIO_STANDARD_INTERFACE
775 },
776 {
777 .ifnum = 2,
778 .type = QUIRK_AUDIO_STANDARD_INTERFACE
779 },
780 {
781 .ifnum = -1
782 }
783 }
784 }
785},
786{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200787 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700788 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100789 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700790 .vendor_name = "Roland",
791 .product_name = "XV-5050",
792 .ifnum = 0,
793 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100794 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700795 .out_cables = 0x0001,
796 .in_cables = 0x0001
797 }
798 }
799},
800{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200801 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700802 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100803 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700804 .vendor_name = "EDIROL",
805 .product_name = "UM-880",
806 .ifnum = 0,
807 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100808 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809 .out_cables = 0x01ff,
810 .in_cables = 0x01ff
811 }
812 }
813},
814{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200815 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700816 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100817 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700818 .vendor_name = "EDIROL",
819 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200820 .ifnum = QUIRK_ANY_INTERFACE,
821 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100822 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200823 {
824 .ifnum = 0,
Clemens Ladisch061b8692011-01-10 16:30:54 +0100825 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200826 },
827 {
828 .ifnum = 1,
Clemens Ladisch061b8692011-01-10 16:30:54 +0100829 .type = QUIRK_AUDIO_STANDARD_INTERFACE
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200830 },
831 {
832 .ifnum = 2,
833 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100834 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200835 .out_cables = 0x000f,
836 .in_cables = 0x000f
837 }
838 },
839 {
840 .ifnum = -1
841 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700842 }
843 }
844},
845{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200846 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700847 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100848 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700849 .vendor_name = "Roland",
850 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200851 .ifnum = QUIRK_ANY_INTERFACE,
852 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100853 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200854 {
855 .ifnum = 0,
856 .type = QUIRK_IGNORE_INTERFACE
857 },
858 {
859 .ifnum = 1,
860 .type = QUIRK_IGNORE_INTERFACE
861 },
862 {
863 .ifnum = 2,
864 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100865 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200866 .out_cables = 0x0001,
867 .in_cables = 0x0001
868 }
869 },
870 {
871 .ifnum = -1
872 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700873 }
874 }
875},
876{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200877 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700878 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100879 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700880 .vendor_name = "Roland",
881 .product_name = "V-SYNTH",
882 .ifnum = 0,
883 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100884 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700885 .out_cables = 0x0001,
886 .in_cables = 0x0001
887 }
888 }
889},
890{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200891 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700892 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100893 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700894 .vendor_name = "EDIROL",
895 .product_name = "UM-550",
896 .ifnum = 0,
897 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100898 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700899 .out_cables = 0x003f,
900 .in_cables = 0x003f
901 }
902 }
903},
904{
905 /*
906 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
907 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
908 * and no MIDI.
909 */
910 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100911 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700912 .vendor_name = "EDIROL",
913 .product_name = "UA-20",
914 .ifnum = QUIRK_ANY_INTERFACE,
915 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100916 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700917 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100918 .ifnum = 0,
919 .type = QUIRK_IGNORE_INTERFACE
920 },
921 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700922 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100923 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
924 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100925 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100926 .channels = 2,
927 .iface = 1,
928 .altsetting = 1,
929 .altset_idx = 1,
930 .attributes = 0,
931 .endpoint = 0x01,
932 .ep_attr = 0x01,
933 .rates = SNDRV_PCM_RATE_CONTINUOUS,
934 .rate_min = 44100,
935 .rate_max = 44100,
936 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700937 },
938 {
939 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100940 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
941 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100942 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100943 .channels = 2,
944 .iface = 2,
945 .altsetting = 1,
946 .altset_idx = 1,
947 .attributes = 0,
948 .endpoint = 0x82,
949 .ep_attr = 0x01,
950 .rates = SNDRV_PCM_RATE_CONTINUOUS,
951 .rate_min = 44100,
952 .rate_max = 44100,
953 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700954 },
955 {
956 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100957 .type = QUIRK_MIDI_FIXED_ENDPOINT,
958 .data = & (const struct snd_usb_midi_endpoint_info) {
959 .out_cables = 0x0001,
960 .in_cables = 0x0001
961 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700962 },
963 {
964 .ifnum = -1
965 }
966 }
967 }
968},
969{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200970 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700971 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100972 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700973 .vendor_name = "EDIROL",
974 .product_name = "SD-20",
975 .ifnum = 0,
976 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100977 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700978 .out_cables = 0x0003,
979 .in_cables = 0x0007
980 }
981 }
982},
983{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200984 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700985 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100986 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700987 .vendor_name = "EDIROL",
988 .product_name = "SD-80",
989 .ifnum = 0,
990 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100991 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700992 .out_cables = 0x000f,
993 .in_cables = 0x000f
994 }
995 }
996},
997{ /*
998 * This quirk is for the "Advanced" modes of the Edirol UA-700.
999 * If the sample format switch is not in an advanced setting, the
1000 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
1001 * but offers only 16-bit PCM and no MIDI.
1002 */
1003 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001004 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001005 .vendor_name = "EDIROL",
1006 .product_name = "UA-700",
1007 .ifnum = QUIRK_ANY_INTERFACE,
1008 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001009 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001010 {
1011 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001012 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001013 },
1014 {
1015 .ifnum = 2,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001016 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001017 },
1018 {
1019 .ifnum = 3,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001020 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001021 },
1022 {
1023 .ifnum = -1
1024 }
1025 }
1026 }
1027},
1028{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001029 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001030 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001031 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001032 .vendor_name = "Roland",
1033 .product_name = "XV-2020",
1034 .ifnum = 0,
1035 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001036 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001037 .out_cables = 0x0001,
1038 .in_cables = 0x0001
1039 }
1040 }
1041},
1042{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001043 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001044 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001045 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001046 .vendor_name = "Roland",
1047 .product_name = "VariOS",
1048 .ifnum = 0,
1049 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001050 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001051 .out_cables = 0x0007,
1052 .in_cables = 0x0007
1053 }
1054 }
1055},
1056{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001057 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001058 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001059 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001060 .vendor_name = "EDIROL",
1061 .product_name = "PCR",
1062 .ifnum = 0,
1063 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001064 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001065 .out_cables = 0x0003,
1066 .in_cables = 0x0007
1067 }
1068 }
1069},
1070{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001071 /*
1072 * Has ID 0x0038 when not in "Advanced Driver" mode;
1073 * later revisions use IDs 0x0054 and 0x00a2.
1074 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001075 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001076 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001077 .vendor_name = "Roland",
1078 .product_name = "Digital Piano",
1079 .ifnum = 0,
1080 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001081 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001082 .out_cables = 0x0001,
1083 .in_cables = 0x0001
1084 }
1085 }
1086},
1087{
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001088 /*
1089 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
1090 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
1091 * and no MIDI.
1092 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001093 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001094 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001095 .vendor_name = "BOSS",
1096 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001097 .ifnum = QUIRK_ANY_INTERFACE,
1098 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001099 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +02001100 {
1101 .ifnum = 1,
1102 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1103 },
1104 {
1105 .ifnum = 2,
1106 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1107 },
1108 {
1109 .ifnum = 3,
1110 .type = QUIRK_MIDI_STANDARD_INTERFACE
1111 },
1112 {
1113 .ifnum = -1
1114 }
Linus Torvalds1da177e2005-04-16 15:20:36 -07001115 }
1116 }
1117},
1118{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001119 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001120 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001121 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001122 .vendor_name = "Roland",
1123 .product_name = "GI-20",
1124 .ifnum = 0,
1125 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001126 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001127 .out_cables = 0x0001,
1128 .in_cables = 0x0001
1129 }
1130 }
1131},
1132{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001133 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001134 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001135 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001136 .vendor_name = "Roland",
1137 .product_name = "RS-70",
1138 .ifnum = 0,
1139 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001140 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001141 .out_cables = 0x0001,
1142 .in_cables = 0x0001
1143 }
1144 }
1145},
1146{
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001147 /* has ID 0x0049 when not in "Advanced Driver" mode */
1148 USB_DEVICE(0x0582, 0x0047),
1149 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1150 /* .vendor_name = "EDIROL", */
1151 /* .product_name = "UR-80", */
1152 .ifnum = QUIRK_ANY_INTERFACE,
1153 .type = QUIRK_COMPOSITE,
1154 .data = (const struct snd_usb_audio_quirk[]) {
1155 /* in the 96 kHz modes, only interface 1 is there */
1156 {
1157 .ifnum = 1,
1158 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1159 },
1160 {
1161 .ifnum = 2,
1162 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1163 },
1164 {
1165 .ifnum = -1
1166 }
1167 }
1168 }
1169},
1170{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001171 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001172 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001173 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001174 /* .vendor_name = "EDIROL", */
1175 /* .product_name = "UR-80", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001176 .ifnum = 0,
1177 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001178 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001179 .out_cables = 0x0003,
1180 .in_cables = 0x0007
1181 }
1182 }
1183},
1184{
Clemens Ladischf38cc312007-02-09 20:52:55 +01001185 /* has ID 0x004e when not in "Advanced Driver" mode */
1186 USB_DEVICE(0x0582, 0x004c),
1187 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1188 .vendor_name = "EDIROL",
1189 .product_name = "PCR-A",
1190 .ifnum = QUIRK_ANY_INTERFACE,
1191 .type = QUIRK_COMPOSITE,
1192 .data = (const struct snd_usb_audio_quirk[]) {
1193 {
1194 .ifnum = 1,
1195 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1196 },
1197 {
1198 .ifnum = 2,
1199 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1200 },
1201 {
1202 .ifnum = -1
1203 }
1204 }
1205 }
1206},
1207{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001208 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001209 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001210 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001211 .vendor_name = "EDIROL",
1212 .product_name = "PCR-A",
1213 .ifnum = 0,
1214 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001215 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001216 .out_cables = 0x0003,
1217 .in_cables = 0x0007
1218 }
1219 }
1220},
1221{
1222 /*
1223 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1224 * is standard compliant, but has only 16-bit PCM.
1225 */
1226 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001227 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001228 .vendor_name = "EDIROL",
1229 .product_name = "UA-3FX",
1230 .ifnum = QUIRK_ANY_INTERFACE,
1231 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001232 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001233 {
1234 .ifnum = 1,
1235 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1236 },
1237 {
1238 .ifnum = 2,
1239 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1240 },
1241 {
1242 .ifnum = -1
1243 }
1244 }
1245 }
1246},
1247{
1248 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001249 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001250 .vendor_name = "EDIROL",
1251 .product_name = "UM-1SX",
1252 .ifnum = 0,
1253 .type = QUIRK_MIDI_STANDARD_INTERFACE
1254 }
1255},
Takashi Iwaif1676842007-07-09 10:39:44 +02001256{
1257 USB_DEVICE(0x0582, 0x0060),
1258 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1259 .vendor_name = "Roland",
1260 .product_name = "EXR Series",
1261 .ifnum = 0,
1262 .type = QUIRK_MIDI_STANDARD_INTERFACE
1263 }
1264},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001265{
Clemens Ladischaa70201f2010-08-30 16:32:43 +02001266 /* has ID 0x0066 when not in "Advanced Driver" mode */
1267 USB_DEVICE(0x0582, 0x0064),
1268 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1269 /* .vendor_name = "EDIROL", */
1270 /* .product_name = "PCR-1", */
1271 .ifnum = QUIRK_ANY_INTERFACE,
1272 .type = QUIRK_COMPOSITE,
1273 .data = (const struct snd_usb_audio_quirk[]) {
1274 {
1275 .ifnum = 1,
1276 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1277 },
1278 {
1279 .ifnum = 2,
1280 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1281 },
1282 {
1283 .ifnum = -1
1284 }
1285 }
1286 }
1287},
1288{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001289 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001290 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001291 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischaa70201f2010-08-30 16:32:43 +02001292 /* .vendor_name = "EDIROL", */
1293 /* .product_name = "PCR-1", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001294 .ifnum = 0,
1295 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001296 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001297 .out_cables = 0x0001,
1298 .in_cables = 0x0003
1299 }
1300 }
1301},
1302{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001303 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001304 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001305 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001306 .vendor_name = "Roland",
1307 .product_name = "FANTOM-X",
1308 .ifnum = 0,
1309 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001310 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001311 .out_cables = 0x0001,
1312 .in_cables = 0x0001
1313 }
1314 }
1315},
1316{ /*
1317 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1318 * If the switch is not in an advanced setting, the UA-25 has
1319 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1320 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1321 */
1322 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001323 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001324 .vendor_name = "EDIROL",
1325 .product_name = "UA-25",
1326 .ifnum = QUIRK_ANY_INTERFACE,
1327 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001328 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001329 {
1330 .ifnum = 0,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001331 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001332 },
1333 {
1334 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001335 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001336 },
1337 {
1338 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001339 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001340 },
1341 {
1342 .ifnum = -1
1343 }
1344 }
1345 }
1346},
1347{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001348 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001349 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001350 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001351 .vendor_name = "BOSS",
1352 .product_name = "DR-880",
1353 .ifnum = 0,
1354 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001355 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001356 .out_cables = 0x0001,
1357 .in_cables = 0x0001
1358 }
1359 }
1360},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001361{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001362 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001363 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001364 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001365 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001366 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001367 .ifnum = 0,
1368 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001369 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001370 .out_cables = 0x0003,
1371 .in_cables = 0x0003
1372 }
1373 }
1374},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001375{
1376 /* has ID 0x0081 when not in "Advanced Driver" mode */
1377 USB_DEVICE(0x0582, 0x0080),
1378 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1379 .vendor_name = "Roland",
1380 .product_name = "G-70",
1381 .ifnum = 0,
1382 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1383 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001384 .out_cables = 0x0001,
1385 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001386 }
1387 }
1388},
Clemens Ladisch415b09e42006-01-16 08:03:52 +01001389{
1390 /* has ID 0x008c when not in "Advanced Driver" mode */
1391 USB_DEVICE(0x0582, 0x008b),
1392 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1393 .vendor_name = "EDIROL",
1394 .product_name = "PC-50",
1395 .ifnum = 0,
1396 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1397 .data = & (const struct snd_usb_midi_endpoint_info) {
1398 .out_cables = 0x0001,
1399 .in_cables = 0x0001
1400 }
1401 }
1402},
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001403{
1404 /*
1405 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
1406 * is standard compliant, but has only 16-bit PCM and no MIDI.
1407 */
1408 USB_DEVICE(0x0582, 0x00a3),
1409 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1410 .vendor_name = "EDIROL",
1411 .product_name = "UA-4FX",
1412 .ifnum = QUIRK_ANY_INTERFACE,
1413 .type = QUIRK_COMPOSITE,
1414 .data = (const struct snd_usb_audio_quirk[]) {
1415 {
1416 .ifnum = 0,
1417 .type = QUIRK_AUDIO_EDIROL_UAXX
1418 },
1419 {
1420 .ifnum = 1,
1421 .type = QUIRK_AUDIO_EDIROL_UAXX
1422 },
1423 {
1424 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001425 .type = QUIRK_AUDIO_EDIROL_UAXX
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001426 },
1427 {
1428 .ifnum = -1
1429 }
1430 }
1431 }
1432},
Clemens Ladischb38addb2008-07-28 10:19:39 +02001433{
Takashi Iwai6efd2cd2009-06-01 10:59:51 +02001434 /* Edirol M-16DX */
Takashi Iwai6efd2cd2009-06-01 10:59:51 +02001435 USB_DEVICE(0x0582, 0x00c4),
1436 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1437 .ifnum = QUIRK_ANY_INTERFACE,
1438 .type = QUIRK_COMPOSITE,
1439 .data = (const struct snd_usb_audio_quirk[]) {
1440 {
1441 .ifnum = 0,
1442 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1443 },
1444 {
1445 .ifnum = 1,
1446 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1447 },
1448 {
1449 .ifnum = 2,
1450 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1451 .data = & (const struct snd_usb_midi_endpoint_info) {
1452 .out_cables = 0x0001,
1453 .in_cables = 0x0001
1454 }
1455 },
1456 {
1457 .ifnum = -1
1458 }
1459 }
1460 }
1461},
1462{
Takashi Iwaie2736262008-10-20 16:07:45 +02001463 /* Advanced modes of the Edirol UA-25EX.
1464 * For the standard mode, UA-25EX has ID 0582:00e7, which
1465 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1466 */
1467 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
1468 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1469 .vendor_name = "EDIROL",
1470 .product_name = "UA-25EX",
1471 .ifnum = QUIRK_ANY_INTERFACE,
1472 .type = QUIRK_COMPOSITE,
1473 .data = (const struct snd_usb_audio_quirk[]) {
1474 {
1475 .ifnum = 0,
1476 .type = QUIRK_AUDIO_EDIROL_UAXX
1477 },
1478 {
1479 .ifnum = 1,
1480 .type = QUIRK_AUDIO_EDIROL_UAXX
1481 },
1482 {
1483 .ifnum = 2,
1484 .type = QUIRK_AUDIO_EDIROL_UAXX
1485 },
1486 {
1487 .ifnum = -1
1488 }
1489 }
1490 }
1491},
Clemens Ladischd867bba2009-11-19 14:34:33 +01001492{
Clemens Ladisch927c9422012-02-04 20:51:43 +01001493 /* Edirol UM-3G */
1494 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
1495 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1496 .ifnum = 0,
Clemens Ladischa0c6d302013-06-02 19:49:07 +02001497 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1498 .data = & (const struct snd_usb_midi_endpoint_info) {
1499 .out_cables = 0x0007,
1500 .in_cables = 0x0007
1501 }
Clemens Ladisch927c9422012-02-04 20:51:43 +01001502 }
1503},
1504{
Clemens Ladisch53da5eb2014-08-09 17:19:41 +02001505 /* BOSS ME-25 */
1506 USB_DEVICE(0x0582, 0x0113),
1507 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1508 .ifnum = QUIRK_ANY_INTERFACE,
1509 .type = QUIRK_COMPOSITE,
1510 .data = (const struct snd_usb_audio_quirk[]) {
1511 {
1512 .ifnum = 0,
1513 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1514 },
1515 {
1516 .ifnum = 1,
1517 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1518 },
1519 {
1520 .ifnum = 2,
1521 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1522 .data = & (const struct snd_usb_midi_endpoint_info) {
1523 .out_cables = 0x0001,
1524 .in_cables = 0x0001
1525 }
1526 },
1527 {
1528 .ifnum = -1
1529 }
1530 }
1531 }
1532},
1533{
Clemens Ladischb7f33912013-06-16 18:27:56 +02001534 /* only 44.1 kHz works at the moment */
1535 USB_DEVICE(0x0582, 0x0120),
Clemens Ladisch9d0c9192010-08-30 16:42:17 +02001536 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1537 /* .vendor_name = "Roland", */
Clemens Ladischb7f33912013-06-16 18:27:56 +02001538 /* .product_name = "OCTO-CAPTURE", */
John F Leachae7cc702011-11-28 19:41:27 -05001539 .ifnum = QUIRK_ANY_INTERFACE,
1540 .type = QUIRK_COMPOSITE,
1541 .data = (const struct snd_usb_audio_quirk[]) {
1542 {
1543 .ifnum = 0,
Clemens Ladischb7f33912013-06-16 18:27:56 +02001544 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1545 .data = & (const struct audioformat) {
1546 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1547 .channels = 10,
1548 .iface = 0,
1549 .altsetting = 1,
1550 .altset_idx = 1,
1551 .endpoint = 0x05,
1552 .ep_attr = 0x05,
1553 .rates = SNDRV_PCM_RATE_44100,
1554 .rate_min = 44100,
1555 .rate_max = 44100,
1556 .nr_rates = 1,
1557 .rate_table = (unsigned int[]) { 44100 }
John F Leachae7cc702011-11-28 19:41:27 -05001558 }
1559 },
1560 {
Clemens Ladisch7b280792010-08-30 16:45:38 +02001561 .ifnum = 1,
Clemens Ladischb7f33912013-06-16 18:27:56 +02001562 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1563 .data = & (const struct audioformat) {
1564 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1565 .channels = 12,
1566 .iface = 1,
1567 .altsetting = 1,
1568 .altset_idx = 1,
1569 .endpoint = 0x85,
1570 .ep_attr = 0x25,
1571 .rates = SNDRV_PCM_RATE_44100,
1572 .rate_min = 44100,
1573 .rate_max = 44100,
1574 .nr_rates = 1,
1575 .rate_table = (unsigned int[]) { 44100 }
1576 }
Clemens Ladisch7b280792010-08-30 16:45:38 +02001577 },
1578 {
1579 .ifnum = 2,
1580 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1581 .data = & (const struct snd_usb_midi_endpoint_info) {
1582 .out_cables = 0x0001,
1583 .in_cables = 0x0001
1584 }
1585 },
1586 {
Clemens Ladischb7f33912013-06-16 18:27:56 +02001587 .ifnum = 3,
Kazutomo Yoshiic9c9e4e2011-08-09 23:39:13 -05001588 .type = QUIRK_IGNORE_INTERFACE
1589 },
1590 {
Clemens Ladischb7f33912013-06-16 18:27:56 +02001591 .ifnum = 4,
1592 .type = QUIRK_IGNORE_INTERFACE
Kazutomo Yoshiic9c9e4e2011-08-09 23:39:13 -05001593 },
1594 {
1595 .ifnum = -1
1596 }
1597 }
1598 }
1599},
Clemens Ladisch74953e22012-06-23 17:30:47 +02001600{
Clemens Ladischb7f33912013-06-16 18:27:56 +02001601 /* only 44.1 kHz works at the moment */
1602 USB_DEVICE(0x0582, 0x012f),
Clemens Ladisch74953e22012-06-23 17:30:47 +02001603 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischb7f33912013-06-16 18:27:56 +02001604 /* .vendor_name = "Roland", */
1605 /* .product_name = "QUAD-CAPTURE", */
Clemens Ladisch74953e22012-06-23 17:30:47 +02001606 .ifnum = QUIRK_ANY_INTERFACE,
1607 .type = QUIRK_COMPOSITE,
1608 .data = (const struct snd_usb_audio_quirk[]) {
1609 {
Clemens Ladischb7f33912013-06-16 18:27:56 +02001610 .ifnum = 0,
1611 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1612 .data = & (const struct audioformat) {
1613 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1614 .channels = 4,
1615 .iface = 0,
1616 .altsetting = 1,
1617 .altset_idx = 1,
1618 .endpoint = 0x05,
1619 .ep_attr = 0x05,
1620 .rates = SNDRV_PCM_RATE_44100,
1621 .rate_min = 44100,
1622 .rate_max = 44100,
1623 .nr_rates = 1,
1624 .rate_table = (unsigned int[]) { 44100 }
1625 }
1626 },
1627 {
Clemens Ladisch74953e22012-06-23 17:30:47 +02001628 .ifnum = 1,
Clemens Ladischb7f33912013-06-16 18:27:56 +02001629 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1630 .data = & (const struct audioformat) {
1631 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1632 .channels = 6,
1633 .iface = 1,
1634 .altsetting = 1,
1635 .altset_idx = 1,
1636 .endpoint = 0x85,
1637 .ep_attr = 0x25,
1638 .rates = SNDRV_PCM_RATE_44100,
1639 .rate_min = 44100,
1640 .rate_max = 44100,
1641 .nr_rates = 1,
1642 .rate_table = (unsigned int[]) { 44100 }
1643 }
Clemens Ladisch74953e22012-06-23 17:30:47 +02001644 },
1645 {
1646 .ifnum = 2,
Clemens Ladisch74953e22012-06-23 17:30:47 +02001647 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1648 .data = & (const struct snd_usb_midi_endpoint_info) {
1649 .out_cables = 0x0001,
1650 .in_cables = 0x0001
1651 }
1652 },
1653 {
Clemens Ladischb7f33912013-06-16 18:27:56 +02001654 .ifnum = 3,
1655 .type = QUIRK_IGNORE_INTERFACE
1656 },
1657 {
1658 .ifnum = 4,
1659 .type = QUIRK_IGNORE_INTERFACE
1660 },
1661 {
Clemens Ladisch74953e22012-06-23 17:30:47 +02001662 .ifnum = -1
1663 }
1664 }
1665 }
1666},
Daniel Mackfcdcd1d2015-03-12 09:41:32 +01001667{
1668 USB_DEVICE(0x0582, 0x0159),
1669 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1670 /* .vendor_name = "Roland", */
1671 /* .product_name = "UA-22", */
1672 .ifnum = QUIRK_ANY_INTERFACE,
1673 .type = QUIRK_COMPOSITE,
1674 .data = (const struct snd_usb_audio_quirk[]) {
1675 {
1676 .ifnum = 0,
1677 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1678 },
1679 {
1680 .ifnum = 1,
1681 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1682 },
1683 {
1684 .ifnum = 2,
1685 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1686 .data = & (const struct snd_usb_midi_endpoint_info) {
1687 .out_cables = 0x0001,
1688 .in_cables = 0x0001
1689 }
1690 },
1691 {
1692 .ifnum = -1
1693 }
1694 }
1695 }
1696},
Clemens Ladischaafe77c2013-03-31 23:43:12 +02001697/* this catches most recent vendor-specific Roland devices */
1698{
1699 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1700 USB_DEVICE_ID_MATCH_INT_CLASS,
1701 .idVendor = 0x0582,
1702 .bInterfaceClass = USB_CLASS_VENDOR_SPEC,
1703 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
1704 .ifnum = QUIRK_ANY_INTERFACE,
1705 .type = QUIRK_AUTODETECT
1706 }
1707},
Chris Mennie62b12632008-05-19 16:21:33 +02001708
Clemens Ladischa25f1752005-10-05 13:23:19 +02001709/* Guillemot devices */
1710{
1711 /*
1712 * This is for the "Windows Edition" where the external MIDI ports are
1713 * the only MIDI ports; the control data is reported through HID
1714 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1715 * compliant USB MIDI ports for external MIDI and controls.
1716 */
1717 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001718 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001719 .vendor_name = "Hercules",
1720 .product_name = "DJ Console (WE)",
1721 .ifnum = 4,
1722 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001723 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001724 .out_cables = 0x0001,
1725 .in_cables = 0x0001
1726 }
1727 }
1728},
1729
Linus Torvalds1da177e2005-04-16 15:20:36 -07001730/* Midiman/M-Audio devices */
1731{
1732 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001733 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001734 .vendor_name = "M-Audio",
1735 .product_name = "MidiSport 2x2",
1736 .ifnum = QUIRK_ANY_INTERFACE,
1737 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001738 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001739 .out_cables = 0x0003,
1740 .in_cables = 0x0003
1741 }
1742 }
1743},
1744{
1745 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001746 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001747 .vendor_name = "M-Audio",
1748 .product_name = "MidiSport 1x1",
1749 .ifnum = QUIRK_ANY_INTERFACE,
1750 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001751 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001752 .out_cables = 0x0001,
1753 .in_cables = 0x0001
1754 }
1755 }
1756},
1757{
1758 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001759 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001760 .vendor_name = "M-Audio",
1761 .product_name = "Keystation",
1762 .ifnum = QUIRK_ANY_INTERFACE,
1763 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001764 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001765 .out_cables = 0x0001,
1766 .in_cables = 0x0001
1767 }
1768 }
1769},
1770{
1771 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001772 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001773 .vendor_name = "M-Audio",
1774 .product_name = "MidiSport 4x4",
1775 .ifnum = QUIRK_ANY_INTERFACE,
1776 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001777 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001778 .out_cables = 0x000f,
1779 .in_cables = 0x000f
1780 }
1781 }
1782},
1783{
1784 /*
1785 * For hardware revision 1.05; in the later revisions (1.10 and
1786 * 1.21), 0x1031 is the ID for the device without firmware.
1787 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1788 */
1789 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001790 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001791 .vendor_name = "M-Audio",
1792 .product_name = "MidiSport 8x8",
1793 .ifnum = QUIRK_ANY_INTERFACE,
1794 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001795 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001796 .out_cables = 0x01ff,
1797 .in_cables = 0x01ff
1798 }
1799 }
1800},
1801{
1802 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001803 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001804 .vendor_name = "M-Audio",
1805 .product_name = "MidiSport 8x8",
1806 .ifnum = QUIRK_ANY_INTERFACE,
1807 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001808 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001809 .out_cables = 0x01ff,
1810 .in_cables = 0x01ff
1811 }
1812 }
1813},
1814{
1815 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001816 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001817 .vendor_name = "M-Audio",
1818 .product_name = "MidiSport 2x4",
1819 .ifnum = QUIRK_ANY_INTERFACE,
1820 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001821 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001822 .out_cables = 0x000f,
1823 .in_cables = 0x0003
1824 }
1825 }
1826},
1827{
1828 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001829 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001830 .vendor_name = "M-Audio",
1831 .product_name = "Quattro",
1832 .ifnum = QUIRK_ANY_INTERFACE,
1833 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001834 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001835 /*
1836 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1837 * and share endpoints with the other interfaces.
1838 * Ignore them. The other interfaces can do 24 bits,
1839 * but captured samples are big-endian (see usbaudio.c).
1840 */
1841 {
1842 .ifnum = 0,
1843 .type = QUIRK_IGNORE_INTERFACE
1844 },
1845 {
1846 .ifnum = 1,
1847 .type = QUIRK_IGNORE_INTERFACE
1848 },
1849 {
1850 .ifnum = 2,
1851 .type = QUIRK_IGNORE_INTERFACE
1852 },
1853 {
1854 .ifnum = 3,
1855 .type = QUIRK_IGNORE_INTERFACE
1856 },
1857 {
1858 .ifnum = 4,
1859 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1860 },
1861 {
1862 .ifnum = 5,
1863 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1864 },
1865 {
1866 .ifnum = 6,
1867 .type = QUIRK_IGNORE_INTERFACE
1868 },
1869 {
1870 .ifnum = 7,
1871 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1872 },
1873 {
1874 .ifnum = 8,
1875 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1876 },
1877 {
1878 .ifnum = 9,
1879 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001880 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001881 .out_cables = 0x0001,
1882 .in_cables = 0x0001
1883 }
1884 },
1885 {
1886 .ifnum = -1
1887 }
1888 }
1889 }
1890},
1891{
1892 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001893 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001894 .vendor_name = "M-Audio",
1895 .product_name = "AudioPhile",
1896 .ifnum = 6,
1897 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001898 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001899 .out_cables = 0x0001,
1900 .in_cables = 0x0001
1901 }
1902 }
1903},
1904{
1905 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001906 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001907 .vendor_name = "M-Audio",
1908 .product_name = "Ozone",
1909 .ifnum = 3,
1910 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001911 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001912 .out_cables = 0x0001,
1913 .in_cables = 0x0001
1914 }
1915 }
1916},
1917{
1918 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001919 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001920 .vendor_name = "M-Audio",
1921 .product_name = "OmniStudio",
1922 .ifnum = QUIRK_ANY_INTERFACE,
1923 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001924 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001925 {
1926 .ifnum = 0,
1927 .type = QUIRK_IGNORE_INTERFACE
1928 },
1929 {
1930 .ifnum = 1,
1931 .type = QUIRK_IGNORE_INTERFACE
1932 },
1933 {
1934 .ifnum = 2,
1935 .type = QUIRK_IGNORE_INTERFACE
1936 },
1937 {
1938 .ifnum = 3,
1939 .type = QUIRK_IGNORE_INTERFACE
1940 },
1941 {
1942 .ifnum = 4,
1943 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1944 },
1945 {
1946 .ifnum = 5,
1947 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1948 },
1949 {
1950 .ifnum = 6,
1951 .type = QUIRK_IGNORE_INTERFACE
1952 },
1953 {
1954 .ifnum = 7,
1955 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1956 },
1957 {
1958 .ifnum = 8,
1959 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1960 },
1961 {
1962 .ifnum = 9,
1963 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001964 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001965 .out_cables = 0x0001,
1966 .in_cables = 0x0001
1967 }
1968 },
1969 {
1970 .ifnum = -1
1971 }
1972 }
1973 }
1974},
Clemens Ladisch2ea547dc2007-09-17 09:33:17 +02001975{
1976 USB_DEVICE(0x0763, 0x2019),
1977 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1978 /* .vendor_name = "M-Audio", */
1979 /* .product_name = "Ozone Academic", */
1980 .ifnum = QUIRK_ANY_INTERFACE,
1981 .type = QUIRK_COMPOSITE,
1982 .data = & (const struct snd_usb_audio_quirk[]) {
1983 {
1984 .ifnum = 0,
1985 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1986 },
1987 {
1988 .ifnum = 1,
1989 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1990 },
1991 {
1992 .ifnum = 2,
1993 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1994 },
1995 {
1996 .ifnum = 3,
1997 .type = QUIRK_MIDI_MIDIMAN,
1998 .data = & (const struct snd_usb_midi_endpoint_info) {
1999 .out_cables = 0x0001,
2000 .in_cables = 0x0001
2001 }
2002 },
2003 {
2004 .ifnum = -1
2005 }
2006 }
2007 }
2008},
Felix Homannfca5bca2010-03-25 11:29:14 +01002009{
Eldad Zack76f74bc2012-11-28 23:55:38 +01002010 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030),
2011 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2012 /* .vendor_name = "M-Audio", */
2013 /* .product_name = "Fast Track C400", */
2014 .ifnum = QUIRK_ANY_INTERFACE,
2015 .type = QUIRK_COMPOSITE,
2016 .data = &(const struct snd_usb_audio_quirk[]) {
2017 {
2018 .ifnum = 1,
2019 .type = QUIRK_AUDIO_STANDARD_MIXER,
2020 },
2021 /* Playback */
2022 {
2023 .ifnum = 2,
2024 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2025 .data = &(const struct audioformat) {
2026 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2027 .channels = 6,
2028 .iface = 2,
2029 .altsetting = 1,
2030 .altset_idx = 1,
2031 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2032 .endpoint = 0x01,
2033 .ep_attr = 0x09,
2034 .rates = SNDRV_PCM_RATE_44100 |
2035 SNDRV_PCM_RATE_48000 |
2036 SNDRV_PCM_RATE_88200 |
2037 SNDRV_PCM_RATE_96000,
2038 .rate_min = 44100,
2039 .rate_max = 96000,
2040 .nr_rates = 4,
2041 .rate_table = (unsigned int[]) {
2042 44100, 48000, 88200, 96000
2043 },
Eldad Zack2aad2722013-01-13 23:02:02 +01002044 .clock = 0x80,
Eldad Zack76f74bc2012-11-28 23:55:38 +01002045 }
2046 },
2047 /* Capture */
2048 {
2049 .ifnum = 3,
2050 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2051 .data = &(const struct audioformat) {
2052 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2053 .channels = 4,
2054 .iface = 3,
2055 .altsetting = 1,
2056 .altset_idx = 1,
2057 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2058 .endpoint = 0x81,
2059 .ep_attr = 0x05,
2060 .rates = SNDRV_PCM_RATE_44100 |
2061 SNDRV_PCM_RATE_48000 |
2062 SNDRV_PCM_RATE_88200 |
2063 SNDRV_PCM_RATE_96000,
2064 .rate_min = 44100,
2065 .rate_max = 96000,
2066 .nr_rates = 4,
2067 .rate_table = (unsigned int[]) {
2068 44100, 48000, 88200, 96000
2069 },
Eldad Zack2aad2722013-01-13 23:02:02 +01002070 .clock = 0x80,
Eldad Zack76f74bc2012-11-28 23:55:38 +01002071 }
2072 },
2073 /* MIDI */
2074 {
2075 .ifnum = -1 /* Interface = 4 */
2076 }
2077 }
2078 }
2079},
2080{
Matt Gruskine9a25e02013-02-09 12:56:35 -05002081 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2031),
2082 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2083 /* .vendor_name = "M-Audio", */
2084 /* .product_name = "Fast Track C600", */
2085 .ifnum = QUIRK_ANY_INTERFACE,
2086 .type = QUIRK_COMPOSITE,
2087 .data = &(const struct snd_usb_audio_quirk[]) {
2088 {
2089 .ifnum = 1,
2090 .type = QUIRK_AUDIO_STANDARD_MIXER,
2091 },
2092 /* Playback */
2093 {
2094 .ifnum = 2,
2095 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2096 .data = &(const struct audioformat) {
2097 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2098 .channels = 8,
2099 .iface = 2,
2100 .altsetting = 1,
2101 .altset_idx = 1,
2102 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2103 .endpoint = 0x01,
2104 .ep_attr = 0x09,
2105 .rates = SNDRV_PCM_RATE_44100 |
2106 SNDRV_PCM_RATE_48000 |
2107 SNDRV_PCM_RATE_88200 |
2108 SNDRV_PCM_RATE_96000,
2109 .rate_min = 44100,
2110 .rate_max = 96000,
2111 .nr_rates = 4,
2112 .rate_table = (unsigned int[]) {
2113 44100, 48000, 88200, 96000
2114 },
2115 .clock = 0x80,
2116 }
2117 },
2118 /* Capture */
2119 {
2120 .ifnum = 3,
2121 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2122 .data = &(const struct audioformat) {
2123 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2124 .channels = 6,
2125 .iface = 3,
2126 .altsetting = 1,
2127 .altset_idx = 1,
2128 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2129 .endpoint = 0x81,
2130 .ep_attr = 0x05,
2131 .rates = SNDRV_PCM_RATE_44100 |
2132 SNDRV_PCM_RATE_48000 |
2133 SNDRV_PCM_RATE_88200 |
2134 SNDRV_PCM_RATE_96000,
2135 .rate_min = 44100,
2136 .rate_max = 96000,
2137 .nr_rates = 4,
2138 .rate_table = (unsigned int[]) {
2139 44100, 48000, 88200, 96000
2140 },
2141 .clock = 0x80,
2142 }
2143 },
2144 /* MIDI */
2145 {
2146 .ifnum = -1 /* Interface = 4 */
2147 }
2148 }
2149 }
2150},
2151{
Daniel Mackc91d9cd2011-05-18 11:28:45 +02002152 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
Felix Homannfca5bca2010-03-25 11:29:14 +01002153 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2154 /* .vendor_name = "M-Audio", */
Clemens Ladisch65f04442010-09-02 12:58:25 +02002155 /* .product_name = "Fast Track Ultra", */
Felix Homannfca5bca2010-03-25 11:29:14 +01002156 .ifnum = QUIRK_ANY_INTERFACE,
2157 .type = QUIRK_COMPOSITE,
2158 .data = & (const struct snd_usb_audio_quirk[]) {
2159 {
2160 .ifnum = 0,
Daniel Mackd5a0bf62011-05-25 09:09:03 +02002161 .type = QUIRK_AUDIO_STANDARD_MIXER,
Felix Homannfca5bca2010-03-25 11:29:14 +01002162 },
2163 {
2164 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002165 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2166 .data = & (const struct audioformat) {
2167 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2168 .channels = 8,
2169 .iface = 1,
2170 .altsetting = 1,
2171 .altset_idx = 1,
2172 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2173 .endpoint = 0x01,
2174 .ep_attr = 0x09,
2175 .rates = SNDRV_PCM_RATE_44100 |
2176 SNDRV_PCM_RATE_48000 |
2177 SNDRV_PCM_RATE_88200 |
2178 SNDRV_PCM_RATE_96000,
2179 .rate_min = 44100,
2180 .rate_max = 96000,
2181 .nr_rates = 4,
2182 .rate_table = (unsigned int[]) {
2183 44100, 48000, 88200, 96000
2184 }
2185 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002186 },
2187 {
2188 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002189 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2190 .data = & (const struct audioformat) {
2191 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2192 .channels = 8,
2193 .iface = 2,
2194 .altsetting = 1,
2195 .altset_idx = 1,
2196 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2197 .endpoint = 0x81,
2198 .ep_attr = 0x05,
2199 .rates = SNDRV_PCM_RATE_44100 |
2200 SNDRV_PCM_RATE_48000 |
2201 SNDRV_PCM_RATE_88200 |
2202 SNDRV_PCM_RATE_96000,
2203 .rate_min = 44100,
2204 .rate_max = 96000,
2205 .nr_rates = 4,
2206 .rate_table = (unsigned int[]) {
2207 44100, 48000, 88200, 96000
2208 }
2209 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002210 },
2211 /* interface 3 (MIDI) is standard compliant */
2212 {
2213 .ifnum = -1
2214 }
2215 }
2216 }
2217},
2218{
Daniel Mackc91d9cd2011-05-18 11:28:45 +02002219 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
Felix Homannfca5bca2010-03-25 11:29:14 +01002220 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2221 /* .vendor_name = "M-Audio", */
2222 /* .product_name = "Fast Track Ultra 8R", */
2223 .ifnum = QUIRK_ANY_INTERFACE,
2224 .type = QUIRK_COMPOSITE,
2225 .data = & (const struct snd_usb_audio_quirk[]) {
2226 {
2227 .ifnum = 0,
Daniel Mackd5a0bf62011-05-25 09:09:03 +02002228 .type = QUIRK_AUDIO_STANDARD_MIXER,
Felix Homannfca5bca2010-03-25 11:29:14 +01002229 },
2230 {
2231 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002232 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2233 .data = & (const struct audioformat) {
2234 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2235 .channels = 8,
2236 .iface = 1,
2237 .altsetting = 1,
2238 .altset_idx = 1,
2239 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2240 .endpoint = 0x01,
2241 .ep_attr = 0x09,
2242 .rates = SNDRV_PCM_RATE_44100 |
2243 SNDRV_PCM_RATE_48000 |
2244 SNDRV_PCM_RATE_88200 |
2245 SNDRV_PCM_RATE_96000,
2246 .rate_min = 44100,
2247 .rate_max = 96000,
2248 .nr_rates = 4,
2249 .rate_table = (unsigned int[]) {
2250 44100, 48000, 88200, 96000
2251 }
2252 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002253 },
2254 {
2255 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02002256 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2257 .data = & (const struct audioformat) {
2258 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2259 .channels = 8,
2260 .iface = 2,
2261 .altsetting = 1,
2262 .altset_idx = 1,
2263 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2264 .endpoint = 0x81,
2265 .ep_attr = 0x05,
2266 .rates = SNDRV_PCM_RATE_44100 |
2267 SNDRV_PCM_RATE_48000 |
2268 SNDRV_PCM_RATE_88200 |
2269 SNDRV_PCM_RATE_96000,
2270 .rate_min = 44100,
2271 .rate_max = 96000,
2272 .nr_rates = 4,
2273 .rate_table = (unsigned int[]) {
2274 44100, 48000, 88200, 96000
2275 }
2276 }
Felix Homannfca5bca2010-03-25 11:29:14 +01002277 },
2278 /* interface 3 (MIDI) is standard compliant */
2279 {
2280 .ifnum = -1
2281 }
2282 }
2283 }
2284},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002285
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002286/* Casio devices */
2287{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01002288 USB_DEVICE(0x07cf, 0x6801),
2289 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2290 .vendor_name = "Casio",
2291 .product_name = "PL-40R",
2292 .ifnum = 0,
2293 .type = QUIRK_MIDI_YAMAHA
2294 }
2295},
2296{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002297 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002298 USB_DEVICE(0x07cf, 0x6802),
2299 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2300 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002301 .product_name = "Keyboard",
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002302 .ifnum = 0,
2303 .type = QUIRK_MIDI_YAMAHA
2304 }
2305},
2306
Linus Torvalds1da177e2005-04-16 15:20:36 -07002307/* Mark of the Unicorn devices */
2308{
2309 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02002310 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
2311 USB_DEVICE_ID_MATCH_PRODUCT |
2312 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
2313 .idVendor = 0x07fd,
2314 .idProduct = 0x0001,
2315 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002316 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002317 .vendor_name = "MOTU",
2318 .product_name = "Fastlane",
2319 .ifnum = QUIRK_ANY_INTERFACE,
2320 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002321 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002322 {
2323 .ifnum = 0,
Clemens Ladischc7f57212010-10-22 18:20:48 +02002324 .type = QUIRK_MIDI_RAW_BYTES
Linus Torvalds1da177e2005-04-16 15:20:36 -07002325 },
2326 {
2327 .ifnum = 1,
2328 .type = QUIRK_IGNORE_INTERFACE
2329 },
2330 {
2331 .ifnum = -1
2332 }
2333 }
2334 }
2335},
2336
Linus Torvalds1da177e2005-04-16 15:20:36 -07002337/* Emagic devices */
2338{
2339 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002340 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002341 .vendor_name = "Emagic",
Stefan Sauer861bee52019-06-10 11:51:46 +02002342 .product_name = "Unitor8",
Linus Torvalds1da177e2005-04-16 15:20:36 -07002343 .ifnum = 2,
2344 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002345 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002346 .out_cables = 0x80ff,
2347 .in_cables = 0x80ff
2348 }
2349 }
2350},
2351{
2352 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002353 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002354 .vendor_name = "Emagic",
2355 /* .product_name = "AMT8", */
2356 .ifnum = 2,
2357 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002358 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002359 .out_cables = 0x80ff,
2360 .in_cables = 0x80ff
2361 }
2362 }
2363},
2364{
2365 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002366 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002367 .vendor_name = "Emagic",
2368 /* .product_name = "MT4", */
2369 .ifnum = 2,
2370 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002371 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002372 .out_cables = 0x800f,
2373 .in_cables = 0x8003
2374 }
2375 }
2376},
2377
Daniel Mack56a9eb12011-05-18 11:28:42 +02002378/* KORG devices */
2379{
2380 USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
2381 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2382 .vendor_name = "KORG, Inc.",
2383 /* .product_name = "PANDORA PX5D", */
2384 .ifnum = 3,
2385 .type = QUIRK_MIDI_STANDARD_INTERFACE,
2386 }
2387},
2388
Sergiusz Urbaniak1bba1602011-12-05 20:27:46 +01002389{
2390 USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
2391 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2392 .vendor_name = "KORG, Inc.",
2393 /* .product_name = "ToneLab ST", */
2394 .ifnum = 3,
2395 .type = QUIRK_MIDI_STANDARD_INTERFACE,
2396 }
2397},
2398
Krzysztof Foltman4434ade2010-05-20 20:31:10 +01002399/* AKAI devices */
2400{
2401 USB_DEVICE(0x09e8, 0x0062),
2402 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2403 .vendor_name = "AKAI",
2404 .product_name = "MPD16",
2405 .ifnum = 0,
2406 .type = QUIRK_MIDI_AKAI,
2407 }
2408},
2409
Paul Bonsere9f49362015-01-07 23:34:16 -06002410{
2411 /* Akai MPC Element */
2412 USB_DEVICE(0x09e8, 0x0021),
2413 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2414 .ifnum = QUIRK_ANY_INTERFACE,
2415 .type = QUIRK_COMPOSITE,
2416 .data = & (const struct snd_usb_audio_quirk[]) {
2417 {
2418 .ifnum = 0,
2419 .type = QUIRK_IGNORE_INTERFACE
2420 },
2421 {
2422 .ifnum = 1,
2423 .type = QUIRK_MIDI_STANDARD_INTERFACE
2424 },
2425 {
2426 .ifnum = -1
2427 }
2428 }
2429 }
2430},
2431
Dominic Sacré0689a862015-06-30 17:41:33 +02002432/* Steinberg devices */
2433{
2434 /* Steinberg MI2 */
2435 USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x2040),
2436 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2437 .ifnum = QUIRK_ANY_INTERFACE,
2438 .type = QUIRK_COMPOSITE,
2439 .data = & (const struct snd_usb_audio_quirk[]) {
2440 {
2441 .ifnum = 0,
2442 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2443 },
2444 {
2445 .ifnum = 1,
2446 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2447 },
2448 {
2449 .ifnum = 2,
2450 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2451 },
2452 {
2453 .ifnum = 3,
2454 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2455 .data = &(const struct snd_usb_midi_endpoint_info) {
2456 .out_cables = 0x0001,
2457 .in_cables = 0x0001
2458 }
2459 },
2460 {
2461 .ifnum = -1
2462 }
2463 }
2464 }
2465},
2466{
2467 /* Steinberg MI4 */
2468 USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x4040),
2469 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2470 .ifnum = QUIRK_ANY_INTERFACE,
2471 .type = QUIRK_COMPOSITE,
2472 .data = & (const struct snd_usb_audio_quirk[]) {
2473 {
2474 .ifnum = 0,
2475 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2476 },
2477 {
2478 .ifnum = 1,
2479 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2480 },
2481 {
2482 .ifnum = 2,
2483 .type = QUIRK_AUDIO_STANDARD_INTERFACE
2484 },
2485 {
2486 .ifnum = 3,
2487 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2488 .data = &(const struct snd_usb_midi_endpoint_info) {
2489 .out_cables = 0x0001,
2490 .in_cables = 0x0001
2491 }
2492 },
2493 {
2494 .ifnum = -1
2495 }
2496 }
2497 }
2498},
2499
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002500/* TerraTec devices */
2501{
2502 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002503 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002504 .vendor_name = "TerraTec",
2505 .product_name = "PHASE 26",
2506 .ifnum = 3,
2507 .type = QUIRK_MIDI_STANDARD_INTERFACE
2508 }
2509},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002510{
2511 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002512 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002513 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07002514 .product_name = "PHASE 26",
2515 .ifnum = 3,
2516 .type = QUIRK_MIDI_STANDARD_INTERFACE
2517 }
2518},
Clemens Ladischb2b82292006-02-08 12:38:23 +01002519{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02002520 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
2521 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2522 .vendor_name = "TerraTec",
2523 .product_name = "PHASE 26",
2524 .ifnum = 3,
2525 .type = QUIRK_MIDI_STANDARD_INTERFACE
2526 }
2527},
2528{
Clemens Ladischb2b82292006-02-08 12:38:23 +01002529 USB_DEVICE(0x0ccd, 0x0035),
2530 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2531 .vendor_name = "Miditech",
2532 .product_name = "Play'n Roll",
2533 .ifnum = 0,
2534 .type = QUIRK_MIDI_CME
2535 }
2536},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002537
2538/* Novation EMS devices */
2539{
2540 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002541 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002542 .vendor_name = "Novation",
2543 .product_name = "ReMOTE Audio/XStation",
2544 .ifnum = 4,
2545 .type = QUIRK_MIDI_NOVATION
2546 }
2547},
2548{
2549 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002550 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002551 .vendor_name = "Novation",
2552 .product_name = "Speedio",
2553 .ifnum = 3,
2554 .type = QUIRK_MIDI_NOVATION
2555 }
2556},
2557{
Ricard Wanderlofdab99812015-10-16 13:38:33 +02002558 USB_DEVICE(0x1235, 0x000a),
2559 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2560 /* .vendor_name = "Novation", */
2561 /* .product_name = "Nocturn", */
2562 .ifnum = 0,
2563 .type = QUIRK_MIDI_RAW_BYTES
2564 }
2565},
2566{
Clemens Ladischc7f57212010-10-22 18:20:48 +02002567 USB_DEVICE(0x1235, 0x000e),
2568 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2569 /* .vendor_name = "Novation", */
2570 /* .product_name = "Launchpad", */
2571 .ifnum = 0,
2572 .type = QUIRK_MIDI_RAW_BYTES
2573 }
2574},
2575{
Daniel Mack358b7df2014-01-14 14:37:56 +01002576 USB_DEVICE(0x1235, 0x0010),
2577 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2578 .vendor_name = "Focusrite",
2579 .product_name = "Saffire 6 USB",
2580 .ifnum = QUIRK_ANY_INTERFACE,
2581 .type = QUIRK_COMPOSITE,
2582 .data = (const struct snd_usb_audio_quirk[]) {
2583 {
2584 .ifnum = 0,
Alexander Tsoy470757f2020-08-15 03:21:03 +03002585 .type = QUIRK_AUDIO_STANDARD_MIXER,
2586 },
2587 {
2588 .ifnum = 0,
Daniel Mack358b7df2014-01-14 14:37:56 +01002589 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2590 .data = &(const struct audioformat) {
2591 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2592 .channels = 4,
2593 .iface = 0,
2594 .altsetting = 1,
2595 .altset_idx = 1,
2596 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2597 .endpoint = 0x01,
2598 .ep_attr = USB_ENDPOINT_XFER_ISOC,
Alexander Tsoy470757f2020-08-15 03:21:03 +03002599 .datainterval = 1,
2600 .maxpacksize = 0x024c,
2601 .rates = SNDRV_PCM_RATE_44100 |
2602 SNDRV_PCM_RATE_48000,
2603 .rate_min = 44100,
2604 .rate_max = 48000,
2605 .nr_rates = 2,
2606 .rate_table = (unsigned int[]) {
2607 44100, 48000
2608 }
2609 }
2610 },
2611 {
2612 .ifnum = 0,
2613 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2614 .data = &(const struct audioformat) {
2615 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2616 .channels = 2,
2617 .iface = 0,
2618 .altsetting = 1,
2619 .altset_idx = 1,
2620 .attributes = 0,
2621 .endpoint = 0x82,
2622 .ep_attr = USB_ENDPOINT_XFER_ISOC,
2623 .datainterval = 1,
2624 .maxpacksize = 0x0126,
Daniel Mack358b7df2014-01-14 14:37:56 +01002625 .rates = SNDRV_PCM_RATE_44100 |
2626 SNDRV_PCM_RATE_48000,
2627 .rate_min = 44100,
2628 .rate_max = 48000,
2629 .nr_rates = 2,
2630 .rate_table = (unsigned int[]) {
2631 44100, 48000
2632 }
2633 }
2634 },
2635 {
2636 .ifnum = 1,
2637 .type = QUIRK_MIDI_RAW_BYTES
2638 },
2639 {
2640 .ifnum = -1
2641 }
2642 }
2643 }
2644},
2645{
Mark Hills5e212332013-03-17 11:07:53 +00002646 USB_DEVICE(0x1235, 0x0018),
2647 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2648 .vendor_name = "Novation",
2649 .product_name = "Twitch",
2650 .ifnum = QUIRK_ANY_INTERFACE,
2651 .type = QUIRK_COMPOSITE,
2652 .data = (const struct snd_usb_audio_quirk[]) {
2653 {
2654 .ifnum = 0,
2655 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2656 .data = & (const struct audioformat) {
2657 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2658 .channels = 4,
2659 .iface = 0,
2660 .altsetting = 1,
2661 .altset_idx = 1,
2662 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2663 .endpoint = 0x01,
2664 .ep_attr = USB_ENDPOINT_XFER_ISOC,
2665 .rates = SNDRV_PCM_RATE_44100 |
2666 SNDRV_PCM_RATE_48000,
2667 .rate_min = 44100,
2668 .rate_max = 48000,
2669 .nr_rates = 2,
2670 .rate_table = (unsigned int[]) {
2671 44100, 48000
2672 }
2673 }
2674 },
2675 {
2676 .ifnum = 1,
2677 .type = QUIRK_MIDI_RAW_BYTES
2678 },
2679 {
2680 .ifnum = -1
2681 }
2682 }
2683 }
2684},
2685{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002686 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002687 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002688 .vendor_name = "Novation",
2689 .product_name = "ReMOTE25",
2690 .ifnum = 0,
2691 .type = QUIRK_MIDI_NOVATION
2692 }
2693},
2694
Sebastien Alaiwand39e82d2010-02-16 08:55:08 +01002695/* Access Music devices */
2696{
2697 /* VirusTI Desktop */
2698 USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
2699 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2700 .ifnum = QUIRK_ANY_INTERFACE,
2701 .type = QUIRK_COMPOSITE,
2702 .data = &(const struct snd_usb_audio_quirk[]) {
2703 {
2704 .ifnum = 3,
2705 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2706 .data = &(const struct snd_usb_midi_endpoint_info) {
2707 .out_cables = 0x0003,
2708 .in_cables = 0x0003
2709 }
2710 },
2711 {
2712 .ifnum = 4,
2713 .type = QUIRK_IGNORE_INTERFACE
2714 },
2715 {
2716 .ifnum = -1
2717 }
2718 }
2719 }
2720},
2721
Daniel Mack54a8c502011-02-11 11:08:06 +00002722/* Native Instruments MK2 series */
2723{
Daniel Mack759e890f2011-05-18 11:28:41 +02002724 /* Komplete Audio 6 */
Daniel Mack9cdc3522011-04-11 17:56:32 +02002725 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2726 .idVendor = 0x17cc,
2727 .idProduct = 0x1000,
2728},
2729{
Daniel Mack54a8c502011-02-11 11:08:06 +00002730 /* Traktor Audio 6 */
2731 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2732 .idVendor = 0x17cc,
2733 .idProduct = 0x1010,
2734},
2735{
2736 /* Traktor Audio 10 */
2737 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2738 .idVendor = 0x17cc,
2739 .idProduct = 0x1020,
2740},
2741
Clemens Ladisch1ca8b202015-11-15 22:38:29 +01002742/* QinHeng devices */
2743{
2744 USB_DEVICE(0x1a86, 0x752d),
2745 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2746 .vendor_name = "QinHeng",
2747 .product_name = "CH345",
2748 .ifnum = 1,
2749 .type = QUIRK_MIDI_CH345
2750 }
2751},
2752
Miller Puckette02651d12011-08-04 12:25:56 -07002753/* KeithMcMillen Stringport */
2754{
2755 USB_DEVICE(0x1f38, 0x0001),
2756 .bInterfaceClass = USB_CLASS_AUDIO,
2757},
2758
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002759/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002760{
Clemens Ladischf38275f2005-07-25 16:17:29 +02002761 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002762 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002763 .vendor_name = "Miditech",
2764 .product_name = "Midistart-2",
2765 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002766 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002767 }
2768},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002769
2770/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002771{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002772 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002773 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002774 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002775 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002776 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002777 }
2778},
2779
Mauro Carvalho Chehab5d1f00a2014-10-30 07:53:04 -03002780/*
2781 * Auvitek au0828 devices with audio interface.
2782 * This should be kept in sync with drivers/media/usb/au0828/au0828-cards.c
2783 * Please notice that some drivers are DVB only, and don't need to be
2784 * here. That's the case, for example, of DVICO_FUSIONHDTV7.
2785 */
2786
2787#define AU0828_DEVICE(vid, pid, vname, pname) { \
Takashi Iwaifa106352020-08-17 10:21:39 +02002788 USB_AUDIO_DEVICE(vid, pid), \
Mauro Carvalho Chehab5d1f00a2014-10-30 07:53:04 -03002789 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { \
2790 .vendor_name = vname, \
2791 .product_name = pname, \
2792 .ifnum = QUIRK_ANY_INTERFACE, \
2793 .type = QUIRK_AUDIO_ALIGN_TRANSFER, \
Shuah Khan66354f12019-04-01 20:40:22 -04002794 .shares_media_device = 1, \
Mauro Carvalho Chehab5d1f00a2014-10-30 07:53:04 -03002795 } \
2796}
2797
2798AU0828_DEVICE(0x2040, 0x7200, "Hauppauge", "HVR-950Q"),
Mauro Carvalho Chehab678fa122014-10-30 07:53:05 -03002799AU0828_DEVICE(0x2040, 0x7240, "Hauppauge", "HVR-850"),
Mauro Carvalho Chehab5d1f00a2014-10-30 07:53:04 -03002800AU0828_DEVICE(0x2040, 0x7210, "Hauppauge", "HVR-950Q"),
2801AU0828_DEVICE(0x2040, 0x7217, "Hauppauge", "HVR-950Q"),
2802AU0828_DEVICE(0x2040, 0x721b, "Hauppauge", "HVR-950Q"),
2803AU0828_DEVICE(0x2040, 0x721e, "Hauppauge", "HVR-950Q"),
2804AU0828_DEVICE(0x2040, 0x721f, "Hauppauge", "HVR-950Q"),
Mauro Carvalho Chehab5d1f00a2014-10-30 07:53:04 -03002805AU0828_DEVICE(0x2040, 0x7280, "Hauppauge", "HVR-950Q"),
2806AU0828_DEVICE(0x0fd9, 0x0008, "Hauppauge", "HVR-950Q"),
Mauro Carvalho Chehab678fa122014-10-30 07:53:05 -03002807AU0828_DEVICE(0x2040, 0x7201, "Hauppauge", "HVR-950Q-MXL"),
2808AU0828_DEVICE(0x2040, 0x7211, "Hauppauge", "HVR-950Q-MXL"),
2809AU0828_DEVICE(0x2040, 0x7281, "Hauppauge", "HVR-950Q-MXL"),
2810AU0828_DEVICE(0x05e1, 0x0480, "Hauppauge", "Woodbury"),
2811AU0828_DEVICE(0x2040, 0x8200, "Hauppauge", "Woodbury"),
2812AU0828_DEVICE(0x2040, 0x7260, "Hauppauge", "HVR-950Q"),
2813AU0828_DEVICE(0x2040, 0x7213, "Hauppauge", "HVR-950Q"),
2814AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"),
John S. Gruber52a7a582009-12-27 12:19:59 -05002815
Marcel Haslerbdc34782016-10-27 00:42:27 +02002816/* Syntek STK1160 */
2817{
Takashi Iwaifa106352020-08-17 10:21:39 +02002818 USB_AUDIO_DEVICE(0x05e1, 0x0408),
Marcel Haslerbdc34782016-10-27 00:42:27 +02002819 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2820 .vendor_name = "Syntek",
2821 .product_name = "STK1160",
2822 .ifnum = QUIRK_ANY_INTERFACE,
2823 .type = QUIRK_AUDIO_ALIGN_TRANSFER
2824 }
2825},
2826
Chris J Arges40717382010-02-17 12:12:52 -06002827/* Digidesign Mbox */
2828{
2829 /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
2830 USB_DEVICE(0x0dba, 0x1000),
2831 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2832 .vendor_name = "Digidesign",
2833 .product_name = "MBox",
2834 .ifnum = QUIRK_ANY_INTERFACE,
2835 .type = QUIRK_COMPOSITE,
2836 .data = (const struct snd_usb_audio_quirk[]){
2837 {
2838 .ifnum = 0,
Damien Zammitc63fcb92014-11-12 01:09:55 +11002839 .type = QUIRK_AUDIO_STANDARD_MIXER,
Chris J Arges40717382010-02-17 12:12:52 -06002840 },
2841 {
2842 .ifnum = 1,
2843 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2844 .data = &(const struct audioformat) {
Clemens Ladisch29088fe2010-03-04 19:46:16 +01002845 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
Chris J Arges40717382010-02-17 12:12:52 -06002846 .channels = 2,
2847 .iface = 1,
2848 .altsetting = 1,
2849 .altset_idx = 1,
Damien Zammitc63fcb92014-11-12 01:09:55 +11002850 .attributes = 0x4,
Chris J Arges40717382010-02-17 12:12:52 -06002851 .endpoint = 0x02,
Damien Zammitc63fcb92014-11-12 01:09:55 +11002852 .ep_attr = USB_ENDPOINT_XFER_ISOC |
2853 USB_ENDPOINT_SYNC_SYNC,
2854 .maxpacksize = 0x130,
2855 .rates = SNDRV_PCM_RATE_48000,
2856 .rate_min = 48000,
Chris J Arges40717382010-02-17 12:12:52 -06002857 .rate_max = 48000,
Damien Zammitc63fcb92014-11-12 01:09:55 +11002858 .nr_rates = 1,
Chris J Arges40717382010-02-17 12:12:52 -06002859 .rate_table = (unsigned int[]) {
Damien Zammitc63fcb92014-11-12 01:09:55 +11002860 48000
2861 }
2862 }
2863 },
2864 {
2865 .ifnum = 1,
2866 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2867 .data = &(const struct audioformat) {
2868 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
2869 .channels = 2,
2870 .iface = 1,
2871 .altsetting = 1,
2872 .altset_idx = 1,
2873 .attributes = 0x4,
2874 .endpoint = 0x81,
2875 .ep_attr = USB_ENDPOINT_XFER_ISOC |
2876 USB_ENDPOINT_SYNC_ASYNC,
2877 .maxpacksize = 0x130,
2878 .rates = SNDRV_PCM_RATE_48000,
2879 .rate_min = 48000,
2880 .rate_max = 48000,
2881 .nr_rates = 1,
2882 .rate_table = (unsigned int[]) {
2883 48000
Chris J Arges40717382010-02-17 12:12:52 -06002884 }
2885 }
2886 },
2887 {
2888 .ifnum = -1
2889 }
2890 }
Chris J Arges40717382010-02-17 12:12:52 -06002891 }
2892},
Damien Zammitcb998642012-12-19 11:27:22 +01002893
2894/* DIGIDESIGN MBOX 2 */
2895{
2896 USB_DEVICE(0x0dba, 0x3000),
2897 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2898 .vendor_name = "Digidesign",
2899 .product_name = "Mbox 2",
2900 .ifnum = QUIRK_ANY_INTERFACE,
2901 .type = QUIRK_COMPOSITE,
2902 .data = (const struct snd_usb_audio_quirk[]) {
2903 {
2904 .ifnum = 0,
2905 .type = QUIRK_IGNORE_INTERFACE
2906 },
2907 {
2908 .ifnum = 1,
2909 .type = QUIRK_IGNORE_INTERFACE
2910 },
2911 {
2912 .ifnum = 2,
2913 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2914 .data = &(const struct audioformat) {
2915 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
2916 .channels = 2,
2917 .iface = 2,
2918 .altsetting = 2,
2919 .altset_idx = 1,
2920 .attributes = 0x00,
2921 .endpoint = 0x03,
2922 .ep_attr = USB_ENDPOINT_SYNC_ASYNC,
Damien Zammitcb998642012-12-19 11:27:22 +01002923 .rates = SNDRV_PCM_RATE_48000,
2924 .rate_min = 48000,
2925 .rate_max = 48000,
2926 .nr_rates = 1,
2927 .rate_table = (unsigned int[]) {
2928 48000
2929 }
2930 }
2931 },
2932 {
2933 .ifnum = 3,
2934 .type = QUIRK_IGNORE_INTERFACE
2935 },
2936 {
2937 .ifnum = 4,
2938 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2939 .data = &(const struct audioformat) {
2940 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
2941 .channels = 2,
2942 .iface = 4,
2943 .altsetting = 2,
2944 .altset_idx = 1,
2945 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2946 .endpoint = 0x85,
2947 .ep_attr = USB_ENDPOINT_SYNC_SYNC,
Damien Zammitcb998642012-12-19 11:27:22 +01002948 .rates = SNDRV_PCM_RATE_48000,
2949 .rate_min = 48000,
2950 .rate_max = 48000,
2951 .nr_rates = 1,
2952 .rate_table = (unsigned int[]) {
2953 48000
2954 }
2955 }
2956 },
2957 {
2958 .ifnum = 5,
2959 .type = QUIRK_IGNORE_INTERFACE
2960 },
2961 {
2962 .ifnum = 6,
Damien Zammitb7b435e2013-01-04 09:51:44 +01002963 .type = QUIRK_MIDI_MIDIMAN,
Damien Zammitcb998642012-12-19 11:27:22 +01002964 .data = &(const struct snd_usb_midi_endpoint_info) {
2965 .out_ep = 0x02,
2966 .out_cables = 0x0001,
2967 .in_ep = 0x81,
2968 .in_interval = 0x01,
2969 .in_cables = 0x0001
2970 }
2971 },
2972 {
2973 .ifnum = -1
2974 }
2975 }
2976 }
2977},
Oto Petřík613769f2012-09-24 14:25:04 +02002978{
2979 /* Tascam US122 MKII - playback-only support */
2980 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
2981 .idVendor = 0x0644,
2982 .idProduct = 0x8021,
2983 .bInterfaceClass = USB_CLASS_AUDIO,
2984 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2985 .vendor_name = "TASCAM",
2986 .product_name = "US122 MKII",
2987 .ifnum = QUIRK_ANY_INTERFACE,
2988 .type = QUIRK_COMPOSITE,
2989 .data = (const struct snd_usb_audio_quirk[]) {
2990 {
2991 .ifnum = 0,
2992 .type = QUIRK_IGNORE_INTERFACE
2993 },
2994 {
2995 .ifnum = 1,
2996 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2997 .data = &(const struct audioformat) {
2998 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
2999 .channels = 2,
3000 .iface = 1,
3001 .altsetting = 1,
3002 .altset_idx = 1,
3003 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
3004 .endpoint = 0x02,
3005 .ep_attr = USB_ENDPOINT_XFER_ISOC,
3006 .rates = SNDRV_PCM_RATE_44100 |
3007 SNDRV_PCM_RATE_48000 |
3008 SNDRV_PCM_RATE_88200 |
3009 SNDRV_PCM_RATE_96000,
3010 .rate_min = 44100,
3011 .rate_max = 96000,
3012 .nr_rates = 4,
3013 .rate_table = (unsigned int[]) {
3014 44100, 48000, 88200, 96000
3015 }
3016 }
3017 },
3018 {
3019 .ifnum = -1
3020 }
3021 }
3022 }
3023},
Chris J Arges40717382010-02-17 12:12:52 -06003024
Marko Friedemannc05fce52012-09-03 10:12:40 +02003025/* Microsoft XboxLive Headset/Xbox Communicator */
3026{
3027 USB_DEVICE(0x045e, 0x0283),
3028 .bInterfaceClass = USB_CLASS_PER_INTERFACE,
3029 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3030 .vendor_name = "Microsoft",
3031 .product_name = "XboxLive Headset/Xbox Communicator",
3032 .ifnum = QUIRK_ANY_INTERFACE,
3033 .type = QUIRK_COMPOSITE,
3034 .data = &(const struct snd_usb_audio_quirk[]) {
3035 {
3036 /* playback */
3037 .ifnum = 0,
3038 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3039 .data = &(const struct audioformat) {
3040 .formats = SNDRV_PCM_FMTBIT_S16_LE,
3041 .channels = 1,
3042 .iface = 0,
3043 .altsetting = 0,
3044 .altset_idx = 0,
3045 .attributes = 0,
3046 .endpoint = 0x04,
3047 .ep_attr = 0x05,
3048 .rates = SNDRV_PCM_RATE_CONTINUOUS,
3049 .rate_min = 22050,
3050 .rate_max = 22050
3051 }
3052 },
3053 {
3054 /* capture */
3055 .ifnum = 1,
3056 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3057 .data = &(const struct audioformat) {
3058 .formats = SNDRV_PCM_FMTBIT_S16_LE,
3059 .channels = 1,
3060 .iface = 1,
3061 .altsetting = 0,
3062 .altset_idx = 0,
3063 .attributes = 0,
3064 .endpoint = 0x85,
3065 .ep_attr = 0x05,
3066 .rates = SNDRV_PCM_RATE_CONTINUOUS,
3067 .rate_min = 16000,
3068 .rate_max = 16000
3069 }
3070 },
3071 {
3072 .ifnum = -1
3073 }
3074 }
3075 }
3076},
3077
Didier Villevaloisc9024662012-10-21 18:29:12 +02003078/* Reloop Play */
3079{
3080 USB_DEVICE(0x200c, 0x100b),
3081 .bInterfaceClass = USB_CLASS_PER_INTERFACE,
3082 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3083 .ifnum = QUIRK_ANY_INTERFACE,
3084 .type = QUIRK_COMPOSITE,
3085 .data = &(const struct snd_usb_audio_quirk[]) {
3086 {
3087 .ifnum = 0,
3088 .type = QUIRK_AUDIO_STANDARD_MIXER,
3089 },
3090 {
3091 .ifnum = 1,
3092 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3093 .data = &(const struct audioformat) {
3094 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
3095 .channels = 4,
3096 .iface = 1,
3097 .altsetting = 1,
3098 .altset_idx = 1,
3099 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
3100 .endpoint = 0x01,
3101 .ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
3102 .rates = SNDRV_PCM_RATE_44100 |
3103 SNDRV_PCM_RATE_48000,
3104 .rate_min = 44100,
3105 .rate_max = 48000,
3106 .nr_rates = 2,
3107 .rate_table = (unsigned int[]) {
3108 44100, 48000
3109 }
3110 }
3111 },
3112 {
3113 .ifnum = -1
3114 }
3115 }
3116 }
3117},
3118
Clemens Ladischf38275f2005-07-25 16:17:29 +02003119{
Linus Torvalds1da177e2005-04-16 15:20:36 -07003120 /*
Panu Matilainendacacb02014-11-30 18:45:40 +02003121 * ZOOM R16/24 in audio interface mode.
Ricard Wanderlofe0570442015-10-19 08:52:53 +02003122 * Playback requires an extra four byte LE length indicator
3123 * at the start of each isochronous packet. This quirk is
3124 * enabled in create_standard_audio_quirk().
Panu Matilainendacacb02014-11-30 18:45:40 +02003125 */
3126 USB_DEVICE(0x1686, 0x00dd),
3127 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
3128 .ifnum = QUIRK_ANY_INTERFACE,
3129 .type = QUIRK_COMPOSITE,
3130 .data = (const struct snd_usb_audio_quirk[]) {
3131 {
Panu Matilainendacacb02014-11-30 18:45:40 +02003132 /* Playback */
3133 .ifnum = 1,
Ricard Wanderlofe0570442015-10-19 08:52:53 +02003134 .type = QUIRK_AUDIO_STANDARD_INTERFACE,
Panu Matilainendacacb02014-11-30 18:45:40 +02003135 },
3136 {
3137 /* Capture */
3138 .ifnum = 2,
3139 .type = QUIRK_AUDIO_STANDARD_INTERFACE,
3140 },
3141 {
3142 /* Midi */
3143 .ifnum = 3,
3144 .type = QUIRK_MIDI_STANDARD_INTERFACE
3145 },
3146 {
3147 .ifnum = -1
3148 },
3149 }
3150 }
3151},
3152
3153{
3154 /*
Linus Torvalds1da177e2005-04-16 15:20:36 -07003155 * Some USB MIDI devices don't have an audio control interface,
3156 * so we have to grab MIDI streaming interfaces here.
3157 */
3158 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
3159 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
3160 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01003161 .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01003162 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07003163 .ifnum = QUIRK_ANY_INTERFACE,
3164 .type = QUIRK_MIDI_STANDARD_INTERFACE
3165 }
3166},
3167
Takashi Iwai5ebf6b12018-06-11 22:34:11 +02003168/* disabled due to regression for other devices;
3169 * see https://bugzilla.kernel.org/show_bug.cgi?id=199905
3170 */
3171#if 0
Martin Peres33193dc2018-01-14 18:05:53 +02003172{
3173 /*
3174 * Nura's first gen headphones use Cambridge Silicon Radio's vendor
3175 * ID, but it looks like the product ID actually is only for Nura.
3176 * The capture interface does not work at all (even on Windows),
3177 * and only the 48 kHz sample rate works for the playback interface.
3178 */
3179 USB_DEVICE(0x0a12, 0x1243),
3180 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3181 .ifnum = QUIRK_ANY_INTERFACE,
3182 .type = QUIRK_COMPOSITE,
3183 .data = (const struct snd_usb_audio_quirk[]) {
3184 {
3185 .ifnum = 0,
3186 .type = QUIRK_AUDIO_STANDARD_MIXER,
3187 },
3188 /* Capture */
3189 {
3190 .ifnum = 1,
3191 .type = QUIRK_IGNORE_INTERFACE,
3192 },
3193 /* Playback */
3194 {
3195 .ifnum = 2,
3196 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3197 .data = &(const struct audioformat) {
3198 .formats = SNDRV_PCM_FMTBIT_S16_LE,
3199 .channels = 2,
3200 .iface = 2,
3201 .altsetting = 1,
3202 .altset_idx = 1,
3203 .attributes = UAC_EP_CS_ATTR_FILL_MAX |
3204 UAC_EP_CS_ATTR_SAMPLE_RATE,
3205 .endpoint = 0x03,
3206 .ep_attr = USB_ENDPOINT_XFER_ISOC,
3207 .rates = SNDRV_PCM_RATE_48000,
3208 .rate_min = 48000,
3209 .rate_max = 48000,
3210 .nr_rates = 1,
3211 .rate_table = (unsigned int[]) {
3212 48000
3213 }
3214 }
3215 },
Hui Pengcbb2ebf2018-12-25 18:11:52 -05003216 {
3217 .ifnum = -1
3218 },
Martin Peres33193dc2018-01-14 18:05:53 +02003219 }
3220 }
3221},
Takashi Iwai5ebf6b12018-06-11 22:34:11 +02003222#endif /* disabled */
Martin Peres33193dc2018-01-14 18:05:53 +02003223
Erik Veijola240a8af2018-02-23 14:06:52 +02003224{
3225 /*
3226 * Bower's & Wilkins PX headphones only support the 48 kHz sample rate
3227 * even though it advertises more. The capture interface doesn't work
3228 * even on windows.
3229 */
3230 USB_DEVICE(0x19b5, 0x0021),
3231 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3232 .ifnum = QUIRK_ANY_INTERFACE,
3233 .type = QUIRK_COMPOSITE,
3234 .data = (const struct snd_usb_audio_quirk[]) {
3235 {
3236 .ifnum = 0,
3237 .type = QUIRK_AUDIO_STANDARD_MIXER,
3238 },
Erik Veijola240a8af2018-02-23 14:06:52 +02003239 /* Playback */
3240 {
Nicolas Huamanc369c8d2018-10-04 16:42:05 +02003241 .ifnum = 1,
Erik Veijola240a8af2018-02-23 14:06:52 +02003242 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3243 .data = &(const struct audioformat) {
3244 .formats = SNDRV_PCM_FMTBIT_S16_LE,
3245 .channels = 2,
Nicolas Huamanc369c8d2018-10-04 16:42:05 +02003246 .iface = 1,
Erik Veijola240a8af2018-02-23 14:06:52 +02003247 .altsetting = 1,
3248 .altset_idx = 1,
3249 .attributes = UAC_EP_CS_ATTR_FILL_MAX |
3250 UAC_EP_CS_ATTR_SAMPLE_RATE,
3251 .endpoint = 0x03,
3252 .ep_attr = USB_ENDPOINT_XFER_ISOC,
3253 .rates = SNDRV_PCM_RATE_48000,
3254 .rate_min = 48000,
3255 .rate_max = 48000,
3256 .nr_rates = 1,
3257 .rate_table = (unsigned int[]) {
3258 48000
3259 }
3260 }
3261 },
Hui Pengcbb2ebf2018-12-25 18:11:52 -05003262 {
3263 .ifnum = -1
3264 },
Erik Veijola240a8af2018-02-23 14:06:52 +02003265 }
3266 }
3267},
Hui Wang8159a6a2018-11-28 17:11:26 +08003268/* Dell WD19 Dock */
3269{
3270 USB_DEVICE(0x0bda, 0x402e),
3271 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Hui Wang92adc962019-12-18 21:26:50 +08003272 .ifnum = QUIRK_ANY_INTERFACE,
3273 .type = QUIRK_SETUP_FMT_AFTER_RESUME
Hui Wang8159a6a2018-11-28 17:11:26 +08003274 }
3275},
Manuel Reinhardta6340902019-02-28 20:34:04 +01003276/* MOTU Microbook II */
3277{
Alexander Tsoy2edb84e2020-02-29 18:18:15 +03003278 USB_DEVICE_VENDOR_SPEC(0x07fd, 0x0004),
Manuel Reinhardta6340902019-02-28 20:34:04 +01003279 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3280 .vendor_name = "MOTU",
3281 .product_name = "MicroBookII",
3282 .ifnum = QUIRK_ANY_INTERFACE,
3283 .type = QUIRK_COMPOSITE,
3284 .data = (const struct snd_usb_audio_quirk[]) {
3285 {
3286 .ifnum = 0,
3287 .type = QUIRK_AUDIO_STANDARD_MIXER,
3288 },
3289 {
3290 .ifnum = 0,
3291 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3292 .data = &(const struct audioformat) {
3293 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
3294 .channels = 6,
3295 .iface = 0,
3296 .altsetting = 1,
3297 .altset_idx = 1,
3298 .attributes = 0,
3299 .endpoint = 0x84,
3300 .rates = SNDRV_PCM_RATE_96000,
3301 .ep_attr = USB_ENDPOINT_XFER_ISOC |
3302 USB_ENDPOINT_SYNC_ASYNC,
3303 .rate_min = 96000,
3304 .rate_max = 96000,
3305 .nr_rates = 1,
3306 .maxpacksize = 0x00d8,
3307 .rate_table = (unsigned int[]) {
3308 96000
3309 }
3310 }
3311 },
3312 {
3313 .ifnum = 0,
3314 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3315 .data = &(const struct audioformat) {
3316 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
3317 .channels = 8,
3318 .iface = 0,
3319 .altsetting = 1,
3320 .altset_idx = 1,
3321 .attributes = 0,
3322 .endpoint = 0x03,
3323 .rates = SNDRV_PCM_RATE_96000,
3324 .ep_attr = USB_ENDPOINT_XFER_ISOC |
3325 USB_ENDPOINT_SYNC_ASYNC,
3326 .rate_min = 96000,
3327 .rate_max = 96000,
3328 .nr_rates = 1,
3329 .maxpacksize = 0x0120,
3330 .rate_table = (unsigned int[]) {
3331 96000
3332 }
3333 }
3334 },
3335 {
3336 .ifnum = -1
3337 }
3338 }
3339 }
3340},
Ard van Breemen118b28062019-08-02 13:52:15 +02003341{
3342 /*
3343 * PIONEER DJ DDJ-SX3
3344 * PCM is 12 channels out, 10 channels in @ 44.1 fixed
3345 * interface 0, vendor class alt setting 1 for endpoints 5 and 0x86
3346 * The feedback for the output is the input.
3347 */
3348 USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0023),
3349 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3350 .ifnum = QUIRK_ANY_INTERFACE,
3351 .type = QUIRK_COMPOSITE,
3352 .data = (const struct snd_usb_audio_quirk[]) {
3353 {
3354 .ifnum = 0,
3355 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3356 .data = &(const struct audioformat) {
3357 .formats = SNDRV_PCM_FMTBIT_S32_LE,
3358 .channels = 12,
3359 .iface = 0,
3360 .altsetting = 1,
3361 .altset_idx = 1,
3362 .endpoint = 0x05,
3363 .ep_attr = USB_ENDPOINT_XFER_ISOC|
3364 USB_ENDPOINT_SYNC_ASYNC,
3365 .rates = SNDRV_PCM_RATE_44100,
3366 .rate_min = 44100,
3367 .rate_max = 44100,
3368 .nr_rates = 1,
3369 .rate_table = (unsigned int[]) { 44100 }
3370 }
3371 },
3372 {
3373 .ifnum = 0,
3374 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3375 .data = &(const struct audioformat) {
3376 .formats = SNDRV_PCM_FMTBIT_S32_LE,
3377 .channels = 10,
3378 .iface = 0,
3379 .altsetting = 1,
3380 .altset_idx = 1,
3381 .endpoint = 0x86,
3382 .ep_attr = USB_ENDPOINT_XFER_ISOC|
3383 USB_ENDPOINT_SYNC_ASYNC|
3384 USB_ENDPOINT_USAGE_IMPLICIT_FB,
3385 .rates = SNDRV_PCM_RATE_44100,
3386 .rate_min = 44100,
3387 .rate_max = 44100,
3388 .nr_rates = 1,
3389 .rate_table = (unsigned int[]) { 44100 }
3390 }
3391 },
3392 {
3393 .ifnum = -1
3394 }
3395 }
3396 }
3397},
František Kučera73d8c942020-04-01 11:59:07 +02003398{
3399 /*
3400 * Pioneer DJ DJM-250MK2
3401 * PCM is 8 channels out @ 48 fixed (endpoints 0x01).
3402 * The output from computer to the mixer is usable.
3403 *
3404 * The input (phono or line to computer) is not working.
3405 * It should be at endpoint 0x82 and probably also 8 channels,
3406 * but it seems that it works only with Pioneer proprietary software.
3407 * Even on officially supported OS, the Audacity was unable to record
3408 * and Mixxx to recognize the control vinyls.
3409 */
3410 USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0017),
3411 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3412 .ifnum = QUIRK_ANY_INTERFACE,
3413 .type = QUIRK_COMPOSITE,
3414 .data = (const struct snd_usb_audio_quirk[]) {
3415 {
3416 .ifnum = 0,
3417 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3418 .data = &(const struct audioformat) {
3419 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
3420 .channels = 8, // outputs
3421 .iface = 0,
3422 .altsetting = 1,
3423 .altset_idx = 1,
3424 .endpoint = 0x01,
3425 .ep_attr = USB_ENDPOINT_XFER_ISOC|
3426 USB_ENDPOINT_SYNC_ASYNC,
3427 .rates = SNDRV_PCM_RATE_48000,
3428 .rate_min = 48000,
3429 .rate_max = 48000,
3430 .nr_rates = 1,
3431 .rate_table = (unsigned int[]) { 48000 }
3432 }
3433 },
3434 {
3435 .ifnum = -1
3436 }
3437 }
3438 }
3439},
Hector Martin6e859612020-08-10 17:25:02 +09003440{
3441 /*
3442 * PIONEER DJ DDJ-RB
3443 * PCM is 4 channels out, 2 dummy channels in @ 44.1 fixed
3444 * The feedback for the output is the dummy input.
3445 */
3446 USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000e),
3447 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3448 .ifnum = QUIRK_ANY_INTERFACE,
3449 .type = QUIRK_COMPOSITE,
3450 .data = (const struct snd_usb_audio_quirk[]) {
3451 {
3452 .ifnum = 0,
3453 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3454 .data = &(const struct audioformat) {
3455 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
3456 .channels = 4,
3457 .iface = 0,
3458 .altsetting = 1,
3459 .altset_idx = 1,
3460 .endpoint = 0x01,
3461 .ep_attr = USB_ENDPOINT_XFER_ISOC|
3462 USB_ENDPOINT_SYNC_ASYNC,
3463 .rates = SNDRV_PCM_RATE_44100,
3464 .rate_min = 44100,
3465 .rate_max = 44100,
3466 .nr_rates = 1,
3467 .rate_table = (unsigned int[]) { 44100 }
3468 }
3469 },
3470 {
3471 .ifnum = 0,
3472 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3473 .data = &(const struct audioformat) {
3474 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
3475 .channels = 2,
3476 .iface = 0,
3477 .altsetting = 1,
3478 .altset_idx = 1,
3479 .endpoint = 0x82,
3480 .ep_attr = USB_ENDPOINT_XFER_ISOC|
3481 USB_ENDPOINT_SYNC_ASYNC|
3482 USB_ENDPOINT_USAGE_IMPLICIT_FB,
3483 .rates = SNDRV_PCM_RATE_44100,
3484 .rate_min = 44100,
3485 .rate_max = 44100,
3486 .nr_rates = 1,
3487 .rate_table = (unsigned int[]) { 44100 }
3488 }
3489 },
3490 {
3491 .ifnum = -1
3492 }
3493 }
3494 }
3495},
Erik Veijola240a8af2018-02-23 14:06:52 +02003496
Dmitry Panchenko7fccfec2020-06-01 13:22:24 +03003497{
3498 /*
3499 * Pioneer DJ DJM-900NXS2
3500 * 10 channels playback & 12 channels capture @ 44.1/48/96kHz S24LE
3501 */
3502 USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000a),
3503 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3504 .ifnum = QUIRK_ANY_INTERFACE,
3505 .type = QUIRK_COMPOSITE,
3506 .data = (const struct snd_usb_audio_quirk[]) {
3507 {
3508 .ifnum = 0,
3509 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3510 .data = &(const struct audioformat) {
3511 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
3512 .channels = 10,
3513 .iface = 0,
3514 .altsetting = 1,
3515 .altset_idx = 1,
3516 .endpoint = 0x01,
3517 .ep_attr = USB_ENDPOINT_XFER_ISOC|
3518 USB_ENDPOINT_SYNC_ASYNC,
3519 .rates = SNDRV_PCM_RATE_44100|
3520 SNDRV_PCM_RATE_48000|
3521 SNDRV_PCM_RATE_96000,
3522 .rate_min = 44100,
3523 .rate_max = 96000,
3524 .nr_rates = 3,
3525 .rate_table = (unsigned int[]) {
3526 44100, 48000, 96000
3527 }
3528 }
3529 },
3530 {
3531 .ifnum = 0,
3532 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3533 .data = &(const struct audioformat) {
3534 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
3535 .channels = 12,
3536 .iface = 0,
3537 .altsetting = 1,
3538 .altset_idx = 1,
3539 .endpoint = 0x82,
3540 .ep_attr = USB_ENDPOINT_XFER_ISOC|
3541 USB_ENDPOINT_SYNC_ASYNC|
3542 USB_ENDPOINT_USAGE_IMPLICIT_FB,
3543 .rates = SNDRV_PCM_RATE_44100|
3544 SNDRV_PCM_RATE_48000|
3545 SNDRV_PCM_RATE_96000,
3546 .rate_min = 44100,
3547 .rate_max = 96000,
3548 .nr_rates = 3,
3549 .rate_table = (unsigned int[]) {
3550 44100, 48000, 96000
3551 }
3552 }
3553 },
3554 {
3555 .ifnum = -1
3556 }
3557 }
3558 }
3559},
Takashi Iwai7f5ad9c2020-05-26 10:28:10 +02003560
Hector Martine337bf12020-07-02 16:14:33 +09003561/*
3562 * MacroSilicon MS2109 based HDMI capture cards
3563 *
3564 * These claim 96kHz 1ch in the descriptors, but are actually 48kHz 2ch.
3565 * They also need QUIRK_AUDIO_ALIGN_TRANSFER, which makes one wonder if
3566 * they pretend to be 96kHz mono as a workaround for stereo being broken
3567 * by that...
3568 *
Hector Martin74a2a7de2020-08-16 17:44:31 +09003569 * They also have an issue with initial stream alignment that causes the
3570 * channels to be swapped and out of phase, which is dealt with in quirks.c.
Hector Martine337bf12020-07-02 16:14:33 +09003571 */
3572{
Takashi Iwaifa106352020-08-17 10:21:39 +02003573 USB_AUDIO_DEVICE(0x534d, 0x2109),
Hector Martine337bf12020-07-02 16:14:33 +09003574 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
3575 .vendor_name = "MacroSilicon",
3576 .product_name = "MS2109",
3577 .ifnum = QUIRK_ANY_INTERFACE,
3578 .type = QUIRK_COMPOSITE,
3579 .data = &(const struct snd_usb_audio_quirk[]) {
3580 {
3581 .ifnum = 2,
3582 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
3583 },
3584 {
3585 .ifnum = 2,
3586 .type = QUIRK_AUDIO_STANDARD_MIXER,
3587 },
3588 {
3589 .ifnum = 3,
3590 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
3591 .data = &(const struct audioformat) {
3592 .formats = SNDRV_PCM_FMTBIT_S16_LE,
3593 .channels = 2,
3594 .iface = 3,
3595 .altsetting = 1,
3596 .altset_idx = 1,
3597 .attributes = 0,
3598 .endpoint = 0x82,
3599 .ep_attr = USB_ENDPOINT_XFER_ISOC |
3600 USB_ENDPOINT_SYNC_ASYNC,
3601 .rates = SNDRV_PCM_RATE_CONTINUOUS,
3602 .rate_min = 48000,
3603 .rate_max = 48000,
3604 }
3605 },
3606 {
3607 .ifnum = -1
3608 }
3609 }
3610 }
3611},
3612
Linus Torvalds1da177e2005-04-16 15:20:36 -07003613#undef USB_DEVICE_VENDOR_SPEC
Takashi Iwaifa106352020-08-17 10:21:39 +02003614#undef USB_AUDIO_DEVICE