blob: 838b81b74fd7799c378524303d557a83f9d06620 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * ALSA USB Audio Driver
3 *
4 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
5 * Clemens Ladisch <clemens@ladisch.de>
6 *
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23/*
24 * The contents of this file are part of the driver's id_table.
25 *
26 * In a perfect world, this file would be empty.
27 */
28
29/*
30 * Use this for devices where other interfaces are standard compliant,
31 * to prevent the quirk being applied to those interfaces. (To work with
32 * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
33 */
34#define USB_DEVICE_VENDOR_SPEC(vend, prod) \
35 .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
36 USB_DEVICE_ID_MATCH_PRODUCT | \
37 USB_DEVICE_ID_MATCH_INT_CLASS, \
38 .idVendor = vend, \
39 .idProduct = prod, \
40 .bInterfaceClass = USB_CLASS_VENDOR_SPEC
41
Andrea Borgiadc61b66f2009-01-12 23:17:47 +010042/* Creative/Toshiba Multimedia Center SB-0500 */
43{
44 USB_DEVICE(0x041e, 0x3048),
45 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
46 .vendor_name = "Toshiba",
47 .product_name = "SB-0500",
48 .ifnum = QUIRK_NO_INTERFACE
49 }
50},
51
Clemens Ladisch25a47b62008-02-25 11:04:19 +010052/* Creative/E-Mu devices */
53{
54 USB_DEVICE(0x041e, 0x3010),
55 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
56 .vendor_name = "Creative Labs",
57 .product_name = "Sound Blaster MP3+",
58 .ifnum = QUIRK_NO_INTERFACE
59 }
60},
61{
62 /* E-Mu 0202 USB */
63 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
64 .idVendor = 0x041e,
65 .idProduct = 0x3f02,
66 .bInterfaceClass = USB_CLASS_AUDIO,
67},
68{
69 /* E-Mu 0404 USB */
70 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
71 .idVendor = 0x041e,
72 .idProduct = 0x3f04,
73 .bInterfaceClass = USB_CLASS_AUDIO,
74},
Eran Tromer97c889a2008-09-26 01:07:03 -040075{
76 /* E-Mu Tracker Pre */
77 .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
78 .idVendor = 0x041e,
79 .idProduct = 0x3f0a,
80 .bInterfaceClass = USB_CLASS_AUDIO,
81},
Clemens Ladisch25a47b62008-02-25 11:04:19 +010082
Linus Torvalds1da177e2005-04-16 15:20:36 -070083/*
Daniel Drakea9121452007-05-07 09:27:05 +020084 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
85 * class matches do not take effect without an explicit ID match.
86 */
87{
88 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
89 USB_DEVICE_ID_MATCH_INT_CLASS |
90 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
91 .idVendor = 0x046d,
Daniel Draked4170452007-05-10 08:52:19 +020092 .idProduct = 0x0850,
93 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +010094 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Draked4170452007-05-10 08:52:19 +020095},
96{
97 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
98 USB_DEVICE_ID_MATCH_INT_CLASS |
99 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
100 .idVendor = 0x046d,
George Shapovalovc34532d2007-07-09 10:42:35 +0200101 .idProduct = 0x08ae,
102 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100103 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
George Shapovalovc34532d2007-07-09 10:42:35 +0200104},
105{
106 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
107 USB_DEVICE_ID_MATCH_INT_CLASS |
108 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
109 .idVendor = 0x046d,
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200110 .idProduct = 0x08c6,
111 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100112 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Ritesh Raj Sarrafcfc24ec2007-07-10 13:03:57 +0200113},
114{
115 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
116 USB_DEVICE_ID_MATCH_INT_CLASS |
117 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
118 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200119 .idProduct = 0x08f0,
120 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100121 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Drakea9121452007-05-07 09:27:05 +0200122},
123{
124 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
125 USB_DEVICE_ID_MATCH_INT_CLASS |
126 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
127 .idVendor = 0x046d,
Dawid Wrobel31127f22007-10-22 11:57:17 +0200128 .idProduct = 0x08f5,
129 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100130 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Dawid Wrobel31127f22007-10-22 11:57:17 +0200131},
132{
133 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
134 USB_DEVICE_ID_MATCH_INT_CLASS |
135 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
136 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +0200137 .idProduct = 0x08f6,
138 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100139 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
Daniel Drakea9121452007-05-07 09:27:05 +0200140},
Signed-off-by: Peter Stokes5c6c9e62009-01-14 09:47:57 +0100141{
142 USB_DEVICE(0x046d, 0x0990),
143 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
144 .vendor_name = "Logitech, Inc.",
145 .product_name = "QuickCam Pro 9000",
146 .ifnum = QUIRK_NO_INTERFACE
147 }
148},
Clemens Ladisch25a47b62008-02-25 11:04:19 +0100149
James Courtier-Dutton1e741902007-10-08 18:49:43 +0100150/*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151 * Yamaha devices
152 */
153
154#define YAMAHA_DEVICE(id, name) { \
155 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100156 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157 .vendor_name = "Yamaha", \
158 .product_name = name, \
159 .ifnum = QUIRK_ANY_INTERFACE, \
160 .type = QUIRK_MIDI_YAMAHA \
161 } \
162}
163#define YAMAHA_INTERFACE(id, intf, name) { \
164 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +0100165 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166 .vendor_name = "Yamaha", \
167 .product_name = name, \
168 .ifnum = intf, \
169 .type = QUIRK_MIDI_YAMAHA \
170 } \
171}
172YAMAHA_DEVICE(0x1000, "UX256"),
173YAMAHA_DEVICE(0x1001, "MU1000"),
174YAMAHA_DEVICE(0x1002, "MU2000"),
175YAMAHA_DEVICE(0x1003, "MU500"),
176YAMAHA_INTERFACE(0x1004, 3, "UW500"),
177YAMAHA_DEVICE(0x1005, "MOTIF6"),
178YAMAHA_DEVICE(0x1006, "MOTIF7"),
179YAMAHA_DEVICE(0x1007, "MOTIF8"),
180YAMAHA_DEVICE(0x1008, "UX96"),
181YAMAHA_DEVICE(0x1009, "UX16"),
182YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
183YAMAHA_DEVICE(0x100c, "UC-MX"),
184YAMAHA_DEVICE(0x100d, "UC-KX"),
185YAMAHA_DEVICE(0x100e, "S08"),
186YAMAHA_DEVICE(0x100f, "CLP-150"),
187YAMAHA_DEVICE(0x1010, "CLP-170"),
188YAMAHA_DEVICE(0x1011, "P-250"),
189YAMAHA_DEVICE(0x1012, "TYROS"),
190YAMAHA_DEVICE(0x1013, "PF-500"),
191YAMAHA_DEVICE(0x1014, "S90"),
192YAMAHA_DEVICE(0x1015, "MOTIF-R"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100193YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700194YAMAHA_DEVICE(0x1017, "CVP-204"),
195YAMAHA_DEVICE(0x1018, "CVP-206"),
196YAMAHA_DEVICE(0x1019, "CVP-208"),
197YAMAHA_DEVICE(0x101a, "CVP-210"),
198YAMAHA_DEVICE(0x101b, "PSR-1100"),
199YAMAHA_DEVICE(0x101c, "PSR-2100"),
200YAMAHA_DEVICE(0x101d, "CLP-175"),
201YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100202YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700203YAMAHA_DEVICE(0x1020, "EZ-250i"),
204YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
205YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
206YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
207YAMAHA_DEVICE(0x1024, "CVP-301"),
208YAMAHA_DEVICE(0x1025, "CVP-303"),
209YAMAHA_DEVICE(0x1026, "CVP-305"),
210YAMAHA_DEVICE(0x1027, "CVP-307"),
211YAMAHA_DEVICE(0x1028, "CVP-309"),
212YAMAHA_DEVICE(0x1029, "CVP-309GP"),
213YAMAHA_DEVICE(0x102a, "PSR-1500"),
214YAMAHA_DEVICE(0x102b, "PSR-3000"),
215YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
216YAMAHA_DEVICE(0x1030, "PSR-295/293"),
217YAMAHA_DEVICE(0x1031, "DGX-205/203"),
218YAMAHA_DEVICE(0x1032, "DGX-305"),
219YAMAHA_DEVICE(0x1033, "DGX-505"),
220YAMAHA_DEVICE(0x1034, NULL),
221YAMAHA_DEVICE(0x1035, NULL),
222YAMAHA_DEVICE(0x1036, NULL),
223YAMAHA_DEVICE(0x1037, NULL),
224YAMAHA_DEVICE(0x1038, NULL),
225YAMAHA_DEVICE(0x1039, NULL),
226YAMAHA_DEVICE(0x103a, NULL),
227YAMAHA_DEVICE(0x103b, NULL),
228YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200229YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200230YAMAHA_DEVICE(0x103e, NULL),
231YAMAHA_DEVICE(0x103f, NULL),
232YAMAHA_DEVICE(0x1040, NULL),
233YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200234YAMAHA_DEVICE(0x1042, NULL),
235YAMAHA_DEVICE(0x1043, NULL),
236YAMAHA_DEVICE(0x1044, NULL),
237YAMAHA_DEVICE(0x1045, NULL),
Clemens Ladischc85ceac2008-07-10 11:01:06 +0200238YAMAHA_INTERFACE(0x104e, 0, NULL),
Clemens Ladisch83a1a392008-07-10 11:05:42 +0200239YAMAHA_DEVICE(0x104f, NULL),
240YAMAHA_DEVICE(0x1050, NULL),
241YAMAHA_DEVICE(0x1051, NULL),
242YAMAHA_DEVICE(0x1052, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700243YAMAHA_DEVICE(0x2000, "DGP-7"),
244YAMAHA_DEVICE(0x2001, "DGP-5"),
245YAMAHA_DEVICE(0x2002, NULL),
246YAMAHA_DEVICE(0x5000, "CS1D"),
247YAMAHA_DEVICE(0x5001, "DSP1D"),
248YAMAHA_DEVICE(0x5002, "DME32"),
249YAMAHA_DEVICE(0x5003, "DM2000"),
250YAMAHA_DEVICE(0x5004, "02R96"),
251YAMAHA_DEVICE(0x5005, "ACU16-C"),
252YAMAHA_DEVICE(0x5006, "NHB32-C"),
253YAMAHA_DEVICE(0x5007, "DM1000"),
254YAMAHA_DEVICE(0x5008, "01V96"),
255YAMAHA_DEVICE(0x5009, "SPX2000"),
256YAMAHA_DEVICE(0x500a, "PM5D"),
257YAMAHA_DEVICE(0x500b, "DME64N"),
258YAMAHA_DEVICE(0x500c, "DME24N"),
259YAMAHA_DEVICE(0x500d, NULL),
260YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200261YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700262YAMAHA_DEVICE(0x7000, "DTX"),
263YAMAHA_DEVICE(0x7010, "UB99"),
264#undef YAMAHA_DEVICE
265#undef YAMAHA_INTERFACE
266
267/*
268 * Roland/RolandED/Edirol/BOSS devices
269 */
270{
271 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100272 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700273 .vendor_name = "Roland",
274 .product_name = "UA-100",
275 .ifnum = QUIRK_ANY_INTERFACE,
276 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100277 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700278 {
279 .ifnum = 0,
280 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
281 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100282 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700283 .channels = 4,
284 .iface = 0,
285 .altsetting = 1,
286 .altset_idx = 1,
287 .attributes = 0,
288 .endpoint = 0x01,
289 .ep_attr = 0x09,
290 .rates = SNDRV_PCM_RATE_CONTINUOUS,
291 .rate_min = 44100,
292 .rate_max = 44100,
293 }
294 },
295 {
296 .ifnum = 1,
297 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
298 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100299 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700300 .channels = 2,
301 .iface = 1,
302 .altsetting = 1,
303 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +0100304 .attributes = UAC_EP_CS_ATTR_FILL_MAX,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700305 .endpoint = 0x81,
306 .ep_attr = 0x05,
307 .rates = SNDRV_PCM_RATE_CONTINUOUS,
308 .rate_min = 44100,
309 .rate_max = 44100,
310 }
311 },
312 {
313 .ifnum = 2,
314 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100315 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700316 .out_cables = 0x0007,
317 .in_cables = 0x0007
318 }
319 },
320 {
321 .ifnum = -1
322 }
323 }
324 }
325},
326{
327 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100328 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700329 .vendor_name = "EDIROL",
330 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200331 .ifnum = QUIRK_ANY_INTERFACE,
332 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100333 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200334 {
335 .ifnum = 0,
336 .type = QUIRK_IGNORE_INTERFACE
337 },
338 {
339 .ifnum = 1,
340 .type = QUIRK_IGNORE_INTERFACE
341 },
342 {
343 .ifnum = 2,
344 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100345 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200346 .out_cables = 0x000f,
347 .in_cables = 0x000f
348 }
349 },
350 {
351 .ifnum = -1
352 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700353 }
354 }
355},
356{
357 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100358 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700359 .vendor_name = "Roland",
360 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200361 .ifnum = QUIRK_ANY_INTERFACE,
362 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100363 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200364 {
365 .ifnum = 0,
366 .type = QUIRK_IGNORE_INTERFACE
367 },
368 {
369 .ifnum = 1,
370 .type = QUIRK_IGNORE_INTERFACE
371 },
372 {
373 .ifnum = 2,
374 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100375 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200376 .out_cables = 0x003f,
377 .in_cables = 0x003f
378 }
379 },
380 {
381 .ifnum = -1
382 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700383 }
384 }
385},
386{
387 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100388 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700389 .vendor_name = "Roland",
390 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200391 .ifnum = QUIRK_ANY_INTERFACE,
392 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100393 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200394 {
395 .ifnum = 0,
396 .type = QUIRK_IGNORE_INTERFACE
397 },
398 {
399 .ifnum = 1,
400 .type = QUIRK_IGNORE_INTERFACE
401 },
402 {
403 .ifnum = 2,
404 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100405 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200406 .out_cables = 0x0005,
407 .in_cables = 0x0005
408 }
409 },
410 {
411 .ifnum = -1
412 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413 }
414 }
415},
416{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100417 /* Has ID 0x0099 when not in "Advanced Driver" mode.
418 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700419 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100420 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700421 .vendor_name = "EDIROL",
422 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200423 .ifnum = QUIRK_ANY_INTERFACE,
424 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100425 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200426 {
427 .ifnum = 0,
428 .type = QUIRK_IGNORE_INTERFACE
429 },
430 {
431 .ifnum = 1,
432 .type = QUIRK_IGNORE_INTERFACE
433 },
434 {
435 .ifnum = 2,
436 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100437 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200438 .out_cables = 0x0003,
439 .in_cables = 0x0003
440 }
441 },
442 {
443 .ifnum = -1
444 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700445 }
446 }
447},
448{
449 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100450 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700451 .vendor_name = "Roland",
452 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200453 .ifnum = QUIRK_ANY_INTERFACE,
454 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100455 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200456 {
457 .ifnum = 0,
458 .type = QUIRK_IGNORE_INTERFACE
459 },
460 {
461 .ifnum = 1,
462 .type = QUIRK_IGNORE_INTERFACE
463 },
464 {
465 .ifnum = 2,
466 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100467 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200468 .out_cables = 0x0013,
469 .in_cables = 0x0013
470 }
471 },
472 {
473 .ifnum = -1
474 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700475 }
476 }
477},
478{
479 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100480 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700481 .vendor_name = "Roland",
482 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200483 .ifnum = QUIRK_ANY_INTERFACE,
484 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100485 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200486 {
487 .ifnum = 0,
488 .type = QUIRK_IGNORE_INTERFACE
489 },
490 {
491 .ifnum = 1,
492 .type = QUIRK_IGNORE_INTERFACE
493 },
494 {
495 .ifnum = 2,
496 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100497 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200498 .out_cables = 0x0001,
499 .in_cables = 0x0001
500 }
501 },
502 {
503 .ifnum = -1
504 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700505 }
506 }
507},
508{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100509 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700510 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100511 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700512 .vendor_name = "EDIROL",
513 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200514 .ifnum = QUIRK_ANY_INTERFACE,
515 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100516 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200517 {
518 .ifnum = 0,
519 .type = QUIRK_IGNORE_INTERFACE
520 },
521 {
522 .ifnum = 1,
523 .type = QUIRK_IGNORE_INTERFACE
524 },
525 {
526 .ifnum = 2,
527 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100528 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200529 .out_cables = 0x0001,
530 .in_cables = 0x0001
531 }
532 },
533 {
534 .ifnum = -1
535 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700536 }
537 }
538},
539{
540 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100541 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700542 .vendor_name = "Roland",
543 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200544 .ifnum = QUIRK_ANY_INTERFACE,
545 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100546 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200547 {
548 .ifnum = 0,
549 .type = QUIRK_IGNORE_INTERFACE
550 },
551 {
552 .ifnum = 1,
553 .type = QUIRK_IGNORE_INTERFACE
554 },
555 {
556 .ifnum = 2,
557 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100558 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200559 .out_cables = 0x0013,
560 .in_cables = 0x0013
561 }
562 },
563 {
564 .ifnum = -1
565 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700566 }
567 }
568},
569{
570 /* thanks to Emiliano Grilli <emillo@libero.it>
571 * for helping researching this data */
572 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100573 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700574 .vendor_name = "Roland",
575 .product_name = "SC-D70",
576 .ifnum = QUIRK_ANY_INTERFACE,
577 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100578 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700579 {
580 .ifnum = 0,
581 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
582 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100583 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700584 .channels = 2,
585 .iface = 0,
586 .altsetting = 1,
587 .altset_idx = 1,
588 .attributes = 0,
589 .endpoint = 0x01,
590 .ep_attr = 0x01,
591 .rates = SNDRV_PCM_RATE_CONTINUOUS,
592 .rate_min = 44100,
593 .rate_max = 44100,
594 }
595 },
596 {
597 .ifnum = 1,
598 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
599 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100600 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700601 .channels = 2,
602 .iface = 1,
603 .altsetting = 1,
604 .altset_idx = 1,
605 .attributes = 0,
606 .endpoint = 0x81,
607 .ep_attr = 0x01,
608 .rates = SNDRV_PCM_RATE_CONTINUOUS,
609 .rate_min = 44100,
610 .rate_max = 44100,
611 }
612 },
613 {
614 .ifnum = 2,
615 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100616 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700617 .out_cables = 0x0007,
618 .in_cables = 0x0007
619 }
620 },
621 {
622 .ifnum = -1
623 }
624 }
625 }
626},
627{ /*
628 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
629 * If the advanced mode switch at the back of the unit is off, the
630 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
631 * but offers only 16-bit PCM.
632 * In advanced mode, the UA-5 will output S24_3LE samples (two
633 * channels) at the rate indicated on the front switch, including
634 * the 96kHz sample rate.
635 */
636 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100637 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700638 .vendor_name = "EDIROL",
639 .product_name = "UA-5",
640 .ifnum = QUIRK_ANY_INTERFACE,
641 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100642 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643 {
644 .ifnum = 1,
645 .type = QUIRK_AUDIO_STANDARD_INTERFACE
646 },
647 {
648 .ifnum = 2,
649 .type = QUIRK_AUDIO_STANDARD_INTERFACE
650 },
651 {
652 .ifnum = -1
653 }
654 }
655 }
656},
657{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200658 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700659 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100660 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700661 .vendor_name = "Roland",
662 .product_name = "XV-5050",
663 .ifnum = 0,
664 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100665 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700666 .out_cables = 0x0001,
667 .in_cables = 0x0001
668 }
669 }
670},
671{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200672 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700673 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100674 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700675 .vendor_name = "EDIROL",
676 .product_name = "UM-880",
677 .ifnum = 0,
678 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100679 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700680 .out_cables = 0x01ff,
681 .in_cables = 0x01ff
682 }
683 }
684},
685{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200686 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700687 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100688 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700689 .vendor_name = "EDIROL",
690 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200691 .ifnum = QUIRK_ANY_INTERFACE,
692 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100693 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200694 {
695 .ifnum = 0,
696 .type = QUIRK_IGNORE_INTERFACE
697 },
698 {
699 .ifnum = 1,
700 .type = QUIRK_IGNORE_INTERFACE
701 },
702 {
703 .ifnum = 2,
704 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100705 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200706 .out_cables = 0x000f,
707 .in_cables = 0x000f
708 }
709 },
710 {
711 .ifnum = -1
712 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700713 }
714 }
715},
716{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200717 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700718 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100719 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700720 .vendor_name = "Roland",
721 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200722 .ifnum = QUIRK_ANY_INTERFACE,
723 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100724 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200725 {
726 .ifnum = 0,
727 .type = QUIRK_IGNORE_INTERFACE
728 },
729 {
730 .ifnum = 1,
731 .type = QUIRK_IGNORE_INTERFACE
732 },
733 {
734 .ifnum = 2,
735 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100736 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200737 .out_cables = 0x0001,
738 .in_cables = 0x0001
739 }
740 },
741 {
742 .ifnum = -1
743 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700744 }
745 }
746},
747{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200748 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700749 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100750 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700751 .vendor_name = "Roland",
752 .product_name = "V-SYNTH",
753 .ifnum = 0,
754 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100755 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700756 .out_cables = 0x0001,
757 .in_cables = 0x0001
758 }
759 }
760},
761{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200762 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700763 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100764 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700765 .vendor_name = "EDIROL",
766 .product_name = "UM-550",
767 .ifnum = 0,
768 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100769 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700770 .out_cables = 0x003f,
771 .in_cables = 0x003f
772 }
773 }
774},
775{
776 /*
777 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
778 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
779 * and no MIDI.
780 */
781 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100782 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700783 .vendor_name = "EDIROL",
784 .product_name = "UA-20",
785 .ifnum = QUIRK_ANY_INTERFACE,
786 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100787 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700788 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100789 .ifnum = 0,
790 .type = QUIRK_IGNORE_INTERFACE
791 },
792 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700793 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100794 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
795 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100796 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100797 .channels = 2,
798 .iface = 1,
799 .altsetting = 1,
800 .altset_idx = 1,
801 .attributes = 0,
802 .endpoint = 0x01,
803 .ep_attr = 0x01,
804 .rates = SNDRV_PCM_RATE_CONTINUOUS,
805 .rate_min = 44100,
806 .rate_max = 44100,
807 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700808 },
809 {
810 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100811 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
812 .data = & (const struct audioformat) {
Clemens Ladisch015eb0b2010-03-04 19:46:15 +0100813 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100814 .channels = 2,
815 .iface = 2,
816 .altsetting = 1,
817 .altset_idx = 1,
818 .attributes = 0,
819 .endpoint = 0x82,
820 .ep_attr = 0x01,
821 .rates = SNDRV_PCM_RATE_CONTINUOUS,
822 .rate_min = 44100,
823 .rate_max = 44100,
824 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700825 },
826 {
827 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100828 .type = QUIRK_MIDI_FIXED_ENDPOINT,
829 .data = & (const struct snd_usb_midi_endpoint_info) {
830 .out_cables = 0x0001,
831 .in_cables = 0x0001
832 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700833 },
834 {
835 .ifnum = -1
836 }
837 }
838 }
839},
840{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200841 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700842 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100843 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700844 .vendor_name = "EDIROL",
845 .product_name = "SD-20",
846 .ifnum = 0,
847 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100848 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700849 .out_cables = 0x0003,
850 .in_cables = 0x0007
851 }
852 }
853},
854{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200855 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700856 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100857 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700858 .vendor_name = "EDIROL",
859 .product_name = "SD-80",
860 .ifnum = 0,
861 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100862 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700863 .out_cables = 0x000f,
864 .in_cables = 0x000f
865 }
866 }
867},
868{ /*
869 * This quirk is for the "Advanced" modes of the Edirol UA-700.
870 * If the sample format switch is not in an advanced setting, the
871 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
872 * but offers only 16-bit PCM and no MIDI.
873 */
874 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100875 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700876 .vendor_name = "EDIROL",
877 .product_name = "UA-700",
878 .ifnum = QUIRK_ANY_INTERFACE,
879 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100880 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700881 {
882 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200883 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700884 },
885 {
886 .ifnum = 2,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +0200887 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700888 },
889 {
890 .ifnum = 3,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +0200891 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700892 },
893 {
894 .ifnum = -1
895 }
896 }
897 }
898},
899{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200900 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700901 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100902 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700903 .vendor_name = "Roland",
904 .product_name = "XV-2020",
905 .ifnum = 0,
906 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100907 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700908 .out_cables = 0x0001,
909 .in_cables = 0x0001
910 }
911 }
912},
913{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200914 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700915 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100916 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700917 .vendor_name = "Roland",
918 .product_name = "VariOS",
919 .ifnum = 0,
920 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100921 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700922 .out_cables = 0x0007,
923 .in_cables = 0x0007
924 }
925 }
926},
927{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200928 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700929 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100930 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700931 .vendor_name = "EDIROL",
932 .product_name = "PCR",
933 .ifnum = 0,
934 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100935 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700936 .out_cables = 0x0003,
937 .in_cables = 0x0007
938 }
939 }
940},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200941 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700942{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200943 /*
944 * Has ID 0x0038 when not in "Advanced Driver" mode;
945 * later revisions use IDs 0x0054 and 0x00a2.
946 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700947 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100948 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700949 .vendor_name = "Roland",
950 .product_name = "Digital Piano",
951 .ifnum = 0,
952 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100953 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700954 .out_cables = 0x0001,
955 .in_cables = 0x0001
956 }
957 }
958},
959{
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200960 /*
961 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
962 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
963 * and no MIDI.
964 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700965 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100966 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700967 .vendor_name = "BOSS",
968 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200969 .ifnum = QUIRK_ANY_INTERFACE,
970 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100971 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200972 {
973 .ifnum = 1,
974 .type = QUIRK_AUDIO_STANDARD_INTERFACE
975 },
976 {
977 .ifnum = 2,
978 .type = QUIRK_AUDIO_STANDARD_INTERFACE
979 },
980 {
981 .ifnum = 3,
982 .type = QUIRK_MIDI_STANDARD_INTERFACE
983 },
984 {
985 .ifnum = -1
986 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700987 }
988 }
989},
990{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200991 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700992 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100993 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700994 .vendor_name = "Roland",
995 .product_name = "GI-20",
996 .ifnum = 0,
997 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100998 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700999 .out_cables = 0x0001,
1000 .in_cables = 0x0001
1001 }
1002 }
1003},
1004{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001005 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001006 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001007 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001008 .vendor_name = "Roland",
1009 .product_name = "RS-70",
1010 .ifnum = 0,
1011 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001012 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001013 .out_cables = 0x0001,
1014 .in_cables = 0x0001
1015 }
1016 }
1017},
1018{
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001019 /* has ID 0x0049 when not in "Advanced Driver" mode */
1020 USB_DEVICE(0x0582, 0x0047),
1021 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1022 /* .vendor_name = "EDIROL", */
1023 /* .product_name = "UR-80", */
1024 .ifnum = QUIRK_ANY_INTERFACE,
1025 .type = QUIRK_COMPOSITE,
1026 .data = (const struct snd_usb_audio_quirk[]) {
1027 /* in the 96 kHz modes, only interface 1 is there */
1028 {
1029 .ifnum = 1,
1030 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1031 },
1032 {
1033 .ifnum = 2,
1034 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1035 },
1036 {
1037 .ifnum = -1
1038 }
1039 }
1040 }
1041},
1042{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001043 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001044 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001045 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch358ce0c2007-12-19 14:25:24 +01001046 /* .vendor_name = "EDIROL", */
1047 /* .product_name = "UR-80", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001048 .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 = 0x0003,
1052 .in_cables = 0x0007
1053 }
1054 }
1055},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001056 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001057{
Clemens Ladischf38cc312007-02-09 20:52:55 +01001058 /* has ID 0x004e when not in "Advanced Driver" mode */
1059 USB_DEVICE(0x0582, 0x004c),
1060 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1061 .vendor_name = "EDIROL",
1062 .product_name = "PCR-A",
1063 .ifnum = QUIRK_ANY_INTERFACE,
1064 .type = QUIRK_COMPOSITE,
1065 .data = (const struct snd_usb_audio_quirk[]) {
1066 {
1067 .ifnum = 1,
1068 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1069 },
1070 {
1071 .ifnum = 2,
1072 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1073 },
1074 {
1075 .ifnum = -1
1076 }
1077 }
1078 }
1079},
1080{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001081 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001082 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001083 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001084 .vendor_name = "EDIROL",
1085 .product_name = "PCR-A",
1086 .ifnum = 0,
1087 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001088 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001089 .out_cables = 0x0003,
1090 .in_cables = 0x0007
1091 }
1092 }
1093},
1094{
1095 /*
1096 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1097 * is standard compliant, but has only 16-bit PCM.
1098 */
1099 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001100 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001101 .vendor_name = "EDIROL",
1102 .product_name = "UA-3FX",
1103 .ifnum = QUIRK_ANY_INTERFACE,
1104 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001105 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001106 {
1107 .ifnum = 1,
1108 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1109 },
1110 {
1111 .ifnum = 2,
1112 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1113 },
1114 {
1115 .ifnum = -1
1116 }
1117 }
1118 }
1119},
1120{
1121 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001122 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001123 .vendor_name = "EDIROL",
1124 .product_name = "UM-1SX",
1125 .ifnum = 0,
1126 .type = QUIRK_MIDI_STANDARD_INTERFACE
1127 }
1128},
Takashi Iwaif1676842007-07-09 10:39:44 +02001129{
1130 USB_DEVICE(0x0582, 0x0060),
1131 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1132 .vendor_name = "Roland",
1133 .product_name = "EXR Series",
1134 .ifnum = 0,
1135 .type = QUIRK_MIDI_STANDARD_INTERFACE
1136 }
1137},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001138{
Clemens Ladischaa70201f2010-08-30 16:32:43 +02001139 /* has ID 0x0066 when not in "Advanced Driver" mode */
1140 USB_DEVICE(0x0582, 0x0064),
1141 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1142 /* .vendor_name = "EDIROL", */
1143 /* .product_name = "PCR-1", */
1144 .ifnum = QUIRK_ANY_INTERFACE,
1145 .type = QUIRK_COMPOSITE,
1146 .data = (const struct snd_usb_audio_quirk[]) {
1147 {
1148 .ifnum = 1,
1149 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1150 },
1151 {
1152 .ifnum = 2,
1153 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1154 },
1155 {
1156 .ifnum = -1
1157 }
1158 }
1159 }
1160},
1161{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001162 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001163 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001164 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischaa70201f2010-08-30 16:32:43 +02001165 /* .vendor_name = "EDIROL", */
1166 /* .product_name = "PCR-1", */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001167 .ifnum = 0,
1168 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001169 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001170 .out_cables = 0x0001,
1171 .in_cables = 0x0003
1172 }
1173 }
1174},
1175{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001176 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001177 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001178 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001179 .vendor_name = "Roland",
1180 .product_name = "SP-606",
1181 .ifnum = 3,
1182 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001183 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001184 .out_cables = 0x0001,
1185 .in_cables = 0x0001
1186 }
1187 }
1188},
1189{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001190 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001191 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001192 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001193 .vendor_name = "Roland",
1194 .product_name = "FANTOM-X",
1195 .ifnum = 0,
1196 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001197 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001198 .out_cables = 0x0001,
1199 .in_cables = 0x0001
1200 }
1201 }
1202},
1203{ /*
1204 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1205 * If the switch is not in an advanced setting, the UA-25 has
1206 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1207 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1208 */
1209 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
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 = "UA-25",
1213 .ifnum = QUIRK_ANY_INTERFACE,
1214 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001215 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001216 {
1217 .ifnum = 0,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001218 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001219 },
1220 {
1221 .ifnum = 1,
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001222 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001223 },
1224 {
1225 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001226 .type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds1da177e2005-04-16 15:20:36 -07001227 },
1228 {
1229 .ifnum = -1
1230 }
1231 }
1232 }
1233},
1234{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001235 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001236 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001237 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001238 .vendor_name = "BOSS",
1239 .product_name = "DR-880",
1240 .ifnum = 0,
1241 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001242 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001243 .out_cables = 0x0001,
1244 .in_cables = 0x0001
1245 }
1246 }
1247},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001248{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001249 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001250 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001251 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001252 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001253 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001254 .ifnum = 0,
1255 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001256 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001257 .out_cables = 0x0003,
1258 .in_cables = 0x0003
1259 }
1260 }
1261},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001262{
1263 /* has ID 0x0081 when not in "Advanced Driver" mode */
1264 USB_DEVICE(0x0582, 0x0080),
1265 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1266 .vendor_name = "Roland",
1267 .product_name = "G-70",
1268 .ifnum = 0,
1269 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1270 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001271 .out_cables = 0x0001,
1272 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001273 }
1274 }
1275},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001276 /* TODO: add Roland V-SYNTH XT support */
1277 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001278{
1279 /* has ID 0x008c when not in "Advanced Driver" mode */
1280 USB_DEVICE(0x0582, 0x008b),
1281 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1282 .vendor_name = "EDIROL",
1283 .product_name = "PC-50",
1284 .ifnum = 0,
1285 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1286 .data = & (const struct snd_usb_midi_endpoint_info) {
1287 .out_cables = 0x0001,
1288 .in_cables = 0x0001
1289 }
1290 }
1291},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001292 /* TODO: add Edirol PC-80 support */
Takashi Iwai9b0d39b2007-08-10 15:07:06 +02001293{
1294 USB_DEVICE(0x0582, 0x0096),
1295 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1296 .vendor_name = "EDIROL",
1297 .product_name = "UA-1EX",
1298 .ifnum = QUIRK_ANY_INTERFACE,
1299 .type = QUIRK_COMPOSITE,
1300 .data = (const struct snd_usb_audio_quirk[]) {
1301 {
1302 .ifnum = 0,
1303 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1304 },
1305 {
1306 .ifnum = 1,
1307 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1308 },
1309 {
1310 .ifnum = -1
1311 }
1312 }
1313 }
1314},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001315{
1316 USB_DEVICE(0x0582, 0x009a),
1317 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1318 .vendor_name = "EDIROL",
1319 .product_name = "UM-3EX",
1320 .ifnum = 0,
1321 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1322 .data = & (const struct snd_usb_midi_endpoint_info) {
1323 .out_cables = 0x000f,
1324 .in_cables = 0x000f
1325 }
1326 }
1327},
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001328{
1329 /*
1330 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
1331 * is standard compliant, but has only 16-bit PCM and no MIDI.
1332 */
1333 USB_DEVICE(0x0582, 0x00a3),
1334 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1335 .vendor_name = "EDIROL",
1336 .product_name = "UA-4FX",
1337 .ifnum = QUIRK_ANY_INTERFACE,
1338 .type = QUIRK_COMPOSITE,
1339 .data = (const struct snd_usb_audio_quirk[]) {
1340 {
1341 .ifnum = 0,
1342 .type = QUIRK_AUDIO_EDIROL_UAXX
1343 },
1344 {
1345 .ifnum = 1,
1346 .type = QUIRK_AUDIO_EDIROL_UAXX
1347 },
1348 {
1349 .ifnum = 2,
Pedro Lopez-Cabanillas59b3db62008-10-07 20:54:18 +02001350 .type = QUIRK_AUDIO_EDIROL_UAXX
Pedro Lopez-Cabanillas310e0dc2008-10-04 16:27:36 +02001351 },
1352 {
1353 .ifnum = -1
1354 }
1355 }
1356 }
1357},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001358 /* TODO: add Edirol MD-P1 support */
Carlo Beccaria87823092007-07-03 08:04:25 +02001359{
Clemens Ladisch25a47b62008-02-25 11:04:19 +01001360 USB_DEVICE(0x582, 0x00a6),
1361 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1362 .vendor_name = "Roland",
1363 .product_name = "Juno-G",
1364 .ifnum = 0,
1365 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1366 .data = & (const struct snd_usb_midi_endpoint_info) {
1367 .out_cables = 0x0001,
1368 .in_cables = 0x0001
1369 }
1370 }
1371},
1372{
Carlo Beccaria87823092007-07-03 08:04:25 +02001373 /* Roland SH-201 */
1374 USB_DEVICE(0x0582, 0x00ad),
1375 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1376 .vendor_name = "Roland",
1377 .product_name = "SH-201",
1378 .ifnum = QUIRK_ANY_INTERFACE,
1379 .type = QUIRK_COMPOSITE,
1380 .data = (const struct snd_usb_audio_quirk[]) {
1381 {
1382 .ifnum = 0,
1383 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1384 },
1385 {
1386 .ifnum = 1,
1387 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1388 },
1389 {
1390 .ifnum = 2,
1391 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1392 .data = & (const struct snd_usb_midi_endpoint_info) {
1393 .out_cables = 0x0001,
1394 .in_cables = 0x0001
1395 }
1396 },
1397 {
1398 .ifnum = -1
1399 }
1400 }
1401 }
1402},
Chris Mennie62b12632008-05-19 16:21:33 +02001403{
1404 /* Roland SonicCell */
1405 USB_DEVICE(0x0582, 0x00c2),
1406 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1407 .vendor_name = "Roland",
1408 .product_name = "SonicCell",
1409 .ifnum = QUIRK_ANY_INTERFACE,
1410 .type = QUIRK_COMPOSITE,
1411 .data = (const struct snd_usb_audio_quirk[]) {
1412 {
1413 .ifnum = 0,
1414 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1415 },
1416 {
1417 .ifnum = 1,
1418 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1419 },
1420 {
1421 .ifnum = 2,
1422 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1423 .data = & (const struct snd_usb_midi_endpoint_info) {
1424 .out_cables = 0x0001,
1425 .in_cables = 0x0001
1426 }
1427 },
1428 {
1429 .ifnum = -1
1430 }
1431 }
1432 }
1433},
Clemens Ladischb38addb2008-07-28 10:19:39 +02001434{
Takashi Iwai6efd2cd2009-06-01 10:59:51 +02001435 /* Edirol M-16DX */
1436 /* FIXME: This quirk gives a good-working capture stream but the
1437 * playback seems problematic because of lacking of sync
1438 * with capture stream. It needs to sync with the capture
1439 * clock. As now, you'll get frequent sound distortions
1440 * via the playback.
1441 */
1442 USB_DEVICE(0x0582, 0x00c4),
1443 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1444 .ifnum = QUIRK_ANY_INTERFACE,
1445 .type = QUIRK_COMPOSITE,
1446 .data = (const struct snd_usb_audio_quirk[]) {
1447 {
1448 .ifnum = 0,
1449 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1450 },
1451 {
1452 .ifnum = 1,
1453 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1454 },
1455 {
1456 .ifnum = 2,
1457 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1458 .data = & (const struct snd_usb_midi_endpoint_info) {
1459 .out_cables = 0x0001,
1460 .in_cables = 0x0001
1461 }
1462 },
1463 {
1464 .ifnum = -1
1465 }
1466 }
1467 }
1468},
1469{
Clemens Ladischb38addb2008-07-28 10:19:39 +02001470 /* BOSS GT-10 */
1471 USB_DEVICE(0x0582, 0x00da),
1472 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1473 .ifnum = QUIRK_ANY_INTERFACE,
1474 .type = QUIRK_COMPOSITE,
1475 .data = (const struct snd_usb_audio_quirk[]) {
1476 {
1477 .ifnum = 0,
1478 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1479 },
1480 {
1481 .ifnum = 1,
1482 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1483 },
1484 {
1485 .ifnum = 2,
1486 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1487 .data = & (const struct snd_usb_midi_endpoint_info) {
1488 .out_cables = 0x0001,
1489 .in_cables = 0x0001
1490 }
1491 },
1492 {
1493 .ifnum = -1
1494 }
1495 }
1496 }
1497},
Takashi Iwaie2736262008-10-20 16:07:45 +02001498{
1499 /* Advanced modes of the Edirol UA-25EX.
1500 * For the standard mode, UA-25EX has ID 0582:00e7, which
1501 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1502 */
1503 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
1504 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1505 .vendor_name = "EDIROL",
1506 .product_name = "UA-25EX",
1507 .ifnum = QUIRK_ANY_INTERFACE,
1508 .type = QUIRK_COMPOSITE,
1509 .data = (const struct snd_usb_audio_quirk[]) {
1510 {
1511 .ifnum = 0,
1512 .type = QUIRK_AUDIO_EDIROL_UAXX
1513 },
1514 {
1515 .ifnum = 1,
1516 .type = QUIRK_AUDIO_EDIROL_UAXX
1517 },
1518 {
1519 .ifnum = 2,
1520 .type = QUIRK_AUDIO_EDIROL_UAXX
1521 },
1522 {
1523 .ifnum = -1
1524 }
1525 }
1526 }
1527},
Clemens Ladischd867bba2009-11-19 14:34:33 +01001528{
1529 /* has ID 0x00ea when not in Advanced Driver mode */
1530 USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e9),
1531 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1532 /* .vendor_name = "Roland", */
1533 /* .product_name = "UA-1G", */
1534 .ifnum = QUIRK_ANY_INTERFACE,
1535 .type = QUIRK_COMPOSITE,
1536 .data = (const struct snd_usb_audio_quirk[]) {
1537 {
1538 .ifnum = 0,
1539 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1540 },
1541 {
1542 .ifnum = 1,
1543 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1544 },
1545 {
1546 .ifnum = -1
1547 }
1548 }
1549 }
1550},
Chris Mennie62b12632008-05-19 16:21:33 +02001551
Clemens Ladischa25f1752005-10-05 13:23:19 +02001552/* Guillemot devices */
1553{
1554 /*
1555 * This is for the "Windows Edition" where the external MIDI ports are
1556 * the only MIDI ports; the control data is reported through HID
1557 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1558 * compliant USB MIDI ports for external MIDI and controls.
1559 */
1560 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001561 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001562 .vendor_name = "Hercules",
1563 .product_name = "DJ Console (WE)",
1564 .ifnum = 4,
1565 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001566 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001567 .out_cables = 0x0001,
1568 .in_cables = 0x0001
1569 }
1570 }
1571},
1572
Linus Torvalds1da177e2005-04-16 15:20:36 -07001573/* Midiman/M-Audio devices */
1574{
1575 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001576 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001577 .vendor_name = "M-Audio",
1578 .product_name = "MidiSport 2x2",
1579 .ifnum = QUIRK_ANY_INTERFACE,
1580 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001581 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001582 .out_cables = 0x0003,
1583 .in_cables = 0x0003
1584 }
1585 }
1586},
1587{
1588 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001589 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001590 .vendor_name = "M-Audio",
1591 .product_name = "MidiSport 1x1",
1592 .ifnum = QUIRK_ANY_INTERFACE,
1593 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001594 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001595 .out_cables = 0x0001,
1596 .in_cables = 0x0001
1597 }
1598 }
1599},
1600{
1601 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001602 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001603 .vendor_name = "M-Audio",
1604 .product_name = "Keystation",
1605 .ifnum = QUIRK_ANY_INTERFACE,
1606 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001607 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001608 .out_cables = 0x0001,
1609 .in_cables = 0x0001
1610 }
1611 }
1612},
1613{
1614 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001615 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001616 .vendor_name = "M-Audio",
1617 .product_name = "MidiSport 4x4",
1618 .ifnum = QUIRK_ANY_INTERFACE,
1619 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001620 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001621 .out_cables = 0x000f,
1622 .in_cables = 0x000f
1623 }
1624 }
1625},
1626{
1627 /*
1628 * For hardware revision 1.05; in the later revisions (1.10 and
1629 * 1.21), 0x1031 is the ID for the device without firmware.
1630 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1631 */
1632 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001633 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001634 .vendor_name = "M-Audio",
1635 .product_name = "MidiSport 8x8",
1636 .ifnum = QUIRK_ANY_INTERFACE,
1637 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001638 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001639 .out_cables = 0x01ff,
1640 .in_cables = 0x01ff
1641 }
1642 }
1643},
1644{
1645 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001646 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001647 .vendor_name = "M-Audio",
1648 .product_name = "MidiSport 8x8",
1649 .ifnum = QUIRK_ANY_INTERFACE,
1650 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001651 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001652 .out_cables = 0x01ff,
1653 .in_cables = 0x01ff
1654 }
1655 }
1656},
1657{
1658 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001659 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001660 .vendor_name = "M-Audio",
1661 .product_name = "MidiSport 2x4",
1662 .ifnum = QUIRK_ANY_INTERFACE,
1663 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001664 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001665 .out_cables = 0x000f,
1666 .in_cables = 0x0003
1667 }
1668 }
1669},
1670{
1671 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001672 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001673 .vendor_name = "M-Audio",
1674 .product_name = "Quattro",
1675 .ifnum = QUIRK_ANY_INTERFACE,
1676 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001677 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001678 /*
1679 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1680 * and share endpoints with the other interfaces.
1681 * Ignore them. The other interfaces can do 24 bits,
1682 * but captured samples are big-endian (see usbaudio.c).
1683 */
1684 {
1685 .ifnum = 0,
1686 .type = QUIRK_IGNORE_INTERFACE
1687 },
1688 {
1689 .ifnum = 1,
1690 .type = QUIRK_IGNORE_INTERFACE
1691 },
1692 {
1693 .ifnum = 2,
1694 .type = QUIRK_IGNORE_INTERFACE
1695 },
1696 {
1697 .ifnum = 3,
1698 .type = QUIRK_IGNORE_INTERFACE
1699 },
1700 {
1701 .ifnum = 4,
1702 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1703 },
1704 {
1705 .ifnum = 5,
1706 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1707 },
1708 {
1709 .ifnum = 6,
1710 .type = QUIRK_IGNORE_INTERFACE
1711 },
1712 {
1713 .ifnum = 7,
1714 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1715 },
1716 {
1717 .ifnum = 8,
1718 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1719 },
1720 {
1721 .ifnum = 9,
1722 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001723 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001724 .out_cables = 0x0001,
1725 .in_cables = 0x0001
1726 }
1727 },
1728 {
1729 .ifnum = -1
1730 }
1731 }
1732 }
1733},
1734{
1735 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001736 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001737 .vendor_name = "M-Audio",
1738 .product_name = "AudioPhile",
1739 .ifnum = 6,
1740 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001741 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001742 .out_cables = 0x0001,
1743 .in_cables = 0x0001
1744 }
1745 }
1746},
1747{
1748 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001749 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001750 .vendor_name = "M-Audio",
1751 .product_name = "Ozone",
1752 .ifnum = 3,
1753 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001754 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001755 .out_cables = 0x0001,
1756 .in_cables = 0x0001
1757 }
1758 }
1759},
1760{
1761 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001762 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001763 .vendor_name = "M-Audio",
1764 .product_name = "OmniStudio",
1765 .ifnum = QUIRK_ANY_INTERFACE,
1766 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001767 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001768 {
1769 .ifnum = 0,
1770 .type = QUIRK_IGNORE_INTERFACE
1771 },
1772 {
1773 .ifnum = 1,
1774 .type = QUIRK_IGNORE_INTERFACE
1775 },
1776 {
1777 .ifnum = 2,
1778 .type = QUIRK_IGNORE_INTERFACE
1779 },
1780 {
1781 .ifnum = 3,
1782 .type = QUIRK_IGNORE_INTERFACE
1783 },
1784 {
1785 .ifnum = 4,
1786 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1787 },
1788 {
1789 .ifnum = 5,
1790 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1791 },
1792 {
1793 .ifnum = 6,
1794 .type = QUIRK_IGNORE_INTERFACE
1795 },
1796 {
1797 .ifnum = 7,
1798 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1799 },
1800 {
1801 .ifnum = 8,
1802 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1803 },
1804 {
1805 .ifnum = 9,
1806 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001807 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001808 .out_cables = 0x0001,
1809 .in_cables = 0x0001
1810 }
1811 },
1812 {
1813 .ifnum = -1
1814 }
1815 }
1816 }
1817},
Clemens Ladisch2ea547dc2007-09-17 09:33:17 +02001818{
1819 USB_DEVICE(0x0763, 0x2019),
1820 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1821 /* .vendor_name = "M-Audio", */
1822 /* .product_name = "Ozone Academic", */
1823 .ifnum = QUIRK_ANY_INTERFACE,
1824 .type = QUIRK_COMPOSITE,
1825 .data = & (const struct snd_usb_audio_quirk[]) {
1826 {
1827 .ifnum = 0,
1828 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1829 },
1830 {
1831 .ifnum = 1,
1832 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1833 },
1834 {
1835 .ifnum = 2,
1836 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1837 },
1838 {
1839 .ifnum = 3,
1840 .type = QUIRK_MIDI_MIDIMAN,
1841 .data = & (const struct snd_usb_midi_endpoint_info) {
1842 .out_cables = 0x0001,
1843 .in_cables = 0x0001
1844 }
1845 },
1846 {
1847 .ifnum = -1
1848 }
1849 }
1850 }
1851},
Felix Homannfca5bca2010-03-25 11:29:14 +01001852{
1853 USB_DEVICE(0x0763, 0x2080),
1854 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1855 /* .vendor_name = "M-Audio", */
Clemens Ladisch65f04442010-09-02 12:58:25 +02001856 /* .product_name = "Fast Track Ultra", */
Felix Homannfca5bca2010-03-25 11:29:14 +01001857 .ifnum = QUIRK_ANY_INTERFACE,
1858 .type = QUIRK_COMPOSITE,
1859 .data = & (const struct snd_usb_audio_quirk[]) {
1860 {
1861 .ifnum = 0,
1862 .type = QUIRK_IGNORE_INTERFACE
1863 },
1864 {
1865 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02001866 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1867 .data = & (const struct audioformat) {
1868 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1869 .channels = 8,
1870 .iface = 1,
1871 .altsetting = 1,
1872 .altset_idx = 1,
1873 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
1874 .endpoint = 0x01,
1875 .ep_attr = 0x09,
1876 .rates = SNDRV_PCM_RATE_44100 |
1877 SNDRV_PCM_RATE_48000 |
1878 SNDRV_PCM_RATE_88200 |
1879 SNDRV_PCM_RATE_96000,
1880 .rate_min = 44100,
1881 .rate_max = 96000,
1882 .nr_rates = 4,
1883 .rate_table = (unsigned int[]) {
1884 44100, 48000, 88200, 96000
1885 }
1886 }
Felix Homannfca5bca2010-03-25 11:29:14 +01001887 },
1888 {
1889 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02001890 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1891 .data = & (const struct audioformat) {
1892 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1893 .channels = 8,
1894 .iface = 2,
1895 .altsetting = 1,
1896 .altset_idx = 1,
1897 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
1898 .endpoint = 0x81,
1899 .ep_attr = 0x05,
1900 .rates = SNDRV_PCM_RATE_44100 |
1901 SNDRV_PCM_RATE_48000 |
1902 SNDRV_PCM_RATE_88200 |
1903 SNDRV_PCM_RATE_96000,
1904 .rate_min = 44100,
1905 .rate_max = 96000,
1906 .nr_rates = 4,
1907 .rate_table = (unsigned int[]) {
1908 44100, 48000, 88200, 96000
1909 }
1910 }
Felix Homannfca5bca2010-03-25 11:29:14 +01001911 },
1912 /* interface 3 (MIDI) is standard compliant */
1913 {
1914 .ifnum = -1
1915 }
1916 }
1917 }
1918},
1919{
1920 USB_DEVICE(0x0763, 0x2081),
1921 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1922 /* .vendor_name = "M-Audio", */
1923 /* .product_name = "Fast Track Ultra 8R", */
1924 .ifnum = QUIRK_ANY_INTERFACE,
1925 .type = QUIRK_COMPOSITE,
1926 .data = & (const struct snd_usb_audio_quirk[]) {
1927 {
1928 .ifnum = 0,
1929 .type = QUIRK_IGNORE_INTERFACE
1930 },
1931 {
1932 .ifnum = 1,
Clemens Ladisch65f04442010-09-02 12:58:25 +02001933 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1934 .data = & (const struct audioformat) {
1935 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1936 .channels = 8,
1937 .iface = 1,
1938 .altsetting = 1,
1939 .altset_idx = 1,
1940 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
1941 .endpoint = 0x01,
1942 .ep_attr = 0x09,
1943 .rates = SNDRV_PCM_RATE_44100 |
1944 SNDRV_PCM_RATE_48000 |
1945 SNDRV_PCM_RATE_88200 |
1946 SNDRV_PCM_RATE_96000,
1947 .rate_min = 44100,
1948 .rate_max = 96000,
1949 .nr_rates = 4,
1950 .rate_table = (unsigned int[]) {
1951 44100, 48000, 88200, 96000
1952 }
1953 }
Felix Homannfca5bca2010-03-25 11:29:14 +01001954 },
1955 {
1956 .ifnum = 2,
Clemens Ladisch65f04442010-09-02 12:58:25 +02001957 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
1958 .data = & (const struct audioformat) {
1959 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1960 .channels = 8,
1961 .iface = 2,
1962 .altsetting = 1,
1963 .altset_idx = 1,
1964 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
1965 .endpoint = 0x81,
1966 .ep_attr = 0x05,
1967 .rates = SNDRV_PCM_RATE_44100 |
1968 SNDRV_PCM_RATE_48000 |
1969 SNDRV_PCM_RATE_88200 |
1970 SNDRV_PCM_RATE_96000,
1971 .rate_min = 44100,
1972 .rate_max = 96000,
1973 .nr_rates = 4,
1974 .rate_table = (unsigned int[]) {
1975 44100, 48000, 88200, 96000
1976 }
1977 }
Felix Homannfca5bca2010-03-25 11:29:14 +01001978 },
1979 /* interface 3 (MIDI) is standard compliant */
1980 {
1981 .ifnum = -1
1982 }
1983 }
1984 }
1985},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001986
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001987/* Casio devices */
1988{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01001989 USB_DEVICE(0x07cf, 0x6801),
1990 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1991 .vendor_name = "Casio",
1992 .product_name = "PL-40R",
1993 .ifnum = 0,
1994 .type = QUIRK_MIDI_YAMAHA
1995 }
1996},
1997{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001998 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001999 USB_DEVICE(0x07cf, 0x6802),
2000 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2001 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01002002 .product_name = "Keyboard",
Clemens Ladisch0243ef712006-03-09 07:55:55 +01002003 .ifnum = 0,
2004 .type = QUIRK_MIDI_YAMAHA
2005 }
2006},
2007
Linus Torvalds1da177e2005-04-16 15:20:36 -07002008/* Mark of the Unicorn devices */
2009{
2010 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02002011 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
2012 USB_DEVICE_ID_MATCH_PRODUCT |
2013 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
2014 .idVendor = 0x07fd,
2015 .idProduct = 0x0001,
2016 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002017 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002018 .vendor_name = "MOTU",
2019 .product_name = "Fastlane",
2020 .ifnum = QUIRK_ANY_INTERFACE,
2021 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002022 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002023 {
2024 .ifnum = 0,
Clemens Ladisch55de5ef2009-05-27 10:49:30 +02002025 .type = QUIRK_MIDI_FASTLANE
Linus Torvalds1da177e2005-04-16 15:20:36 -07002026 },
2027 {
2028 .ifnum = 1,
2029 .type = QUIRK_IGNORE_INTERFACE
2030 },
2031 {
2032 .ifnum = -1
2033 }
2034 }
2035 }
2036},
2037
Linus Torvalds1da177e2005-04-16 15:20:36 -07002038/* Emagic devices */
2039{
2040 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002041 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002042 .vendor_name = "Emagic",
2043 /* .product_name = "Unitor8", */
2044 .ifnum = 2,
2045 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002046 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002047 .out_cables = 0x80ff,
2048 .in_cables = 0x80ff
2049 }
2050 }
2051},
2052{
2053 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002054 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002055 .vendor_name = "Emagic",
2056 /* .product_name = "AMT8", */
2057 .ifnum = 2,
2058 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002059 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002060 .out_cables = 0x80ff,
2061 .in_cables = 0x80ff
2062 }
2063 }
2064},
2065{
2066 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002067 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002068 .vendor_name = "Emagic",
2069 /* .product_name = "MT4", */
2070 .ifnum = 2,
2071 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002072 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002073 .out_cables = 0x800f,
2074 .in_cables = 0x8003
2075 }
2076 }
2077},
2078
Krzysztof Foltman4434ade2010-05-20 20:31:10 +01002079/* AKAI devices */
2080{
2081 USB_DEVICE(0x09e8, 0x0062),
2082 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2083 .vendor_name = "AKAI",
2084 .product_name = "MPD16",
2085 .ifnum = 0,
2086 .type = QUIRK_MIDI_AKAI,
2087 }
2088},
2089
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002090/* TerraTec devices */
2091{
2092 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002093 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002094 .vendor_name = "TerraTec",
2095 .product_name = "PHASE 26",
2096 .ifnum = 3,
2097 .type = QUIRK_MIDI_STANDARD_INTERFACE
2098 }
2099},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002100{
2101 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002102 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02002103 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07002104 .product_name = "PHASE 26",
2105 .ifnum = 3,
2106 .type = QUIRK_MIDI_STANDARD_INTERFACE
2107 }
2108},
Clemens Ladischb2b82292006-02-08 12:38:23 +01002109{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02002110 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
2111 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2112 .vendor_name = "TerraTec",
2113 .product_name = "PHASE 26",
2114 .ifnum = 3,
2115 .type = QUIRK_MIDI_STANDARD_INTERFACE
2116 }
2117},
2118{
Andrea Borgiaca85b6b2009-06-02 19:21:17 +02002119 USB_DEVICE(0x0ccd, 0x0028),
Andrea Borgia93bfd012009-06-01 10:48:54 +02002120 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2121 .vendor_name = "TerraTec",
Andrea Borgiad9e89bf2009-06-14 12:16:17 +02002122 .product_name = "Aureon5.1MkII",
Andrea Borgia93bfd012009-06-01 10:48:54 +02002123 .ifnum = QUIRK_NO_INTERFACE
2124 }
2125},
2126{
Clemens Ladischb2b82292006-02-08 12:38:23 +01002127 USB_DEVICE(0x0ccd, 0x0035),
2128 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2129 .vendor_name = "Miditech",
2130 .product_name = "Play'n Roll",
2131 .ifnum = 0,
2132 .type = QUIRK_MIDI_CME
2133 }
2134},
Linus Torvalds1da177e2005-04-16 15:20:36 -07002135
Mark Hills0f28ecd2007-08-10 08:01:54 +02002136/* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
2137{
2138 USB_DEVICE(0x103d, 0x0100),
2139 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2140 .vendor_name = "Stanton",
2141 .product_name = "ScratchAmp",
2142 .ifnum = QUIRK_NO_INTERFACE
2143 }
2144},
2145{
2146 USB_DEVICE(0x103d, 0x0101),
2147 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2148 .vendor_name = "Stanton",
2149 .product_name = "ScratchAmp",
2150 .ifnum = QUIRK_NO_INTERFACE
2151 }
2152},
2153
Linus Torvalds1da177e2005-04-16 15:20:36 -07002154/* Novation EMS devices */
2155{
2156 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002157 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002158 .vendor_name = "Novation",
2159 .product_name = "ReMOTE Audio/XStation",
2160 .ifnum = 4,
2161 .type = QUIRK_MIDI_NOVATION
2162 }
2163},
2164{
2165 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002166 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002167 .vendor_name = "Novation",
2168 .product_name = "Speedio",
2169 .ifnum = 3,
2170 .type = QUIRK_MIDI_NOVATION
2171 }
2172},
2173{
2174 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002175 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002176 .vendor_name = "Novation",
2177 .product_name = "ReMOTE25",
2178 .ifnum = 0,
2179 .type = QUIRK_MIDI_NOVATION
2180 }
2181},
2182
Sebastien Alaiwand39e82d2010-02-16 08:55:08 +01002183/* Access Music devices */
2184{
2185 /* VirusTI Desktop */
2186 USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
2187 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2188 .ifnum = QUIRK_ANY_INTERFACE,
2189 .type = QUIRK_COMPOSITE,
2190 .data = &(const struct snd_usb_audio_quirk[]) {
2191 {
2192 .ifnum = 3,
2193 .type = QUIRK_MIDI_FIXED_ENDPOINT,
2194 .data = &(const struct snd_usb_midi_endpoint_info) {
2195 .out_cables = 0x0003,
2196 .in_cables = 0x0003
2197 }
2198 },
2199 {
2200 .ifnum = 4,
2201 .type = QUIRK_IGNORE_INTERFACE
2202 },
2203 {
2204 .ifnum = -1
2205 }
2206 }
2207 }
2208},
2209
Mark Hills3a7788b2007-09-03 08:20:09 +02002210/* */
Clemens Ladisch15944802007-08-29 17:38:14 +02002211{
Mark Hills3a7788b2007-09-03 08:20:09 +02002212 /* aka. Serato Scratch Live DJ Box */
Clemens Ladisch15944802007-08-29 17:38:14 +02002213 USB_DEVICE(0x13e5, 0x0001),
Mark Hills3a7788b2007-09-03 08:20:09 +02002214 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2215 .vendor_name = "Rane",
2216 .product_name = "SL-1",
2217 .ifnum = QUIRK_NO_INTERFACE
Clemens Ladisch15944802007-08-29 17:38:14 +02002218 }
2219},
2220
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002221/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002222{
Clemens Ladischf38275f2005-07-25 16:17:29 +02002223 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002224 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002225 .vendor_name = "Miditech",
2226 .product_name = "Midistart-2",
2227 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002228 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002229 }
2230},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002231
2232/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002233{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002234 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02002235 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01002236 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02002237 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01002238 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02002239 }
2240},
2241
John S. Gruber52a7a582009-12-27 12:19:59 -05002242/* Hauppauge HVR-950Q and HVR-850 */
2243{
2244 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
2245 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2246 USB_DEVICE_ID_MATCH_INT_CLASS |
2247 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2248 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002249 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
John S. Gruber52a7a582009-12-27 12:19:59 -05002250 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2251 .vendor_name = "Hauppauge",
2252 .product_name = "HVR-950Q",
2253 .ifnum = QUIRK_ANY_INTERFACE,
2254 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2255 }
2256},
2257{
John S Gruberdd2f8c22010-08-01 09:53:37 -04002258 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
John S. Gruber52a7a582009-12-27 12:19:59 -05002259 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2260 USB_DEVICE_ID_MATCH_INT_CLASS |
2261 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2262 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002263 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
John S. Gruber52a7a582009-12-27 12:19:59 -05002264 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2265 .vendor_name = "Hauppauge",
2266 .product_name = "HVR-850",
2267 .ifnum = QUIRK_ANY_INTERFACE,
2268 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2269 }
2270},
John S Gruberdd2f8c22010-08-01 09:53:37 -04002271{
2272 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
2273 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2274 USB_DEVICE_ID_MATCH_INT_CLASS |
2275 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2276 .bInterfaceClass = USB_CLASS_AUDIO,
2277 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2278 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2279 .vendor_name = "Hauppauge",
2280 .product_name = "HVR-950Q",
2281 .ifnum = QUIRK_ANY_INTERFACE,
2282 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2283 }
2284},
2285{
2286 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
2287 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2288 USB_DEVICE_ID_MATCH_INT_CLASS |
2289 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2290 .bInterfaceClass = USB_CLASS_AUDIO,
2291 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2292 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2293 .vendor_name = "Hauppauge",
2294 .product_name = "HVR-950Q",
2295 .ifnum = QUIRK_ANY_INTERFACE,
2296 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2297 }
2298},
2299{
2300 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
2301 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2302 USB_DEVICE_ID_MATCH_INT_CLASS |
2303 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2304 .bInterfaceClass = USB_CLASS_AUDIO,
2305 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2306 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2307 .vendor_name = "Hauppauge",
2308 .product_name = "HVR-950Q",
2309 .ifnum = QUIRK_ANY_INTERFACE,
2310 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2311 }
2312},
2313{
2314 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
2315 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2316 USB_DEVICE_ID_MATCH_INT_CLASS |
2317 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2318 .bInterfaceClass = USB_CLASS_AUDIO,
2319 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2320 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2321 .vendor_name = "Hauppauge",
2322 .product_name = "HVR-950Q",
2323 .ifnum = QUIRK_ANY_INTERFACE,
2324 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2325 }
2326},
2327{
2328 USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
2329 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2330 USB_DEVICE_ID_MATCH_INT_CLASS |
2331 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2332 .bInterfaceClass = USB_CLASS_AUDIO,
2333 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2334 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2335 .vendor_name = "Hauppauge",
2336 .product_name = "HVR-950Q",
2337 .ifnum = QUIRK_ANY_INTERFACE,
2338 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2339 }
2340},
2341{
2342 USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
2343 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2344 USB_DEVICE_ID_MATCH_INT_CLASS |
2345 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2346 .bInterfaceClass = USB_CLASS_AUDIO,
2347 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2348 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2349 .vendor_name = "Hauppauge",
2350 .product_name = "HVR-950Q",
2351 .ifnum = QUIRK_ANY_INTERFACE,
2352 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2353 }
2354},
2355{
2356 USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
2357 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
2358 USB_DEVICE_ID_MATCH_INT_CLASS |
2359 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2360 .bInterfaceClass = USB_CLASS_AUDIO,
2361 .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2362 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2363 .vendor_name = "Hauppauge",
2364 .product_name = "HVR-950Q",
2365 .ifnum = QUIRK_ANY_INTERFACE,
2366 .type = QUIRK_AUDIO_ALIGN_TRANSFER,
2367 }
2368},
John S. Gruber52a7a582009-12-27 12:19:59 -05002369
Chris J Arges40717382010-02-17 12:12:52 -06002370/* Digidesign Mbox */
2371{
2372 /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
2373 USB_DEVICE(0x0dba, 0x1000),
2374 .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
2375 .vendor_name = "Digidesign",
2376 .product_name = "MBox",
2377 .ifnum = QUIRK_ANY_INTERFACE,
2378 .type = QUIRK_COMPOSITE,
2379 .data = (const struct snd_usb_audio_quirk[]){
2380 {
2381 .ifnum = 0,
2382 .type = QUIRK_IGNORE_INTERFACE,
2383 },
2384 {
2385 .ifnum = 1,
2386 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
2387 .data = &(const struct audioformat) {
Clemens Ladisch29088fe2010-03-04 19:46:16 +01002388 .formats = SNDRV_PCM_FMTBIT_S24_3BE,
Chris J Arges40717382010-02-17 12:12:52 -06002389 .channels = 2,
2390 .iface = 1,
2391 .altsetting = 1,
2392 .altset_idx = 1,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002393 .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
Chris J Arges40717382010-02-17 12:12:52 -06002394 .endpoint = 0x02,
2395 .ep_attr = 0x01,
2396 .maxpacksize = 0x130,
2397 .rates = SNDRV_PCM_RATE_44100 |
2398 SNDRV_PCM_RATE_48000,
2399 .rate_min = 44100,
2400 .rate_max = 48000,
2401 .nr_rates = 2,
2402 .rate_table = (unsigned int[]) {
2403 44100, 48000
2404 }
2405 }
2406 },
2407 {
2408 .ifnum = -1
2409 }
2410 }
2411
2412 }
2413},
2414
Clemens Ladischf38275f2005-07-25 16:17:29 +02002415{
Linus Torvalds1da177e2005-04-16 15:20:36 -07002416 /*
2417 * Some USB MIDI devices don't have an audio control interface,
2418 * so we have to grab MIDI streaming interfaces here.
2419 */
2420 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
2421 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
2422 .bInterfaceClass = USB_CLASS_AUDIO,
Daniel Mackde48c7b2010-02-22 23:49:13 +01002423 .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01002424 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07002425 .ifnum = QUIRK_ANY_INTERFACE,
2426 .type = QUIRK_MIDI_STANDARD_INTERFACE
2427 }
2428},
2429
2430#undef USB_DEVICE_VENDOR_SPEC