usbquirks.h 37.5 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 42 43 44 45 46 47
/*
 * 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

/*
 * Yamaha devices
 */

#define YAMAHA_DEVICE(id, name) { \
	USB_DEVICE(0x0499, id), \
48
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
L
Linus Torvalds 已提交
49 50 51 52 53 54 55 56
		.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), \
57
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
L
Linus Torvalds 已提交
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
		.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"),
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"),
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),
119
YAMAHA_DEVICE(0x103d, NULL),
120 121 122 123
YAMAHA_DEVICE(0x103e, NULL),
YAMAHA_DEVICE(0x103f, NULL),
YAMAHA_DEVICE(0x1040, NULL),
YAMAHA_DEVICE(0x1041, NULL),
L
Linus Torvalds 已提交
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
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),
YAMAHA_DEVICE(0x7000, "DTX"),
YAMAHA_DEVICE(0x7010, "UB99"),
#undef YAMAHA_DEVICE
#undef YAMAHA_INTERFACE

/*
 * Roland/RolandED/Edirol/BOSS devices
 */
{
	USB_DEVICE(0x0582, 0x0000),
152
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
153 154 155 156
		.vendor_name = "Roland",
		.product_name = "UA-100",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
157
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
			{
				.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,
195
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
196 197 198 199 200 201 202 203 204 205 206 207
					.out_cables = 0x0007,
					.in_cables  = 0x0007
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0002),
208
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
209 210
		.vendor_name = "EDIROL",
		.product_name = "UM-4",
211 212
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
213
		.data = (const struct snd_usb_audio_quirk[]) {
214 215 216 217 218 219 220 221 222 223 224
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
225
				.data = & (const struct snd_usb_midi_endpoint_info) {
226 227 228 229 230 231 232
					.out_cables = 0x000f,
					.in_cables  = 0x000f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
233 234 235 236 237
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0003),
238
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
239 240
		.vendor_name = "Roland",
		.product_name = "SC-8850",
241 242
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
243
		.data = (const struct snd_usb_audio_quirk[]) {
244 245 246 247 248 249 250 251 252 253 254
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
255
				.data = & (const struct snd_usb_midi_endpoint_info) {
256 257 258 259 260 261 262
					.out_cables = 0x003f,
					.in_cables  = 0x003f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
263 264 265 266 267
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0004),
268
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
269 270
		.vendor_name = "Roland",
		.product_name = "U-8",
271 272
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
273
		.data = (const struct snd_usb_audio_quirk[]) {
274 275 276 277 278 279 280 281 282 283 284
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
285
				.data = & (const struct snd_usb_midi_endpoint_info) {
286 287 288 289 290 291 292
					.out_cables = 0x0005,
					.in_cables  = 0x0005
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
293 294 295 296
		}
	}
},
{
297
	/* a later revision uses ID 0x0099 */
L
Linus Torvalds 已提交
298
	USB_DEVICE(0x0582, 0x0005),
299
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
300 301
		.vendor_name = "EDIROL",
		.product_name = "UM-2",
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 = 0x0003,
					.in_cables  = 0x0003
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
324 325 326 327 328
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0007),
329
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
330 331
		.vendor_name = "Roland",
		.product_name = "SC-8820",
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 = 0x0013,
					.in_cables  = 0x0013
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
354 355 356 357 358
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0008),
359
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
360 361
		.vendor_name = "Roland",
		.product_name = "PC-300",
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 = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
384 385 386 387
		}
	}
},
{
388
	/* a later revision uses ID 0x009d */
L
Linus Torvalds 已提交
389
	USB_DEVICE(0x0582, 0x0009),
390
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
391 392
		.vendor_name = "EDIROL",
		.product_name = "UM-1",
393 394
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
395
		.data = (const struct snd_usb_audio_quirk[]) {
396 397 398 399 400 401 402 403 404 405 406
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
407
				.data = & (const struct snd_usb_midi_endpoint_info) {
408 409 410 411 412 413 414
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
415 416 417 418 419
		}
	}
},
{
	USB_DEVICE(0x0582, 0x000b),
420
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
421 422
		.vendor_name = "Roland",
		.product_name = "SK-500",
423 424
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
425
		.data = (const struct snd_usb_audio_quirk[]) {
426 427 428 429 430 431 432 433 434 435 436
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
437
				.data = & (const struct snd_usb_midi_endpoint_info) {
438 439 440 441 442 443 444
					.out_cables = 0x0013,
					.in_cables  = 0x0013
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
445 446 447 448 449 450 451
		}
	}
},
{
	/* thanks to Emiliano Grilli <emillo@libero.it>
	 * for helping researching this data */
	USB_DEVICE(0x0582, 0x000c),
452
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
453 454 455 456
		.vendor_name = "Roland",
		.product_name = "SC-D70",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
457
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
			{
				.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,
495
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515
					.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),
516
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
517 518 519 520
		.vendor_name = "EDIROL",
		.product_name = "UA-5",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
521
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
522 523 524 525 526 527 528 529 530 531 532 533 534 535 536
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
537
	/* has ID 0x0013 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
538
	USB_DEVICE(0x0582, 0x0012),
539
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
540 541 542 543
		.vendor_name = "Roland",
		.product_name = "XV-5050",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
544
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
545 546 547 548 549 550
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
551
	/* has ID 0x0015 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
552
	USB_DEVICE(0x0582, 0x0014),
553
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
554 555 556 557
		.vendor_name = "EDIROL",
		.product_name = "UM-880",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
558
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
559 560 561 562 563 564
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
565
	/* has ID 0x0017 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
566
	USB_DEVICE(0x0582, 0x0016),
567
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
568 569
		.vendor_name = "EDIROL",
		.product_name = "SD-90",
570 571
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
572
		.data = (const struct snd_usb_audio_quirk[]) {
573 574 575 576 577 578 579 580 581 582 583
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
584
				.data = & (const struct snd_usb_midi_endpoint_info) {
585 586 587 588 589 590 591
					.out_cables = 0x000f,
					.in_cables  = 0x000f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
592 593 594 595
		}
	}
},
{
596
	/* has ID 0x001c when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
597
	USB_DEVICE(0x0582, 0x001b),
598
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
599 600
		.vendor_name = "Roland",
		.product_name = "MMP-2",
601 602
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
603
		.data = (const struct snd_usb_audio_quirk[]) {
604 605 606 607 608 609 610 611 612 613 614
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
615
				.data = & (const struct snd_usb_midi_endpoint_info) {
616 617 618 619 620 621 622
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
623 624 625 626
		}
	}
},
{
627
	/* has ID 0x001e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
628
	USB_DEVICE(0x0582, 0x001d),
629
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
630 631 632 633
		.vendor_name = "Roland",
		.product_name = "V-SYNTH",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
634
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
635 636 637 638 639 640
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
641
	/* has ID 0x0024 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
642
	USB_DEVICE(0x0582, 0x0023),
643
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
644 645 646 647
		.vendor_name = "EDIROL",
		.product_name = "UM-550",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
648
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
649 650 651 652 653 654 655 656 657 658 659 660
			.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),
661
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
662 663 664 665
		.vendor_name = "EDIROL",
		.product_name = "UA-20",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
666
		.data = (const struct snd_usb_audio_quirk[]) {
667 668 669 670
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
L
Linus Torvalds 已提交
671 672
			{
				.ifnum = 1,
673 674 675 676 677 678 679 680 681 682 683 684 685 686
				.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 已提交
687 688 689
			},
			{
				.ifnum = 2,
690 691 692 693 694 695 696 697 698 699 700 701 702 703
				.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 已提交
704 705 706
			},
			{
				.ifnum = 3,
707 708 709 710 711
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
L
Linus Torvalds 已提交
712 713 714 715 716 717 718 719
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
720
	/* has ID 0x0028 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
721
	USB_DEVICE(0x0582, 0x0027),
722
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
723 724 725 726
		.vendor_name = "EDIROL",
		.product_name = "SD-20",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
727
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
728 729 730 731 732 733
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
{
734
	/* has ID 0x002a when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
735
	USB_DEVICE(0x0582, 0x0029),
736
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
737 738 739 740
		.vendor_name = "EDIROL",
		.product_name = "SD-80",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
741
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
742 743 744 745 746 747 748 749 750 751 752 753
			.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),
754
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
755 756 757 758
		.vendor_name = "EDIROL",
		.product_name = "UA-700",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
759
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778
			{
				.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
			}
		}
	}
},
{
779
	/* has ID 0x002e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
780
	USB_DEVICE(0x0582, 0x002d),
781
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
782 783 784 785
		.vendor_name = "Roland",
		.product_name = "XV-2020",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
786
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
787 788 789 790 791 792
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
793
	/* has ID 0x0030 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
794
	USB_DEVICE(0x0582, 0x002f),
795
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
796 797 798 799
		.vendor_name = "Roland",
		.product_name = "VariOS",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
800
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
801 802 803 804 805 806
			.out_cables = 0x0007,
			.in_cables  = 0x0007
		}
	}
},
{
807
	/* has ID 0x0034 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
808
	USB_DEVICE(0x0582, 0x0033),
809
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
810 811 812 813
		.vendor_name = "EDIROL",
		.product_name = "PCR",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
814
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
815 816 817 818 819
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
820
	/* TODO: add Roland M-1000 support */
L
Linus Torvalds 已提交
821
{
822 823 824 825
	/*
	 * Has ID 0x0038 when not in "Advanced Driver" mode;
	 * later revisions use IDs 0x0054 and 0x00a2.
	 */
L
Linus Torvalds 已提交
826
	USB_DEVICE(0x0582, 0x0037),
827
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
828 829 830 831
		.vendor_name = "Roland",
		.product_name = "Digital Piano",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
832
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
833 834 835 836 837 838
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
839 840 841 842 843
	/*
	 * 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 已提交
844
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
845
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
846 847
		.vendor_name = "BOSS",
		.product_name = "GS-10",
848 849
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
850
		.data = & (const struct snd_usb_audio_quirk[]) {
851 852 853 854 855 856 857 858 859 860 861 862 863 864 865
			{
				.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 已提交
866 867 868 869
		}
	}
},
{
870
	/* has ID 0x0041 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
871
	USB_DEVICE(0x0582, 0x0040),
872
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
873 874 875 876
		.vendor_name = "Roland",
		.product_name = "GI-20",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
877
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
878 879 880 881 882 883
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
884
	/* has ID 0x0043 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
885
	USB_DEVICE(0x0582, 0x0042),
886
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
887 888 889 890
		.vendor_name = "Roland",
		.product_name = "RS-70",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
891
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
892 893 894 895 896 897 898
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0044),
899
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
900 901 902 903
		.vendor_name = "Roland",
		.product_name = "UA-1000",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
904
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
905 906 907 908 909 910 911 912 913 914 915
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_EDIROL_UA1000
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_EDIROL_UA1000
			},
			{
				.ifnum = 3,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
916
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
917 918 919 920 921 922 923 924 925 926 927
					.out_cables = 0x0003,
					.in_cables  = 0x0003
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
928
	/* has ID 0x004a when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
929
	USB_DEVICE(0x0582, 0x0048),
930
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
931 932 933 934
		.vendor_name = "EDIROL",
		.product_name = "UR-80",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
935
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
936 937 938 939 940
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
941
	/* TODO: add Edirol M-100FX support */
L
Linus Torvalds 已提交
942
{
943
	/* has ID 0x004f when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
944
	USB_DEVICE(0x0582, 0x004d),
945
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
946 947 948 949
		.vendor_name = "EDIROL",
		.product_name = "PCR-A",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
950
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
951 952 953 954 955 956 957 958 959 960 961
			.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),
962
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
963 964 965 966
		.vendor_name = "EDIROL",
		.product_name = "UA-3FX",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
967
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0052),
984
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
985 986 987 988 989 990
		.vendor_name = "EDIROL",
		.product_name = "UM-1SX",
		.ifnum = 0,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
991
	/* TODO: add Roland EXR support */
L
Linus Torvalds 已提交
992
{
993
	/* has ID 0x0067 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
994
	USB_DEVICE(0x0582, 0x0065),
995
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
996 997 998 999
		.vendor_name = "EDIROL",
		.product_name = "PCR-1",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1000
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1001 1002 1003 1004 1005 1006
			.out_cables = 0x0001,
			.in_cables  = 0x0003
		}
	}
},
{
1007
	/* has ID 0x006b when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1008
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
1009
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1010 1011 1012 1013
		.vendor_name = "Roland",
		.product_name = "SP-606",
		.ifnum = 3,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1014
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1015 1016 1017 1018 1019 1020
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
1021
	/* has ID 0x006e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1022
	USB_DEVICE(0x0582, 0x006d),
1023
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1024 1025 1026 1027
		.vendor_name = "Roland",
		.product_name = "FANTOM-X",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1028
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040
			.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),
1041
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1042 1043 1044 1045
		.vendor_name = "EDIROL",
		.product_name = "UA-25",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1046
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065
			{
				.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
			}
		}
	}
},
{
1066
	/* has ID 0x0076 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1067
	USB_DEVICE(0x0582, 0x0075),
1068
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1069 1070 1071 1072
		.vendor_name = "BOSS",
		.product_name = "DR-880",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1073
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1074 1075 1076 1077 1078
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
1079
{
1080
	/* has ID 0x007b when not in "Advanced Driver" mode */
1081
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
1082
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1083
		.vendor_name = "Roland",
1084
		/* "RD" or "RD-700SX"? */
1085 1086
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1087
		.data = & (const struct snd_usb_midi_endpoint_info) {
1088 1089 1090 1091 1092
			.out_cables = 0x0003,
			.in_cables  = 0x0003
		}
	}
},
1093 1094 1095 1096
	/* TODO: add Edirol UA-101 support */
	/* TODO: add Roland G-70 support */
	/* TODO: add Roland V-SYNTH XT support */
	/* TODO: add BOSS GT-PRO support */
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110
{
	/* 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
		}
	}
},
1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126
	/* TODO: add Edirol PC-80 support */
	/* TODO: add Edirol UA-1EX support */
{
	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 */
L
Linus Torvalds 已提交
1127

1128 1129 1130 1131 1132 1133 1134 1135 1136
/* 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),
1137
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1138 1139 1140 1141
		.vendor_name = "Hercules",
		.product_name = "DJ Console (WE)",
		.ifnum = 4,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1142
		.data = & (const struct snd_usb_midi_endpoint_info) {
1143 1144 1145 1146 1147 1148
			.out_cables = 0x0001,
			.in_cables = 0x0001
		}
	}
},

L
Linus Torvalds 已提交
1149 1150 1151
/* Midiman/M-Audio devices */
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
1152
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1153 1154 1155 1156
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 2x2",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1157
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1158 1159 1160 1161 1162 1163 1164
			.out_cables = 0x0003,
			.in_cables  = 0x0003
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
1165
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1166 1167 1168 1169
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 1x1",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1170
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1171 1172 1173 1174 1175 1176 1177
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
1178
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1179 1180 1181 1182
		.vendor_name = "M-Audio",
		.product_name = "Keystation",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1183
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1184 1185 1186 1187 1188 1189 1190
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
1191
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1192 1193 1194 1195
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 4x4",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1196
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208
			.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),
1209
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1210 1211 1212 1213
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 8x8",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1214
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1215 1216 1217 1218 1219 1220 1221
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
1222
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1223 1224 1225 1226
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 8x8",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1227
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1228 1229 1230 1231 1232 1233 1234
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
1235
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1236 1237 1238 1239
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 2x4",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1240
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1241 1242 1243 1244 1245 1246 1247
			.out_cables = 0x000f,
			.in_cables  = 0x0003
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
1248
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1249 1250 1251 1252
		.vendor_name = "M-Audio",
		.product_name = "Quattro",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1253
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298
			/*
			 * 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,
1299
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
1312
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1313 1314 1315 1316
		.vendor_name = "M-Audio",
		.product_name = "AudioPhile",
		.ifnum = 6,
		.type = QUIRK_MIDI_MIDIMAN,
1317
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1318 1319 1320 1321 1322 1323 1324
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
1325
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1326 1327 1328 1329
		.vendor_name = "M-Audio",
		.product_name = "Ozone",
		.ifnum = 3,
		.type = QUIRK_MIDI_MIDIMAN,
1330
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1331 1332 1333 1334 1335 1336 1337
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
1338
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1339 1340 1341 1342
		.vendor_name = "M-Audio",
		.product_name = "OmniStudio",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1343
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1344 1345 1346 1347 1348 1349 1350 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 1382
			{
				.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,
1383
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},

/* Mark of the Unicorn devices */
{
	/* thanks to Robert A. Lerche <ral 'at' msbit.com> */
1398 1399 1400 1401 1402 1403
	.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
		       USB_DEVICE_ID_MATCH_PRODUCT |
		       USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
	.idVendor = 0x07fd,
	.idProduct = 0x0001,
	.bDeviceSubClass = 2,
1404
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1405 1406 1407 1408
		.vendor_name = "MOTU",
		.product_name = "Fastlane",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1409
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1410 1411
			{
				.ifnum = 0,
1412
				.type = QUIRK_MIDI_RAW
L
Linus Torvalds 已提交
1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},

{
	/* Creative Sound Blaster MP3+ */
	USB_DEVICE(0x041e, 0x3010),
1428
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1429 1430 1431 1432 1433 1434 1435 1436 1437 1438
		.vendor_name = "Creative Labs",
		.product_name = "Sound Blaster MP3+",
		.ifnum = QUIRK_NO_INTERFACE
	}
	
},

/* Emagic devices */
{
	USB_DEVICE(0x086a, 0x0001),
1439
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1440 1441 1442 1443
		.vendor_name = "Emagic",
		/* .product_name = "Unitor8", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
1444
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1445 1446 1447 1448 1449 1450 1451
			.out_cables = 0x80ff,
			.in_cables  = 0x80ff
		}
	}
},
{
	USB_DEVICE(0x086a, 0x0002),
1452
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1453 1454 1455 1456
		.vendor_name = "Emagic",
		/* .product_name = "AMT8", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
1457
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1458 1459 1460 1461 1462 1463 1464
			.out_cables = 0x80ff,
			.in_cables  = 0x80ff
		}
	}
},
{
	USB_DEVICE(0x086a, 0x0003),
1465
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1466 1467 1468 1469
		.vendor_name = "Emagic",
		/* .product_name = "MT4", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
1470
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1471 1472 1473 1474 1475 1476
			.out_cables = 0x800f,
			.in_cables  = 0x8003
		}
	}
},

1477 1478 1479
/* TerraTec devices */
{
	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
1480
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1481 1482 1483 1484 1485 1486
		.vendor_name = "TerraTec",
		.product_name = "PHASE 26",
		.ifnum = 3,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
L
Linus Torvalds 已提交
1487 1488
{
	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
1489
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1490
		.vendor_name = "TerraTec",
L
Linus Torvalds 已提交
1491 1492 1493 1494 1495 1496 1497 1498 1499
		.product_name = "PHASE 26",
		.ifnum = 3,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},

/* Novation EMS devices */
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
1500
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1501 1502 1503 1504 1505 1506 1507 1508
		.vendor_name = "Novation",
		.product_name = "ReMOTE Audio/XStation",
		.ifnum = 4,
		.type = QUIRK_MIDI_NOVATION
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
1509
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1510 1511 1512 1513 1514 1515 1516 1517
		.vendor_name = "Novation",
		.product_name = "Speedio",
		.ifnum = 3,
		.type = QUIRK_MIDI_NOVATION
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
1518
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1519 1520 1521 1522 1523 1524 1525
		.vendor_name = "Novation",
		.product_name = "ReMOTE25",
		.ifnum = 0,
		.type = QUIRK_MIDI_NOVATION
	}
},

1526 1527
{
	USB_DEVICE(0x4752, 0x0011),
1528
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1529 1530 1531 1532 1533 1534 1535 1536
		.vendor_name = "Miditech",
		.product_name = "Midistart-2",
		.ifnum = 0,
		.type = QUIRK_MIDI_MIDITECH
	}
},
{
	USB_DEVICE(0x7104, 0x2202),
1537
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1538 1539 1540 1541 1542 1543 1544
		.vendor_name = "Miditech",
		.product_name = "MidiStudio-2",
		.ifnum = 0,
		.type = QUIRK_MIDI_MIDITECH
	}
},

L
Linus Torvalds 已提交
1545 1546 1547 1548 1549 1550 1551 1552 1553
{
	/*
	 * 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,
1554
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1555 1556 1557 1558 1559 1560
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},

#undef USB_DEVICE_VENDOR_SPEC