usbquirks.h 46.3 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/*
 * ALSA USB Audio Driver
 *
 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
 *                       Clemens Ladisch <clemens@ladisch.de>
 *
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */

/*
 * The contents of this file are part of the driver's id_table.
 *
 * In a perfect world, this file would be empty.
 */

/*
 * Use this for devices where other interfaces are standard compliant,
 * to prevent the quirk being applied to those interfaces. (To work with
 * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
 */
#define USB_DEVICE_VENDOR_SPEC(vend, prod) \
	.match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
		       USB_DEVICE_ID_MATCH_PRODUCT | \
		       USB_DEVICE_ID_MATCH_INT_CLASS, \
	.idVendor = vend, \
	.idProduct = prod, \
	.bInterfaceClass = USB_CLASS_VENDOR_SPEC

42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
/* Creative/E-Mu devices */
{
	USB_DEVICE(0x041e, 0x3010),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Creative Labs",
		.product_name = "Sound Blaster MP3+",
		.ifnum = QUIRK_NO_INTERFACE
	}
},
{
	/* E-Mu 0202 USB */
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
	.idVendor = 0x041e,
	.idProduct = 0x3f02,
	.bInterfaceClass = USB_CLASS_AUDIO,
},
{
	/* E-Mu 0404 USB */
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
	.idVendor = 0x041e,
	.idProduct = 0x3f04,
	.bInterfaceClass = USB_CLASS_AUDIO,
},

66 67 68 69
/*
 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
 * class matches do not take effect without an explicit ID match.
 */
70 71 72 73 74 75 76 77 78
{
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.idVendor = 0x046d,
	.idProduct = 0x0850,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
},
79 80 81 82 83 84 85 86 87
{
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.idVendor = 0x046d,
	.idProduct = 0x08ae,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
},
88 89 90 91 92 93 94 95 96
{
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.idVendor = 0x046d,
	.idProduct = 0x08c6,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
},
97 98 99 100 101 102 103 104 105
{
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.idVendor = 0x046d,
	.idProduct = 0x08f0,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
},
106 107 108 109 110 111 112 113 114
{
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.idVendor = 0x046d,
	.idProduct = 0x08f5,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
},
115 116 117 118 119 120 121 122 123
{
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.idVendor = 0x046d,
	.idProduct = 0x08f6,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
},
124

L
Linus Torvalds 已提交
125 126 127 128 129 130
/*
 * Yamaha devices
 */

#define YAMAHA_DEVICE(id, name) { \
	USB_DEVICE(0x0499, id), \
131
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
L
Linus Torvalds 已提交
132 133 134 135 136 137 138 139
		.vendor_name = "Yamaha", \
		.product_name = name, \
		.ifnum = QUIRK_ANY_INTERFACE, \
		.type = QUIRK_MIDI_YAMAHA \
	} \
}
#define YAMAHA_INTERFACE(id, intf, name) { \
	USB_DEVICE_VENDOR_SPEC(0x0499, id), \
140
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
L
Linus Torvalds 已提交
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
		.vendor_name = "Yamaha", \
		.product_name = name, \
		.ifnum = intf, \
		.type = QUIRK_MIDI_YAMAHA \
	} \
}
YAMAHA_DEVICE(0x1000, "UX256"),
YAMAHA_DEVICE(0x1001, "MU1000"),
YAMAHA_DEVICE(0x1002, "MU2000"),
YAMAHA_DEVICE(0x1003, "MU500"),
YAMAHA_INTERFACE(0x1004, 3, "UW500"),
YAMAHA_DEVICE(0x1005, "MOTIF6"),
YAMAHA_DEVICE(0x1006, "MOTIF7"),
YAMAHA_DEVICE(0x1007, "MOTIF8"),
YAMAHA_DEVICE(0x1008, "UX96"),
YAMAHA_DEVICE(0x1009, "UX16"),
YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
YAMAHA_DEVICE(0x100c, "UC-MX"),
YAMAHA_DEVICE(0x100d, "UC-KX"),
YAMAHA_DEVICE(0x100e, "S08"),
YAMAHA_DEVICE(0x100f, "CLP-150"),
YAMAHA_DEVICE(0x1010, "CLP-170"),
YAMAHA_DEVICE(0x1011, "P-250"),
YAMAHA_DEVICE(0x1012, "TYROS"),
YAMAHA_DEVICE(0x1013, "PF-500"),
YAMAHA_DEVICE(0x1014, "S90"),
YAMAHA_DEVICE(0x1015, "MOTIF-R"),
168
YAMAHA_DEVICE(0x1016, "MDP-5"),
L
Linus Torvalds 已提交
169 170 171 172 173 174 175 176
YAMAHA_DEVICE(0x1017, "CVP-204"),
YAMAHA_DEVICE(0x1018, "CVP-206"),
YAMAHA_DEVICE(0x1019, "CVP-208"),
YAMAHA_DEVICE(0x101a, "CVP-210"),
YAMAHA_DEVICE(0x101b, "PSR-1100"),
YAMAHA_DEVICE(0x101c, "PSR-2100"),
YAMAHA_DEVICE(0x101d, "CLP-175"),
YAMAHA_DEVICE(0x101e, "PSR-K1"),
177
YAMAHA_DEVICE(0x101f, "EZ-J24"),
L
Linus Torvalds 已提交
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
YAMAHA_DEVICE(0x1020, "EZ-250i"),
YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
YAMAHA_DEVICE(0x1024, "CVP-301"),
YAMAHA_DEVICE(0x1025, "CVP-303"),
YAMAHA_DEVICE(0x1026, "CVP-305"),
YAMAHA_DEVICE(0x1027, "CVP-307"),
YAMAHA_DEVICE(0x1028, "CVP-309"),
YAMAHA_DEVICE(0x1029, "CVP-309GP"),
YAMAHA_DEVICE(0x102a, "PSR-1500"),
YAMAHA_DEVICE(0x102b, "PSR-3000"),
YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
YAMAHA_DEVICE(0x1030, "PSR-295/293"),
YAMAHA_DEVICE(0x1031, "DGX-205/203"),
YAMAHA_DEVICE(0x1032, "DGX-305"),
YAMAHA_DEVICE(0x1033, "DGX-505"),
YAMAHA_DEVICE(0x1034, NULL),
YAMAHA_DEVICE(0x1035, NULL),
YAMAHA_DEVICE(0x1036, NULL),
YAMAHA_DEVICE(0x1037, NULL),
YAMAHA_DEVICE(0x1038, NULL),
YAMAHA_DEVICE(0x1039, NULL),
YAMAHA_DEVICE(0x103a, NULL),
YAMAHA_DEVICE(0x103b, NULL),
YAMAHA_DEVICE(0x103c, NULL),
204
YAMAHA_DEVICE(0x103d, NULL),
205 206 207 208
YAMAHA_DEVICE(0x103e, NULL),
YAMAHA_DEVICE(0x103f, NULL),
YAMAHA_DEVICE(0x1040, NULL),
YAMAHA_DEVICE(0x1041, NULL),
209 210 211 212
YAMAHA_DEVICE(0x1042, NULL),
YAMAHA_DEVICE(0x1043, NULL),
YAMAHA_DEVICE(0x1044, NULL),
YAMAHA_DEVICE(0x1045, NULL),
213
YAMAHA_DEVICE(0x104e, "KX49"),
L
Linus Torvalds 已提交
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
YAMAHA_DEVICE(0x2000, "DGP-7"),
YAMAHA_DEVICE(0x2001, "DGP-5"),
YAMAHA_DEVICE(0x2002, NULL),
YAMAHA_DEVICE(0x5000, "CS1D"),
YAMAHA_DEVICE(0x5001, "DSP1D"),
YAMAHA_DEVICE(0x5002, "DME32"),
YAMAHA_DEVICE(0x5003, "DM2000"),
YAMAHA_DEVICE(0x5004, "02R96"),
YAMAHA_DEVICE(0x5005, "ACU16-C"),
YAMAHA_DEVICE(0x5006, "NHB32-C"),
YAMAHA_DEVICE(0x5007, "DM1000"),
YAMAHA_DEVICE(0x5008, "01V96"),
YAMAHA_DEVICE(0x5009, "SPX2000"),
YAMAHA_DEVICE(0x500a, "PM5D"),
YAMAHA_DEVICE(0x500b, "DME64N"),
YAMAHA_DEVICE(0x500c, "DME24N"),
YAMAHA_DEVICE(0x500d, NULL),
YAMAHA_DEVICE(0x500e, NULL),
232
YAMAHA_DEVICE(0x500f, NULL),
L
Linus Torvalds 已提交
233 234 235 236 237 238 239 240 241 242
YAMAHA_DEVICE(0x7000, "DTX"),
YAMAHA_DEVICE(0x7010, "UB99"),
#undef YAMAHA_DEVICE
#undef YAMAHA_INTERFACE

/*
 * Roland/RolandED/Edirol/BOSS devices
 */
{
	USB_DEVICE(0x0582, 0x0000),
243
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
244 245 246 247
		.vendor_name = "Roland",
		.product_name = "UA-100",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
248
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.format = SNDRV_PCM_FORMAT_S16_LE,
					.channels = 4,
					.iface = 0,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = 0,
					.endpoint = 0x01,
					.ep_attr = 0x09,
					.rates = SNDRV_PCM_RATE_CONTINUOUS,
					.rate_min = 44100,
					.rate_max = 44100,
				}
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.format = SNDRV_PCM_FORMAT_S16_LE,
					.channels = 2,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = EP_CS_ATTR_FILL_MAX,
					.endpoint = 0x81,
					.ep_attr = 0x05,
					.rates = SNDRV_PCM_RATE_CONTINUOUS,
					.rate_min = 44100,
					.rate_max = 44100,
				}
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
286
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
287 288 289 290 291 292 293 294 295 296 297 298
					.out_cables = 0x0007,
					.in_cables  = 0x0007
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0002),
299
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
300 301
		.vendor_name = "EDIROL",
		.product_name = "UM-4",
302 303
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
304
		.data = (const struct snd_usb_audio_quirk[]) {
305 306 307 308 309 310 311 312 313 314 315
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
316
				.data = & (const struct snd_usb_midi_endpoint_info) {
317 318 319 320 321 322 323
					.out_cables = 0x000f,
					.in_cables  = 0x000f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
324 325 326 327 328
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0003),
329
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
330 331
		.vendor_name = "Roland",
		.product_name = "SC-8850",
332 333
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
334
		.data = (const struct snd_usb_audio_quirk[]) {
335 336 337 338 339 340 341 342 343 344 345
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
346
				.data = & (const struct snd_usb_midi_endpoint_info) {
347 348 349 350 351 352 353
					.out_cables = 0x003f,
					.in_cables  = 0x003f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
354 355 356 357 358
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0004),
359
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
360 361
		.vendor_name = "Roland",
		.product_name = "U-8",
362 363
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
364
		.data = (const struct snd_usb_audio_quirk[]) {
365 366 367 368 369 370 371 372 373 374 375
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
376
				.data = & (const struct snd_usb_midi_endpoint_info) {
377 378 379 380 381 382 383
					.out_cables = 0x0005,
					.in_cables  = 0x0005
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
384 385 386 387
		}
	}
},
{
388 389
	/* Has ID 0x0099 when not in "Advanced Driver" mode.
	 * The UM-2EX has only one input, but we cannot detect this. */
L
Linus Torvalds 已提交
390
	USB_DEVICE(0x0582, 0x0005),
391
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
392 393
		.vendor_name = "EDIROL",
		.product_name = "UM-2",
394 395
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
396
		.data = (const struct snd_usb_audio_quirk[]) {
397 398 399 400 401 402 403 404 405 406 407
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
408
				.data = & (const struct snd_usb_midi_endpoint_info) {
409 410 411 412 413 414 415
					.out_cables = 0x0003,
					.in_cables  = 0x0003
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
416 417 418 419 420
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0007),
421
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
422 423
		.vendor_name = "Roland",
		.product_name = "SC-8820",
424 425
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
426
		.data = (const struct snd_usb_audio_quirk[]) {
427 428 429 430 431 432 433 434 435 436 437
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
438
				.data = & (const struct snd_usb_midi_endpoint_info) {
439 440 441 442 443 444 445
					.out_cables = 0x0013,
					.in_cables  = 0x0013
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
446 447 448 449 450
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0008),
451
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
452 453
		.vendor_name = "Roland",
		.product_name = "PC-300",
454 455
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
456
		.data = (const struct snd_usb_audio_quirk[]) {
457 458 459 460 461 462 463 464 465 466 467
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
468
				.data = & (const struct snd_usb_midi_endpoint_info) {
469 470 471 472 473 474 475
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
476 477 478 479
		}
	}
},
{
480
	/* has ID 0x009d when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
481
	USB_DEVICE(0x0582, 0x0009),
482
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
483 484
		.vendor_name = "EDIROL",
		.product_name = "UM-1",
485 486
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
487
		.data = (const struct snd_usb_audio_quirk[]) {
488 489 490 491 492 493 494 495 496 497 498
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
499
				.data = & (const struct snd_usb_midi_endpoint_info) {
500 501 502 503 504 505 506
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
507 508 509 510 511
		}
	}
},
{
	USB_DEVICE(0x0582, 0x000b),
512
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
513 514
		.vendor_name = "Roland",
		.product_name = "SK-500",
515 516
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
517
		.data = (const struct snd_usb_audio_quirk[]) {
518 519 520 521 522 523 524 525 526 527 528
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
529
				.data = & (const struct snd_usb_midi_endpoint_info) {
530 531 532 533 534 535 536
					.out_cables = 0x0013,
					.in_cables  = 0x0013
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
537 538 539 540 541 542 543
		}
	}
},
{
	/* thanks to Emiliano Grilli <emillo@libero.it>
	 * for helping researching this data */
	USB_DEVICE(0x0582, 0x000c),
544
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
545 546 547 548
		.vendor_name = "Roland",
		.product_name = "SC-D70",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
549
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.format = SNDRV_PCM_FORMAT_S24_3LE,
					.channels = 2,
					.iface = 0,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = 0,
					.endpoint = 0x01,
					.ep_attr = 0x01,
					.rates = SNDRV_PCM_RATE_CONTINUOUS,
					.rate_min = 44100,
					.rate_max = 44100,
				}
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.format = SNDRV_PCM_FORMAT_S24_3LE,
					.channels = 2,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = 0,
					.endpoint = 0x81,
					.ep_attr = 0x01,
					.rates = SNDRV_PCM_RATE_CONTINUOUS,
					.rate_min = 44100,
					.rate_max = 44100,
				}
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
587
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607
					.out_cables = 0x0007,
					.in_cables  = 0x0007
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{	/*
	 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
	 * If the advanced mode switch at the back of the unit is off, the
	 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
	 * but offers only 16-bit PCM.
	 * In advanced mode, the UA-5 will output S24_3LE samples (two
	 * channels) at the rate indicated on the front switch, including
	 * the 96kHz sample rate.
	 */
	USB_DEVICE(0x0582, 0x0010),
608
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
609 610 611 612
		.vendor_name = "EDIROL",
		.product_name = "UA-5",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
613
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
614 615 616 617 618 619 620 621 622 623 624 625 626 627 628
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
629
	/* has ID 0x0013 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
630
	USB_DEVICE(0x0582, 0x0012),
631
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
632 633 634 635
		.vendor_name = "Roland",
		.product_name = "XV-5050",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
636
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
637 638 639 640 641 642
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
643
	/* has ID 0x0015 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
644
	USB_DEVICE(0x0582, 0x0014),
645
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
646 647 648 649
		.vendor_name = "EDIROL",
		.product_name = "UM-880",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
650
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
651 652 653 654 655 656
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
657
	/* has ID 0x0017 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
658
	USB_DEVICE(0x0582, 0x0016),
659
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
660 661
		.vendor_name = "EDIROL",
		.product_name = "SD-90",
662 663
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
664
		.data = (const struct snd_usb_audio_quirk[]) {
665 666 667 668 669 670 671 672 673 674 675
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
676
				.data = & (const struct snd_usb_midi_endpoint_info) {
677 678 679 680 681 682 683
					.out_cables = 0x000f,
					.in_cables  = 0x000f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
684 685 686 687
		}
	}
},
{
688
	/* has ID 0x001c when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
689
	USB_DEVICE(0x0582, 0x001b),
690
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
691 692
		.vendor_name = "Roland",
		.product_name = "MMP-2",
693 694
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
695
		.data = (const struct snd_usb_audio_quirk[]) {
696 697 698 699 700 701 702 703 704 705 706
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
707
				.data = & (const struct snd_usb_midi_endpoint_info) {
708 709 710 711 712 713 714
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
715 716 717 718
		}
	}
},
{
719
	/* has ID 0x001e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
720
	USB_DEVICE(0x0582, 0x001d),
721
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
722 723 724 725
		.vendor_name = "Roland",
		.product_name = "V-SYNTH",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
726
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
727 728 729 730 731 732
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
733
	/* has ID 0x0024 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
734
	USB_DEVICE(0x0582, 0x0023),
735
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
736 737 738 739
		.vendor_name = "EDIROL",
		.product_name = "UM-550",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
740
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
741 742 743 744 745 746 747 748 749 750 751 752
			.out_cables = 0x003f,
			.in_cables  = 0x003f
		}
	}
},
{
	/*
	 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
	 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
	 * and no MIDI.
	 */
	USB_DEVICE(0x0582, 0x0025),
753
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
754 755 756 757
		.vendor_name = "EDIROL",
		.product_name = "UA-20",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
758
		.data = (const struct snd_usb_audio_quirk[]) {
759 760 761 762
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
L
Linus Torvalds 已提交
763 764
			{
				.ifnum = 1,
765 766 767 768 769 770 771 772 773 774 775 776 777 778
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.format = SNDRV_PCM_FORMAT_S24_3LE,
					.channels = 2,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = 0,
					.endpoint = 0x01,
					.ep_attr = 0x01,
					.rates = SNDRV_PCM_RATE_CONTINUOUS,
					.rate_min = 44100,
					.rate_max = 44100,
				}
L
Linus Torvalds 已提交
779 780 781
			},
			{
				.ifnum = 2,
782 783 784 785 786 787 788 789 790 791 792 793 794 795
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.format = SNDRV_PCM_FORMAT_S24_3LE,
					.channels = 2,
					.iface = 2,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = 0,
					.endpoint = 0x82,
					.ep_attr = 0x01,
					.rates = SNDRV_PCM_RATE_CONTINUOUS,
					.rate_min = 44100,
					.rate_max = 44100,
				}
L
Linus Torvalds 已提交
796 797 798
			},
			{
				.ifnum = 3,
799 800 801 802 803
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
L
Linus Torvalds 已提交
804 805 806 807 808 809 810 811
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
812
	/* has ID 0x0028 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
813
	USB_DEVICE(0x0582, 0x0027),
814
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
815 816 817 818
		.vendor_name = "EDIROL",
		.product_name = "SD-20",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
819
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
820 821 822 823 824 825
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
{
826
	/* has ID 0x002a when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
827
	USB_DEVICE(0x0582, 0x0029),
828
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
829 830 831 832
		.vendor_name = "EDIROL",
		.product_name = "SD-80",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
833
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
834 835 836 837 838 839 840 841 842 843 844 845
			.out_cables = 0x000f,
			.in_cables  = 0x000f
		}
	}
},
{	/*
	 * This quirk is for the "Advanced" modes of the Edirol UA-700.
	 * If the sample format switch is not in an advanced setting, the
	 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
	 * but offers only 16-bit PCM and no MIDI.
	 */
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
846
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
847 848 849 850
		.vendor_name = "EDIROL",
		.product_name = "UA-700",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
851
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_EDIROL_UA700_UA25
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_EDIROL_UA700_UA25
			},
			{
				.ifnum = 3,
				.type = QUIRK_AUDIO_EDIROL_UA700_UA25
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
871
	/* has ID 0x002e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
872
	USB_DEVICE(0x0582, 0x002d),
873
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
874 875 876 877
		.vendor_name = "Roland",
		.product_name = "XV-2020",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
878
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
879 880 881 882 883 884
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
885
	/* has ID 0x0030 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
886
	USB_DEVICE(0x0582, 0x002f),
887
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
888 889 890 891
		.vendor_name = "Roland",
		.product_name = "VariOS",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
892
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
893 894 895 896 897 898
			.out_cables = 0x0007,
			.in_cables  = 0x0007
		}
	}
},
{
899
	/* has ID 0x0034 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
900
	USB_DEVICE(0x0582, 0x0033),
901
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
902 903 904 905
		.vendor_name = "EDIROL",
		.product_name = "PCR",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
906
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
907 908 909 910 911
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
912
	/* TODO: add Roland M-1000 support */
L
Linus Torvalds 已提交
913
{
914 915 916 917
	/*
	 * Has ID 0x0038 when not in "Advanced Driver" mode;
	 * later revisions use IDs 0x0054 and 0x00a2.
	 */
L
Linus Torvalds 已提交
918
	USB_DEVICE(0x0582, 0x0037),
919
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
920 921 922 923
		.vendor_name = "Roland",
		.product_name = "Digital Piano",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
924
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
925 926 927 928 929 930
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
931 932 933 934 935
	/*
	 * This quirk is for the "Advanced Driver" mode.  If off, the GS-10
	 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
	 * and no MIDI.
	 */
L
Linus Torvalds 已提交
936
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
937
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
938 939
		.vendor_name = "BOSS",
		.product_name = "GS-10",
940 941
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
942
		.data = & (const struct snd_usb_audio_quirk[]) {
943 944 945 946 947 948 949 950 951 952 953 954 955 956 957
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 3,
				.type = QUIRK_MIDI_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
958 959 960 961
		}
	}
},
{
962
	/* has ID 0x0041 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
963
	USB_DEVICE(0x0582, 0x0040),
964
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
965 966 967 968
		.vendor_name = "Roland",
		.product_name = "GI-20",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
969
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
970 971 972 973 974 975
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
976
	/* has ID 0x0043 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
977
	USB_DEVICE(0x0582, 0x0042),
978
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
979 980 981 982
		.vendor_name = "Roland",
		.product_name = "RS-70",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
983
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
984 985 986 987 988 989 990
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0044),
991
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
992 993 994 995
		.vendor_name = "Roland",
		.product_name = "UA-1000",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
996
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_EDIROL_UA1000
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_EDIROL_UA1000
			},
			{
				.ifnum = 3,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
1008
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018
					.out_cables = 0x0003,
					.in_cables  = 0x0003
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042
{
	/* has ID 0x0049 when not in "Advanced Driver" mode */
	USB_DEVICE(0x0582, 0x0047),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "EDIROL", */
		/* .product_name = "UR-80", */
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			/* in the 96 kHz modes, only interface 1 is there */
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
L
Linus Torvalds 已提交
1043
{
1044
	/* has ID 0x004a when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1045
	USB_DEVICE(0x0582, 0x0048),
1046
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1047 1048
		/* .vendor_name = "EDIROL", */
		/* .product_name = "UR-80", */
L
Linus Torvalds 已提交
1049 1050
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1051
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1052 1053 1054 1055 1056
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
1057
	/* TODO: add Edirol M-100FX support */
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080
{
	/* has ID 0x004e when not in "Advanced Driver" mode */
	USB_DEVICE(0x0582, 0x004c),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "EDIROL",
		.product_name = "PCR-A",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
L
Linus Torvalds 已提交
1081
{
1082
	/* has ID 0x004f when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1083
	USB_DEVICE(0x0582, 0x004d),
1084
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1085 1086 1087 1088
		.vendor_name = "EDIROL",
		.product_name = "PCR-A",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1089
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
{
	/*
	 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
	 * is standard compliant, but has only 16-bit PCM.
	 */
	USB_DEVICE(0x0582, 0x0050),
1101
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1102 1103 1104 1105
		.vendor_name = "EDIROL",
		.product_name = "UA-3FX",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1106
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0052),
1123
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1124 1125 1126 1127 1128 1129
		.vendor_name = "EDIROL",
		.product_name = "UM-1SX",
		.ifnum = 0,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
1130 1131 1132 1133 1134 1135 1136 1137 1138
{
	USB_DEVICE(0x0582, 0x0060),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Roland",
		.product_name = "EXR Series",
		.ifnum = 0,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
L
Linus Torvalds 已提交
1139
{
1140
	/* has ID 0x0067 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1141
	USB_DEVICE(0x0582, 0x0065),
1142
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1143 1144 1145 1146
		.vendor_name = "EDIROL",
		.product_name = "PCR-1",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1147
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1148 1149 1150 1151 1152 1153
			.out_cables = 0x0001,
			.in_cables  = 0x0003
		}
	}
},
{
1154
	/* has ID 0x006b when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1155
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
1156
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1157 1158 1159 1160
		.vendor_name = "Roland",
		.product_name = "SP-606",
		.ifnum = 3,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1161
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1162 1163 1164 1165 1166 1167
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
1168
	/* has ID 0x006e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1169
	USB_DEVICE(0x0582, 0x006d),
1170
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1171 1172 1173 1174
		.vendor_name = "Roland",
		.product_name = "FANTOM-X",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1175
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{	/*
	 * This quirk is for the "Advanced" modes of the Edirol UA-25.
	 * If the switch is not in an advanced setting, the UA-25 has
	 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
	 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
	 */
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
1188
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1189 1190 1191 1192
		.vendor_name = "EDIROL",
		.product_name = "UA-25",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1193
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_EDIROL_UA700_UA25
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_EDIROL_UA700_UA25
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_EDIROL_UA700_UA25
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
1213
	/* has ID 0x0076 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1214
	USB_DEVICE(0x0582, 0x0075),
1215
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1216 1217 1218 1219
		.vendor_name = "BOSS",
		.product_name = "DR-880",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1220
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1221 1222 1223 1224 1225
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
1226
{
1227
	/* has ID 0x007b when not in "Advanced Driver" mode */
1228
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
1229
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1230
		.vendor_name = "Roland",
1231
		/* "RD" or "RD-700SX"? */
1232 1233
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1234
		.data = & (const struct snd_usb_midi_endpoint_info) {
1235 1236 1237 1238 1239
			.out_cables = 0x0003,
			.in_cables  = 0x0003
		}
	}
},
1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270
/* Roland UA-101 in High-Speed Mode only */
{
	USB_DEVICE(0x0582, 0x007d),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Roland",
		.product_name = "UA-101",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_EDIROL_UA101
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_EDIROL_UA101
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
1271 1272 1273 1274 1275 1276 1277 1278 1279
{
	/* has ID 0x0081 when not in "Advanced Driver" mode */
	USB_DEVICE(0x0582, 0x0080),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Roland",
		.product_name = "G-70",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
		.data = & (const struct snd_usb_midi_endpoint_info) {
1280 1281
			.out_cables = 0x0001,
			.in_cables  = 0x0001
1282 1283 1284
		}
	}
},
1285 1286
	/* TODO: add Roland V-SYNTH XT support */
	/* TODO: add BOSS GT-PRO support */
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300
{
	/* has ID 0x008c when not in "Advanced Driver" mode */
	USB_DEVICE(0x0582, 0x008b),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "EDIROL",
		.product_name = "PC-50",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
		.data = & (const struct snd_usb_midi_endpoint_info) {
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
1301
	/* TODO: add Edirol PC-80 support */
1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323
{
	USB_DEVICE(0x0582, 0x0096),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "EDIROL",
		.product_name = "UA-1EX",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337
{
	USB_DEVICE(0x0582, 0x009a),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "EDIROL",
		.product_name = "UM-3EX",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
		.data = & (const struct snd_usb_midi_endpoint_info) {
			.out_cables = 0x000f,
			.in_cables  = 0x000f
		}
	}
},
	/* TODO: add Edirol MD-P1 support */
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350
{
	USB_DEVICE(0x582, 0x00a6),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Roland",
		.product_name = "Juno-G",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
		.data = & (const struct snd_usb_midi_endpoint_info) {
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381
{
	/* Roland SH-201 */
	USB_DEVICE(0x0582, 0x00ad),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Roland",
		.product_name = "SH-201",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
L
Linus Torvalds 已提交
1382

1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415
{
	/* Roland SonicCell */
	USB_DEVICE(0x0582, 0x00c2),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Roland",
		.product_name = "SonicCell",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},


1416 1417 1418 1419 1420 1421 1422 1423 1424
/* Guillemot devices */
{
	/*
	 * This is for the "Windows Edition" where the external MIDI ports are
	 * the only MIDI ports; the control data is reported through HID
	 * interfaces.  The "Macintosh Edition" has ID 0xd002 and uses standard
	 * compliant USB MIDI ports for external MIDI and controls.
	 */
	USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
1425
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1426 1427 1428 1429
		.vendor_name = "Hercules",
		.product_name = "DJ Console (WE)",
		.ifnum = 4,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1430
		.data = & (const struct snd_usb_midi_endpoint_info) {
1431 1432 1433 1434 1435 1436
			.out_cables = 0x0001,
			.in_cables = 0x0001
		}
	}
},

L
Linus Torvalds 已提交
1437 1438 1439
/* Midiman/M-Audio devices */
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
1440
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1441 1442 1443 1444
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 2x2",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1445
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1446 1447 1448 1449 1450 1451 1452
			.out_cables = 0x0003,
			.in_cables  = 0x0003
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
1453
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1454 1455 1456 1457
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 1x1",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1458
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1459 1460 1461 1462 1463 1464 1465
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
1466
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1467 1468 1469 1470
		.vendor_name = "M-Audio",
		.product_name = "Keystation",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1471
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1472 1473 1474 1475 1476 1477 1478
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
1479
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1480 1481 1482 1483
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 4x4",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1484
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496
			.out_cables = 0x000f,
			.in_cables  = 0x000f
		}
	}
},
{
	/*
	 * For hardware revision 1.05; in the later revisions (1.10 and
	 * 1.21), 0x1031 is the ID for the device without firmware.
	 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
	 */
	USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
1497
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1498 1499 1500 1501
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 8x8",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1502
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1503 1504 1505 1506 1507 1508 1509
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
1510
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1511 1512 1513 1514
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 8x8",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1515
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1516 1517 1518 1519 1520 1521 1522
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
1523
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1524 1525 1526 1527
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 2x4",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1528
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1529 1530 1531 1532 1533 1534 1535
			.out_cables = 0x000f,
			.in_cables  = 0x0003
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
1536
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1537 1538 1539 1540
		.vendor_name = "M-Audio",
		.product_name = "Quattro",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1541
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586
			/*
			 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
			 * and share endpoints with the other interfaces.
			 * Ignore them.  The other interfaces can do 24 bits,
			 * but captured samples are big-endian (see usbaudio.c).
			 */
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 3,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 4,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 5,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 6,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 7,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 8,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 9,
				.type = QUIRK_MIDI_MIDIMAN,
1587
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
1600
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1601 1602 1603 1604
		.vendor_name = "M-Audio",
		.product_name = "AudioPhile",
		.ifnum = 6,
		.type = QUIRK_MIDI_MIDIMAN,
1605
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1606 1607 1608 1609 1610 1611 1612
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
1613
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1614 1615 1616 1617
		.vendor_name = "M-Audio",
		.product_name = "Ozone",
		.ifnum = 3,
		.type = QUIRK_MIDI_MIDIMAN,
1618
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1619 1620 1621 1622 1623 1624 1625
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
1626
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1627 1628 1629 1630
		.vendor_name = "M-Audio",
		.product_name = "OmniStudio",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1631
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 3,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 4,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 5,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 6,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 7,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 8,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 9,
				.type = QUIRK_MIDI_MIDIMAN,
1671
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1672 1673 1674 1675 1676 1677 1678 1679 1680 1681
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715
{
	USB_DEVICE(0x0763, 0x2019),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "M-Audio", */
		/* .product_name = "Ozone Academic", */
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = & (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 3,
				.type = QUIRK_MIDI_MIDIMAN,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
L
Linus Torvalds 已提交
1716

1717
/* Casio devices */
1718 1719 1720 1721 1722 1723 1724 1725 1726
{
	USB_DEVICE(0x07cf, 0x6801),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Casio",
		.product_name = "PL-40R",
		.ifnum = 0,
		.type = QUIRK_MIDI_YAMAHA
	}
},
1727
{
1728
	/* this ID is used by several devices without a product ID */
1729 1730 1731
	USB_DEVICE(0x07cf, 0x6802),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Casio",
1732
		.product_name = "Keyboard",
1733 1734 1735 1736 1737
		.ifnum = 0,
		.type = QUIRK_MIDI_YAMAHA
	}
},

L
Linus Torvalds 已提交
1738 1739 1740
/* Mark of the Unicorn devices */
{
	/* thanks to Robert A. Lerche <ral 'at' msbit.com> */
1741 1742 1743 1744 1745 1746
	.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
		       USB_DEVICE_ID_MATCH_PRODUCT |
		       USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
	.idVendor = 0x07fd,
	.idProduct = 0x0001,
	.bDeviceSubClass = 2,
1747
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1748 1749 1750 1751
		.vendor_name = "MOTU",
		.product_name = "Fastlane",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1752
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1753 1754
			{
				.ifnum = 0,
1755
				.type = QUIRK_MIDI_RAW
L
Linus Torvalds 已提交
1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},

/* Emagic devices */
{
	USB_DEVICE(0x086a, 0x0001),
1771
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1772 1773 1774 1775
		.vendor_name = "Emagic",
		/* .product_name = "Unitor8", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
1776
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1777 1778 1779 1780 1781 1782 1783
			.out_cables = 0x80ff,
			.in_cables  = 0x80ff
		}
	}
},
{
	USB_DEVICE(0x086a, 0x0002),
1784
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1785 1786 1787 1788
		.vendor_name = "Emagic",
		/* .product_name = "AMT8", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
1789
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1790 1791 1792 1793 1794 1795 1796
			.out_cables = 0x80ff,
			.in_cables  = 0x80ff
		}
	}
},
{
	USB_DEVICE(0x086a, 0x0003),
1797
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1798 1799 1800 1801
		.vendor_name = "Emagic",
		/* .product_name = "MT4", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
1802
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1803 1804 1805 1806 1807 1808
			.out_cables = 0x800f,
			.in_cables  = 0x8003
		}
	}
},

1809 1810 1811
/* TerraTec devices */
{
	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
1812
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1813 1814 1815 1816 1817 1818
		.vendor_name = "TerraTec",
		.product_name = "PHASE 26",
		.ifnum = 3,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
L
Linus Torvalds 已提交
1819 1820
{
	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
1821
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1822 1823 1824 1825 1826 1827 1828 1829 1830
		.vendor_name = "TerraTec",
		.product_name = "PHASE 26",
		.ifnum = 3,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1831
		.vendor_name = "TerraTec",
L
Linus Torvalds 已提交
1832 1833 1834 1835 1836
		.product_name = "PHASE 26",
		.ifnum = 3,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
1837 1838 1839 1840 1841 1842 1843 1844 1845
{
	USB_DEVICE(0x0ccd, 0x0035),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Miditech",
		.product_name = "Play'n Roll",
		.ifnum = 0,
		.type = QUIRK_MIDI_CME
	}
},
L
Linus Torvalds 已提交
1846

1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864
/* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
{
	USB_DEVICE(0x103d, 0x0100),
		.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Stanton",
		.product_name = "ScratchAmp",
		.ifnum = QUIRK_NO_INTERFACE
	}
},
{
	USB_DEVICE(0x103d, 0x0101),
		.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Stanton",
		.product_name = "ScratchAmp",
		.ifnum = QUIRK_NO_INTERFACE
	}
},

L
Linus Torvalds 已提交
1865 1866 1867
/* Novation EMS devices */
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
1868
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1869 1870 1871 1872 1873 1874 1875 1876
		.vendor_name = "Novation",
		.product_name = "ReMOTE Audio/XStation",
		.ifnum = 4,
		.type = QUIRK_MIDI_NOVATION
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
1877
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1878 1879 1880 1881 1882 1883 1884 1885
		.vendor_name = "Novation",
		.product_name = "Speedio",
		.ifnum = 3,
		.type = QUIRK_MIDI_NOVATION
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
1886
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1887 1888 1889 1890 1891 1892 1893
		.vendor_name = "Novation",
		.product_name = "ReMOTE25",
		.ifnum = 0,
		.type = QUIRK_MIDI_NOVATION
	}
},

1894
/* */
1895
{
1896
	/* aka. Serato Scratch Live DJ Box */
1897
	USB_DEVICE(0x13e5, 0x0001),
1898 1899 1900 1901
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Rane",
		.product_name = "SL-1",
		.ifnum = QUIRK_NO_INTERFACE
1902 1903 1904
	}
},

1905
/* Miditech devices */
1906 1907
{
	USB_DEVICE(0x4752, 0x0011),
1908
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1909 1910 1911
		.vendor_name = "Miditech",
		.product_name = "Midistart-2",
		.ifnum = 0,
1912
		.type = QUIRK_MIDI_CME
1913 1914
	}
},
1915 1916

/* Central Music devices */
1917
{
1918
	/* this ID used by both Miditech MidiStudio-2 and CME UF-x */
1919
	USB_DEVICE(0x7104, 0x2202),
1920
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1921
		.ifnum = 0,
1922
		.type = QUIRK_MIDI_CME
1923 1924 1925
	}
},

L
Linus Torvalds 已提交
1926 1927 1928 1929 1930 1931 1932 1933 1934
{
	/*
	 * Some USB MIDI devices don't have an audio control interface,
	 * so we have to grab MIDI streaming interfaces here.
	 */
	.match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
1935
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1936 1937 1938 1939 1940 1941
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},

#undef USB_DEVICE_VENDOR_SPEC