Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
[deliverable/linux.git] / sound / usb / usbquirks.h
CommitLineData
1da177e4
LT
1/*
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
a9121458
DD
42/*
43 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
44 * class matches do not take effect without an explicit ID match.
45 */
d417045e
DD
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,
51 .idProduct = 0x0850,
52 .bInterfaceClass = USB_CLASS_AUDIO,
53 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
54},
a9121458
DD
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,
60 .idProduct = 0x08f0,
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,
69 .idProduct = 0x08f6,
70 .bInterfaceClass = USB_CLASS_AUDIO,
71 .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
72},
73
1da177e4
LT
74/*
75 * Yamaha devices
76 */
77
78#define YAMAHA_DEVICE(id, name) { \
79 USB_DEVICE(0x0499, id), \
86e07d34 80 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
1da177e4
LT
81 .vendor_name = "Yamaha", \
82 .product_name = name, \
83 .ifnum = QUIRK_ANY_INTERFACE, \
84 .type = QUIRK_MIDI_YAMAHA \
85 } \
86}
87#define YAMAHA_INTERFACE(id, intf, name) { \
88 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
86e07d34 89 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
1da177e4
LT
90 .vendor_name = "Yamaha", \
91 .product_name = name, \
92 .ifnum = intf, \
93 .type = QUIRK_MIDI_YAMAHA \
94 } \
95}
96YAMAHA_DEVICE(0x1000, "UX256"),
97YAMAHA_DEVICE(0x1001, "MU1000"),
98YAMAHA_DEVICE(0x1002, "MU2000"),
99YAMAHA_DEVICE(0x1003, "MU500"),
100YAMAHA_INTERFACE(0x1004, 3, "UW500"),
101YAMAHA_DEVICE(0x1005, "MOTIF6"),
102YAMAHA_DEVICE(0x1006, "MOTIF7"),
103YAMAHA_DEVICE(0x1007, "MOTIF8"),
104YAMAHA_DEVICE(0x1008, "UX96"),
105YAMAHA_DEVICE(0x1009, "UX16"),
106YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
107YAMAHA_DEVICE(0x100c, "UC-MX"),
108YAMAHA_DEVICE(0x100d, "UC-KX"),
109YAMAHA_DEVICE(0x100e, "S08"),
110YAMAHA_DEVICE(0x100f, "CLP-150"),
111YAMAHA_DEVICE(0x1010, "CLP-170"),
112YAMAHA_DEVICE(0x1011, "P-250"),
113YAMAHA_DEVICE(0x1012, "TYROS"),
114YAMAHA_DEVICE(0x1013, "PF-500"),
115YAMAHA_DEVICE(0x1014, "S90"),
116YAMAHA_DEVICE(0x1015, "MOTIF-R"),
4ccb4a43 117YAMAHA_DEVICE(0x1016, "MDP-5"),
1da177e4
LT
118YAMAHA_DEVICE(0x1017, "CVP-204"),
119YAMAHA_DEVICE(0x1018, "CVP-206"),
120YAMAHA_DEVICE(0x1019, "CVP-208"),
121YAMAHA_DEVICE(0x101a, "CVP-210"),
122YAMAHA_DEVICE(0x101b, "PSR-1100"),
123YAMAHA_DEVICE(0x101c, "PSR-2100"),
124YAMAHA_DEVICE(0x101d, "CLP-175"),
125YAMAHA_DEVICE(0x101e, "PSR-K1"),
4ccb4a43 126YAMAHA_DEVICE(0x101f, "EZ-J24"),
1da177e4
LT
127YAMAHA_DEVICE(0x1020, "EZ-250i"),
128YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
129YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
130YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
131YAMAHA_DEVICE(0x1024, "CVP-301"),
132YAMAHA_DEVICE(0x1025, "CVP-303"),
133YAMAHA_DEVICE(0x1026, "CVP-305"),
134YAMAHA_DEVICE(0x1027, "CVP-307"),
135YAMAHA_DEVICE(0x1028, "CVP-309"),
136YAMAHA_DEVICE(0x1029, "CVP-309GP"),
137YAMAHA_DEVICE(0x102a, "PSR-1500"),
138YAMAHA_DEVICE(0x102b, "PSR-3000"),
139YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
140YAMAHA_DEVICE(0x1030, "PSR-295/293"),
141YAMAHA_DEVICE(0x1031, "DGX-205/203"),
142YAMAHA_DEVICE(0x1032, "DGX-305"),
143YAMAHA_DEVICE(0x1033, "DGX-505"),
144YAMAHA_DEVICE(0x1034, NULL),
145YAMAHA_DEVICE(0x1035, NULL),
146YAMAHA_DEVICE(0x1036, NULL),
147YAMAHA_DEVICE(0x1037, NULL),
148YAMAHA_DEVICE(0x1038, NULL),
149YAMAHA_DEVICE(0x1039, NULL),
150YAMAHA_DEVICE(0x103a, NULL),
151YAMAHA_DEVICE(0x103b, NULL),
152YAMAHA_DEVICE(0x103c, NULL),
0ac2ac0a 153YAMAHA_DEVICE(0x103d, NULL),
f542fda8
CL
154YAMAHA_DEVICE(0x103e, NULL),
155YAMAHA_DEVICE(0x103f, NULL),
156YAMAHA_DEVICE(0x1040, NULL),
157YAMAHA_DEVICE(0x1041, NULL),
f1265391
CL
158YAMAHA_DEVICE(0x1042, NULL),
159YAMAHA_DEVICE(0x1043, NULL),
160YAMAHA_DEVICE(0x1044, NULL),
161YAMAHA_DEVICE(0x1045, NULL),
1da177e4
LT
162YAMAHA_DEVICE(0x2000, "DGP-7"),
163YAMAHA_DEVICE(0x2001, "DGP-5"),
164YAMAHA_DEVICE(0x2002, NULL),
165YAMAHA_DEVICE(0x5000, "CS1D"),
166YAMAHA_DEVICE(0x5001, "DSP1D"),
167YAMAHA_DEVICE(0x5002, "DME32"),
168YAMAHA_DEVICE(0x5003, "DM2000"),
169YAMAHA_DEVICE(0x5004, "02R96"),
170YAMAHA_DEVICE(0x5005, "ACU16-C"),
171YAMAHA_DEVICE(0x5006, "NHB32-C"),
172YAMAHA_DEVICE(0x5007, "DM1000"),
173YAMAHA_DEVICE(0x5008, "01V96"),
174YAMAHA_DEVICE(0x5009, "SPX2000"),
175YAMAHA_DEVICE(0x500a, "PM5D"),
176YAMAHA_DEVICE(0x500b, "DME64N"),
177YAMAHA_DEVICE(0x500c, "DME24N"),
178YAMAHA_DEVICE(0x500d, NULL),
179YAMAHA_DEVICE(0x500e, NULL),
f1265391 180YAMAHA_DEVICE(0x500f, NULL),
1da177e4
LT
181YAMAHA_DEVICE(0x7000, "DTX"),
182YAMAHA_DEVICE(0x7010, "UB99"),
183#undef YAMAHA_DEVICE
184#undef YAMAHA_INTERFACE
185
186/*
187 * Roland/RolandED/Edirol/BOSS devices
188 */
189{
190 USB_DEVICE(0x0582, 0x0000),
86e07d34 191 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
192 .vendor_name = "Roland",
193 .product_name = "UA-100",
194 .ifnum = QUIRK_ANY_INTERFACE,
195 .type = QUIRK_COMPOSITE,
86e07d34 196 .data = (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
197 {
198 .ifnum = 0,
199 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
200 .data = & (const struct audioformat) {
201 .format = SNDRV_PCM_FORMAT_S16_LE,
202 .channels = 4,
203 .iface = 0,
204 .altsetting = 1,
205 .altset_idx = 1,
206 .attributes = 0,
207 .endpoint = 0x01,
208 .ep_attr = 0x09,
209 .rates = SNDRV_PCM_RATE_CONTINUOUS,
210 .rate_min = 44100,
211 .rate_max = 44100,
212 }
213 },
214 {
215 .ifnum = 1,
216 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
217 .data = & (const struct audioformat) {
218 .format = SNDRV_PCM_FORMAT_S16_LE,
219 .channels = 2,
220 .iface = 1,
221 .altsetting = 1,
222 .altset_idx = 1,
223 .attributes = EP_CS_ATTR_FILL_MAX,
224 .endpoint = 0x81,
225 .ep_attr = 0x05,
226 .rates = SNDRV_PCM_RATE_CONTINUOUS,
227 .rate_min = 44100,
228 .rate_max = 44100,
229 }
230 },
231 {
232 .ifnum = 2,
233 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 234 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
235 .out_cables = 0x0007,
236 .in_cables = 0x0007
237 }
238 },
239 {
240 .ifnum = -1
241 }
242 }
243 }
244},
245{
246 USB_DEVICE(0x0582, 0x0002),
86e07d34 247 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
248 .vendor_name = "EDIROL",
249 .product_name = "UM-4",
d3ff42fd
CL
250 .ifnum = QUIRK_ANY_INTERFACE,
251 .type = QUIRK_COMPOSITE,
86e07d34 252 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
253 {
254 .ifnum = 0,
255 .type = QUIRK_IGNORE_INTERFACE
256 },
257 {
258 .ifnum = 1,
259 .type = QUIRK_IGNORE_INTERFACE
260 },
261 {
262 .ifnum = 2,
263 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 264 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
265 .out_cables = 0x000f,
266 .in_cables = 0x000f
267 }
268 },
269 {
270 .ifnum = -1
271 }
1da177e4
LT
272 }
273 }
274},
275{
276 USB_DEVICE(0x0582, 0x0003),
86e07d34 277 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
278 .vendor_name = "Roland",
279 .product_name = "SC-8850",
d3ff42fd
CL
280 .ifnum = QUIRK_ANY_INTERFACE,
281 .type = QUIRK_COMPOSITE,
86e07d34 282 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
283 {
284 .ifnum = 0,
285 .type = QUIRK_IGNORE_INTERFACE
286 },
287 {
288 .ifnum = 1,
289 .type = QUIRK_IGNORE_INTERFACE
290 },
291 {
292 .ifnum = 2,
293 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 294 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
295 .out_cables = 0x003f,
296 .in_cables = 0x003f
297 }
298 },
299 {
300 .ifnum = -1
301 }
1da177e4
LT
302 }
303 }
304},
305{
306 USB_DEVICE(0x0582, 0x0004),
86e07d34 307 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
308 .vendor_name = "Roland",
309 .product_name = "U-8",
d3ff42fd
CL
310 .ifnum = QUIRK_ANY_INTERFACE,
311 .type = QUIRK_COMPOSITE,
86e07d34 312 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
313 {
314 .ifnum = 0,
315 .type = QUIRK_IGNORE_INTERFACE
316 },
317 {
318 .ifnum = 1,
319 .type = QUIRK_IGNORE_INTERFACE
320 },
321 {
322 .ifnum = 2,
323 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 324 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
325 .out_cables = 0x0005,
326 .in_cables = 0x0005
327 }
328 },
329 {
330 .ifnum = -1
331 }
1da177e4
LT
332 }
333 }
334},
335{
119c4ff5
CL
336 /* Has ID 0x0099 when not in "Advanced Driver" mode.
337 * The UM-2EX has only one input, but we cannot detect this. */
1da177e4 338 USB_DEVICE(0x0582, 0x0005),
86e07d34 339 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
340 .vendor_name = "EDIROL",
341 .product_name = "UM-2",
d3ff42fd
CL
342 .ifnum = QUIRK_ANY_INTERFACE,
343 .type = QUIRK_COMPOSITE,
86e07d34 344 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
345 {
346 .ifnum = 0,
347 .type = QUIRK_IGNORE_INTERFACE
348 },
349 {
350 .ifnum = 1,
351 .type = QUIRK_IGNORE_INTERFACE
352 },
353 {
354 .ifnum = 2,
355 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 356 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
357 .out_cables = 0x0003,
358 .in_cables = 0x0003
359 }
360 },
361 {
362 .ifnum = -1
363 }
1da177e4
LT
364 }
365 }
366},
367{
368 USB_DEVICE(0x0582, 0x0007),
86e07d34 369 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
370 .vendor_name = "Roland",
371 .product_name = "SC-8820",
d3ff42fd
CL
372 .ifnum = QUIRK_ANY_INTERFACE,
373 .type = QUIRK_COMPOSITE,
86e07d34 374 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
375 {
376 .ifnum = 0,
377 .type = QUIRK_IGNORE_INTERFACE
378 },
379 {
380 .ifnum = 1,
381 .type = QUIRK_IGNORE_INTERFACE
382 },
383 {
384 .ifnum = 2,
385 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 386 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
387 .out_cables = 0x0013,
388 .in_cables = 0x0013
389 }
390 },
391 {
392 .ifnum = -1
393 }
1da177e4
LT
394 }
395 }
396},
397{
398 USB_DEVICE(0x0582, 0x0008),
86e07d34 399 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
400 .vendor_name = "Roland",
401 .product_name = "PC-300",
d3ff42fd
CL
402 .ifnum = QUIRK_ANY_INTERFACE,
403 .type = QUIRK_COMPOSITE,
86e07d34 404 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
405 {
406 .ifnum = 0,
407 .type = QUIRK_IGNORE_INTERFACE
408 },
409 {
410 .ifnum = 1,
411 .type = QUIRK_IGNORE_INTERFACE
412 },
413 {
414 .ifnum = 2,
415 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 416 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
417 .out_cables = 0x0001,
418 .in_cables = 0x0001
419 }
420 },
421 {
422 .ifnum = -1
423 }
1da177e4
LT
424 }
425 }
426},
427{
119c4ff5 428 /* has ID 0x009d when not in "Advanced Driver" mode */
1da177e4 429 USB_DEVICE(0x0582, 0x0009),
86e07d34 430 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
431 .vendor_name = "EDIROL",
432 .product_name = "UM-1",
d3ff42fd
CL
433 .ifnum = QUIRK_ANY_INTERFACE,
434 .type = QUIRK_COMPOSITE,
86e07d34 435 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
436 {
437 .ifnum = 0,
438 .type = QUIRK_IGNORE_INTERFACE
439 },
440 {
441 .ifnum = 1,
442 .type = QUIRK_IGNORE_INTERFACE
443 },
444 {
445 .ifnum = 2,
446 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 447 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
448 .out_cables = 0x0001,
449 .in_cables = 0x0001
450 }
451 },
452 {
453 .ifnum = -1
454 }
1da177e4
LT
455 }
456 }
457},
458{
459 USB_DEVICE(0x0582, 0x000b),
86e07d34 460 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
461 .vendor_name = "Roland",
462 .product_name = "SK-500",
d3ff42fd
CL
463 .ifnum = QUIRK_ANY_INTERFACE,
464 .type = QUIRK_COMPOSITE,
86e07d34 465 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
466 {
467 .ifnum = 0,
468 .type = QUIRK_IGNORE_INTERFACE
469 },
470 {
471 .ifnum = 1,
472 .type = QUIRK_IGNORE_INTERFACE
473 },
474 {
475 .ifnum = 2,
476 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 477 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
478 .out_cables = 0x0013,
479 .in_cables = 0x0013
480 }
481 },
482 {
483 .ifnum = -1
484 }
1da177e4
LT
485 }
486 }
487},
488{
489 /* thanks to Emiliano Grilli <emillo@libero.it>
490 * for helping researching this data */
491 USB_DEVICE(0x0582, 0x000c),
86e07d34 492 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
493 .vendor_name = "Roland",
494 .product_name = "SC-D70",
495 .ifnum = QUIRK_ANY_INTERFACE,
496 .type = QUIRK_COMPOSITE,
86e07d34 497 .data = (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
498 {
499 .ifnum = 0,
500 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
501 .data = & (const struct audioformat) {
502 .format = SNDRV_PCM_FORMAT_S24_3LE,
503 .channels = 2,
504 .iface = 0,
505 .altsetting = 1,
506 .altset_idx = 1,
507 .attributes = 0,
508 .endpoint = 0x01,
509 .ep_attr = 0x01,
510 .rates = SNDRV_PCM_RATE_CONTINUOUS,
511 .rate_min = 44100,
512 .rate_max = 44100,
513 }
514 },
515 {
516 .ifnum = 1,
517 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
518 .data = & (const struct audioformat) {
519 .format = SNDRV_PCM_FORMAT_S24_3LE,
520 .channels = 2,
521 .iface = 1,
522 .altsetting = 1,
523 .altset_idx = 1,
524 .attributes = 0,
525 .endpoint = 0x81,
526 .ep_attr = 0x01,
527 .rates = SNDRV_PCM_RATE_CONTINUOUS,
528 .rate_min = 44100,
529 .rate_max = 44100,
530 }
531 },
532 {
533 .ifnum = 2,
534 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 535 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
536 .out_cables = 0x0007,
537 .in_cables = 0x0007
538 }
539 },
540 {
541 .ifnum = -1
542 }
543 }
544 }
545},
546{ /*
547 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
548 * If the advanced mode switch at the back of the unit is off, the
549 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
550 * but offers only 16-bit PCM.
551 * In advanced mode, the UA-5 will output S24_3LE samples (two
552 * channels) at the rate indicated on the front switch, including
553 * the 96kHz sample rate.
554 */
555 USB_DEVICE(0x0582, 0x0010),
86e07d34 556 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
557 .vendor_name = "EDIROL",
558 .product_name = "UA-5",
559 .ifnum = QUIRK_ANY_INTERFACE,
560 .type = QUIRK_COMPOSITE,
86e07d34 561 .data = (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
562 {
563 .ifnum = 1,
564 .type = QUIRK_AUDIO_STANDARD_INTERFACE
565 },
566 {
567 .ifnum = 2,
568 .type = QUIRK_AUDIO_STANDARD_INTERFACE
569 },
570 {
571 .ifnum = -1
572 }
573 }
574 }
575},
576{
d879f0cc 577 /* has ID 0x0013 when not in "Advanced Driver" mode */
1da177e4 578 USB_DEVICE(0x0582, 0x0012),
86e07d34 579 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
580 .vendor_name = "Roland",
581 .product_name = "XV-5050",
582 .ifnum = 0,
583 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 584 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
585 .out_cables = 0x0001,
586 .in_cables = 0x0001
587 }
588 }
589},
590{
d879f0cc 591 /* has ID 0x0015 when not in "Advanced Driver" mode */
1da177e4 592 USB_DEVICE(0x0582, 0x0014),
86e07d34 593 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
594 .vendor_name = "EDIROL",
595 .product_name = "UM-880",
596 .ifnum = 0,
597 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 598 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
599 .out_cables = 0x01ff,
600 .in_cables = 0x01ff
601 }
602 }
603},
604{
d879f0cc 605 /* has ID 0x0017 when not in "Advanced Driver" mode */
1da177e4 606 USB_DEVICE(0x0582, 0x0016),
86e07d34 607 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
608 .vendor_name = "EDIROL",
609 .product_name = "SD-90",
d3ff42fd
CL
610 .ifnum = QUIRK_ANY_INTERFACE,
611 .type = QUIRK_COMPOSITE,
86e07d34 612 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
613 {
614 .ifnum = 0,
615 .type = QUIRK_IGNORE_INTERFACE
616 },
617 {
618 .ifnum = 1,
619 .type = QUIRK_IGNORE_INTERFACE
620 },
621 {
622 .ifnum = 2,
623 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 624 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
625 .out_cables = 0x000f,
626 .in_cables = 0x000f
627 }
628 },
629 {
630 .ifnum = -1
631 }
1da177e4
LT
632 }
633 }
634},
635{
d879f0cc 636 /* has ID 0x001c when not in "Advanced Driver" mode */
1da177e4 637 USB_DEVICE(0x0582, 0x001b),
86e07d34 638 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
639 .vendor_name = "Roland",
640 .product_name = "MMP-2",
d3ff42fd
CL
641 .ifnum = QUIRK_ANY_INTERFACE,
642 .type = QUIRK_COMPOSITE,
86e07d34 643 .data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd
CL
644 {
645 .ifnum = 0,
646 .type = QUIRK_IGNORE_INTERFACE
647 },
648 {
649 .ifnum = 1,
650 .type = QUIRK_IGNORE_INTERFACE
651 },
652 {
653 .ifnum = 2,
654 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 655 .data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd
CL
656 .out_cables = 0x0001,
657 .in_cables = 0x0001
658 }
659 },
660 {
661 .ifnum = -1
662 }
1da177e4
LT
663 }
664 }
665},
666{
d879f0cc 667 /* has ID 0x001e when not in "Advanced Driver" mode */
1da177e4 668 USB_DEVICE(0x0582, 0x001d),
86e07d34 669 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
670 .vendor_name = "Roland",
671 .product_name = "V-SYNTH",
672 .ifnum = 0,
673 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 674 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
675 .out_cables = 0x0001,
676 .in_cables = 0x0001
677 }
678 }
679},
680{
d879f0cc 681 /* has ID 0x0024 when not in "Advanced Driver" mode */
1da177e4 682 USB_DEVICE(0x0582, 0x0023),
86e07d34 683 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
684 .vendor_name = "EDIROL",
685 .product_name = "UM-550",
686 .ifnum = 0,
687 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 688 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
689 .out_cables = 0x003f,
690 .in_cables = 0x003f
691 }
692 }
693},
694{
695 /*
696 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
697 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
698 * and no MIDI.
699 */
700 USB_DEVICE(0x0582, 0x0025),
86e07d34 701 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
702 .vendor_name = "EDIROL",
703 .product_name = "UA-20",
704 .ifnum = QUIRK_ANY_INTERFACE,
705 .type = QUIRK_COMPOSITE,
86e07d34 706 .data = (const struct snd_usb_audio_quirk[]) {
1f14a657
CL
707 {
708 .ifnum = 0,
709 .type = QUIRK_IGNORE_INTERFACE
710 },
1da177e4
LT
711 {
712 .ifnum = 1,
1f14a657
CL
713 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
714 .data = & (const struct audioformat) {
715 .format = SNDRV_PCM_FORMAT_S24_3LE,
716 .channels = 2,
717 .iface = 1,
718 .altsetting = 1,
719 .altset_idx = 1,
720 .attributes = 0,
721 .endpoint = 0x01,
722 .ep_attr = 0x01,
723 .rates = SNDRV_PCM_RATE_CONTINUOUS,
724 .rate_min = 44100,
725 .rate_max = 44100,
726 }
1da177e4
LT
727 },
728 {
729 .ifnum = 2,
1f14a657
CL
730 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
731 .data = & (const struct audioformat) {
732 .format = SNDRV_PCM_FORMAT_S24_3LE,
733 .channels = 2,
734 .iface = 2,
735 .altsetting = 1,
736 .altset_idx = 1,
737 .attributes = 0,
738 .endpoint = 0x82,
739 .ep_attr = 0x01,
740 .rates = SNDRV_PCM_RATE_CONTINUOUS,
741 .rate_min = 44100,
742 .rate_max = 44100,
743 }
1da177e4
LT
744 },
745 {
746 .ifnum = 3,
1f14a657
CL
747 .type = QUIRK_MIDI_FIXED_ENDPOINT,
748 .data = & (const struct snd_usb_midi_endpoint_info) {
749 .out_cables = 0x0001,
750 .in_cables = 0x0001
751 }
1da177e4
LT
752 },
753 {
754 .ifnum = -1
755 }
756 }
757 }
758},
759{
d879f0cc 760 /* has ID 0x0028 when not in "Advanced Driver" mode */
1da177e4 761 USB_DEVICE(0x0582, 0x0027),
86e07d34 762 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
763 .vendor_name = "EDIROL",
764 .product_name = "SD-20",
765 .ifnum = 0,
766 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 767 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
768 .out_cables = 0x0003,
769 .in_cables = 0x0007
770 }
771 }
772},
773{
d879f0cc 774 /* has ID 0x002a when not in "Advanced Driver" mode */
1da177e4 775 USB_DEVICE(0x0582, 0x0029),
86e07d34 776 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
777 .vendor_name = "EDIROL",
778 .product_name = "SD-80",
779 .ifnum = 0,
780 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 781 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
782 .out_cables = 0x000f,
783 .in_cables = 0x000f
784 }
785 }
786},
787{ /*
788 * This quirk is for the "Advanced" modes of the Edirol UA-700.
789 * If the sample format switch is not in an advanced setting, the
790 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
791 * but offers only 16-bit PCM and no MIDI.
792 */
793 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
86e07d34 794 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
795 .vendor_name = "EDIROL",
796 .product_name = "UA-700",
797 .ifnum = QUIRK_ANY_INTERFACE,
798 .type = QUIRK_COMPOSITE,
86e07d34 799 .data = (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
800 {
801 .ifnum = 1,
802 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
803 },
804 {
805 .ifnum = 2,
806 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
807 },
808 {
809 .ifnum = 3,
810 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
811 },
812 {
813 .ifnum = -1
814 }
815 }
816 }
817},
818{
d879f0cc 819 /* has ID 0x002e when not in "Advanced Driver" mode */
1da177e4 820 USB_DEVICE(0x0582, 0x002d),
86e07d34 821 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
822 .vendor_name = "Roland",
823 .product_name = "XV-2020",
824 .ifnum = 0,
825 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 826 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
827 .out_cables = 0x0001,
828 .in_cables = 0x0001
829 }
830 }
831},
832{
d879f0cc 833 /* has ID 0x0030 when not in "Advanced Driver" mode */
1da177e4 834 USB_DEVICE(0x0582, 0x002f),
86e07d34 835 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
836 .vendor_name = "Roland",
837 .product_name = "VariOS",
838 .ifnum = 0,
839 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 840 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
841 .out_cables = 0x0007,
842 .in_cables = 0x0007
843 }
844 }
845},
846{
d879f0cc 847 /* has ID 0x0034 when not in "Advanced Driver" mode */
1da177e4 848 USB_DEVICE(0x0582, 0x0033),
86e07d34 849 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
850 .vendor_name = "EDIROL",
851 .product_name = "PCR",
852 .ifnum = 0,
853 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 854 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
855 .out_cables = 0x0003,
856 .in_cables = 0x0007
857 }
858 }
859},
d879f0cc 860 /* TODO: add Roland M-1000 support */
1da177e4 861{
d879f0cc
CL
862 /*
863 * Has ID 0x0038 when not in "Advanced Driver" mode;
864 * later revisions use IDs 0x0054 and 0x00a2.
865 */
1da177e4 866 USB_DEVICE(0x0582, 0x0037),
86e07d34 867 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
868 .vendor_name = "Roland",
869 .product_name = "Digital Piano",
870 .ifnum = 0,
871 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 872 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
873 .out_cables = 0x0001,
874 .in_cables = 0x0001
875 }
876 }
877},
878{
5af4c833
CL
879 /*
880 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
881 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
882 * and no MIDI.
883 */
1da177e4 884 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
86e07d34 885 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
886 .vendor_name = "BOSS",
887 .product_name = "GS-10",
5af4c833
CL
888 .ifnum = QUIRK_ANY_INTERFACE,
889 .type = QUIRK_COMPOSITE,
86e07d34 890 .data = & (const struct snd_usb_audio_quirk[]) {
5af4c833
CL
891 {
892 .ifnum = 1,
893 .type = QUIRK_AUDIO_STANDARD_INTERFACE
894 },
895 {
896 .ifnum = 2,
897 .type = QUIRK_AUDIO_STANDARD_INTERFACE
898 },
899 {
900 .ifnum = 3,
901 .type = QUIRK_MIDI_STANDARD_INTERFACE
902 },
903 {
904 .ifnum = -1
905 }
1da177e4
LT
906 }
907 }
908},
909{
d879f0cc 910 /* has ID 0x0041 when not in "Advanced Driver" mode */
1da177e4 911 USB_DEVICE(0x0582, 0x0040),
86e07d34 912 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
913 .vendor_name = "Roland",
914 .product_name = "GI-20",
915 .ifnum = 0,
916 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 917 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
918 .out_cables = 0x0001,
919 .in_cables = 0x0001
920 }
921 }
922},
923{
d879f0cc 924 /* has ID 0x0043 when not in "Advanced Driver" mode */
1da177e4 925 USB_DEVICE(0x0582, 0x0042),
86e07d34 926 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
927 .vendor_name = "Roland",
928 .product_name = "RS-70",
929 .ifnum = 0,
930 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 931 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
932 .out_cables = 0x0001,
933 .in_cables = 0x0001
934 }
935 }
936},
937{
938 USB_DEVICE(0x0582, 0x0044),
86e07d34 939 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
940 .vendor_name = "Roland",
941 .product_name = "UA-1000",
942 .ifnum = QUIRK_ANY_INTERFACE,
943 .type = QUIRK_COMPOSITE,
86e07d34 944 .data = (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
945 {
946 .ifnum = 1,
947 .type = QUIRK_AUDIO_EDIROL_UA1000
948 },
949 {
950 .ifnum = 2,
951 .type = QUIRK_AUDIO_EDIROL_UA1000
952 },
953 {
954 .ifnum = 3,
955 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 956 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
957 .out_cables = 0x0003,
958 .in_cables = 0x0003
959 }
960 },
961 {
962 .ifnum = -1
963 }
964 }
965 }
966},
967{
d879f0cc 968 /* has ID 0x004a when not in "Advanced Driver" mode */
1da177e4 969 USB_DEVICE(0x0582, 0x0048),
86e07d34 970 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
971 .vendor_name = "EDIROL",
972 .product_name = "UR-80",
973 .ifnum = 0,
974 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 975 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
976 .out_cables = 0x0003,
977 .in_cables = 0x0007
978 }
979 }
980},
d879f0cc 981 /* TODO: add Edirol M-100FX support */
f38cc317
CL
982{
983 /* has ID 0x004e when not in "Advanced Driver" mode */
984 USB_DEVICE(0x0582, 0x004c),
985 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
986 .vendor_name = "EDIROL",
987 .product_name = "PCR-A",
988 .ifnum = QUIRK_ANY_INTERFACE,
989 .type = QUIRK_COMPOSITE,
990 .data = (const struct snd_usb_audio_quirk[]) {
991 {
992 .ifnum = 1,
993 .type = QUIRK_AUDIO_STANDARD_INTERFACE
994 },
995 {
996 .ifnum = 2,
997 .type = QUIRK_AUDIO_STANDARD_INTERFACE
998 },
999 {
1000 .ifnum = -1
1001 }
1002 }
1003 }
1004},
1da177e4 1005{
d879f0cc 1006 /* has ID 0x004f when not in "Advanced Driver" mode */
1da177e4 1007 USB_DEVICE(0x0582, 0x004d),
86e07d34 1008 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1009 .vendor_name = "EDIROL",
1010 .product_name = "PCR-A",
1011 .ifnum = 0,
1012 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 1013 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1014 .out_cables = 0x0003,
1015 .in_cables = 0x0007
1016 }
1017 }
1018},
1019{
1020 /*
1021 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
1022 * is standard compliant, but has only 16-bit PCM.
1023 */
1024 USB_DEVICE(0x0582, 0x0050),
86e07d34 1025 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1026 .vendor_name = "EDIROL",
1027 .product_name = "UA-3FX",
1028 .ifnum = QUIRK_ANY_INTERFACE,
1029 .type = QUIRK_COMPOSITE,
86e07d34 1030 .data = (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
1031 {
1032 .ifnum = 1,
1033 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1034 },
1035 {
1036 .ifnum = 2,
1037 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1038 },
1039 {
1040 .ifnum = -1
1041 }
1042 }
1043 }
1044},
1045{
1046 USB_DEVICE(0x0582, 0x0052),
86e07d34 1047 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1048 .vendor_name = "EDIROL",
1049 .product_name = "UM-1SX",
1050 .ifnum = 0,
1051 .type = QUIRK_MIDI_STANDARD_INTERFACE
1052 }
1053},
d879f0cc 1054 /* TODO: add Roland EXR support */
1da177e4 1055{
d879f0cc 1056 /* has ID 0x0067 when not in "Advanced Driver" mode */
1da177e4 1057 USB_DEVICE(0x0582, 0x0065),
86e07d34 1058 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1059 .vendor_name = "EDIROL",
1060 .product_name = "PCR-1",
1061 .ifnum = 0,
1062 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 1063 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1064 .out_cables = 0x0001,
1065 .in_cables = 0x0003
1066 }
1067 }
1068},
1069{
d879f0cc 1070 /* has ID 0x006b when not in "Advanced Driver" mode */
1da177e4 1071 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
86e07d34 1072 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1073 .vendor_name = "Roland",
1074 .product_name = "SP-606",
1075 .ifnum = 3,
1076 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 1077 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1078 .out_cables = 0x0001,
1079 .in_cables = 0x0001
1080 }
1081 }
1082},
1083{
d879f0cc 1084 /* has ID 0x006e when not in "Advanced Driver" mode */
1da177e4 1085 USB_DEVICE(0x0582, 0x006d),
86e07d34 1086 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1087 .vendor_name = "Roland",
1088 .product_name = "FANTOM-X",
1089 .ifnum = 0,
1090 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 1091 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1092 .out_cables = 0x0001,
1093 .in_cables = 0x0001
1094 }
1095 }
1096},
1097{ /*
1098 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1099 * If the switch is not in an advanced setting, the UA-25 has
1100 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1101 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1102 */
1103 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
86e07d34 1104 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1105 .vendor_name = "EDIROL",
1106 .product_name = "UA-25",
1107 .ifnum = QUIRK_ANY_INTERFACE,
1108 .type = QUIRK_COMPOSITE,
86e07d34 1109 .data = (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
1110 {
1111 .ifnum = 0,
1112 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1113 },
1114 {
1115 .ifnum = 1,
1116 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1117 },
1118 {
1119 .ifnum = 2,
1120 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1121 },
1122 {
1123 .ifnum = -1
1124 }
1125 }
1126 }
1127},
1128{
d879f0cc 1129 /* has ID 0x0076 when not in "Advanced Driver" mode */
1da177e4 1130 USB_DEVICE(0x0582, 0x0075),
86e07d34 1131 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1132 .vendor_name = "BOSS",
1133 .product_name = "DR-880",
1134 .ifnum = 0,
1135 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 1136 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1137 .out_cables = 0x0001,
1138 .in_cables = 0x0001
1139 }
1140 }
1141},
5a2a68f5 1142{
d879f0cc 1143 /* has ID 0x007b when not in "Advanced Driver" mode */
5a2a68f5 1144 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
86e07d34 1145 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
5a2a68f5 1146 .vendor_name = "Roland",
d879f0cc 1147 /* "RD" or "RD-700SX"? */
5a2a68f5
CL
1148 .ifnum = 0,
1149 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 1150 .data = & (const struct snd_usb_midi_endpoint_info) {
5a2a68f5
CL
1151 .out_cables = 0x0003,
1152 .in_cables = 0x0003
1153 }
1154 }
1155},
d0b0fac1
BF
1156/* Roland UA-101 in High-Speed Mode only */
1157{
1158 USB_DEVICE(0x0582, 0x007d),
1159 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1160 .vendor_name = "Roland",
1161 .product_name = "UA-101",
1162 .ifnum = QUIRK_ANY_INTERFACE,
1163 .type = QUIRK_COMPOSITE,
1164 .data = (const struct snd_usb_audio_quirk[]) {
1165 {
1166 .ifnum = 0,
1167 .type = QUIRK_AUDIO_EDIROL_UA101
1168 },
1169 {
1170 .ifnum = 1,
1171 .type = QUIRK_AUDIO_EDIROL_UA101
1172 },
1173 {
1174 .ifnum = 2,
1175 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1176 .data = & (const struct snd_usb_midi_endpoint_info) {
1177 .out_cables = 0x0001,
1178 .in_cables = 0x0001
1179 }
1180 },
1181 {
1182 .ifnum = -1
1183 }
1184 }
1185 }
1186},
cdca881d
CL
1187{
1188 /* has ID 0x0081 when not in "Advanced Driver" mode */
1189 USB_DEVICE(0x0582, 0x0080),
1190 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1191 .vendor_name = "Roland",
1192 .product_name = "G-70",
1193 .ifnum = 0,
1194 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1195 .data = & (const struct snd_usb_midi_endpoint_info) {
05422575
CL
1196 .out_cables = 0x0001,
1197 .in_cables = 0x0001
cdca881d
CL
1198 }
1199 }
1200},
7c79b768
CL
1201 /* TODO: add Roland V-SYNTH XT support */
1202 /* TODO: add BOSS GT-PRO support */
415b09e4
CL
1203{
1204 /* has ID 0x008c when not in "Advanced Driver" mode */
1205 USB_DEVICE(0x0582, 0x008b),
1206 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1207 .vendor_name = "EDIROL",
1208 .product_name = "PC-50",
1209 .ifnum = 0,
1210 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1211 .data = & (const struct snd_usb_midi_endpoint_info) {
1212 .out_cables = 0x0001,
1213 .in_cables = 0x0001
1214 }
1215 }
1216},
7c79b768
CL
1217 /* TODO: add Edirol PC-80 support */
1218 /* TODO: add Edirol UA-1EX support */
1219{
1220 USB_DEVICE(0x0582, 0x009a),
1221 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1222 .vendor_name = "EDIROL",
1223 .product_name = "UM-3EX",
1224 .ifnum = 0,
1225 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1226 .data = & (const struct snd_usb_midi_endpoint_info) {
1227 .out_cables = 0x000f,
1228 .in_cables = 0x000f
1229 }
1230 }
1231},
1232 /* TODO: add Edirol MD-P1 support */
1da177e4 1233
a25f175c
CL
1234/* Guillemot devices */
1235{
1236 /*
1237 * This is for the "Windows Edition" where the external MIDI ports are
1238 * the only MIDI ports; the control data is reported through HID
1239 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1240 * compliant USB MIDI ports for external MIDI and controls.
1241 */
1242 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
86e07d34 1243 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
a25f175c
CL
1244 .vendor_name = "Hercules",
1245 .product_name = "DJ Console (WE)",
1246 .ifnum = 4,
1247 .type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d34 1248 .data = & (const struct snd_usb_midi_endpoint_info) {
a25f175c
CL
1249 .out_cables = 0x0001,
1250 .in_cables = 0x0001
1251 }
1252 }
1253},
1254
1da177e4
LT
1255/* Midiman/M-Audio devices */
1256{
1257 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
86e07d34 1258 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1259 .vendor_name = "M-Audio",
1260 .product_name = "MidiSport 2x2",
1261 .ifnum = QUIRK_ANY_INTERFACE,
1262 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1263 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1264 .out_cables = 0x0003,
1265 .in_cables = 0x0003
1266 }
1267 }
1268},
1269{
1270 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
86e07d34 1271 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1272 .vendor_name = "M-Audio",
1273 .product_name = "MidiSport 1x1",
1274 .ifnum = QUIRK_ANY_INTERFACE,
1275 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1276 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1277 .out_cables = 0x0001,
1278 .in_cables = 0x0001
1279 }
1280 }
1281},
1282{
1283 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
86e07d34 1284 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1285 .vendor_name = "M-Audio",
1286 .product_name = "Keystation",
1287 .ifnum = QUIRK_ANY_INTERFACE,
1288 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1289 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1290 .out_cables = 0x0001,
1291 .in_cables = 0x0001
1292 }
1293 }
1294},
1295{
1296 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
86e07d34 1297 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1298 .vendor_name = "M-Audio",
1299 .product_name = "MidiSport 4x4",
1300 .ifnum = QUIRK_ANY_INTERFACE,
1301 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1302 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1303 .out_cables = 0x000f,
1304 .in_cables = 0x000f
1305 }
1306 }
1307},
1308{
1309 /*
1310 * For hardware revision 1.05; in the later revisions (1.10 and
1311 * 1.21), 0x1031 is the ID for the device without firmware.
1312 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1313 */
1314 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
86e07d34 1315 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1316 .vendor_name = "M-Audio",
1317 .product_name = "MidiSport 8x8",
1318 .ifnum = QUIRK_ANY_INTERFACE,
1319 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1320 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1321 .out_cables = 0x01ff,
1322 .in_cables = 0x01ff
1323 }
1324 }
1325},
1326{
1327 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
86e07d34 1328 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1329 .vendor_name = "M-Audio",
1330 .product_name = "MidiSport 8x8",
1331 .ifnum = QUIRK_ANY_INTERFACE,
1332 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1333 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1334 .out_cables = 0x01ff,
1335 .in_cables = 0x01ff
1336 }
1337 }
1338},
1339{
1340 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
86e07d34 1341 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1342 .vendor_name = "M-Audio",
1343 .product_name = "MidiSport 2x4",
1344 .ifnum = QUIRK_ANY_INTERFACE,
1345 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1346 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1347 .out_cables = 0x000f,
1348 .in_cables = 0x0003
1349 }
1350 }
1351},
1352{
1353 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
86e07d34 1354 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1355 .vendor_name = "M-Audio",
1356 .product_name = "Quattro",
1357 .ifnum = QUIRK_ANY_INTERFACE,
1358 .type = QUIRK_COMPOSITE,
86e07d34 1359 .data = & (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
1360 /*
1361 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1362 * and share endpoints with the other interfaces.
1363 * Ignore them. The other interfaces can do 24 bits,
1364 * but captured samples are big-endian (see usbaudio.c).
1365 */
1366 {
1367 .ifnum = 0,
1368 .type = QUIRK_IGNORE_INTERFACE
1369 },
1370 {
1371 .ifnum = 1,
1372 .type = QUIRK_IGNORE_INTERFACE
1373 },
1374 {
1375 .ifnum = 2,
1376 .type = QUIRK_IGNORE_INTERFACE
1377 },
1378 {
1379 .ifnum = 3,
1380 .type = QUIRK_IGNORE_INTERFACE
1381 },
1382 {
1383 .ifnum = 4,
1384 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1385 },
1386 {
1387 .ifnum = 5,
1388 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1389 },
1390 {
1391 .ifnum = 6,
1392 .type = QUIRK_IGNORE_INTERFACE
1393 },
1394 {
1395 .ifnum = 7,
1396 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1397 },
1398 {
1399 .ifnum = 8,
1400 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1401 },
1402 {
1403 .ifnum = 9,
1404 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1405 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1406 .out_cables = 0x0001,
1407 .in_cables = 0x0001
1408 }
1409 },
1410 {
1411 .ifnum = -1
1412 }
1413 }
1414 }
1415},
1416{
1417 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
86e07d34 1418 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1419 .vendor_name = "M-Audio",
1420 .product_name = "AudioPhile",
1421 .ifnum = 6,
1422 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1423 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1424 .out_cables = 0x0001,
1425 .in_cables = 0x0001
1426 }
1427 }
1428},
1429{
1430 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
86e07d34 1431 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1432 .vendor_name = "M-Audio",
1433 .product_name = "Ozone",
1434 .ifnum = 3,
1435 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1436 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1437 .out_cables = 0x0001,
1438 .in_cables = 0x0001
1439 }
1440 }
1441},
1442{
1443 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
86e07d34 1444 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1445 .vendor_name = "M-Audio",
1446 .product_name = "OmniStudio",
1447 .ifnum = QUIRK_ANY_INTERFACE,
1448 .type = QUIRK_COMPOSITE,
86e07d34 1449 .data = & (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
1450 {
1451 .ifnum = 0,
1452 .type = QUIRK_IGNORE_INTERFACE
1453 },
1454 {
1455 .ifnum = 1,
1456 .type = QUIRK_IGNORE_INTERFACE
1457 },
1458 {
1459 .ifnum = 2,
1460 .type = QUIRK_IGNORE_INTERFACE
1461 },
1462 {
1463 .ifnum = 3,
1464 .type = QUIRK_IGNORE_INTERFACE
1465 },
1466 {
1467 .ifnum = 4,
1468 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1469 },
1470 {
1471 .ifnum = 5,
1472 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1473 },
1474 {
1475 .ifnum = 6,
1476 .type = QUIRK_IGNORE_INTERFACE
1477 },
1478 {
1479 .ifnum = 7,
1480 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1481 },
1482 {
1483 .ifnum = 8,
1484 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1485 },
1486 {
1487 .ifnum = 9,
1488 .type = QUIRK_MIDI_MIDIMAN,
86e07d34 1489 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1490 .out_cables = 0x0001,
1491 .in_cables = 0x0001
1492 }
1493 },
1494 {
1495 .ifnum = -1
1496 }
1497 }
1498 }
1499},
1500
0243ef71 1501/* Casio devices */
9808dc96
CL
1502{
1503 USB_DEVICE(0x07cf, 0x6801),
1504 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1505 .vendor_name = "Casio",
1506 .product_name = "PL-40R",
1507 .ifnum = 0,
1508 .type = QUIRK_MIDI_YAMAHA
1509 }
1510},
0243ef71 1511{
318d27f8 1512 /* this ID is used by several devices without a product ID */
0243ef71
CL
1513 USB_DEVICE(0x07cf, 0x6802),
1514 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1515 .vendor_name = "Casio",
318d27f8 1516 .product_name = "Keyboard",
0243ef71
CL
1517 .ifnum = 0,
1518 .type = QUIRK_MIDI_YAMAHA
1519 }
1520},
1521
1da177e4
LT
1522/* Mark of the Unicorn devices */
1523{
1524 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
bbd4615c
CL
1525 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1526 USB_DEVICE_ID_MATCH_PRODUCT |
1527 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1528 .idVendor = 0x07fd,
1529 .idProduct = 0x0001,
1530 .bDeviceSubClass = 2,
86e07d34 1531 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1532 .vendor_name = "MOTU",
1533 .product_name = "Fastlane",
1534 .ifnum = QUIRK_ANY_INTERFACE,
1535 .type = QUIRK_COMPOSITE,
86e07d34 1536 .data = & (const struct snd_usb_audio_quirk[]) {
1da177e4
LT
1537 {
1538 .ifnum = 0,
6155aff8 1539 .type = QUIRK_MIDI_RAW
1da177e4
LT
1540 },
1541 {
1542 .ifnum = 1,
1543 .type = QUIRK_IGNORE_INTERFACE
1544 },
1545 {
1546 .ifnum = -1
1547 }
1548 }
1549 }
1550},
1551
1552{
1553 /* Creative Sound Blaster MP3+ */
1554 USB_DEVICE(0x041e, 0x3010),
86e07d34 1555 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1556 .vendor_name = "Creative Labs",
1557 .product_name = "Sound Blaster MP3+",
1558 .ifnum = QUIRK_NO_INTERFACE
1559 }
1560
1561},
1562
1563/* Emagic devices */
1564{
1565 USB_DEVICE(0x086a, 0x0001),
86e07d34 1566 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1567 .vendor_name = "Emagic",
1568 /* .product_name = "Unitor8", */
1569 .ifnum = 2,
1570 .type = QUIRK_MIDI_EMAGIC,
86e07d34 1571 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1572 .out_cables = 0x80ff,
1573 .in_cables = 0x80ff
1574 }
1575 }
1576},
1577{
1578 USB_DEVICE(0x086a, 0x0002),
86e07d34 1579 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1580 .vendor_name = "Emagic",
1581 /* .product_name = "AMT8", */
1582 .ifnum = 2,
1583 .type = QUIRK_MIDI_EMAGIC,
86e07d34 1584 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1585 .out_cables = 0x80ff,
1586 .in_cables = 0x80ff
1587 }
1588 }
1589},
1590{
1591 USB_DEVICE(0x086a, 0x0003),
86e07d34 1592 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1593 .vendor_name = "Emagic",
1594 /* .product_name = "MT4", */
1595 .ifnum = 2,
1596 .type = QUIRK_MIDI_EMAGIC,
86e07d34 1597 .data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4
LT
1598 .out_cables = 0x800f,
1599 .in_cables = 0x8003
1600 }
1601 }
1602},
1603
31ab9523
CL
1604/* TerraTec devices */
1605{
1606 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
86e07d34 1607 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
31ab9523
CL
1608 .vendor_name = "TerraTec",
1609 .product_name = "PHASE 26",
1610 .ifnum = 3,
1611 .type = QUIRK_MIDI_STANDARD_INTERFACE
1612 }
1613},
1da177e4
LT
1614{
1615 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
86e07d34 1616 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
bc56eff1
CL
1617 .vendor_name = "TerraTec",
1618 .product_name = "PHASE 26",
1619 .ifnum = 3,
1620 .type = QUIRK_MIDI_STANDARD_INTERFACE
1621 }
1622},
1623{
1624 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
1625 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
31ab9523 1626 .vendor_name = "TerraTec",
1da177e4
LT
1627 .product_name = "PHASE 26",
1628 .ifnum = 3,
1629 .type = QUIRK_MIDI_STANDARD_INTERFACE
1630 }
1631},
b2b8229d
CL
1632{
1633 USB_DEVICE(0x0ccd, 0x0035),
1634 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1635 .vendor_name = "Miditech",
1636 .product_name = "Play'n Roll",
1637 .ifnum = 0,
1638 .type = QUIRK_MIDI_CME
1639 }
1640},
1da177e4
LT
1641
1642/* Novation EMS devices */
1643{
1644 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
86e07d34 1645 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1646 .vendor_name = "Novation",
1647 .product_name = "ReMOTE Audio/XStation",
1648 .ifnum = 4,
1649 .type = QUIRK_MIDI_NOVATION
1650 }
1651},
1652{
1653 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
86e07d34 1654 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1655 .vendor_name = "Novation",
1656 .product_name = "Speedio",
1657 .ifnum = 3,
1658 .type = QUIRK_MIDI_NOVATION
1659 }
1660},
1661{
1662 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
86e07d34 1663 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1664 .vendor_name = "Novation",
1665 .product_name = "ReMOTE25",
1666 .ifnum = 0,
1667 .type = QUIRK_MIDI_NOVATION
1668 }
1669},
1670
cc7a59bd 1671/* Miditech devices */
f38275fe
CL
1672{
1673 USB_DEVICE(0x4752, 0x0011),
86e07d34 1674 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
f38275fe
CL
1675 .vendor_name = "Miditech",
1676 .product_name = "Midistart-2",
1677 .ifnum = 0,
cc7a59bd 1678 .type = QUIRK_MIDI_CME
f38275fe
CL
1679 }
1680},
cc7a59bd
CL
1681
1682/* Central Music devices */
f38275fe 1683{
cc7a59bd 1684 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
f38275fe 1685 USB_DEVICE(0x7104, 0x2202),
86e07d34 1686 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
f38275fe 1687 .ifnum = 0,
cc7a59bd 1688 .type = QUIRK_MIDI_CME
f38275fe
CL
1689 }
1690},
1691
1da177e4
LT
1692{
1693 /*
1694 * Some USB MIDI devices don't have an audio control interface,
1695 * so we have to grab MIDI streaming interfaces here.
1696 */
1697 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
1698 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
1699 .bInterfaceClass = USB_CLASS_AUDIO,
1700 .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
86e07d34 1701 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4
LT
1702 .ifnum = QUIRK_ANY_INTERFACE,
1703 .type = QUIRK_MIDI_STANDARD_INTERFACE
1704 }
1705},
1706
1707#undef USB_DEVICE_VENDOR_SPEC
This page took 0.398585 seconds and 5 git commands to generate.