quirks-table.h 60.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
/* Creative/Toshiba Multimedia Center SB-0500 */
{
	USB_DEVICE(0x041e, 0x3048),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Toshiba",
		.product_name = "SB-0500",
		.ifnum = QUIRK_NO_INTERFACE
	}
},

52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
/* 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,
},
75 76 77 78 79 80 81
{
	/* E-Mu Tracker Pre */
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
	.idVendor = 0x041e,
	.idProduct = 0x3f0a,
	.bInterfaceClass = USB_CLASS_AUDIO,
},
82

83 84 85 86
/*
 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
 * class matches do not take effect without an explicit ID match.
 */
87 88 89 90 91 92 93
{
	.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,
94
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
95
},
96 97 98 99 100 101 102
{
	.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,
103
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
104
},
105 106 107 108 109 110 111
{
	.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,
112
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
113
},
114 115 116 117 118 119 120
{
	.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,
121
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
122
},
123 124 125 126 127 128 129
{
	.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,
130
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
131
},
132 133 134 135 136 137 138
{
	.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,
139
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
140
},
141 142 143 144 145 146 147 148
{
	USB_DEVICE(0x046d, 0x0990),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Logitech, Inc.",
		.product_name = "QuickCam Pro 9000",
		.ifnum = QUIRK_NO_INTERFACE
	}
},
149

L
Linus Torvalds 已提交
150 151 152 153 154 155
/*
 * Yamaha devices
 */

#define YAMAHA_DEVICE(id, name) { \
	USB_DEVICE(0x0499, id), \
156
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
L
Linus Torvalds 已提交
157 158 159 160 161 162 163 164
		.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), \
165
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
L
Linus Torvalds 已提交
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
		.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"),
193
YAMAHA_DEVICE(0x1016, "MDP-5"),
L
Linus Torvalds 已提交
194 195 196 197 198 199 200 201
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"),
202
YAMAHA_DEVICE(0x101f, "EZ-J24"),
L
Linus Torvalds 已提交
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
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),
229
YAMAHA_DEVICE(0x103d, NULL),
230 231 232 233
YAMAHA_DEVICE(0x103e, NULL),
YAMAHA_DEVICE(0x103f, NULL),
YAMAHA_DEVICE(0x1040, NULL),
YAMAHA_DEVICE(0x1041, NULL),
234 235 236 237
YAMAHA_DEVICE(0x1042, NULL),
YAMAHA_DEVICE(0x1043, NULL),
YAMAHA_DEVICE(0x1044, NULL),
YAMAHA_DEVICE(0x1045, NULL),
238
YAMAHA_INTERFACE(0x104e, 0, NULL),
239 240 241 242
YAMAHA_DEVICE(0x104f, NULL),
YAMAHA_DEVICE(0x1050, NULL),
YAMAHA_DEVICE(0x1051, NULL),
YAMAHA_DEVICE(0x1052, NULL),
243 244 245 246 247 248 249 250 251 252 253
YAMAHA_INTERFACE(0x1053, 0, NULL),
YAMAHA_INTERFACE(0x1054, 0, NULL),
YAMAHA_DEVICE(0x1055, NULL),
YAMAHA_DEVICE(0x1056, NULL),
YAMAHA_DEVICE(0x1057, NULL),
YAMAHA_DEVICE(0x1058, NULL),
YAMAHA_DEVICE(0x1059, NULL),
YAMAHA_DEVICE(0x105a, NULL),
YAMAHA_DEVICE(0x105b, NULL),
YAMAHA_DEVICE(0x105c, NULL),
YAMAHA_DEVICE(0x105d, NULL),
L
Linus Torvalds 已提交
254 255 256
YAMAHA_DEVICE(0x2000, "DGP-7"),
YAMAHA_DEVICE(0x2001, "DGP-5"),
YAMAHA_DEVICE(0x2002, NULL),
257
YAMAHA_DEVICE(0x2003, NULL),
L
Linus Torvalds 已提交
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
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),
273
YAMAHA_DEVICE(0x500f, NULL),
L
Linus Torvalds 已提交
274 275 276 277 278 279 280 281 282 283
YAMAHA_DEVICE(0x7000, "DTX"),
YAMAHA_DEVICE(0x7010, "UB99"),
#undef YAMAHA_DEVICE
#undef YAMAHA_INTERFACE

/*
 * Roland/RolandED/Edirol/BOSS devices
 */
{
	USB_DEVICE(0x0582, 0x0000),
284
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
285 286 287 288
		.vendor_name = "Roland",
		.product_name = "UA-100",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
289
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
290 291 292 293
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
294
					.formats = SNDRV_PCM_FMTBIT_S16_LE,
L
Linus Torvalds 已提交
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
					.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) {
311
					.formats = SNDRV_PCM_FMTBIT_S16_LE,
L
Linus Torvalds 已提交
312 313 314 315
					.channels = 2,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
316
					.attributes = UAC_EP_CS_ATTR_FILL_MAX,
L
Linus Torvalds 已提交
317 318 319 320 321 322 323 324 325 326
					.endpoint = 0x81,
					.ep_attr = 0x05,
					.rates = SNDRV_PCM_RATE_CONTINUOUS,
					.rate_min = 44100,
					.rate_max = 44100,
				}
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
327
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
328 329 330 331 332 333 334 335 336 337 338 339
					.out_cables = 0x0007,
					.in_cables  = 0x0007
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0002),
340
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
341 342
		.vendor_name = "EDIROL",
		.product_name = "UM-4",
343 344
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
345
		.data = (const struct snd_usb_audio_quirk[]) {
346 347 348 349 350 351 352 353 354 355 356
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
357
				.data = & (const struct snd_usb_midi_endpoint_info) {
358 359 360 361 362 363 364
					.out_cables = 0x000f,
					.in_cables  = 0x000f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
365 366 367 368 369
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0003),
370
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
371 372
		.vendor_name = "Roland",
		.product_name = "SC-8850",
373 374
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
375
		.data = (const struct snd_usb_audio_quirk[]) {
376 377 378 379 380 381 382 383 384 385 386
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
387
				.data = & (const struct snd_usb_midi_endpoint_info) {
388 389 390 391 392 393 394
					.out_cables = 0x003f,
					.in_cables  = 0x003f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
395 396 397 398 399
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0004),
400
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
401 402
		.vendor_name = "Roland",
		.product_name = "U-8",
403 404
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
405
		.data = (const struct snd_usb_audio_quirk[]) {
406 407 408 409 410 411 412 413 414 415 416
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
417
				.data = & (const struct snd_usb_midi_endpoint_info) {
418 419 420 421 422 423 424
					.out_cables = 0x0005,
					.in_cables  = 0x0005
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
425 426 427 428
		}
	}
},
{
429 430
	/* Has ID 0x0099 when not in "Advanced Driver" mode.
	 * The UM-2EX has only one input, but we cannot detect this. */
L
Linus Torvalds 已提交
431
	USB_DEVICE(0x0582, 0x0005),
432
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
433 434
		.vendor_name = "EDIROL",
		.product_name = "UM-2",
435 436
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
437
		.data = (const struct snd_usb_audio_quirk[]) {
438 439 440 441 442 443 444 445 446 447 448
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
449
				.data = & (const struct snd_usb_midi_endpoint_info) {
450 451 452 453 454 455 456
					.out_cables = 0x0003,
					.in_cables  = 0x0003
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
457 458 459 460 461
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0007),
462
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
463 464
		.vendor_name = "Roland",
		.product_name = "SC-8820",
465 466
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
467
		.data = (const struct snd_usb_audio_quirk[]) {
468 469 470 471 472 473 474 475 476 477 478
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
479
				.data = & (const struct snd_usb_midi_endpoint_info) {
480 481 482 483 484 485 486
					.out_cables = 0x0013,
					.in_cables  = 0x0013
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
487 488 489 490 491
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0008),
492
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
493 494
		.vendor_name = "Roland",
		.product_name = "PC-300",
495 496
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
497
		.data = (const struct snd_usb_audio_quirk[]) {
498 499 500 501 502 503 504 505 506 507 508
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
509
				.data = & (const struct snd_usb_midi_endpoint_info) {
510 511 512 513 514 515 516
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
517 518 519 520
		}
	}
},
{
521
	/* has ID 0x009d when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
522
	USB_DEVICE(0x0582, 0x0009),
523
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
524 525
		.vendor_name = "EDIROL",
		.product_name = "UM-1",
526 527
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
528
		.data = (const struct snd_usb_audio_quirk[]) {
529 530 531 532 533 534 535 536 537 538 539
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
540
				.data = & (const struct snd_usb_midi_endpoint_info) {
541 542 543 544 545 546 547
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
548 549 550 551 552
		}
	}
},
{
	USB_DEVICE(0x0582, 0x000b),
553
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
554 555
		.vendor_name = "Roland",
		.product_name = "SK-500",
556 557
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
558
		.data = (const struct snd_usb_audio_quirk[]) {
559 560 561 562 563 564 565 566 567 568 569
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
570
				.data = & (const struct snd_usb_midi_endpoint_info) {
571 572 573 574 575 576 577
					.out_cables = 0x0013,
					.in_cables  = 0x0013
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
578 579 580 581 582 583 584
		}
	}
},
{
	/* thanks to Emiliano Grilli <emillo@libero.it>
	 * for helping researching this data */
	USB_DEVICE(0x0582, 0x000c),
585
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
586 587 588 589
		.vendor_name = "Roland",
		.product_name = "SC-D70",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
590
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
591 592 593 594
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
595
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
L
Linus Torvalds 已提交
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611
					.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) {
612
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
L
Linus Torvalds 已提交
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627
					.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,
628
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648
					.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),
649
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
650 651 652 653
		.vendor_name = "EDIROL",
		.product_name = "UA-5",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
654
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
670
	/* has ID 0x0013 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
671
	USB_DEVICE(0x0582, 0x0012),
672
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
673 674 675 676
		.vendor_name = "Roland",
		.product_name = "XV-5050",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
677
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
678 679 680 681 682 683
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
684
	/* has ID 0x0015 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
685
	USB_DEVICE(0x0582, 0x0014),
686
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
687 688 689 690
		.vendor_name = "EDIROL",
		.product_name = "UM-880",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
691
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
692 693 694 695 696 697
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
698
	/* has ID 0x0017 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
699
	USB_DEVICE(0x0582, 0x0016),
700
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
701 702
		.vendor_name = "EDIROL",
		.product_name = "SD-90",
703 704
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
705
		.data = (const struct snd_usb_audio_quirk[]) {
706 707
			{
				.ifnum = 0,
708
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
709 710 711
			},
			{
				.ifnum = 1,
712
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
713 714 715 716
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
717
				.data = & (const struct snd_usb_midi_endpoint_info) {
718 719 720 721 722 723 724
					.out_cables = 0x000f,
					.in_cables  = 0x000f
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
725 726 727 728
		}
	}
},
{
729
	/* has ID 0x001c when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
730
	USB_DEVICE(0x0582, 0x001b),
731
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
732 733
		.vendor_name = "Roland",
		.product_name = "MMP-2",
734 735
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
736
		.data = (const struct snd_usb_audio_quirk[]) {
737 738 739 740 741 742 743 744 745 746 747
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
748
				.data = & (const struct snd_usb_midi_endpoint_info) {
749 750 751 752 753 754 755
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
L
Linus Torvalds 已提交
756 757 758 759
		}
	}
},
{
760
	/* has ID 0x001e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
761
	USB_DEVICE(0x0582, 0x001d),
762
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
763 764 765 766
		.vendor_name = "Roland",
		.product_name = "V-SYNTH",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
767
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
768 769 770 771 772 773
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
774
	/* has ID 0x0024 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
775
	USB_DEVICE(0x0582, 0x0023),
776
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
777 778 779 780
		.vendor_name = "EDIROL",
		.product_name = "UM-550",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
781
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
782 783 784 785 786 787 788 789 790 791 792 793
			.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),
794
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
795 796 797 798
		.vendor_name = "EDIROL",
		.product_name = "UA-20",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
799
		.data = (const struct snd_usb_audio_quirk[]) {
800 801 802 803
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
L
Linus Torvalds 已提交
804 805
			{
				.ifnum = 1,
806 807
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
808
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
809 810 811 812 813 814 815 816 817 818 819
					.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 已提交
820 821 822
			},
			{
				.ifnum = 2,
823 824
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
825
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
826 827 828 829 830 831 832 833 834 835 836
					.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 已提交
837 838 839
			},
			{
				.ifnum = 3,
840 841 842 843 844
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
L
Linus Torvalds 已提交
845 846 847 848 849 850 851 852
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
853
	/* has ID 0x0028 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
854
	USB_DEVICE(0x0582, 0x0027),
855
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
856 857 858 859
		.vendor_name = "EDIROL",
		.product_name = "SD-20",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
860
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
861 862 863 864 865 866
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
{
867
	/* has ID 0x002a when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
868
	USB_DEVICE(0x0582, 0x0029),
869
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
870 871 872 873
		.vendor_name = "EDIROL",
		.product_name = "SD-80",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
874
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
875 876 877 878 879 880 881 882 883 884 885 886
			.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),
887
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
888 889 890 891
		.vendor_name = "EDIROL",
		.product_name = "UA-700",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
892
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
893 894
			{
				.ifnum = 1,
895
				.type = QUIRK_AUDIO_EDIROL_UAXX
L
Linus Torvalds 已提交
896 897 898
			},
			{
				.ifnum = 2,
899
				.type = QUIRK_AUDIO_EDIROL_UAXX
L
Linus Torvalds 已提交
900 901 902
			},
			{
				.ifnum = 3,
903
				.type = QUIRK_AUDIO_EDIROL_UAXX
L
Linus Torvalds 已提交
904 905 906 907 908 909 910 911
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
912
	/* has ID 0x002e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
913
	USB_DEVICE(0x0582, 0x002d),
914
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
915 916 917 918
		.vendor_name = "Roland",
		.product_name = "XV-2020",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
919
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
920 921 922 923 924 925
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
926
	/* has ID 0x0030 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
927
	USB_DEVICE(0x0582, 0x002f),
928
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
929 930 931 932
		.vendor_name = "Roland",
		.product_name = "VariOS",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
933
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
934 935 936 937 938 939
			.out_cables = 0x0007,
			.in_cables  = 0x0007
		}
	}
},
{
940
	/* has ID 0x0034 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
941
	USB_DEVICE(0x0582, 0x0033),
942
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
943 944 945 946
		.vendor_name = "EDIROL",
		.product_name = "PCR",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
947
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
948 949 950 951 952
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
953
	/* TODO: add Roland M-1000 support */
L
Linus Torvalds 已提交
954
{
955 956 957 958
	/*
	 * Has ID 0x0038 when not in "Advanced Driver" mode;
	 * later revisions use IDs 0x0054 and 0x00a2.
	 */
L
Linus Torvalds 已提交
959
	USB_DEVICE(0x0582, 0x0037),
960
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
961 962 963 964
		.vendor_name = "Roland",
		.product_name = "Digital Piano",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
965
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
966 967 968 969 970 971
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
972 973 974 975 976
	/*
	 * 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 已提交
977
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
978
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
979 980
		.vendor_name = "BOSS",
		.product_name = "GS-10",
981 982
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
983
		.data = & (const struct snd_usb_audio_quirk[]) {
984 985 986 987 988 989 990 991 992 993 994 995 996 997 998
			{
				.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 已提交
999 1000 1001 1002
		}
	}
},
{
1003
	/* has ID 0x0041 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1004
	USB_DEVICE(0x0582, 0x0040),
1005
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1006 1007 1008 1009
		.vendor_name = "Roland",
		.product_name = "GI-20",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1010
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1011 1012 1013 1014 1015 1016
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
1017
	/* has ID 0x0043 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1018
	USB_DEVICE(0x0582, 0x0042),
1019
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1020 1021 1022 1023
		.vendor_name = "Roland",
		.product_name = "RS-70",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1024
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1025 1026 1027 1028 1029
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053
{
	/* 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 已提交
1054
{
1055
	/* has ID 0x004a when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1056
	USB_DEVICE(0x0582, 0x0048),
1057
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1058 1059
		/* .vendor_name = "EDIROL", */
		/* .product_name = "UR-80", */
L
Linus Torvalds 已提交
1060 1061
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1062
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1063 1064 1065 1066 1067
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
1068
	/* TODO: add Edirol M-100FX support */
1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091
{
	/* 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 已提交
1092
{
1093
	/* has ID 0x004f when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1094
	USB_DEVICE(0x0582, 0x004d),
1095
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1096 1097 1098 1099
		.vendor_name = "EDIROL",
		.product_name = "PCR-A",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1100
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111
			.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),
1112
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1113 1114 1115 1116
		.vendor_name = "EDIROL",
		.product_name = "UA-3FX",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1117
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0052),
1134
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1135 1136 1137 1138 1139 1140
		.vendor_name = "EDIROL",
		.product_name = "UM-1SX",
		.ifnum = 0,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
1141 1142 1143 1144 1145 1146 1147 1148 1149
{
	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
	}
},
1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172
{
	/* has ID 0x0066 when not in "Advanced Driver" mode */
	USB_DEVICE(0x0582, 0x0064),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "EDIROL", */
		/* .product_name = "PCR-1", */
		.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 已提交
1173
{
1174
	/* has ID 0x0067 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1175
	USB_DEVICE(0x0582, 0x0065),
1176
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1177 1178
		/* .vendor_name = "EDIROL", */
		/* .product_name = "PCR-1", */
L
Linus Torvalds 已提交
1179 1180
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1181
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1182 1183 1184 1185 1186 1187
			.out_cables = 0x0001,
			.in_cables  = 0x0003
		}
	}
},
{
1188
	/* has ID 0x006b when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1189
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
1190
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1191 1192 1193 1194
		.vendor_name = "Roland",
		.product_name = "SP-606",
		.ifnum = 3,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1195
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1196 1197 1198 1199 1200 1201
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
1202
	/* has ID 0x006e when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1203
	USB_DEVICE(0x0582, 0x006d),
1204
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1205 1206 1207 1208
		.vendor_name = "Roland",
		.product_name = "FANTOM-X",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1209
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221
			.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),
1222
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1223 1224 1225 1226
		.vendor_name = "EDIROL",
		.product_name = "UA-25",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1227
		.data = (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1228 1229
			{
				.ifnum = 0,
1230
				.type = QUIRK_AUDIO_EDIROL_UAXX
L
Linus Torvalds 已提交
1231 1232 1233
			},
			{
				.ifnum = 1,
1234
				.type = QUIRK_AUDIO_EDIROL_UAXX
L
Linus Torvalds 已提交
1235 1236 1237
			},
			{
				.ifnum = 2,
1238
				.type = QUIRK_AUDIO_EDIROL_UAXX
L
Linus Torvalds 已提交
1239 1240 1241 1242 1243 1244 1245 1246
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
1247
	/* has ID 0x0076 when not in "Advanced Driver" mode */
L
Linus Torvalds 已提交
1248
	USB_DEVICE(0x0582, 0x0075),
1249
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1250 1251 1252 1253
		.vendor_name = "BOSS",
		.product_name = "DR-880",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1254
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1255 1256 1257 1258 1259
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
1260
{
1261
	/* has ID 0x007b when not in "Advanced Driver" mode */
1262
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
1263
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1264
		.vendor_name = "Roland",
1265
		/* "RD" or "RD-700SX"? */
1266 1267
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1268
		.data = & (const struct snd_usb_midi_endpoint_info) {
1269 1270 1271 1272 1273
			.out_cables = 0x0003,
			.in_cables  = 0x0003
		}
	}
},
1274 1275 1276 1277 1278 1279 1280 1281 1282
{
	/* 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) {
1283 1284
			.out_cables = 0x0001,
			.in_cables  = 0x0001
1285 1286 1287
		}
	}
},
1288 1289
	/* TODO: add Roland V-SYNTH XT support */
	/* TODO: add BOSS GT-PRO support */
1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303
{
	/* 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
		}
	}
},
1304
	/* TODO: add Edirol PC-80 support */
1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326
{
	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
			}
		}
	}
},
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338
{
	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
		}
	}
1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361
},
{
	/*
	 * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
	 * is standard compliant, but has only 16-bit PCM and no MIDI.
	 */
	USB_DEVICE(0x0582, 0x00a3),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "EDIROL",
		.product_name = "UA-4FX",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_EDIROL_UAXX
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_EDIROL_UAXX
			},
			{
				.ifnum = 2,
1362
				.type = QUIRK_AUDIO_EDIROL_UAXX
1363 1364 1365 1366 1367 1368
			},
			{
				.ifnum = -1
			}
		}
	}
1369 1370
},
	/* TODO: add Edirol MD-P1 support */
1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383
{
	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
		}
	}
},
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
{
	/* 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
			}
		}
	}
},
1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429
{
	/* 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,
1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464
				.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
			}
		}
	}
},
{
	/* Edirol M-16DX */
	/* FIXME: This quirk gives a good-working capture stream but the
	 *        playback seems problematic because of lacking of sync
	 *        with capture stream.  It needs to sync with the capture
	 *        clock.  As now, you'll get frequent sound distortions
	 *        via the playback.
	 */
	USB_DEVICE(0x0582, 0x00c4),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 1,
1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480
				.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
			}
		}
	}
},
1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509
{
	/* BOSS GT-10 */
	USB_DEVICE(0x0582, 0x00da),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.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
			}
		}
	}
},
1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539
{
	/* Advanced modes of the Edirol UA-25EX.
	 * For the standard mode, UA-25EX has ID 0582:00e7, which
	 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
	 */
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "EDIROL",
		.product_name = "UA-25EX",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_EDIROL_UAXX
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_EDIROL_UAXX
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_EDIROL_UAXX
			},
			{
				.ifnum = -1
			}
		}
	}
},
1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562
{
	/* has ID 0x00ea when not in Advanced Driver mode */
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e9),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Roland", */
		/* .product_name = "UA-1G", */
		.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
			}
		}
	}
},
1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576
{
	/* has ID 0x0110 when not in Advanced Driver mode */
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x010f),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Roland", */
		/* .product_name = "A-PRO", */
		.ifnum = 1,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
		.data = & (const struct snd_usb_midi_endpoint_info) {
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606
{
	USB_DEVICE(0x0582, 0x0113),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "BOSS", */
		/* .product_name = "ME-25", */
		.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
			}
		}
	}
},
1607

1608 1609 1610 1611 1612 1613 1614 1615 1616
/* 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),
1617
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1618 1619 1620 1621
		.vendor_name = "Hercules",
		.product_name = "DJ Console (WE)",
		.ifnum = 4,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1622
		.data = & (const struct snd_usb_midi_endpoint_info) {
1623 1624 1625 1626 1627 1628
			.out_cables = 0x0001,
			.in_cables = 0x0001
		}
	}
},

L
Linus Torvalds 已提交
1629 1630 1631
/* Midiman/M-Audio devices */
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
1632
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1633 1634 1635 1636
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 2x2",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1637
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1638 1639 1640 1641 1642 1643 1644
			.out_cables = 0x0003,
			.in_cables  = 0x0003
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
1645
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1646 1647 1648 1649
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 1x1",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1650
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1651 1652 1653 1654 1655 1656 1657
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
1658
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1659 1660 1661 1662
		.vendor_name = "M-Audio",
		.product_name = "Keystation",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1663
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1664 1665 1666 1667 1668 1669 1670
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
1671
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1672 1673 1674 1675
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 4x4",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1676
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688
			.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),
1689
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1690 1691 1692 1693
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 8x8",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1694
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1695 1696 1697 1698 1699 1700 1701
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
1702
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1703 1704 1705 1706
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 8x8",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1707
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1708 1709 1710 1711 1712 1713 1714
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
1715
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1716 1717 1718 1719
		.vendor_name = "M-Audio",
		.product_name = "MidiSport 2x4",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_MIDIMAN,
1720
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1721 1722 1723 1724 1725 1726 1727
			.out_cables = 0x000f,
			.in_cables  = 0x0003
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
1728
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1729 1730 1731 1732
		.vendor_name = "M-Audio",
		.product_name = "Quattro",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1733
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778
			/*
			 * 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,
1779
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
1792
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1793 1794 1795 1796
		.vendor_name = "M-Audio",
		.product_name = "AudioPhile",
		.ifnum = 6,
		.type = QUIRK_MIDI_MIDIMAN,
1797
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1798 1799 1800 1801 1802 1803 1804
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
1805
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1806 1807 1808 1809
		.vendor_name = "M-Audio",
		.product_name = "Ozone",
		.ifnum = 3,
		.type = QUIRK_MIDI_MIDIMAN,
1810
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1811 1812 1813 1814 1815 1816 1817
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
1818
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
1819 1820 1821 1822
		.vendor_name = "M-Audio",
		.product_name = "OmniStudio",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1823
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862
			{
				.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,
1863
				.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
1864 1865 1866 1867 1868 1869 1870 1871 1872 1873
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907
{
	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
			}
		}
	}
},
1908 1909 1910 1911
{
	USB_DEVICE(0x0763, 0x2080),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "M-Audio", */
1912
		/* .product_name = "Fast Track Ultra", */
1913 1914 1915 1916 1917 1918 1919 1920 1921
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = & (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
					.channels = 8,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
					.endpoint = 0x01,
					.ep_attr = 0x09,
					.rates = SNDRV_PCM_RATE_44100 |
						 SNDRV_PCM_RATE_48000 |
						 SNDRV_PCM_RATE_88200 |
						 SNDRV_PCM_RATE_96000,
					.rate_min = 44100,
					.rate_max = 96000,
					.nr_rates = 4,
					.rate_table = (unsigned int[]) {
						44100, 48000, 88200, 96000
					}
				}
1943 1944 1945
			},
			{
				.ifnum = 2,
1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
					.channels = 8,
					.iface = 2,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
					.endpoint = 0x81,
					.ep_attr = 0x05,
					.rates = SNDRV_PCM_RATE_44100 |
						 SNDRV_PCM_RATE_48000 |
						 SNDRV_PCM_RATE_88200 |
						 SNDRV_PCM_RATE_96000,
					.rate_min = 44100,
					.rate_max = 96000,
					.nr_rates = 4,
					.rate_table = (unsigned int[]) {
						44100, 48000, 88200, 96000
					}
				}
1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988
			},
			/* interface 3 (MIDI) is standard compliant */
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0763, 0x2081),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "M-Audio", */
		/* .product_name = "Fast Track Ultra 8R", */
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = & (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
					.channels = 8,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
					.endpoint = 0x01,
					.ep_attr = 0x09,
					.rates = SNDRV_PCM_RATE_44100 |
						 SNDRV_PCM_RATE_48000 |
						 SNDRV_PCM_RATE_88200 |
						 SNDRV_PCM_RATE_96000,
					.rate_min = 44100,
					.rate_max = 96000,
					.nr_rates = 4,
					.rate_table = (unsigned int[]) {
							44100, 48000, 88200, 96000
					}
				}
2010 2011 2012
			},
			{
				.ifnum = 2,
2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
					.channels = 8,
					.iface = 2,
					.altsetting = 1,
					.altset_idx = 1,
					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
					.endpoint = 0x81,
					.ep_attr = 0x05,
					.rates = SNDRV_PCM_RATE_44100 |
						 SNDRV_PCM_RATE_48000 |
						 SNDRV_PCM_RATE_88200 |
						 SNDRV_PCM_RATE_96000,
					.rate_min = 44100,
					.rate_max = 96000,
					.nr_rates = 4,
					.rate_table = (unsigned int[]) {
						44100, 48000, 88200, 96000
					}
				}
2034 2035 2036 2037 2038 2039 2040 2041
			},
			/* interface 3 (MIDI) is standard compliant */
			{
				.ifnum = -1
			}
		}
	}
},
L
Linus Torvalds 已提交
2042

2043
/* Casio devices */
2044 2045 2046 2047 2048 2049 2050 2051 2052
{
	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
	}
},
2053
{
2054
	/* this ID is used by several devices without a product ID */
2055 2056 2057
	USB_DEVICE(0x07cf, 0x6802),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Casio",
2058
		.product_name = "Keyboard",
2059 2060 2061 2062 2063
		.ifnum = 0,
		.type = QUIRK_MIDI_YAMAHA
	}
},

L
Linus Torvalds 已提交
2064 2065 2066
/* Mark of the Unicorn devices */
{
	/* thanks to Robert A. Lerche <ral 'at' msbit.com> */
2067 2068 2069 2070 2071 2072
	.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
		       USB_DEVICE_ID_MATCH_PRODUCT |
		       USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
	.idVendor = 0x07fd,
	.idProduct = 0x0001,
	.bDeviceSubClass = 2,
2073
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
2074 2075 2076 2077
		.vendor_name = "MOTU",
		.product_name = "Fastlane",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
2078
		.data = & (const struct snd_usb_audio_quirk[]) {
L
Linus Torvalds 已提交
2079 2080
			{
				.ifnum = 0,
2081
				.type = QUIRK_MIDI_RAW_BYTES
L
Linus Torvalds 已提交
2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},

/* Emagic devices */
{
	USB_DEVICE(0x086a, 0x0001),
2097
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
2098 2099 2100 2101
		.vendor_name = "Emagic",
		/* .product_name = "Unitor8", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
2102
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
2103 2104 2105 2106 2107 2108 2109
			.out_cables = 0x80ff,
			.in_cables  = 0x80ff
		}
	}
},
{
	USB_DEVICE(0x086a, 0x0002),
2110
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
2111 2112 2113 2114
		.vendor_name = "Emagic",
		/* .product_name = "AMT8", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
2115
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
2116 2117 2118 2119 2120 2121 2122
			.out_cables = 0x80ff,
			.in_cables  = 0x80ff
		}
	}
},
{
	USB_DEVICE(0x086a, 0x0003),
2123
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
2124 2125 2126 2127
		.vendor_name = "Emagic",
		/* .product_name = "MT4", */
		.ifnum = 2,
		.type = QUIRK_MIDI_EMAGIC,
2128
		.data = & (const struct snd_usb_midi_endpoint_info) {
L
Linus Torvalds 已提交
2129 2130 2131 2132 2133 2134
			.out_cables = 0x800f,
			.in_cables  = 0x8003
		}
	}
},

2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145
/* AKAI devices */
{
	USB_DEVICE(0x09e8, 0x0062),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "AKAI",
		.product_name = "MPD16",
		.ifnum = 0,
		.type = QUIRK_MIDI_AKAI,
	}
},

2146 2147 2148
/* TerraTec devices */
{
	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
2149
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2150 2151 2152 2153 2154 2155
		.vendor_name = "TerraTec",
		.product_name = "PHASE 26",
		.ifnum = 3,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
L
Linus Torvalds 已提交
2156 2157
{
	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
2158
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2159 2160 2161 2162 2163 2164 2165 2166 2167
		.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) {
2168
		.vendor_name = "TerraTec",
L
Linus Torvalds 已提交
2169 2170 2171 2172 2173
		.product_name = "PHASE 26",
		.ifnum = 3,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
2174
{
2175
	USB_DEVICE(0x0ccd, 0x0028),
2176 2177
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "TerraTec",
2178
		.product_name = "Aureon5.1MkII",
2179 2180 2181
		.ifnum = QUIRK_NO_INTERFACE
	}
},
2182 2183 2184 2185 2186 2187 2188 2189 2190
{
	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 已提交
2191

2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209
/* 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 已提交
2210 2211 2212
/* Novation EMS devices */
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
2213
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
2214 2215 2216 2217 2218 2219 2220 2221
		.vendor_name = "Novation",
		.product_name = "ReMOTE Audio/XStation",
		.ifnum = 4,
		.type = QUIRK_MIDI_NOVATION
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
2222
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
2223 2224 2225 2226 2227 2228
		.vendor_name = "Novation",
		.product_name = "Speedio",
		.ifnum = 3,
		.type = QUIRK_MIDI_NOVATION
	}
},
2229 2230 2231 2232 2233 2234 2235 2236 2237
{
	USB_DEVICE(0x1235, 0x000e),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Novation", */
		/* .product_name = "Launchpad", */
		.ifnum = 0,
		.type = QUIRK_MIDI_RAW_BYTES
	}
},
L
Linus Torvalds 已提交
2238 2239
{
	USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
2240
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
2241 2242 2243 2244 2245 2246 2247
		.vendor_name = "Novation",
		.product_name = "ReMOTE25",
		.ifnum = 0,
		.type = QUIRK_MIDI_NOVATION
	}
},

2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274
/* Access Music devices */
{
	/* VirusTI Desktop */
	USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = &(const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 3,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = &(const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0003,
					.in_cables  = 0x0003
				}
			},
			{
				.ifnum = 4,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},

2275
/* */
2276
{
2277
	/* aka. Serato Scratch Live DJ Box */
2278
	USB_DEVICE(0x13e5, 0x0001),
2279 2280 2281 2282
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Rane",
		.product_name = "SL-1",
		.ifnum = QUIRK_NO_INTERFACE
2283 2284 2285
	}
},

2286
/* Miditech devices */
2287 2288
{
	USB_DEVICE(0x4752, 0x0011),
2289
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2290 2291 2292
		.vendor_name = "Miditech",
		.product_name = "Midistart-2",
		.ifnum = 0,
2293
		.type = QUIRK_MIDI_CME
2294 2295
	}
},
2296 2297

/* Central Music devices */
2298
{
2299
	/* this ID used by both Miditech MidiStudio-2 and CME UF-x */
2300
	USB_DEVICE(0x7104, 0x2202),
2301
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
2302
		.ifnum = 0,
2303
		.type = QUIRK_MIDI_CME
2304 2305 2306
	}
},

2307 2308 2309 2310 2311 2312 2313
/* Hauppauge HVR-950Q and HVR-850 */
{
	USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
2314
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2315 2316 2317 2318 2319 2320 2321 2322
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
		.product_name = "HVR-950Q",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},
{
2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337
	USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
		.product_name = "HVR-850",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},
{
	USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
2338 2339 2340 2341
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
2342
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2343 2344 2345 2346 2347 2348 2349 2350
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
		.product_name = "HVR-950Q",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},
{
2351
	USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
2352 2353 2354 2355
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
2356
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2357 2358 2359 2360 2361 2362 2363 2364
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
		.product_name = "HVR-950Q",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},
{
2365
	USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
2366 2367 2368 2369
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
2370
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2371 2372 2373 2374 2375 2376 2377 2378
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
		.product_name = "HVR-950Q",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},
{
2379
	USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
2380 2381 2382 2383
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
2384
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2385 2386 2387 2388 2389 2390 2391 2392
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
		.product_name = "HVR-950Q",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},
{
2393
	USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
2394 2395 2396 2397
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
2398
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2399 2400 2401 2402 2403 2404 2405 2406
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
		.product_name = "HVR-950Q",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},
{
2407
	USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
2408 2409 2410 2411
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
2412
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2413 2414 2415 2416 2417 2418 2419 2420
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
		.product_name = "HVR-950Q",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},
{
2421
	USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
2422 2423 2424 2425
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.bInterfaceClass = USB_CLASS_AUDIO,
2426
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
2427 2428
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Hauppauge",
2429
		.product_name = "HVR-950Q",
2430 2431 2432 2433 2434
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUDIO_ALIGN_TRANSFER,
	}
},

2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452
/* Digidesign Mbox */
{
	/* Thanks to Clemens Ladisch <clemens@ladisch.de> */
	USB_DEVICE(0x0dba, 0x1000),
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Digidesign",
		.product_name = "MBox",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]){
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE,
			},
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = &(const struct audioformat) {
2453
					.formats = SNDRV_PCM_FMTBIT_S24_3BE,
2454 2455 2456 2457
					.channels = 2,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
2458
					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479
					.endpoint = 0x02,
					.ep_attr = 0x01,
					.maxpacksize = 0x130,
					.rates = SNDRV_PCM_RATE_44100 |
						 SNDRV_PCM_RATE_48000,
					.rate_min = 44100,
					.rate_max = 48000,
					.nr_rates = 2,
					.rate_table = (unsigned int[]) {
						44100, 48000
					}
				}
			},
			{
				.ifnum = -1
			}
		}

	}
},

L
Linus Torvalds 已提交
2480 2481 2482 2483 2484 2485 2486 2487
{
	/*
	 * 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,
2488
	.bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
2489
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
L
Linus Torvalds 已提交
2490 2491 2492 2493 2494 2495
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},

#undef USB_DEVICE_VENDOR_SPEC