blob: 9274baf699015bba026015feca8e27432d198d20 [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
42/*
Daniel Drakea9121452007-05-07 09:27:05 +020043 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
44 * class matches do not take effect without an explicit ID match.
45 */
46{
47 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
48 USB_DEVICE_ID_MATCH_INT_CLASS |
49 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
50 .idVendor = 0x046d,
Daniel Draked4170452007-05-10 08:52:19 +020051 .idProduct = 0x0850,
52 .bInterfaceClass = USB_CLASS_AUDIO,
53 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
54},
55{
56 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
57 USB_DEVICE_ID_MATCH_INT_CLASS |
58 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
59 .idVendor = 0x046d,
Daniel Drake500bec32007-05-10 08:52:19 +020060 .idProduct = 0x0850,
61 .bInterfaceClass = USB_CLASS_AUDIO,
62 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
63},
64{
65 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
66 USB_DEVICE_ID_MATCH_INT_CLASS |
67 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
68 .idVendor = 0x046d,
Daniel Drakea9121452007-05-07 09:27:05 +020069 .idProduct = 0x08f0,
70 .bInterfaceClass = USB_CLASS_AUDIO,
71 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
72},
73{
74 .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
75 USB_DEVICE_ID_MATCH_INT_CLASS |
76 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
77 .idVendor = 0x046d,
78 .idProduct = 0x08f6,
79 .bInterfaceClass = USB_CLASS_AUDIO,
80 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
81},
82
83/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070084 * Yamaha devices
85 */
86
87#define YAMAHA_DEVICE(id, name) { \
88 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +010089 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -070090 .vendor_name = "Yamaha", \
91 .product_name = name, \
92 .ifnum = QUIRK_ANY_INTERFACE, \
93 .type = QUIRK_MIDI_YAMAHA \
94 } \
95}
96#define YAMAHA_INTERFACE(id, intf, name) { \
97 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +010098 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -070099 .vendor_name = "Yamaha", \
100 .product_name = name, \
101 .ifnum = intf, \
102 .type = QUIRK_MIDI_YAMAHA \
103 } \
104}
105YAMAHA_DEVICE(0x1000, "UX256"),
106YAMAHA_DEVICE(0x1001, "MU1000"),
107YAMAHA_DEVICE(0x1002, "MU2000"),
108YAMAHA_DEVICE(0x1003, "MU500"),
109YAMAHA_INTERFACE(0x1004, 3, "UW500"),
110YAMAHA_DEVICE(0x1005, "MOTIF6"),
111YAMAHA_DEVICE(0x1006, "MOTIF7"),
112YAMAHA_DEVICE(0x1007, "MOTIF8"),
113YAMAHA_DEVICE(0x1008, "UX96"),
114YAMAHA_DEVICE(0x1009, "UX16"),
115YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
116YAMAHA_DEVICE(0x100c, "UC-MX"),
117YAMAHA_DEVICE(0x100d, "UC-KX"),
118YAMAHA_DEVICE(0x100e, "S08"),
119YAMAHA_DEVICE(0x100f, "CLP-150"),
120YAMAHA_DEVICE(0x1010, "CLP-170"),
121YAMAHA_DEVICE(0x1011, "P-250"),
122YAMAHA_DEVICE(0x1012, "TYROS"),
123YAMAHA_DEVICE(0x1013, "PF-500"),
124YAMAHA_DEVICE(0x1014, "S90"),
125YAMAHA_DEVICE(0x1015, "MOTIF-R"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100126YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127YAMAHA_DEVICE(0x1017, "CVP-204"),
128YAMAHA_DEVICE(0x1018, "CVP-206"),
129YAMAHA_DEVICE(0x1019, "CVP-208"),
130YAMAHA_DEVICE(0x101a, "CVP-210"),
131YAMAHA_DEVICE(0x101b, "PSR-1100"),
132YAMAHA_DEVICE(0x101c, "PSR-2100"),
133YAMAHA_DEVICE(0x101d, "CLP-175"),
134YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +0100135YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136YAMAHA_DEVICE(0x1020, "EZ-250i"),
137YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
138YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
139YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
140YAMAHA_DEVICE(0x1024, "CVP-301"),
141YAMAHA_DEVICE(0x1025, "CVP-303"),
142YAMAHA_DEVICE(0x1026, "CVP-305"),
143YAMAHA_DEVICE(0x1027, "CVP-307"),
144YAMAHA_DEVICE(0x1028, "CVP-309"),
145YAMAHA_DEVICE(0x1029, "CVP-309GP"),
146YAMAHA_DEVICE(0x102a, "PSR-1500"),
147YAMAHA_DEVICE(0x102b, "PSR-3000"),
148YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
149YAMAHA_DEVICE(0x1030, "PSR-295/293"),
150YAMAHA_DEVICE(0x1031, "DGX-205/203"),
151YAMAHA_DEVICE(0x1032, "DGX-305"),
152YAMAHA_DEVICE(0x1033, "DGX-505"),
153YAMAHA_DEVICE(0x1034, NULL),
154YAMAHA_DEVICE(0x1035, NULL),
155YAMAHA_DEVICE(0x1036, NULL),
156YAMAHA_DEVICE(0x1037, NULL),
157YAMAHA_DEVICE(0x1038, NULL),
158YAMAHA_DEVICE(0x1039, NULL),
159YAMAHA_DEVICE(0x103a, NULL),
160YAMAHA_DEVICE(0x103b, NULL),
161YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200162YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200163YAMAHA_DEVICE(0x103e, NULL),
164YAMAHA_DEVICE(0x103f, NULL),
165YAMAHA_DEVICE(0x1040, NULL),
166YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200167YAMAHA_DEVICE(0x1042, NULL),
168YAMAHA_DEVICE(0x1043, NULL),
169YAMAHA_DEVICE(0x1044, NULL),
170YAMAHA_DEVICE(0x1045, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171YAMAHA_DEVICE(0x2000, "DGP-7"),
172YAMAHA_DEVICE(0x2001, "DGP-5"),
173YAMAHA_DEVICE(0x2002, NULL),
174YAMAHA_DEVICE(0x5000, "CS1D"),
175YAMAHA_DEVICE(0x5001, "DSP1D"),
176YAMAHA_DEVICE(0x5002, "DME32"),
177YAMAHA_DEVICE(0x5003, "DM2000"),
178YAMAHA_DEVICE(0x5004, "02R96"),
179YAMAHA_DEVICE(0x5005, "ACU16-C"),
180YAMAHA_DEVICE(0x5006, "NHB32-C"),
181YAMAHA_DEVICE(0x5007, "DM1000"),
182YAMAHA_DEVICE(0x5008, "01V96"),
183YAMAHA_DEVICE(0x5009, "SPX2000"),
184YAMAHA_DEVICE(0x500a, "PM5D"),
185YAMAHA_DEVICE(0x500b, "DME64N"),
186YAMAHA_DEVICE(0x500c, "DME24N"),
187YAMAHA_DEVICE(0x500d, NULL),
188YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200189YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700190YAMAHA_DEVICE(0x7000, "DTX"),
191YAMAHA_DEVICE(0x7010, "UB99"),
192#undef YAMAHA_DEVICE
193#undef YAMAHA_INTERFACE
194
195/*
196 * Roland/RolandED/Edirol/BOSS devices
197 */
198{
199 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100200 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700201 .vendor_name = "Roland",
202 .product_name = "UA-100",
203 .ifnum = QUIRK_ANY_INTERFACE,
204 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100205 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206 {
207 .ifnum = 0,
208 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
209 .data = & (const struct audioformat) {
210 .format = SNDRV_PCM_FORMAT_S16_LE,
211 .channels = 4,
212 .iface = 0,
213 .altsetting = 1,
214 .altset_idx = 1,
215 .attributes = 0,
216 .endpoint = 0x01,
217 .ep_attr = 0x09,
218 .rates = SNDRV_PCM_RATE_CONTINUOUS,
219 .rate_min = 44100,
220 .rate_max = 44100,
221 }
222 },
223 {
224 .ifnum = 1,
225 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
226 .data = & (const struct audioformat) {
227 .format = SNDRV_PCM_FORMAT_S16_LE,
228 .channels = 2,
229 .iface = 1,
230 .altsetting = 1,
231 .altset_idx = 1,
232 .attributes = EP_CS_ATTR_FILL_MAX,
233 .endpoint = 0x81,
234 .ep_attr = 0x05,
235 .rates = SNDRV_PCM_RATE_CONTINUOUS,
236 .rate_min = 44100,
237 .rate_max = 44100,
238 }
239 },
240 {
241 .ifnum = 2,
242 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100243 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700244 .out_cables = 0x0007,
245 .in_cables = 0x0007
246 }
247 },
248 {
249 .ifnum = -1
250 }
251 }
252 }
253},
254{
255 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100256 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257 .vendor_name = "EDIROL",
258 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200259 .ifnum = QUIRK_ANY_INTERFACE,
260 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100261 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200262 {
263 .ifnum = 0,
264 .type = QUIRK_IGNORE_INTERFACE
265 },
266 {
267 .ifnum = 1,
268 .type = QUIRK_IGNORE_INTERFACE
269 },
270 {
271 .ifnum = 2,
272 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100273 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200274 .out_cables = 0x000f,
275 .in_cables = 0x000f
276 }
277 },
278 {
279 .ifnum = -1
280 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700281 }
282 }
283},
284{
285 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100286 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700287 .vendor_name = "Roland",
288 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200289 .ifnum = QUIRK_ANY_INTERFACE,
290 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100291 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200292 {
293 .ifnum = 0,
294 .type = QUIRK_IGNORE_INTERFACE
295 },
296 {
297 .ifnum = 1,
298 .type = QUIRK_IGNORE_INTERFACE
299 },
300 {
301 .ifnum = 2,
302 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100303 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200304 .out_cables = 0x003f,
305 .in_cables = 0x003f
306 }
307 },
308 {
309 .ifnum = -1
310 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700311 }
312 }
313},
314{
315 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100316 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700317 .vendor_name = "Roland",
318 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200319 .ifnum = QUIRK_ANY_INTERFACE,
320 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100321 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200322 {
323 .ifnum = 0,
324 .type = QUIRK_IGNORE_INTERFACE
325 },
326 {
327 .ifnum = 1,
328 .type = QUIRK_IGNORE_INTERFACE
329 },
330 {
331 .ifnum = 2,
332 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100333 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200334 .out_cables = 0x0005,
335 .in_cables = 0x0005
336 }
337 },
338 {
339 .ifnum = -1
340 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700341 }
342 }
343},
344{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100345 /* Has ID 0x0099 when not in "Advanced Driver" mode.
346 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700347 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100348 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700349 .vendor_name = "EDIROL",
350 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200351 .ifnum = QUIRK_ANY_INTERFACE,
352 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100353 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200354 {
355 .ifnum = 0,
356 .type = QUIRK_IGNORE_INTERFACE
357 },
358 {
359 .ifnum = 1,
360 .type = QUIRK_IGNORE_INTERFACE
361 },
362 {
363 .ifnum = 2,
364 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100365 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200366 .out_cables = 0x0003,
367 .in_cables = 0x0003
368 }
369 },
370 {
371 .ifnum = -1
372 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700373 }
374 }
375},
376{
377 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100378 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700379 .vendor_name = "Roland",
380 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200381 .ifnum = QUIRK_ANY_INTERFACE,
382 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100383 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200384 {
385 .ifnum = 0,
386 .type = QUIRK_IGNORE_INTERFACE
387 },
388 {
389 .ifnum = 1,
390 .type = QUIRK_IGNORE_INTERFACE
391 },
392 {
393 .ifnum = 2,
394 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100395 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200396 .out_cables = 0x0013,
397 .in_cables = 0x0013
398 }
399 },
400 {
401 .ifnum = -1
402 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403 }
404 }
405},
406{
407 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100408 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700409 .vendor_name = "Roland",
410 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200411 .ifnum = QUIRK_ANY_INTERFACE,
412 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100413 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200414 {
415 .ifnum = 0,
416 .type = QUIRK_IGNORE_INTERFACE
417 },
418 {
419 .ifnum = 1,
420 .type = QUIRK_IGNORE_INTERFACE
421 },
422 {
423 .ifnum = 2,
424 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100425 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200426 .out_cables = 0x0001,
427 .in_cables = 0x0001
428 }
429 },
430 {
431 .ifnum = -1
432 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700433 }
434 }
435},
436{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100437 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700438 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100439 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700440 .vendor_name = "EDIROL",
441 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200442 .ifnum = QUIRK_ANY_INTERFACE,
443 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100444 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200445 {
446 .ifnum = 0,
447 .type = QUIRK_IGNORE_INTERFACE
448 },
449 {
450 .ifnum = 1,
451 .type = QUIRK_IGNORE_INTERFACE
452 },
453 {
454 .ifnum = 2,
455 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100456 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200457 .out_cables = 0x0001,
458 .in_cables = 0x0001
459 }
460 },
461 {
462 .ifnum = -1
463 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700464 }
465 }
466},
467{
468 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100469 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700470 .vendor_name = "Roland",
471 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200472 .ifnum = QUIRK_ANY_INTERFACE,
473 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100474 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200475 {
476 .ifnum = 0,
477 .type = QUIRK_IGNORE_INTERFACE
478 },
479 {
480 .ifnum = 1,
481 .type = QUIRK_IGNORE_INTERFACE
482 },
483 {
484 .ifnum = 2,
485 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100486 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200487 .out_cables = 0x0013,
488 .in_cables = 0x0013
489 }
490 },
491 {
492 .ifnum = -1
493 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700494 }
495 }
496},
497{
498 /* thanks to Emiliano Grilli <emillo@libero.it>
499 * for helping researching this data */
500 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100501 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700502 .vendor_name = "Roland",
503 .product_name = "SC-D70",
504 .ifnum = QUIRK_ANY_INTERFACE,
505 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100506 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700507 {
508 .ifnum = 0,
509 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
510 .data = & (const struct audioformat) {
511 .format = SNDRV_PCM_FORMAT_S24_3LE,
512 .channels = 2,
513 .iface = 0,
514 .altsetting = 1,
515 .altset_idx = 1,
516 .attributes = 0,
517 .endpoint = 0x01,
518 .ep_attr = 0x01,
519 .rates = SNDRV_PCM_RATE_CONTINUOUS,
520 .rate_min = 44100,
521 .rate_max = 44100,
522 }
523 },
524 {
525 .ifnum = 1,
526 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
527 .data = & (const struct audioformat) {
528 .format = SNDRV_PCM_FORMAT_S24_3LE,
529 .channels = 2,
530 .iface = 1,
531 .altsetting = 1,
532 .altset_idx = 1,
533 .attributes = 0,
534 .endpoint = 0x81,
535 .ep_attr = 0x01,
536 .rates = SNDRV_PCM_RATE_CONTINUOUS,
537 .rate_min = 44100,
538 .rate_max = 44100,
539 }
540 },
541 {
542 .ifnum = 2,
543 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100544 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700545 .out_cables = 0x0007,
546 .in_cables = 0x0007
547 }
548 },
549 {
550 .ifnum = -1
551 }
552 }
553 }
554},
555{ /*
556 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
557 * If the advanced mode switch at the back of the unit is off, the
558 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
559 * but offers only 16-bit PCM.
560 * In advanced mode, the UA-5 will output S24_3LE samples (two
561 * channels) at the rate indicated on the front switch, including
562 * the 96kHz sample rate.
563 */
564 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100565 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700566 .vendor_name = "EDIROL",
567 .product_name = "UA-5",
568 .ifnum = QUIRK_ANY_INTERFACE,
569 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100570 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700571 {
572 .ifnum = 1,
573 .type = QUIRK_AUDIO_STANDARD_INTERFACE
574 },
575 {
576 .ifnum = 2,
577 .type = QUIRK_AUDIO_STANDARD_INTERFACE
578 },
579 {
580 .ifnum = -1
581 }
582 }
583 }
584},
585{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200586 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700587 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100588 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700589 .vendor_name = "Roland",
590 .product_name = "XV-5050",
591 .ifnum = 0,
592 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100593 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700594 .out_cables = 0x0001,
595 .in_cables = 0x0001
596 }
597 }
598},
599{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200600 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700601 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100602 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700603 .vendor_name = "EDIROL",
604 .product_name = "UM-880",
605 .ifnum = 0,
606 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100607 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700608 .out_cables = 0x01ff,
609 .in_cables = 0x01ff
610 }
611 }
612},
613{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200614 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700615 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100616 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700617 .vendor_name = "EDIROL",
618 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200619 .ifnum = QUIRK_ANY_INTERFACE,
620 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100621 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200622 {
623 .ifnum = 0,
624 .type = QUIRK_IGNORE_INTERFACE
625 },
626 {
627 .ifnum = 1,
628 .type = QUIRK_IGNORE_INTERFACE
629 },
630 {
631 .ifnum = 2,
632 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100633 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200634 .out_cables = 0x000f,
635 .in_cables = 0x000f
636 }
637 },
638 {
639 .ifnum = -1
640 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700641 }
642 }
643},
644{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200645 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700646 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100647 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700648 .vendor_name = "Roland",
649 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200650 .ifnum = QUIRK_ANY_INTERFACE,
651 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100652 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200653 {
654 .ifnum = 0,
655 .type = QUIRK_IGNORE_INTERFACE
656 },
657 {
658 .ifnum = 1,
659 .type = QUIRK_IGNORE_INTERFACE
660 },
661 {
662 .ifnum = 2,
663 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100664 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200665 .out_cables = 0x0001,
666 .in_cables = 0x0001
667 }
668 },
669 {
670 .ifnum = -1
671 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700672 }
673 }
674},
675{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200676 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700677 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100678 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700679 .vendor_name = "Roland",
680 .product_name = "V-SYNTH",
681 .ifnum = 0,
682 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100683 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700684 .out_cables = 0x0001,
685 .in_cables = 0x0001
686 }
687 }
688},
689{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200690 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700691 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100692 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700693 .vendor_name = "EDIROL",
694 .product_name = "UM-550",
695 .ifnum = 0,
696 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100697 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700698 .out_cables = 0x003f,
699 .in_cables = 0x003f
700 }
701 }
702},
703{
704 /*
705 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
706 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
707 * and no MIDI.
708 */
709 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100710 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700711 .vendor_name = "EDIROL",
712 .product_name = "UA-20",
713 .ifnum = QUIRK_ANY_INTERFACE,
714 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100715 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700716 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100717 .ifnum = 0,
718 .type = QUIRK_IGNORE_INTERFACE
719 },
720 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700721 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100722 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
723 .data = & (const struct audioformat) {
724 .format = SNDRV_PCM_FORMAT_S24_3LE,
725 .channels = 2,
726 .iface = 1,
727 .altsetting = 1,
728 .altset_idx = 1,
729 .attributes = 0,
730 .endpoint = 0x01,
731 .ep_attr = 0x01,
732 .rates = SNDRV_PCM_RATE_CONTINUOUS,
733 .rate_min = 44100,
734 .rate_max = 44100,
735 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700736 },
737 {
738 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100739 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
740 .data = & (const struct audioformat) {
741 .format = SNDRV_PCM_FORMAT_S24_3LE,
742 .channels = 2,
743 .iface = 2,
744 .altsetting = 1,
745 .altset_idx = 1,
746 .attributes = 0,
747 .endpoint = 0x82,
748 .ep_attr = 0x01,
749 .rates = SNDRV_PCM_RATE_CONTINUOUS,
750 .rate_min = 44100,
751 .rate_max = 44100,
752 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700753 },
754 {
755 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100756 .type = QUIRK_MIDI_FIXED_ENDPOINT,
757 .data = & (const struct snd_usb_midi_endpoint_info) {
758 .out_cables = 0x0001,
759 .in_cables = 0x0001
760 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761 },
762 {
763 .ifnum = -1
764 }
765 }
766 }
767},
768{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200769 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700770 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100771 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700772 .vendor_name = "EDIROL",
773 .product_name = "SD-20",
774 .ifnum = 0,
775 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100776 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700777 .out_cables = 0x0003,
778 .in_cables = 0x0007
779 }
780 }
781},
782{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200783 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700784 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100785 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700786 .vendor_name = "EDIROL",
787 .product_name = "SD-80",
788 .ifnum = 0,
789 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100790 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700791 .out_cables = 0x000f,
792 .in_cables = 0x000f
793 }
794 }
795},
796{ /*
797 * This quirk is for the "Advanced" modes of the Edirol UA-700.
798 * If the sample format switch is not in an advanced setting, the
799 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
800 * but offers only 16-bit PCM and no MIDI.
801 */
802 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
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 = "UA-700",
806 .ifnum = QUIRK_ANY_INTERFACE,
807 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100808 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809 {
810 .ifnum = 1,
811 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
812 },
813 {
814 .ifnum = 2,
815 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
816 },
817 {
818 .ifnum = 3,
819 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
820 },
821 {
822 .ifnum = -1
823 }
824 }
825 }
826},
827{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200828 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700829 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100830 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700831 .vendor_name = "Roland",
832 .product_name = "XV-2020",
833 .ifnum = 0,
834 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100835 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700836 .out_cables = 0x0001,
837 .in_cables = 0x0001
838 }
839 }
840},
841{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200842 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700843 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100844 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700845 .vendor_name = "Roland",
846 .product_name = "VariOS",
847 .ifnum = 0,
848 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100849 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700850 .out_cables = 0x0007,
851 .in_cables = 0x0007
852 }
853 }
854},
855{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200856 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700857 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100858 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700859 .vendor_name = "EDIROL",
860 .product_name = "PCR",
861 .ifnum = 0,
862 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100863 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700864 .out_cables = 0x0003,
865 .in_cables = 0x0007
866 }
867 }
868},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200869 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700870{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200871 /*
872 * Has ID 0x0038 when not in "Advanced Driver" mode;
873 * later revisions use IDs 0x0054 and 0x00a2.
874 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700875 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100876 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700877 .vendor_name = "Roland",
878 .product_name = "Digital Piano",
879 .ifnum = 0,
880 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100881 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700882 .out_cables = 0x0001,
883 .in_cables = 0x0001
884 }
885 }
886},
887{
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200888 /*
889 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
890 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
891 * and no MIDI.
892 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100894 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700895 .vendor_name = "BOSS",
896 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200897 .ifnum = QUIRK_ANY_INTERFACE,
898 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100899 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200900 {
901 .ifnum = 1,
902 .type = QUIRK_AUDIO_STANDARD_INTERFACE
903 },
904 {
905 .ifnum = 2,
906 .type = QUIRK_AUDIO_STANDARD_INTERFACE
907 },
908 {
909 .ifnum = 3,
910 .type = QUIRK_MIDI_STANDARD_INTERFACE
911 },
912 {
913 .ifnum = -1
914 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700915 }
916 }
917},
918{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200919 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700920 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100921 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700922 .vendor_name = "Roland",
923 .product_name = "GI-20",
924 .ifnum = 0,
925 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100926 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700927 .out_cables = 0x0001,
928 .in_cables = 0x0001
929 }
930 }
931},
932{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200933 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700934 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100935 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700936 .vendor_name = "Roland",
937 .product_name = "RS-70",
938 .ifnum = 0,
939 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100940 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700941 .out_cables = 0x0001,
942 .in_cables = 0x0001
943 }
944 }
945},
946{
947 USB_DEVICE(0x0582, 0x0044),
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 = "UA-1000",
951 .ifnum = QUIRK_ANY_INTERFACE,
952 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100953 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700954 {
955 .ifnum = 1,
956 .type = QUIRK_AUDIO_EDIROL_UA1000
957 },
958 {
959 .ifnum = 2,
960 .type = QUIRK_AUDIO_EDIROL_UA1000
961 },
962 {
963 .ifnum = 3,
964 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100965 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700966 .out_cables = 0x0003,
967 .in_cables = 0x0003
968 }
969 },
970 {
971 .ifnum = -1
972 }
973 }
974 }
975},
976{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200977 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700978 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100979 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700980 .vendor_name = "EDIROL",
981 .product_name = "UR-80",
982 .ifnum = 0,
983 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100984 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700985 .out_cables = 0x0003,
986 .in_cables = 0x0007
987 }
988 }
989},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200990 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700991{
Clemens Ladischf38cc312007-02-09 20:52:55 +0100992 /* has ID 0x004e when not in "Advanced Driver" mode */
993 USB_DEVICE(0x0582, 0x004c),
994 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
995 .vendor_name = "EDIROL",
996 .product_name = "PCR-A",
997 .ifnum = QUIRK_ANY_INTERFACE,
998 .type = QUIRK_COMPOSITE,
999 .data = (const struct snd_usb_audio_quirk[]) {
1000 {
1001 .ifnum = 1,
1002 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1003 },
1004 {
1005 .ifnum = 2,
1006 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1007 },
1008 {
1009 .ifnum = -1
1010 }
1011 }
1012 }
1013},
1014{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001015 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001016 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001017 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001018 .vendor_name = "EDIROL",
1019 .product_name = "PCR-A",
1020 .ifnum = 0,
1021 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001022 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001023 .out_cables = 0x0003,
1024 .in_cables = 0x0007
1025 }
1026 }
1027},
1028{
1029 /*
1030 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1031 * is standard compliant, but has only 16-bit PCM.
1032 */
1033 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001034 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001035 .vendor_name = "EDIROL",
1036 .product_name = "UA-3FX",
1037 .ifnum = QUIRK_ANY_INTERFACE,
1038 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001039 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001040 {
1041 .ifnum = 1,
1042 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1043 },
1044 {
1045 .ifnum = 2,
1046 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1047 },
1048 {
1049 .ifnum = -1
1050 }
1051 }
1052 }
1053},
1054{
1055 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001056 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001057 .vendor_name = "EDIROL",
1058 .product_name = "UM-1SX",
1059 .ifnum = 0,
1060 .type = QUIRK_MIDI_STANDARD_INTERFACE
1061 }
1062},
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001063 /* TODO: add Roland EXR support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001064{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001065 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001066 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001067 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001068 .vendor_name = "EDIROL",
1069 .product_name = "PCR-1",
1070 .ifnum = 0,
1071 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001072 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001073 .out_cables = 0x0001,
1074 .in_cables = 0x0003
1075 }
1076 }
1077},
1078{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001079 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001080 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001081 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001082 .vendor_name = "Roland",
1083 .product_name = "SP-606",
1084 .ifnum = 3,
1085 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001086 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001087 .out_cables = 0x0001,
1088 .in_cables = 0x0001
1089 }
1090 }
1091},
1092{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001093 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001094 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001095 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001096 .vendor_name = "Roland",
1097 .product_name = "FANTOM-X",
1098 .ifnum = 0,
1099 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001100 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001101 .out_cables = 0x0001,
1102 .in_cables = 0x0001
1103 }
1104 }
1105},
1106{ /*
1107 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1108 * If the switch is not in an advanced setting, the UA-25 has
1109 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1110 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1111 */
1112 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001113 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001114 .vendor_name = "EDIROL",
1115 .product_name = "UA-25",
1116 .ifnum = QUIRK_ANY_INTERFACE,
1117 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001118 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001119 {
1120 .ifnum = 0,
1121 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1122 },
1123 {
1124 .ifnum = 1,
1125 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1126 },
1127 {
1128 .ifnum = 2,
1129 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1130 },
1131 {
1132 .ifnum = -1
1133 }
1134 }
1135 }
1136},
1137{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001138 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001139 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001140 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001141 .vendor_name = "BOSS",
1142 .product_name = "DR-880",
1143 .ifnum = 0,
1144 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001145 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001146 .out_cables = 0x0001,
1147 .in_cables = 0x0001
1148 }
1149 }
1150},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001151{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001152 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001153 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001154 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001155 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001156 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001157 .ifnum = 0,
1158 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001159 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001160 .out_cables = 0x0003,
1161 .in_cables = 0x0003
1162 }
1163 }
1164},
Bjoern Fayd0b0fac2007-02-05 12:27:21 +01001165/* Roland UA-101 in High-Speed Mode only */
1166{
1167 USB_DEVICE(0x0582, 0x007d),
1168 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1169 .vendor_name = "Roland",
1170 .product_name = "UA-101",
1171 .ifnum = QUIRK_ANY_INTERFACE,
1172 .type = QUIRK_COMPOSITE,
1173 .data = (const struct snd_usb_audio_quirk[]) {
1174 {
1175 .ifnum = 0,
1176 .type = QUIRK_AUDIO_EDIROL_UA101
1177 },
1178 {
1179 .ifnum = 1,
1180 .type = QUIRK_AUDIO_EDIROL_UA101
1181 },
1182 {
1183 .ifnum = 2,
1184 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1185 .data = & (const struct snd_usb_midi_endpoint_info) {
1186 .out_cables = 0x0001,
1187 .in_cables = 0x0001
1188 }
1189 },
1190 {
1191 .ifnum = -1
1192 }
1193 }
1194 }
1195},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001196{
1197 /* has ID 0x0081 when not in "Advanced Driver" mode */
1198 USB_DEVICE(0x0582, 0x0080),
1199 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1200 .vendor_name = "Roland",
1201 .product_name = "G-70",
1202 .ifnum = 0,
1203 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1204 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001205 .out_cables = 0x0001,
1206 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001207 }
1208 }
1209},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001210 /* TODO: add Roland V-SYNTH XT support */
1211 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001212{
1213 /* has ID 0x008c when not in "Advanced Driver" mode */
1214 USB_DEVICE(0x0582, 0x008b),
1215 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1216 .vendor_name = "EDIROL",
1217 .product_name = "PC-50",
1218 .ifnum = 0,
1219 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1220 .data = & (const struct snd_usb_midi_endpoint_info) {
1221 .out_cables = 0x0001,
1222 .in_cables = 0x0001
1223 }
1224 }
1225},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001226 /* TODO: add Edirol PC-80 support */
1227 /* TODO: add Edirol UA-1EX support */
1228{
1229 USB_DEVICE(0x0582, 0x009a),
1230 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1231 .vendor_name = "EDIROL",
1232 .product_name = "UM-3EX",
1233 .ifnum = 0,
1234 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1235 .data = & (const struct snd_usb_midi_endpoint_info) {
1236 .out_cables = 0x000f,
1237 .in_cables = 0x000f
1238 }
1239 }
1240},
1241 /* TODO: add Edirol MD-P1 support */
Carlo Beccaria87823092007-07-03 08:04:25 +02001242{
1243 /* Roland SH-201 */
1244 USB_DEVICE(0x0582, 0x00ad),
1245 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1246 .vendor_name = "Roland",
1247 .product_name = "SH-201",
1248 .ifnum = QUIRK_ANY_INTERFACE,
1249 .type = QUIRK_COMPOSITE,
1250 .data = (const struct snd_usb_audio_quirk[]) {
1251 {
1252 .ifnum = 0,
1253 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1254 },
1255 {
1256 .ifnum = 1,
1257 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1258 },
1259 {
1260 .ifnum = 2,
1261 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1262 .data = & (const struct snd_usb_midi_endpoint_info) {
1263 .out_cables = 0x0001,
1264 .in_cables = 0x0001
1265 }
1266 },
1267 {
1268 .ifnum = -1
1269 }
1270 }
1271 }
1272},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001273
Clemens Ladischa25f1752005-10-05 13:23:19 +02001274/* Guillemot devices */
1275{
1276 /*
1277 * This is for the "Windows Edition" where the external MIDI ports are
1278 * the only MIDI ports; the control data is reported through HID
1279 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1280 * compliant USB MIDI ports for external MIDI and controls.
1281 */
1282 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001283 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001284 .vendor_name = "Hercules",
1285 .product_name = "DJ Console (WE)",
1286 .ifnum = 4,
1287 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001288 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001289 .out_cables = 0x0001,
1290 .in_cables = 0x0001
1291 }
1292 }
1293},
1294
Linus Torvalds1da177e2005-04-16 15:20:36 -07001295/* Midiman/M-Audio devices */
1296{
1297 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001298 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001299 .vendor_name = "M-Audio",
1300 .product_name = "MidiSport 2x2",
1301 .ifnum = QUIRK_ANY_INTERFACE,
1302 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001303 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001304 .out_cables = 0x0003,
1305 .in_cables = 0x0003
1306 }
1307 }
1308},
1309{
1310 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001311 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001312 .vendor_name = "M-Audio",
1313 .product_name = "MidiSport 1x1",
1314 .ifnum = QUIRK_ANY_INTERFACE,
1315 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001316 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001317 .out_cables = 0x0001,
1318 .in_cables = 0x0001
1319 }
1320 }
1321},
1322{
1323 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001324 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001325 .vendor_name = "M-Audio",
1326 .product_name = "Keystation",
1327 .ifnum = QUIRK_ANY_INTERFACE,
1328 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001329 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001330 .out_cables = 0x0001,
1331 .in_cables = 0x0001
1332 }
1333 }
1334},
1335{
1336 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001337 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001338 .vendor_name = "M-Audio",
1339 .product_name = "MidiSport 4x4",
1340 .ifnum = QUIRK_ANY_INTERFACE,
1341 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001342 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001343 .out_cables = 0x000f,
1344 .in_cables = 0x000f
1345 }
1346 }
1347},
1348{
1349 /*
1350 * For hardware revision 1.05; in the later revisions (1.10 and
1351 * 1.21), 0x1031 is the ID for the device without firmware.
1352 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1353 */
1354 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001355 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001356 .vendor_name = "M-Audio",
1357 .product_name = "MidiSport 8x8",
1358 .ifnum = QUIRK_ANY_INTERFACE,
1359 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001360 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001361 .out_cables = 0x01ff,
1362 .in_cables = 0x01ff
1363 }
1364 }
1365},
1366{
1367 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001368 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001369 .vendor_name = "M-Audio",
1370 .product_name = "MidiSport 8x8",
1371 .ifnum = QUIRK_ANY_INTERFACE,
1372 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001373 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001374 .out_cables = 0x01ff,
1375 .in_cables = 0x01ff
1376 }
1377 }
1378},
1379{
1380 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001381 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001382 .vendor_name = "M-Audio",
1383 .product_name = "MidiSport 2x4",
1384 .ifnum = QUIRK_ANY_INTERFACE,
1385 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001386 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001387 .out_cables = 0x000f,
1388 .in_cables = 0x0003
1389 }
1390 }
1391},
1392{
1393 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001394 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001395 .vendor_name = "M-Audio",
1396 .product_name = "Quattro",
1397 .ifnum = QUIRK_ANY_INTERFACE,
1398 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001399 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001400 /*
1401 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1402 * and share endpoints with the other interfaces.
1403 * Ignore them. The other interfaces can do 24 bits,
1404 * but captured samples are big-endian (see usbaudio.c).
1405 */
1406 {
1407 .ifnum = 0,
1408 .type = QUIRK_IGNORE_INTERFACE
1409 },
1410 {
1411 .ifnum = 1,
1412 .type = QUIRK_IGNORE_INTERFACE
1413 },
1414 {
1415 .ifnum = 2,
1416 .type = QUIRK_IGNORE_INTERFACE
1417 },
1418 {
1419 .ifnum = 3,
1420 .type = QUIRK_IGNORE_INTERFACE
1421 },
1422 {
1423 .ifnum = 4,
1424 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1425 },
1426 {
1427 .ifnum = 5,
1428 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1429 },
1430 {
1431 .ifnum = 6,
1432 .type = QUIRK_IGNORE_INTERFACE
1433 },
1434 {
1435 .ifnum = 7,
1436 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1437 },
1438 {
1439 .ifnum = 8,
1440 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1441 },
1442 {
1443 .ifnum = 9,
1444 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001445 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001446 .out_cables = 0x0001,
1447 .in_cables = 0x0001
1448 }
1449 },
1450 {
1451 .ifnum = -1
1452 }
1453 }
1454 }
1455},
1456{
1457 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001458 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001459 .vendor_name = "M-Audio",
1460 .product_name = "AudioPhile",
1461 .ifnum = 6,
1462 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001463 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001464 .out_cables = 0x0001,
1465 .in_cables = 0x0001
1466 }
1467 }
1468},
1469{
1470 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001471 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001472 .vendor_name = "M-Audio",
1473 .product_name = "Ozone",
1474 .ifnum = 3,
1475 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001476 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001477 .out_cables = 0x0001,
1478 .in_cables = 0x0001
1479 }
1480 }
1481},
1482{
1483 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001484 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001485 .vendor_name = "M-Audio",
1486 .product_name = "OmniStudio",
1487 .ifnum = QUIRK_ANY_INTERFACE,
1488 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001489 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001490 {
1491 .ifnum = 0,
1492 .type = QUIRK_IGNORE_INTERFACE
1493 },
1494 {
1495 .ifnum = 1,
1496 .type = QUIRK_IGNORE_INTERFACE
1497 },
1498 {
1499 .ifnum = 2,
1500 .type = QUIRK_IGNORE_INTERFACE
1501 },
1502 {
1503 .ifnum = 3,
1504 .type = QUIRK_IGNORE_INTERFACE
1505 },
1506 {
1507 .ifnum = 4,
1508 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1509 },
1510 {
1511 .ifnum = 5,
1512 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1513 },
1514 {
1515 .ifnum = 6,
1516 .type = QUIRK_IGNORE_INTERFACE
1517 },
1518 {
1519 .ifnum = 7,
1520 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1521 },
1522 {
1523 .ifnum = 8,
1524 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1525 },
1526 {
1527 .ifnum = 9,
1528 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001529 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001530 .out_cables = 0x0001,
1531 .in_cables = 0x0001
1532 }
1533 },
1534 {
1535 .ifnum = -1
1536 }
1537 }
1538 }
1539},
1540
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001541/* Casio devices */
1542{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01001543 USB_DEVICE(0x07cf, 0x6801),
1544 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1545 .vendor_name = "Casio",
1546 .product_name = "PL-40R",
1547 .ifnum = 0,
1548 .type = QUIRK_MIDI_YAMAHA
1549 }
1550},
1551{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001552 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001553 USB_DEVICE(0x07cf, 0x6802),
1554 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1555 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001556 .product_name = "Keyboard",
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001557 .ifnum = 0,
1558 .type = QUIRK_MIDI_YAMAHA
1559 }
1560},
1561
Linus Torvalds1da177e2005-04-16 15:20:36 -07001562/* Mark of the Unicorn devices */
1563{
1564 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02001565 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1566 USB_DEVICE_ID_MATCH_PRODUCT |
1567 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1568 .idVendor = 0x07fd,
1569 .idProduct = 0x0001,
1570 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001571 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001572 .vendor_name = "MOTU",
1573 .product_name = "Fastlane",
1574 .ifnum = QUIRK_ANY_INTERFACE,
1575 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001576 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001577 {
1578 .ifnum = 0,
Clemens Ladisch6155aff2005-07-04 09:20:42 +02001579 .type = QUIRK_MIDI_RAW
Linus Torvalds1da177e2005-04-16 15:20:36 -07001580 },
1581 {
1582 .ifnum = 1,
1583 .type = QUIRK_IGNORE_INTERFACE
1584 },
1585 {
1586 .ifnum = -1
1587 }
1588 }
1589 }
1590},
1591
1592{
1593 /* Creative Sound Blaster MP3+ */
1594 USB_DEVICE(0x041e, 0x3010),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001595 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001596 .vendor_name = "Creative Labs",
1597 .product_name = "Sound Blaster MP3+",
1598 .ifnum = QUIRK_NO_INTERFACE
1599 }
1600
1601},
1602
1603/* Emagic devices */
1604{
1605 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001606 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001607 .vendor_name = "Emagic",
1608 /* .product_name = "Unitor8", */
1609 .ifnum = 2,
1610 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001611 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001612 .out_cables = 0x80ff,
1613 .in_cables = 0x80ff
1614 }
1615 }
1616},
1617{
1618 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001619 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001620 .vendor_name = "Emagic",
1621 /* .product_name = "AMT8", */
1622 .ifnum = 2,
1623 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001624 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001625 .out_cables = 0x80ff,
1626 .in_cables = 0x80ff
1627 }
1628 }
1629},
1630{
1631 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001632 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001633 .vendor_name = "Emagic",
1634 /* .product_name = "MT4", */
1635 .ifnum = 2,
1636 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001637 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001638 .out_cables = 0x800f,
1639 .in_cables = 0x8003
1640 }
1641 }
1642},
1643
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001644/* TerraTec devices */
1645{
1646 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001647 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001648 .vendor_name = "TerraTec",
1649 .product_name = "PHASE 26",
1650 .ifnum = 3,
1651 .type = QUIRK_MIDI_STANDARD_INTERFACE
1652 }
1653},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001654{
1655 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001656 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001657 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001658 .product_name = "PHASE 26",
1659 .ifnum = 3,
1660 .type = QUIRK_MIDI_STANDARD_INTERFACE
1661 }
1662},
Clemens Ladischb2b82292006-02-08 12:38:23 +01001663{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02001664 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
1665 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1666 .vendor_name = "TerraTec",
1667 .product_name = "PHASE 26",
1668 .ifnum = 3,
1669 .type = QUIRK_MIDI_STANDARD_INTERFACE
1670 }
1671},
1672{
Clemens Ladischb2b82292006-02-08 12:38:23 +01001673 USB_DEVICE(0x0ccd, 0x0035),
1674 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1675 .vendor_name = "Miditech",
1676 .product_name = "Play'n Roll",
1677 .ifnum = 0,
1678 .type = QUIRK_MIDI_CME
1679 }
1680},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001681
1682/* Novation EMS devices */
1683{
1684 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001685 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001686 .vendor_name = "Novation",
1687 .product_name = "ReMOTE Audio/XStation",
1688 .ifnum = 4,
1689 .type = QUIRK_MIDI_NOVATION
1690 }
1691},
1692{
1693 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001694 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001695 .vendor_name = "Novation",
1696 .product_name = "Speedio",
1697 .ifnum = 3,
1698 .type = QUIRK_MIDI_NOVATION
1699 }
1700},
1701{
1702 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001703 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001704 .vendor_name = "Novation",
1705 .product_name = "ReMOTE25",
1706 .ifnum = 0,
1707 .type = QUIRK_MIDI_NOVATION
1708 }
1709},
1710
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001711/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001712{
Clemens Ladischf38275f2005-07-25 16:17:29 +02001713 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001714 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02001715 .vendor_name = "Miditech",
1716 .product_name = "Midistart-2",
1717 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001718 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02001719 }
1720},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001721
1722/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02001723{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001724 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02001725 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001726 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02001727 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001728 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02001729 }
1730},
1731
1732{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001733 /*
1734 * Some USB MIDI devices don't have an audio control interface,
1735 * so we have to grab MIDI streaming interfaces here.
1736 */
1737 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
1738 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
1739 .bInterfaceClass = USB_CLASS_AUDIO,
1740 .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001741 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001742 .ifnum = QUIRK_ANY_INTERFACE,
1743 .type = QUIRK_MIDI_STANDARD_INTERFACE
1744 }
1745},
1746
1747#undef USB_DEVICE_VENDOR_SPEC