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

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

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

42 43 44 45 46 47 48 49 50 51 52
/* FTDI devices */
{
	USB_DEVICE(0x0403, 0xb8d8),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "STARR LABS", */
		/* .product_name = "Starr Labs MIDI USB device", */
		.ifnum = 0,
		.type = QUIRK_MIDI_FTDI
	}
},

53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
{
	/* Creative BT-D1 */
	USB_DEVICE(0x041e, 0x0005),
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.ifnum = 1,
		.type = QUIRK_AUDIO_FIXED_ENDPOINT,
		.data = &(const struct audioformat) {
			.formats = SNDRV_PCM_FMTBIT_S16_LE,
			.channels = 2,
			.iface = 1,
			.altsetting = 1,
			.altset_idx = 1,
			.endpoint = 0x03,
			.ep_attr = USB_ENDPOINT_XFER_ISOC,
			.attributes = 0,
			.rates = SNDRV_PCM_RATE_CONTINUOUS,
			.rate_min = 48000,
			.rate_max = 48000,
		}
	}
},

75
/* Creative/E-Mu devices */
76
{
77
	USB_DEVICE(0x041e, 0x3010),
78
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
79 80
		.vendor_name = "Creative Labs",
		.product_name = "Sound Blaster MP3+",
81 82 83
		.ifnum = QUIRK_NO_INTERFACE
	}
},
84
/* Creative/Toshiba Multimedia Center SB-0500 */
85
{
86
	USB_DEVICE(0x041e, 0x3048),
87
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
88 89
		.vendor_name = "Toshiba",
		.product_name = "SB-0500",
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
		.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,
},
107 108 109 110 111 112 113
{
	/* E-Mu Tracker Pre */
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
	.idVendor = 0x041e,
	.idProduct = 0x3f0a,
	.bInterfaceClass = USB_CLASS_AUDIO,
},
114 115 116 117 118 119
{
	/* E-Mu 0204 USB */
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
	.idVendor = 0x041e,
	.idProduct = 0x3f19,
	.bInterfaceClass = USB_CLASS_AUDIO,
120
},
121

122 123 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 152 153 154 155 156 157
/*
 * HP Wireless Audio
 * When not ignored, causes instability issues for some users, forcing them to
 * blacklist the entire module.
 */
{
	USB_DEVICE(0x0424, 0xb832),
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.vendor_name = "Standard Microsystems Corp.",
		.product_name = "HP Wireless Audio",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			/* Mixer */
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE,
			},
			/* Playback */
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE,
			},
			/* Capture */
			{
				.ifnum = 2,
				.type = QUIRK_IGNORE_INTERFACE,
			},
			/* HID Device, .ifnum = 3 */
			{
				.ifnum = -1,
			}
		}
	}
},

158 159 160 161
/*
 * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
 * class matches do not take effect without an explicit ID match.
 */
162 163 164 165 166 167 168
{
	.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,
169
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
170
},
171 172 173 174 175 176 177
{
	.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,
178
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
179
},
180 181 182 183 184 185 186
{
	.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,
187
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
188
},
189 190 191 192 193 194 195
{
	.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,
196
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
197
},
198 199 200 201 202 203 204
{
	.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,
205
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
206
},
207 208 209 210 211 212 213
{
	.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,
214
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
215
},
216
{
217 218 219 220 221 222 223
	.match_flags = USB_DEVICE_ID_MATCH_DEVICE |
		       USB_DEVICE_ID_MATCH_INT_CLASS |
		       USB_DEVICE_ID_MATCH_INT_SUBCLASS,
	.idVendor = 0x046d,
	.idProduct = 0x0990,
	.bInterfaceClass = USB_CLASS_AUDIO,
	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
224 225 226 227 228 229
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.vendor_name = "Logitech, Inc.",
		.product_name = "QuickCam Pro 9000",
		.ifnum = QUIRK_NO_INTERFACE
	}
},
230

Linus Torvalds's avatar
Linus Torvalds committed
231 232 233 234 235 236
/*
 * Yamaha devices
 */

#define YAMAHA_DEVICE(id, name) { \
	USB_DEVICE(0x0499, id), \
237
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds's avatar
Linus Torvalds committed
238 239 240 241 242 243 244 245
		.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), \
246
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds's avatar
Linus Torvalds committed
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
		.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"),
274
YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds's avatar
Linus Torvalds committed
275 276 277 278 279 280 281 282
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"),
283
YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds's avatar
Linus Torvalds committed
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
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),
310
YAMAHA_DEVICE(0x103d, NULL),
311 312 313 314
YAMAHA_DEVICE(0x103e, NULL),
YAMAHA_DEVICE(0x103f, NULL),
YAMAHA_DEVICE(0x1040, NULL),
YAMAHA_DEVICE(0x1041, NULL),
315 316 317 318
YAMAHA_DEVICE(0x1042, NULL),
YAMAHA_DEVICE(0x1043, NULL),
YAMAHA_DEVICE(0x1044, NULL),
YAMAHA_DEVICE(0x1045, NULL),
319
YAMAHA_INTERFACE(0x104e, 0, NULL),
320 321 322 323
YAMAHA_DEVICE(0x104f, NULL),
YAMAHA_DEVICE(0x1050, NULL),
YAMAHA_DEVICE(0x1051, NULL),
YAMAHA_DEVICE(0x1052, NULL),
324 325 326 327 328 329 330 331 332 333 334
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),
335 336 337 338 339 340
{
	USB_DEVICE(0x0499, 0x1503),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Yamaha", */
		/* .product_name = "MOX6/MOX8", */
		.ifnum = QUIRK_ANY_INTERFACE,
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
		.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 = 3,
				.type = QUIRK_MIDI_YAMAHA
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0499, 0x1507),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Yamaha", */
		/* .product_name = "THR10", */
		.ifnum = QUIRK_ANY_INTERFACE,
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
		.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 = 3,
				.type = QUIRK_MIDI_YAMAHA
			},
			{
				.ifnum = -1
			}
		}
	}
},
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
{
	USB_DEVICE(0x0499, 0x1509),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Yamaha", */
		/* .product_name = "Steinberg UR22", */
		.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 = 3,
				.type = QUIRK_MIDI_YAMAHA
			},
			{
				.ifnum = 4,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
417 418 419 420 421 422
{
	USB_DEVICE(0x0499, 0x150a),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Yamaha", */
		/* .product_name = "THR5A", */
		.ifnum = QUIRK_ANY_INTERFACE,
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448
		.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 = 3,
				.type = QUIRK_MIDI_YAMAHA
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0499, 0x150c),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Yamaha", */
		/* .product_name = "THR10C", */
		.ifnum = QUIRK_ANY_INTERFACE,
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
		.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 = 3,
				.type = QUIRK_MIDI_YAMAHA
			},
			{
				.ifnum = -1
			}
		}
	}
},
Linus Torvalds's avatar
Linus Torvalds committed
469 470 471
YAMAHA_DEVICE(0x2000, "DGP-7"),
YAMAHA_DEVICE(0x2001, "DGP-5"),
YAMAHA_DEVICE(0x2002, NULL),
472
YAMAHA_DEVICE(0x2003, NULL),
Linus Torvalds's avatar
Linus Torvalds committed
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
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),
488
YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds's avatar
Linus Torvalds committed
489 490 491 492
YAMAHA_DEVICE(0x7000, "DTX"),
YAMAHA_DEVICE(0x7010, "UB99"),
#undef YAMAHA_DEVICE
#undef YAMAHA_INTERFACE
493 494 495 496 497 498 499 500 501 502 503
/* this catches most recent vendor-specific Yamaha devices */
{
	.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
	               USB_DEVICE_ID_MATCH_INT_CLASS,
	.idVendor = 0x0499,
	.bInterfaceClass = USB_CLASS_VENDOR_SPEC,
	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_AUTODETECT
	}
},
Linus Torvalds's avatar
Linus Torvalds committed
504 505 506 507 508 509

/*
 * Roland/RolandED/Edirol/BOSS devices
 */
{
	USB_DEVICE(0x0582, 0x0000),
510
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
511 512 513 514
		.vendor_name = "Roland",
		.product_name = "UA-100",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
515
		.data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds's avatar
Linus Torvalds committed
516 517 518 519
			{
				.ifnum = 0,
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
520
					.formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds's avatar
Linus Torvalds committed
521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536
					.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) {
537
					.formats = SNDRV_PCM_FMTBIT_S16_LE,
Linus Torvalds's avatar
Linus Torvalds committed
538 539 540 541
					.channels = 2,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
542
					.attributes = UAC_EP_CS_ATTR_FILL_MAX,
Linus Torvalds's avatar
Linus Torvalds committed
543 544 545 546 547 548 549 550 551 552
					.endpoint = 0x81,
					.ep_attr = 0x05,
					.rates = SNDRV_PCM_RATE_CONTINUOUS,
					.rate_min = 44100,
					.rate_max = 44100,
				}
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
553
				.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
554 555 556 557 558 559 560 561 562 563 564 565
					.out_cables = 0x0007,
					.in_cables  = 0x0007
				}
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0002),
566
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
567 568
		.vendor_name = "EDIROL",
		.product_name = "UM-4",
569 570
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
571
		.data = (const struct snd_usb_audio_quirk[]) {
572 573 574 575 576 577 578 579 580 581 582
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
583
				.data = & (const struct snd_usb_midi_endpoint_info) {
584 585 586 587 588 589 590
					.out_cables = 0x000f,
					.in_cables  = 0x000f
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
591 592 593 594 595
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0003),
596
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
597 598
		.vendor_name = "Roland",
		.product_name = "SC-8850",
599 600
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
601
		.data = (const struct snd_usb_audio_quirk[]) {
602 603 604 605 606 607 608 609 610 611 612
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
613
				.data = & (const struct snd_usb_midi_endpoint_info) {
614 615 616 617 618 619 620
					.out_cables = 0x003f,
					.in_cables  = 0x003f
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
621 622 623 624 625
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0004),
626
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
627 628
		.vendor_name = "Roland",
		.product_name = "U-8",
629 630
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
631
		.data = (const struct snd_usb_audio_quirk[]) {
632 633 634 635 636 637 638 639 640 641 642
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
643
				.data = & (const struct snd_usb_midi_endpoint_info) {
644 645 646 647 648 649 650
					.out_cables = 0x0005,
					.in_cables  = 0x0005
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
651 652 653 654
		}
	}
},
{
655 656
	/* Has ID 0x0099 when not in "Advanced Driver" mode.
	 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds's avatar
Linus Torvalds committed
657
	USB_DEVICE(0x0582, 0x0005),
658
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
659 660
		.vendor_name = "EDIROL",
		.product_name = "UM-2",
661 662
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
663
		.data = (const struct snd_usb_audio_quirk[]) {
664 665 666 667 668 669 670 671 672 673 674
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
675
				.data = & (const struct snd_usb_midi_endpoint_info) {
676 677 678 679 680 681 682
					.out_cables = 0x0003,
					.in_cables  = 0x0003
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
683 684 685 686 687
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0007),
688
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
689 690
		.vendor_name = "Roland",
		.product_name = "SC-8820",
691 692
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
693
		.data = (const struct snd_usb_audio_quirk[]) {
694 695 696 697 698 699 700 701 702 703 704
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
705
				.data = & (const struct snd_usb_midi_endpoint_info) {
706 707 708 709 710 711 712
					.out_cables = 0x0013,
					.in_cables  = 0x0013
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
713 714 715 716 717
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0008),
718
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
719 720
		.vendor_name = "Roland",
		.product_name = "PC-300",
721 722
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
723
		.data = (const struct snd_usb_audio_quirk[]) {
724 725 726 727 728 729 730 731 732 733 734
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
735
				.data = & (const struct snd_usb_midi_endpoint_info) {
736 737 738 739 740 741 742
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
743 744 745 746
		}
	}
},
{
747
	/* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
748
	USB_DEVICE(0x0582, 0x0009),
749
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
750 751
		.vendor_name = "EDIROL",
		.product_name = "UM-1",
752 753
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
754
		.data = (const struct snd_usb_audio_quirk[]) {
755 756 757 758 759 760 761 762 763 764 765
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
766
				.data = & (const struct snd_usb_midi_endpoint_info) {
767 768 769 770 771 772 773
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
774 775 776 777 778
		}
	}
},
{
	USB_DEVICE(0x0582, 0x000b),
779
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
780 781
		.vendor_name = "Roland",
		.product_name = "SK-500",
782 783
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
784
		.data = (const struct snd_usb_audio_quirk[]) {
785 786 787 788 789 790 791 792 793 794 795
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
796
				.data = & (const struct snd_usb_midi_endpoint_info) {
797 798 799 800 801 802 803
					.out_cables = 0x0013,
					.in_cables  = 0x0013
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
804 805 806 807 808 809 810
		}
	}
},
{
	/* thanks to Emiliano Grilli <emillo@libero.it>
	 * for helping researching this data */
	USB_DEVICE(0x0582, 0x000c),
811
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
812 813 814 815
		.vendor_name = "Roland",
		.product_name = "SC-D70",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
816
		.data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds's avatar
Linus Torvalds committed
817 818
			{
				.ifnum = 0,
819
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
Linus Torvalds's avatar
Linus Torvalds committed
820 821 822
			},
			{
				.ifnum = 1,
823
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
Linus Torvalds's avatar
Linus Torvalds committed
824 825 826 827
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
828
				.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848
					.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),
849
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
850 851 852 853
		.vendor_name = "EDIROL",
		.product_name = "UA-5",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
854
		.data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds's avatar
Linus Torvalds committed
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
870
	/* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
871
	USB_DEVICE(0x0582, 0x0012),
872
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
873 874 875 876
		.vendor_name = "Roland",
		.product_name = "XV-5050",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
877
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
878 879 880 881 882 883
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
884
	/* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
885
	USB_DEVICE(0x0582, 0x0014),
886
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
887 888 889 890
		.vendor_name = "EDIROL",
		.product_name = "UM-880",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
891
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
892 893 894 895 896 897
			.out_cables = 0x01ff,
			.in_cables  = 0x01ff
		}
	}
},
{
898
	/* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
899
	USB_DEVICE(0x0582, 0x0016),
900
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
901 902
		.vendor_name = "EDIROL",
		.product_name = "SD-90",
903 904
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
905
		.data = (const struct snd_usb_audio_quirk[]) {
906 907
			{
				.ifnum = 0,
908
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
909 910 911
			},
			{
				.ifnum = 1,
912
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
913 914 915 916
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
917
				.data = & (const struct snd_usb_midi_endpoint_info) {
918 919 920 921 922 923 924
					.out_cables = 0x000f,
					.in_cables  = 0x000f
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
925 926 927 928
		}
	}
},
{
929
	/* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
930
	USB_DEVICE(0x0582, 0x001b),
931
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
932 933
		.vendor_name = "Roland",
		.product_name = "MMP-2",
934 935
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
936
		.data = (const struct snd_usb_audio_quirk[]) {
937 938 939 940 941 942 943 944 945 946 947
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 1,
				.type = QUIRK_IGNORE_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
948
				.data = & (const struct snd_usb_midi_endpoint_info) {
949 950 951 952 953 954 955
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
956 957 958 959
		}
	}
},
{
960
	/* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
961
	USB_DEVICE(0x0582, 0x001d),
962
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
963 964 965 966
		.vendor_name = "Roland",
		.product_name = "V-SYNTH",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
967
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
968 969 970 971 972 973
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
974
	/* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
975
	USB_DEVICE(0x0582, 0x0023),
976
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
977 978 979 980
		.vendor_name = "EDIROL",
		.product_name = "UM-550",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
981
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
982 983 984 985 986 987 988 989 990 991 992 993
			.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),
994
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
995 996 997 998
		.vendor_name = "EDIROL",
		.product_name = "UA-20",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
999
		.data = (const struct snd_usb_audio_quirk[]) {
1000 1001 1002 1003
			{
				.ifnum = 0,
				.type = QUIRK_IGNORE_INTERFACE
			},
Linus Torvalds's avatar
Linus Torvalds committed
1004 1005
			{
				.ifnum = 1,
1006 1007
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
1008
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019
					.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,
				}
Linus Torvalds's avatar
Linus Torvalds committed
1020 1021 1022
			},
			{
				.ifnum = 2,
1023 1024
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
1025
					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036
					.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,
				}
Linus Torvalds's avatar
Linus Torvalds committed
1037 1038 1039
			},
			{
				.ifnum = 3,
1040 1041 1042 1043 1044
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
Linus Torvalds's avatar
Linus Torvalds committed
1045 1046 1047 1048 1049 1050 1051 1052
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
1053
	/* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1054
	USB_DEVICE(0x0582, 0x0027),
1055
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1056 1057 1058 1059
		.vendor_name = "EDIROL",
		.product_name = "SD-20",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1060
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1061 1062 1063 1064 1065 1066
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
{
1067
	/* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1068
	USB_DEVICE(0x0582, 0x0029),
1069
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1070 1071 1072 1073
		.vendor_name = "EDIROL",
		.product_name = "SD-80",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1074
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086
			.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),
1087
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1088 1089 1090 1091
		.vendor_name = "EDIROL",
		.product_name = "UA-700",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1092
		.data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds's avatar
Linus Torvalds committed
1093 1094
			{
				.ifnum = 1,
1095
				.type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds's avatar
Linus Torvalds committed
1096 1097 1098
			},
			{
				.ifnum = 2,
1099
				.type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds's avatar
Linus Torvalds committed
1100 1101 1102
			},
			{
				.ifnum = 3,
1103
				.type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds's avatar
Linus Torvalds committed
1104 1105 1106 1107 1108 1109 1110 1111
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
1112
	/* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1113
	USB_DEVICE(0x0582, 0x002d),
1114
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1115 1116 1117 1118
		.vendor_name = "Roland",
		.product_name = "XV-2020",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1119
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1120 1121 1122 1123 1124 1125
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
1126
	/* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1127
	USB_DEVICE(0x0582, 0x002f),
1128
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1129 1130 1131 1132
		.vendor_name = "Roland",
		.product_name = "VariOS",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1133
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1134 1135 1136 1137 1138 1139
			.out_cables = 0x0007,
			.in_cables  = 0x0007
		}
	}
},
{
1140
	/* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1141
	USB_DEVICE(0x0582, 0x0033),
1142
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1143 1144 1145 1146
		.vendor_name = "EDIROL",
		.product_name = "PCR",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1147
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1148 1149 1150 1151 1152 1153
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
{
1154 1155 1156 1157
	/*
	 * Has ID 0x0038 when not in "Advanced Driver" mode;
	 * later revisions use IDs 0x0054 and 0x00a2.
	 */
Linus Torvalds's avatar
Linus Torvalds committed
1158
	USB_DEVICE(0x0582, 0x0037),
1159
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1160 1161 1162 1163
		.vendor_name = "Roland",
		.product_name = "Digital Piano",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1164
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1165 1166 1167 1168 1169 1170
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
1171 1172 1173 1174 1175
	/*
	 * 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.
	 */
Linus Torvalds's avatar
Linus Torvalds committed
1176
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
1177
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1178 1179
		.vendor_name = "BOSS",
		.product_name = "GS-10",
1180 1181
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1182
		.data = & (const struct snd_usb_audio_quirk[]) {
1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 3,
				.type = QUIRK_MIDI_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
Linus Torvalds's avatar
Linus Torvalds committed
1198 1199 1200 1201
		}
	}
},
{
1202
	/* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1203
	USB_DEVICE(0x0582, 0x0040),
1204
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1205 1206 1207 1208
		.vendor_name = "Roland",
		.product_name = "GI-20",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1209
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1210 1211 1212 1213 1214 1215
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
{
1216
	/* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1217
	USB_DEVICE(0x0582, 0x0042),
1218
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1219 1220 1221 1222
		.vendor_name = "Roland",
		.product_name = "RS-70",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1223
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1224 1225 1226 1227 1228
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252
{
	/* 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
			}
		}
	}
},
Linus Torvalds's avatar
Linus Torvalds committed
1253
{
1254
	/* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1255
	USB_DEVICE(0x0582, 0x0048),
1256
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1257 1258
		/* .vendor_name = "EDIROL", */
		/* .product_name = "UR-80", */
Linus Torvalds's avatar
Linus Torvalds committed
1259 1260
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1261
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1262 1263 1264 1265 1266
			.out_cables = 0x0003,
			.in_cables  = 0x0007
		}
	}
},
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289
{
	/* 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
			}
		}
	}
},
Linus Torvalds's avatar
Linus Torvalds committed
1290
{
1291
	/* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1292
	USB_DEVICE(0x0582, 0x004d),
1293
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1294 1295 1296 1297
		.vendor_name = "EDIROL",
		.product_name = "PCR-A",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1298
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309
			.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),
1310
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1311 1312 1313 1314
		.vendor_name = "EDIROL",
		.product_name = "UA-3FX",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1315
		.data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds's avatar
Linus Torvalds committed
1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331
			{
				.ifnum = 1,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = 2,
				.type = QUIRK_AUDIO_STANDARD_INTERFACE
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
	USB_DEVICE(0x0582, 0x0052),
1332
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1333 1334 1335 1336 1337 1338
		.vendor_name = "EDIROL",
		.product_name = "UM-1SX",
		.ifnum = 0,
		.type = QUIRK_MIDI_STANDARD_INTERFACE
	}
},
1339 1340 1341 1342 1343 1344 1345 1346 1347
{
	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
	}
},
1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370
{
	/* 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
			}
		}
	}
},
Linus Torvalds's avatar
Linus Torvalds committed
1371
{
1372
	/* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1373
	USB_DEVICE(0x0582, 0x0065),
1374
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1375 1376
		/* .vendor_name = "EDIROL", */
		/* .product_name = "PCR-1", */
Linus Torvalds's avatar
Linus Torvalds committed
1377 1378
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1379
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1380 1381 1382 1383 1384 1385
			.out_cables = 0x0001,
			.in_cables  = 0x0003
		}
	}
},
{
1386
	/* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1387
	USB_DEVICE(0x0582, 0x006d),
1388
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1389 1390 1391 1392
		.vendor_name = "Roland",
		.product_name = "FANTOM-X",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1393
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405
			.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),
1406
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1407 1408 1409 1410
		.vendor_name = "EDIROL",
		.product_name = "UA-25",
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
1411
		.data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds's avatar
Linus Torvalds committed
1412 1413
			{
				.ifnum = 0,
1414
				.type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds's avatar
Linus Torvalds committed
1415 1416 1417
			},
			{
				.ifnum = 1,
1418
				.type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds's avatar
Linus Torvalds committed
1419 1420 1421
			},
			{
				.ifnum = 2,
1422
				.type = QUIRK_AUDIO_EDIROL_UAXX
Linus Torvalds's avatar
Linus Torvalds committed
1423 1424 1425 1426 1427 1428 1429 1430
			},
			{
				.ifnum = -1
			}
		}
	}
},
{
1431
	/* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds's avatar
Linus Torvalds committed
1432
	USB_DEVICE(0x0582, 0x0075),
1433
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds's avatar
Linus Torvalds committed
1434 1435 1436 1437
		.vendor_name = "BOSS",
		.product_name = "DR-880",
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1438
		.data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds's avatar
Linus Torvalds committed
1439 1440 1441 1442 1443
			.out_cables = 0x0001,
			.in_cables  = 0x0001
		}
	}
},
1444
{
1445
	/* has ID 0x007b when not in "Advanced Driver" mode */
1446
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
1447
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1448
		.vendor_name = "Roland",
1449
		/* "RD" or "RD-700SX"? */
1450 1451
		.ifnum = 0,
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
1452
		.data = & (const struct snd_usb_midi_endpoint_info) {
1453 1454 1455 1456 1457
			.out_cables = 0x0003,
			.in_cables  = 0x0003
		}
	}
},
1458 1459 1460 1461 1462 1463 1464 1465 1466
{
	/* 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) {
1467 1468
			.out_cables = 0x0001,
			.in_cables  = 0x0001
1469 1470 1471
		}
	}
},
1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484
{
	/* 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
		}
	}
1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507
},
{
	/*
	 * 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,
1508
				.type = QUIRK_AUDIO_EDIROL_UAXX
1509 1510 1511 1512 1513 1514
			},
			{
				.ifnum = -1
			}
		}
	}
1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528
},
{
	/* Edirol M-16DX */
	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,
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544
				.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
			}
		}
	}
},
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574
{
	/* 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
			}
		}
	}
},
1575 1576 1577 1578 1579
{
	/* Edirol UM-3G */
	USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		.ifnum = 0,
1580 1581 1582 1583 1584
		.type = QUIRK_MIDI_FIXED_ENDPOINT,
		.data = & (const struct snd_usb_midi_endpoint_info) {
			.out_cables = 0x0007,
			.in_cables  = 0x0007
		}
1585 1586
	}
},
1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615
{
	/* BOSS ME-25 */
	USB_DEVICE(0x0582, 0x0113),
	.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
			}
		}
	}
},
1616
{
1617 1618
	/* only 44.1 kHz works at the moment */
	USB_DEVICE(0x0582, 0x0120),
1619 1620
	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
		/* .vendor_name = "Roland", */
1621
		/* .product_name = "OCTO-CAPTURE", */
1622 1623 1624 1625 1626
		.ifnum = QUIRK_ANY_INTERFACE,
		.type = QUIRK_COMPOSITE,
		.data = (const struct snd_usb_audio_quirk[]) {
			{
				.ifnum = 0,
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.formats = SNDRV_PCM_FMTBIT_S32_LE,
					.channels = 10,
					.iface = 0,
					.altsetting = 1,
					.altset_idx = 1,
					.endpoint = 0x05,
					.ep_attr = 0x05,
					.rates = SNDRV_PCM_RATE_44100,
					.rate_min = 44100,
					.rate_max = 44100,
					.nr_rates = 1,
					.rate_table = (unsigned int[]) { 44100 }
1641 1642
				}
			},
1643 1644
			{
				.ifnum = 1,
1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659
				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
				.data = & (const struct audioformat) {
					.formats = SNDRV_PCM_FMTBIT_S32_LE,
					.channels = 12,
					.iface = 1,
					.altsetting = 1,
					.altset_idx = 1,
					.endpoint = 0x85,
					.ep_attr = 0x25,
					.rates = SNDRV_PCM_RATE_44100,
					.rate_min = 44100,
					.rate_max = 44100,
					.nr_rates = 1,
					.rate_table = (unsigned int[]) { 44100 }
				}
1660 1661 1662 1663 1664 1665 1666 1667 1668 1669
			},
			{
				.ifnum = 2,
				.type = QUIRK_MIDI_FIXED_ENDPOINT,
				.data = & (const struct snd_usb_midi_endpoint_info) {
					.out_cables = 0x0001,
					.in_cables  = 0x0001
				}
			},
			{
1670 1671