Blame view

sound/usb/quirks-table.h 85.6 KB
1a59d1b8e   Thomas Gleixner   treewide: Replace...
1
  /* SPDX-License-Identifier: GPL-2.0-or-later */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
4
5
6
  /*
   * ALSA USB Audio Driver
   *
   * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
   *                       Clemens Ladisch <clemens@ladisch.de>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
   */
  
  /*
   * 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
fa10635fc   Takashi Iwai   ALSA: usb-audio: ...
27
28
29
30
31
32
33
34
35
  /* A standard entry matching with vid/pid and the audio class/subclass */
  #define USB_AUDIO_DEVICE(vend, prod) \
  	.match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
  		       USB_DEVICE_ID_MATCH_INT_CLASS | \
  		       USB_DEVICE_ID_MATCH_INT_SUBCLASS, \
  	.idVendor = vend, \
  	.idProduct = prod, \
  	.bInterfaceClass = USB_CLASS_AUDIO, \
  	.bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
1ef0e0a05   Kristian Amlie   ALSA: usb-audio: ...
36
37
38
39
40
41
42
43
44
45
  /* 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
  	}
  },
8f7f3ab15   Alexander Schremmer   ALSA: usb-audio: ...
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  {
  	/* 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,
  		}
  	}
  },
51ab5d77d   Takashi Iwai   ALSA: usb-audio: ...
67
  /* E-Mu 0202 USB */
14b51ccd2   Takashi Iwai   ALSA: usb-audio: ...
68
  { USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f02) },
51ab5d77d   Takashi Iwai   ALSA: usb-audio: ...
69
  /* E-Mu 0404 USB */
14b51ccd2   Takashi Iwai   ALSA: usb-audio: ...
70
  { USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f04) },
51ab5d77d   Takashi Iwai   ALSA: usb-audio: ...
71
  /* E-Mu Tracker Pre */
14b51ccd2   Takashi Iwai   ALSA: usb-audio: ...
72
  { USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f0a) },
51ab5d77d   Takashi Iwai   ALSA: usb-audio: ...
73
  /* E-Mu 0204 USB */
14b51ccd2   Takashi Iwai   ALSA: usb-audio: ...
74
  { USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f19) },
25a47b6b0   Clemens Ladisch   [ALSA] usb-audio:...
75

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
76
  /*
df68f1064   Eldad Zack   ALSA: usb-audio: ...
77
78
   * HP Wireless Audio
   * When not ignored, causes instability issues for some users, forcing them to
52bedfbd4   Takashi Iwai   ALSA: usb-audio: ...
79
   * skip the entire module.
df68f1064   Eldad Zack   ALSA: usb-audio: ...
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
   */
  {
  	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,
  			}
  		}
  	}
  },
  
  /*
a91214589   Daniel Drake   [ALSA] usb-audio:...
113
114
115
   * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
   * class matches do not take effect without an explicit ID match.
   */
fa10635fc   Takashi Iwai   ALSA: usb-audio: ...
116
117
118
119
120
121
122
  { USB_AUDIO_DEVICE(0x046d, 0x0850) },
  { USB_AUDIO_DEVICE(0x046d, 0x08ae) },
  { USB_AUDIO_DEVICE(0x046d, 0x08c6) },
  { USB_AUDIO_DEVICE(0x046d, 0x08f0) },
  { USB_AUDIO_DEVICE(0x046d, 0x08f5) },
  { USB_AUDIO_DEVICE(0x046d, 0x08f6) },
  { USB_AUDIO_DEVICE(0x046d, 0x0990) },
25a47b6b0   Clemens Ladisch   [ALSA] usb-audio:...
123

1e74190bc   James Courtier-Dutton   [ALSA] snd-usb-au...
124
  /*
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
125
126
127
128
129
   * Yamaha devices
   */
  
  #define YAMAHA_DEVICE(id, name) { \
  	USB_DEVICE(0x0499, id), \
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
130
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
131
132
133
134
135
136
137
138
  		.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), \
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
139
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
  		.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"),
4ccb4a438   Clemens Ladisch   [ALSA] usb-audio:...
167
  YAMAHA_DEVICE(0x1016, "MDP-5"),
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
168
169
170
171
172
173
174
175
  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"),
4ccb4a438   Clemens Ladisch   [ALSA] usb-audio:...
176
  YAMAHA_DEVICE(0x101f, "EZ-J24"),
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
  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),
0ac2ac0ad   Clemens Ladisch   [ALSA] usb-audio:...
203
  YAMAHA_DEVICE(0x103d, NULL),
f542fda8f   Clemens Ladisch   [ALSA] usb-audio:...
204
205
206
207
  YAMAHA_DEVICE(0x103e, NULL),
  YAMAHA_DEVICE(0x103f, NULL),
  YAMAHA_DEVICE(0x1040, NULL),
  YAMAHA_DEVICE(0x1041, NULL),
f1265391e   Clemens Ladisch   [ALSA] usb-audio:...
208
209
210
211
  YAMAHA_DEVICE(0x1042, NULL),
  YAMAHA_DEVICE(0x1043, NULL),
  YAMAHA_DEVICE(0x1044, NULL),
  YAMAHA_DEVICE(0x1045, NULL),
c85ceac97   Clemens Ladisch   ALSA: usb-audio: ...
212
  YAMAHA_INTERFACE(0x104e, 0, NULL),
83a1a3974   Clemens Ladisch   ALSA: usb-audio: ...
213
214
215
216
  YAMAHA_DEVICE(0x104f, NULL),
  YAMAHA_DEVICE(0x1050, NULL),
  YAMAHA_DEVICE(0x1051, NULL),
  YAMAHA_DEVICE(0x1052, NULL),
422fdc318   Clemens Ladisch   ALSA: usb-audio: ...
217
218
219
220
221
222
223
224
225
226
227
  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),
8c3f5d8a9   Clemens Ladisch   ALSA: usb-audio: ...
228
229
230
231
232
233
  {
  	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,
ae3f0c267   Trulan Martin   ALSA: usb-audio: ...
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
  		.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,
1b15362c7   Trulan Martin   ALSA: usb-audio: ...
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
  		.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
  			}
  		}
  	}
  },
  {
f0b127fbf   Vlad Catoi   ALSA: usb-audio: ...
281
282
283
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
310
  	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
  			}
  		}
  	}
  },
  {
1b15362c7   Trulan Martin   ALSA: usb-audio: ...
311
312
313
314
315
  	USB_DEVICE(0x0499, 0x150a),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		/* .vendor_name = "Yamaha", */
  		/* .product_name = "THR5A", */
  		.ifnum = QUIRK_ANY_INTERFACE,
03e022144   Trulan Martin   ALSA: usb-audio: ...
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
  		.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,
8c3f5d8a9   Clemens Ladisch   ALSA: usb-audio: ...
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
  		.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
  			}
  		}
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
362
363
364
  YAMAHA_DEVICE(0x2000, "DGP-7"),
  YAMAHA_DEVICE(0x2001, "DGP-5"),
  YAMAHA_DEVICE(0x2002, NULL),
422fdc318   Clemens Ladisch   ALSA: usb-audio: ...
365
  YAMAHA_DEVICE(0x2003, NULL),
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
  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),
f1265391e   Clemens Ladisch   [ALSA] usb-audio:...
381
  YAMAHA_DEVICE(0x500f, NULL),
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
382
383
384
385
  YAMAHA_DEVICE(0x7000, "DTX"),
  YAMAHA_DEVICE(0x7010, "UB99"),
  #undef YAMAHA_DEVICE
  #undef YAMAHA_INTERFACE
aafe77cc4   Clemens Ladisch   ALSA: usb-audio: ...
386
387
388
389
390
391
392
393
394
395
396
  /* 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
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
397
398
399
400
401
402
  
  /*
   * Roland/RolandED/Edirol/BOSS devices
   */
  {
  	USB_DEVICE(0x0582, 0x0000),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
403
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
404
405
406
407
  		.vendor_name = "Roland",
  		.product_name = "UA-100",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
408
  		.data = (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
409
410
411
412
  			{
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = & (const struct audioformat) {
015eb0b08   Clemens Ladisch   ALSA: usb-audio: ...
413
  					.formats = SNDRV_PCM_FMTBIT_S16_LE,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
  					.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) {
015eb0b08   Clemens Ladisch   ALSA: usb-audio: ...
430
  					.formats = SNDRV_PCM_FMTBIT_S16_LE,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
431
432
433
434
  					.channels = 2,
  					.iface = 1,
  					.altsetting = 1,
  					.altset_idx = 1,
de48c7bc6   Daniel Mack   ALSA: usbaudio: c...
435
  					.attributes = UAC_EP_CS_ATTR_FILL_MAX,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
436
437
438
439
440
441
442
443
444
445
  					.endpoint = 0x81,
  					.ep_attr = 0x05,
  					.rates = SNDRV_PCM_RATE_CONTINUOUS,
  					.rate_min = 44100,
  					.rate_max = 44100,
  				}
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
446
  				.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
447
448
449
450
451
452
453
454
455
456
457
458
  					.out_cables = 0x0007,
  					.in_cables  = 0x0007
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
  	USB_DEVICE(0x0582, 0x0002),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
459
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
460
461
  		.vendor_name = "EDIROL",
  		.product_name = "UM-4",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
462
463
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
464
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
465
466
467
468
469
470
471
472
473
474
475
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
476
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
477
478
479
480
481
482
483
  					.out_cables = 0x000f,
  					.in_cables  = 0x000f
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
484
485
486
487
488
  		}
  	}
  },
  {
  	USB_DEVICE(0x0582, 0x0003),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
489
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
490
491
  		.vendor_name = "Roland",
  		.product_name = "SC-8850",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
492
493
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
494
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
495
496
497
498
499
500
501
502
503
504
505
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
506
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
507
508
509
510
511
512
513
  					.out_cables = 0x003f,
  					.in_cables  = 0x003f
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
514
515
516
517
518
  		}
  	}
  },
  {
  	USB_DEVICE(0x0582, 0x0004),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
519
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
520
521
  		.vendor_name = "Roland",
  		.product_name = "U-8",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
522
523
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
524
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
525
526
527
528
529
530
531
532
533
534
535
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
536
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
537
538
539
540
541
542
543
  					.out_cables = 0x0005,
  					.in_cables  = 0x0005
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
544
545
546
547
  		}
  	}
  },
  {
119c4ff52   Clemens Ladisch   [ALSA] usb-audio:...
548
549
  	/* Has ID 0x0099 when not in "Advanced Driver" mode.
  	 * The UM-2EX has only one input, but we cannot detect this. */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
550
  	USB_DEVICE(0x0582, 0x0005),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
551
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
552
553
  		.vendor_name = "EDIROL",
  		.product_name = "UM-2",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
554
555
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
556
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
557
558
559
560
561
562
563
564
565
566
567
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
568
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
569
570
571
572
573
574
575
  					.out_cables = 0x0003,
  					.in_cables  = 0x0003
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
576
577
578
579
580
  		}
  	}
  },
  {
  	USB_DEVICE(0x0582, 0x0007),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
581
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
582
583
  		.vendor_name = "Roland",
  		.product_name = "SC-8820",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
584
585
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
586
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
587
588
589
590
591
592
593
594
595
596
597
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
598
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
599
600
601
602
603
604
605
  					.out_cables = 0x0013,
  					.in_cables  = 0x0013
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
606
607
608
609
610
  		}
  	}
  },
  {
  	USB_DEVICE(0x0582, 0x0008),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
611
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
612
613
  		.vendor_name = "Roland",
  		.product_name = "PC-300",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
614
615
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
616
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
617
618
619
620
621
622
623
624
625
626
627
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
628
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
629
630
631
632
633
634
635
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
636
637
638
639
  		}
  	}
  },
  {
119c4ff52   Clemens Ladisch   [ALSA] usb-audio:...
640
  	/* has ID 0x009d when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
641
  	USB_DEVICE(0x0582, 0x0009),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
642
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
643
644
  		.vendor_name = "EDIROL",
  		.product_name = "UM-1",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
645
646
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
647
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
648
649
650
651
652
653
654
655
656
657
658
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
659
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
660
661
662
663
664
665
666
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
667
668
669
670
671
  		}
  	}
  },
  {
  	USB_DEVICE(0x0582, 0x000b),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
672
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
673
674
  		.vendor_name = "Roland",
  		.product_name = "SK-500",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
675
676
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
677
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
678
679
680
681
682
683
684
685
686
687
688
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
689
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
690
691
692
693
694
695
696
  					.out_cables = 0x0013,
  					.in_cables  = 0x0013
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
697
698
699
700
701
702
703
  		}
  	}
  },
  {
  	/* thanks to Emiliano Grilli <emillo@libero.it>
  	 * for helping researching this data */
  	USB_DEVICE(0x0582, 0x000c),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
704
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
705
706
707
708
  		.vendor_name = "Roland",
  		.product_name = "SC-D70",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
709
  		.data = (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
710
711
  			{
  				.ifnum = 0,
6d1f2f605   Takamichi Horikawa   ALSA: usb-audio: ...
712
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
713
714
715
  			},
  			{
  				.ifnum = 1,
6d1f2f605   Takamichi Horikawa   ALSA: usb-audio: ...
716
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
717
718
719
720
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
721
  				.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
  					.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),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
742
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
743
744
745
746
  		.vendor_name = "EDIROL",
  		.product_name = "UA-5",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
747
  		.data = (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
  			{
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
763
  	/* has ID 0x0013 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
764
  	USB_DEVICE(0x0582, 0x0012),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
765
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
766
767
768
769
  		.vendor_name = "Roland",
  		.product_name = "XV-5050",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
770
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
771
772
773
774
775
776
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
777
  	/* has ID 0x0015 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
778
  	USB_DEVICE(0x0582, 0x0014),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
779
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
780
781
782
783
  		.vendor_name = "EDIROL",
  		.product_name = "UM-880",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
784
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
785
786
787
788
789
790
  			.out_cables = 0x01ff,
  			.in_cables  = 0x01ff
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
791
  	/* has ID 0x0017 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
792
  	USB_DEVICE(0x0582, 0x0016),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
793
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
794
795
  		.vendor_name = "EDIROL",
  		.product_name = "SD-90",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
796
797
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
798
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
799
800
  			{
  				.ifnum = 0,
061b869ec   Clemens Ladisch   ALSA: usb-audio: ...
801
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
802
803
804
  			},
  			{
  				.ifnum = 1,
061b869ec   Clemens Ladisch   ALSA: usb-audio: ...
805
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
806
807
808
809
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
810
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
811
812
813
814
815
816
817
  					.out_cables = 0x000f,
  					.in_cables  = 0x000f
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
818
819
820
821
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
822
  	/* has ID 0x001c when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
823
  	USB_DEVICE(0x0582, 0x001b),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
824
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
825
826
  		.vendor_name = "Roland",
  		.product_name = "MMP-2",
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
827
828
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
829
  		.data = (const struct snd_usb_audio_quirk[]) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
830
831
832
833
834
835
836
837
838
839
840
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
841
  				.data = & (const struct snd_usb_midi_endpoint_info) {
d3ff42fd2   Clemens Ladisch   [ALSA] usb-audio ...
842
843
844
845
846
847
848
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
849
850
851
852
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
853
  	/* has ID 0x001e when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
854
  	USB_DEVICE(0x0582, 0x001d),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
855
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
856
857
858
859
  		.vendor_name = "Roland",
  		.product_name = "V-SYNTH",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
860
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
861
862
863
864
865
866
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
867
  	/* has ID 0x0024 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
868
  	USB_DEVICE(0x0582, 0x0023),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
869
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
870
871
872
873
  		.vendor_name = "EDIROL",
  		.product_name = "UM-550",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
874
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
875
876
877
878
879
880
881
882
883
884
885
886
  			.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),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
887
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
888
889
890
891
  		.vendor_name = "EDIROL",
  		.product_name = "UA-20",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
892
  		.data = (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
893
  			{
1f14a657d   Clemens Ladisch   [ALSA] usb-audio:...
894
895
896
897
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
898
  				.ifnum = 1,
1f14a657d   Clemens Ladisch   [ALSA] usb-audio:...
899
900
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = & (const struct audioformat) {
015eb0b08   Clemens Ladisch   ALSA: usb-audio: ...
901
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
1f14a657d   Clemens Ladisch   [ALSA] usb-audio:...
902
903
904
905
906
907
908
909
910
911
912
  					.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,
  				}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
913
914
915
  			},
  			{
  				.ifnum = 2,
1f14a657d   Clemens Ladisch   [ALSA] usb-audio:...
916
917
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = & (const struct audioformat) {
015eb0b08   Clemens Ladisch   ALSA: usb-audio: ...
918
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
1f14a657d   Clemens Ladisch   [ALSA] usb-audio:...
919
920
921
922
923
924
925
926
927
928
929
  					.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,
  				}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
930
931
932
  			},
  			{
  				.ifnum = 3,
1f14a657d   Clemens Ladisch   [ALSA] usb-audio:...
933
934
935
936
937
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
  				.data = & (const struct snd_usb_midi_endpoint_info) {
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
938
939
940
941
942
943
944
945
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
946
  	/* has ID 0x0028 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
947
  	USB_DEVICE(0x0582, 0x0027),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
948
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
949
950
951
952
  		.vendor_name = "EDIROL",
  		.product_name = "SD-20",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
953
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
954
955
956
957
958
959
  			.out_cables = 0x0003,
  			.in_cables  = 0x0007
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
960
  	/* has ID 0x002a when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
961
  	USB_DEVICE(0x0582, 0x0029),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
962
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
963
964
965
966
  		.vendor_name = "EDIROL",
  		.product_name = "SD-80",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
967
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
968
969
970
971
972
973
974
975
976
977
978
979
  			.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),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
980
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
981
982
983
984
  		.vendor_name = "EDIROL",
  		.product_name = "UA-700",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
985
  		.data = (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
986
987
  			{
  				.ifnum = 1,
310e0dc01   Pedro Lopez-Cabanillas   ALSA: snd-usb-aud...
988
  				.type = QUIRK_AUDIO_EDIROL_UAXX
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
989
990
991
  			},
  			{
  				.ifnum = 2,
310e0dc01   Pedro Lopez-Cabanillas   ALSA: snd-usb-aud...
992
  				.type = QUIRK_AUDIO_EDIROL_UAXX
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
993
994
995
  			},
  			{
  				.ifnum = 3,
59b3db6c6   Pedro Lopez-Cabanillas   ALSA: usb-audio: ...
996
  				.type = QUIRK_AUDIO_EDIROL_UAXX
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
997
998
999
1000
1001
1002
1003
1004
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1005
  	/* has ID 0x002e when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1006
  	USB_DEVICE(0x0582, 0x002d),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1007
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1008
1009
1010
1011
  		.vendor_name = "Roland",
  		.product_name = "XV-2020",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1012
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1013
1014
1015
1016
1017
1018
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1019
  	/* has ID 0x0030 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1020
  	USB_DEVICE(0x0582, 0x002f),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1021
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1022
1023
1024
1025
  		.vendor_name = "Roland",
  		.product_name = "VariOS",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1026
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1027
1028
1029
1030
1031
1032
  			.out_cables = 0x0007,
  			.in_cables  = 0x0007
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1033
  	/* has ID 0x0034 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1034
  	USB_DEVICE(0x0582, 0x0033),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1035
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1036
1037
1038
1039
  		.vendor_name = "EDIROL",
  		.product_name = "PCR",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1040
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1041
1042
1043
1044
1045
1046
  			.out_cables = 0x0003,
  			.in_cables  = 0x0007
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1047
1048
1049
1050
  	/*
  	 * Has ID 0x0038 when not in "Advanced Driver" mode;
  	 * later revisions use IDs 0x0054 and 0x00a2.
  	 */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1051
  	USB_DEVICE(0x0582, 0x0037),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1052
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1053
1054
1055
1056
  		.vendor_name = "Roland",
  		.product_name = "Digital Piano",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1057
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1058
1059
1060
1061
1062
1063
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
5af4c8337   Clemens Ladisch   [ALSA] usb-audio ...
1064
1065
1066
1067
1068
  	/*
  	 * 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.
  	 */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1069
  	USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1070
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1071
1072
  		.vendor_name = "BOSS",
  		.product_name = "GS-10",
5af4c8337   Clemens Ladisch   [ALSA] usb-audio ...
1073
1074
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1075
  		.data = & (const struct snd_usb_audio_quirk[]) {
5af4c8337   Clemens Ladisch   [ALSA] usb-audio ...
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
  			{
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = 3,
  				.type = QUIRK_MIDI_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = -1
  			}
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1091
1092
1093
1094
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1095
  	/* has ID 0x0041 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1096
  	USB_DEVICE(0x0582, 0x0040),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1097
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1098
1099
1100
1101
  		.vendor_name = "Roland",
  		.product_name = "GI-20",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1102
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1103
1104
1105
1106
1107
1108
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1109
  	/* has ID 0x0043 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1110
  	USB_DEVICE(0x0582, 0x0042),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1111
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1112
1113
1114
1115
  		.vendor_name = "Roland",
  		.product_name = "RS-70",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1116
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1117
1118
1119
1120
1121
1122
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
358ce0cf3   Clemens Ladisch   [ALSA] usb-audio:...
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
  	/* 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
  			}
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1147
  	/* has ID 0x004a when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1148
  	USB_DEVICE(0x0582, 0x0048),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1149
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
358ce0cf3   Clemens Ladisch   [ALSA] usb-audio:...
1150
1151
  		/* .vendor_name = "EDIROL", */
  		/* .product_name = "UR-80", */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1152
1153
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1154
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1155
1156
1157
1158
1159
1160
  			.out_cables = 0x0003,
  			.in_cables  = 0x0007
  		}
  	}
  },
  {
f38cc317c   Clemens Ladisch   [ALSA] usb-audio:...
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
  	/* 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
  			}
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1184
  	/* has ID 0x004f when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1185
  	USB_DEVICE(0x0582, 0x004d),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1186
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1187
1188
1189
1190
  		.vendor_name = "EDIROL",
  		.product_name = "PCR-A",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1191
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
  			.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),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1203
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1204
1205
1206
1207
  		.vendor_name = "EDIROL",
  		.product_name = "UA-3FX",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1208
  		.data = (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
  			{
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
  	USB_DEVICE(0x0582, 0x0052),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1225
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1226
1227
1228
1229
1230
1231
  		.vendor_name = "EDIROL",
  		.product_name = "UM-1SX",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_STANDARD_INTERFACE
  	}
  },
f167684a6   Takashi Iwai   [ALSA] usbaudio -...
1232
1233
1234
1235
1236
1237
1238
1239
1240
  {
  	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
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1241
  {
aa70201fd   Clemens Ladisch   ALSA: usb-audio: ...
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
  	/* 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
  			}
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1265
  	/* has ID 0x0067 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1266
  	USB_DEVICE(0x0582, 0x0065),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1267
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
aa70201fd   Clemens Ladisch   ALSA: usb-audio: ...
1268
1269
  		/* .vendor_name = "EDIROL", */
  		/* .product_name = "PCR-1", */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1270
1271
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1272
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1273
1274
1275
1276
1277
1278
  			.out_cables = 0x0001,
  			.in_cables  = 0x0003
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1279
  	/* has ID 0x006e when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1280
  	USB_DEVICE(0x0582, 0x006d),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1281
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1282
1283
1284
1285
  		.vendor_name = "Roland",
  		.product_name = "FANTOM-X",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1286
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
  			.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),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1299
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1300
1301
1302
1303
  		.vendor_name = "EDIROL",
  		.product_name = "UA-25",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1304
  		.data = (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1305
1306
  			{
  				.ifnum = 0,
310e0dc01   Pedro Lopez-Cabanillas   ALSA: snd-usb-aud...
1307
  				.type = QUIRK_AUDIO_EDIROL_UAXX
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1308
1309
1310
  			},
  			{
  				.ifnum = 1,
310e0dc01   Pedro Lopez-Cabanillas   ALSA: snd-usb-aud...
1311
  				.type = QUIRK_AUDIO_EDIROL_UAXX
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1312
1313
1314
  			},
  			{
  				.ifnum = 2,
59b3db6c6   Pedro Lopez-Cabanillas   ALSA: usb-audio: ...
1315
  				.type = QUIRK_AUDIO_EDIROL_UAXX
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1316
1317
1318
1319
1320
1321
1322
1323
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1324
  	/* has ID 0x0076 when not in "Advanced Driver" mode */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1325
  	USB_DEVICE(0x0582, 0x0075),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1326
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1327
1328
1329
1330
  		.vendor_name = "BOSS",
  		.product_name = "DR-880",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1331
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1332
1333
1334
1335
1336
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
5a2a68f5a   Clemens Ladisch   [ALSA] usb-audio:...
1337
  {
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1338
  	/* has ID 0x007b when not in "Advanced Driver" mode */
5a2a68f5a   Clemens Ladisch   [ALSA] usb-audio:...
1339
  	USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1340
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
5a2a68f5a   Clemens Ladisch   [ALSA] usb-audio:...
1341
  		.vendor_name = "Roland",
d879f0ccf   Clemens Ladisch   [ALSA] usb-audio:...
1342
  		/* "RD" or "RD-700SX"? */
5a2a68f5a   Clemens Ladisch   [ALSA] usb-audio:...
1343
1344
  		.ifnum = 0,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1345
  		.data = & (const struct snd_usb_midi_endpoint_info) {
5a2a68f5a   Clemens Ladisch   [ALSA] usb-audio:...
1346
1347
1348
1349
1350
  			.out_cables = 0x0003,
  			.in_cables  = 0x0003
  		}
  	}
  },
cdca881d7   Clemens Ladisch   [ALSA] usb-audio:...
1351
1352
1353
1354
1355
1356
1357
1358
1359
  {
  	/* 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) {
05422575d   Clemens Ladisch   [ALSA] usb-audio:...
1360
1361
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
cdca881d7   Clemens Ladisch   [ALSA] usb-audio:...
1362
1363
1364
  		}
  	}
  },
415b09e45   Clemens Ladisch   [ALSA] usb-audio:...
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
  {
  	/* 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
  		}
  	}
  },
310e0dc01   Pedro Lopez-Cabanillas   ALSA: snd-usb-aud...
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
  {
  	/*
  	 * 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,
59b3db6c6   Pedro Lopez-Cabanillas   ALSA: usb-audio: ...
1401
  				.type = QUIRK_AUDIO_EDIROL_UAXX
310e0dc01   Pedro Lopez-Cabanillas   ALSA: snd-usb-aud...
1402
1403
1404
1405
1406
1407
1408
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
6efd2cd5e   Takashi Iwai   ALSA: usb-audio -...
1409
1410
  {
  	/* Edirol M-16DX */
6efd2cd5e   Takashi Iwai   ALSA: usb-audio -...
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
  	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,
62b126315   Chris Mennie   [ALSA] usb-audio ...
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
  				.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
  			}
  		}
  	}
  },
b38addb2d   Clemens Ladisch   ALSA: usb-audio: ...
1438
  {
e2736261b   Takashi Iwai   ALSA: usb - Add q...
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
1465
1466
1467
  	/* 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
  			}
  		}
  	}
  },
d867bba94   Clemens Ladisch   sound: usb-audio:...
1468
  {
927c9423d   Clemens Ladisch   ALSA: usb-audio: ...
1469
1470
1471
1472
  	/* Edirol UM-3G */
  	USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		.ifnum = 0,
a0c6d309c   Clemens Ladisch   ALSA: usb-audio: ...
1473
1474
1475
1476
1477
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
  		.data = & (const struct snd_usb_midi_endpoint_info) {
  			.out_cables = 0x0007,
  			.in_cables  = 0x0007
  		}
927c9423d   Clemens Ladisch   ALSA: usb-audio: ...
1478
1479
1480
  	}
  },
  {
53da5ebfe   Clemens Ladisch   ALSA: usb-audio: ...
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 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
  			}
  		}
  	}
  },
  {
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1510
1511
  	/* only 44.1 kHz works at the moment */
  	USB_DEVICE(0x0582, 0x0120),
9d0c91938   Clemens Ladisch   ALSA: usb-audio: ...
1512
1513
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		/* .vendor_name = "Roland", */
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1514
  		/* .product_name = "OCTO-CAPTURE", */
ae7cc709f   John F Leach   ALSA: usb-audio -...
1515
1516
1517
1518
1519
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = (const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 0,
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
  				.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 }
ae7cc709f   John F Leach   ALSA: usb-audio -...
1534
1535
1536
  				}
  			},
  			{
7b28079b3   Clemens Ladisch   ALSA: usb-audio: ...
1537
  				.ifnum = 1,
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
  				.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 }
  				}
7b28079b3   Clemens Ladisch   ALSA: usb-audio: ...
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
  				.data = & (const struct snd_usb_midi_endpoint_info) {
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1563
1564
  				.ifnum = 3,
  				.type = QUIRK_IGNORE_INTERFACE
0ef283247   Daniel Mack   ALSA: usb-audio: ...
1565
1566
  			},
  			{
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1567
1568
  				.ifnum = 4,
  				.type = QUIRK_IGNORE_INTERFACE
0ef283247   Daniel Mack   ALSA: usb-audio: ...
1569
1570
1571
1572
1573
1574
1575
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
6a6d822e1   David G Turner   ALSA: usb-audio -...
1576
  {
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1577
1578
  	/* only 44.1 kHz works at the moment */
  	USB_DEVICE(0x0582, 0x012f),
14515a082   Daniele Guerrieri   ALSA: usb-audio: ...
1579
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1580
1581
  		/* .vendor_name = "Roland", */
  		/* .product_name = "QUAD-CAPTURE", */
6a6d822e1   David G Turner   ALSA: usb-audio -...
1582
1583
1584
1585
1586
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = (const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 0,
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = & (const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S32_LE,
  					.channels = 4,
  					.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 }
  				}
6a6d822e1   David G Turner   ALSA: usb-audio -...
1602
1603
1604
  			},
  			{
  				.ifnum = 1,
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = & (const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S32_LE,
  					.channels = 6,
  					.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 }
  				}
6a6d822e1   David G Turner   ALSA: usb-audio -...
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
  				.data = & (const struct snd_usb_midi_endpoint_info) {
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1630
  				.ifnum = 3,
c9c9e4e42   Kazutomo Yoshii   ALSA: usb-audio -...
1631
1632
1633
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
b7f33917b   Clemens Ladisch   ALSA: usb-audio: ...
1634
1635
  				.ifnum = 4,
  				.type = QUIRK_IGNORE_INTERFACE
74953e201   Clemens Ladisch   ALSA: usb-audio: ...
1636
1637
1638
1639
1640
1641
1642
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
fcdcd1dec   Daniel Mack   ALSA: snd-usb: ad...
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
  {
  	USB_DEVICE(0x0582, 0x0159),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		/* .vendor_name = "Roland", */
  		/* .product_name = "UA-22", */
  		.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
  			}
  		}
  	}
  },
aafe77cc4   Clemens Ladisch   ALSA: usb-audio: ...
1673
  /* this catches most recent vendor-specific Roland devices */
74953e201   Clemens Ladisch   ALSA: usb-audio: ...
1674
  {
aafe77cc4   Clemens Ladisch   ALSA: usb-audio: ...
1675
1676
1677
1678
1679
  	.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  	               USB_DEVICE_ID_MATCH_INT_CLASS,
  	.idVendor = 0x0582,
  	.bInterfaceClass = USB_CLASS_VENDOR_SPEC,
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
74953e201   Clemens Ladisch   ALSA: usb-audio: ...
1680
  		.ifnum = QUIRK_ANY_INTERFACE,
aafe77cc4   Clemens Ladisch   ALSA: usb-audio: ...
1681
  		.type = QUIRK_AUTODETECT
c9c9e4e42   Kazutomo Yoshii   ALSA: usb-audio -...
1682
1683
  	}
  },
62b126315   Chris Mennie   [ALSA] usb-audio ...
1684

a25f175c2   Clemens Ladisch   [ALSA] usb-audio:...
1685
1686
1687
1688
1689
1690
1691
1692
1693
  /* 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),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1694
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
a25f175c2   Clemens Ladisch   [ALSA] usb-audio:...
1695
1696
1697
1698
  		.vendor_name = "Hercules",
  		.product_name = "DJ Console (WE)",
  		.ifnum = 4,
  		.type = QUIRK_MIDI_FIXED_ENDPOINT,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1699
  		.data = & (const struct snd_usb_midi_endpoint_info) {
a25f175c2   Clemens Ladisch   [ALSA] usb-audio:...
1700
1701
1702
1703
1704
  			.out_cables = 0x0001,
  			.in_cables = 0x0001
  		}
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1705
1706
1707
  /* Midiman/M-Audio devices */
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1708
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1709
1710
1711
1712
  		.vendor_name = "M-Audio",
  		.product_name = "MidiSport 2x2",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1713
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1714
1715
1716
1717
1718
1719
1720
  			.out_cables = 0x0003,
  			.in_cables  = 0x0003
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1721
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1722
1723
1724
1725
  		.vendor_name = "M-Audio",
  		.product_name = "MidiSport 1x1",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1726
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1727
1728
1729
1730
1731
1732
1733
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1734
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1735
1736
1737
1738
  		.vendor_name = "M-Audio",
  		.product_name = "Keystation",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1739
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1740
1741
1742
1743
1744
1745
1746
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1747
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1748
1749
1750
1751
  		.vendor_name = "M-Audio",
  		.product_name = "MidiSport 4x4",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1752
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
  			.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),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1765
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1766
1767
1768
1769
  		.vendor_name = "M-Audio",
  		.product_name = "MidiSport 8x8",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1770
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1771
1772
1773
1774
1775
1776
1777
  			.out_cables = 0x01ff,
  			.in_cables  = 0x01ff
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1778
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1779
1780
1781
1782
  		.vendor_name = "M-Audio",
  		.product_name = "MidiSport 8x8",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1783
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1784
1785
1786
1787
1788
1789
1790
  			.out_cables = 0x01ff,
  			.in_cables  = 0x01ff
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1791
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1792
1793
1794
1795
  		.vendor_name = "M-Audio",
  		.product_name = "MidiSport 2x4",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1796
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1797
1798
1799
1800
1801
1802
1803
  			.out_cables = 0x000f,
  			.in_cables  = 0x0003
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1804
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1805
1806
1807
1808
  		.vendor_name = "M-Audio",
  		.product_name = "Quattro",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1809
  		.data = & (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
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
  			/*
  			 * 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,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1855
  				.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1868
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1869
1870
1871
1872
  		.vendor_name = "M-Audio",
  		.product_name = "AudioPhile",
  		.ifnum = 6,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1873
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1874
1875
1876
1877
1878
1879
1880
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1881
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1882
1883
1884
1885
  		.vendor_name = "M-Audio",
  		.product_name = "Ozone",
  		.ifnum = 3,
  		.type = QUIRK_MIDI_MIDIMAN,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1886
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1887
1888
1889
1890
1891
1892
1893
  			.out_cables = 0x0001,
  			.in_cables  = 0x0001
  		}
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1894
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1895
1896
1897
1898
  		.vendor_name = "M-Audio",
  		.product_name = "OmniStudio",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1899
  		.data = & (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
  			{
  				.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,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
1939
  				.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
2ea547dcd   Clemens Ladisch   [ALSA] usb-audio:...
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
  {
  	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
  			}
  		}
  	}
  },
fca5bca48   Felix Homann   ALSA: usbaudio: A...
1984
  {
76f74bca7   Eldad Zack   ALSA: usb-audio: ...
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030),
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		/* .vendor_name = "M-Audio", */
  		/* .product_name = "Fast Track C400", */
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = &(const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_STANDARD_MIXER,
  			},
  			/* Playback */
  			{
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 6,
  					.iface = 2,
  					.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
  					},
2aad272b3   Eldad Zack   ALSA: usb-audio: ...
2019
  					.clock = 0x80,
76f74bca7   Eldad Zack   ALSA: usb-audio: ...
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
  				}
  			},
  			/* Capture */
  			{
  				.ifnum = 3,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 4,
  					.iface = 3,
  					.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
  					},
2aad272b3   Eldad Zack   ALSA: usb-audio: ...
2045
  					.clock = 0x80,
76f74bca7   Eldad Zack   ALSA: usb-audio: ...
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
  				}
  			},
  			/* MIDI */
  			{
  				.ifnum = -1 /* Interface = 4 */
  			}
  		}
  	}
  },
  {
e9a25e04b   Matt Gruskin   ALSA: usb-audio: ...
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2031),
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		/* .vendor_name = "M-Audio", */
  		/* .product_name = "Fast Track C600", */
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = &(const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_STANDARD_MIXER,
  			},
  			/* Playback */
  			{
  				.ifnum = 2,
  				.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 = 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
  					},
  					.clock = 0x80,
  				}
  			},
  			/* Capture */
  			{
  				.ifnum = 3,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 6,
  					.iface = 3,
  					.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
  					},
  					.clock = 0x80,
  				}
  			},
  			/* MIDI */
  			{
  				.ifnum = -1 /* Interface = 4 */
  			}
  		}
  	}
  },
  {
c91d9cda5   Daniel Mack   ALSA: usb-audio: ...
2127
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2128
2129
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		/* .vendor_name = "M-Audio", */
65f04443c   Clemens Ladisch   ALSA: usb-audio: ...
2130
  		/* .product_name = "Fast Track Ultra", */
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2131
2132
2133
2134
2135
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = & (const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 0,
d5a0bf6cc   Daniel Mack   ALSA: usb-audio: ...
2136
  				.type = QUIRK_AUDIO_STANDARD_MIXER,
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2137
2138
2139
  			},
  			{
  				.ifnum = 1,
65f04443c   Clemens Ladisch   ALSA: usb-audio: ...
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
  				.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
  					}
  				}
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2161
2162
2163
  			},
  			{
  				.ifnum = 2,
65f04443c   Clemens Ladisch   ALSA: usb-audio: ...
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
  				.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
  					}
  				}
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2185
2186
2187
2188
2189
2190
2191
2192
2193
  			},
  			/* interface 3 (MIDI) is standard compliant */
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
c91d9cda5   Daniel Mack   ALSA: usb-audio: ...
2194
  	USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2195
2196
2197
2198
2199
2200
2201
2202
  	.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,
d5a0bf6cc   Daniel Mack   ALSA: usb-audio: ...
2203
  				.type = QUIRK_AUDIO_STANDARD_MIXER,
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2204
2205
2206
  			},
  			{
  				.ifnum = 1,
65f04443c   Clemens Ladisch   ALSA: usb-audio: ...
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
  				.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
  					}
  				}
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2228
2229
2230
  			},
  			{
  				.ifnum = 2,
65f04443c   Clemens Ladisch   ALSA: usb-audio: ...
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
  				.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
  					}
  				}
fca5bca48   Felix Homann   ALSA: usbaudio: A...
2252
2253
2254
2255
2256
2257
2258
2259
  			},
  			/* interface 3 (MIDI) is standard compliant */
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2260

0243ef71a   Clemens Ladisch   [ALSA] usb-audio:...
2261
2262
  /* Casio devices */
  {
9808dc962   Clemens Ladisch   [ALSA] usb-audio:...
2263
2264
2265
2266
2267
2268
2269
2270
2271
  	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
  	}
  },
  {
318d27f8b   Clemens Ladisch   [ALSA] usb-audio:...
2272
  	/* this ID is used by several devices without a product ID */
0243ef71a   Clemens Ladisch   [ALSA] usb-audio:...
2273
2274
2275
  	USB_DEVICE(0x07cf, 0x6802),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		.vendor_name = "Casio",
318d27f8b   Clemens Ladisch   [ALSA] usb-audio:...
2276
  		.product_name = "Keyboard",
0243ef71a   Clemens Ladisch   [ALSA] usb-audio:...
2277
2278
2279
2280
  		.ifnum = 0,
  		.type = QUIRK_MIDI_YAMAHA
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2281
2282
2283
  /* Mark of the Unicorn devices */
  {
  	/* thanks to Robert A. Lerche <ral 'at' msbit.com> */
bbd4615cd   Clemens Ladisch   [ALSA] usb-audio ...
2284
2285
2286
2287
2288
2289
  	.match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  		       USB_DEVICE_ID_MATCH_PRODUCT |
  		       USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  	.idVendor = 0x07fd,
  	.idProduct = 0x0001,
  	.bDeviceSubClass = 2,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2290
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2291
2292
2293
2294
  		.vendor_name = "MOTU",
  		.product_name = "Fastlane",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2295
  		.data = & (const struct snd_usb_audio_quirk[]) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2296
2297
  			{
  				.ifnum = 0,
c7f572168   Clemens Ladisch   ALSA: usb-audio: ...
2298
  				.type = QUIRK_MIDI_RAW_BYTES
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2310
2311
2312
  /* Emagic devices */
  {
  	USB_DEVICE(0x086a, 0x0001),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2313
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2314
  		.vendor_name = "Emagic",
861bee5ad   Stefan Sauer   ALSA: usb-audio: ...
2315
  		.product_name = "Unitor8",
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2316
2317
  		.ifnum = 2,
  		.type = QUIRK_MIDI_EMAGIC,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2318
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2319
2320
2321
2322
2323
2324
2325
  			.out_cables = 0x80ff,
  			.in_cables  = 0x80ff
  		}
  	}
  },
  {
  	USB_DEVICE(0x086a, 0x0002),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2326
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2327
2328
2329
2330
  		.vendor_name = "Emagic",
  		/* .product_name = "AMT8", */
  		.ifnum = 2,
  		.type = QUIRK_MIDI_EMAGIC,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2331
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2332
2333
2334
2335
2336
2337
2338
  			.out_cables = 0x80ff,
  			.in_cables  = 0x80ff
  		}
  	}
  },
  {
  	USB_DEVICE(0x086a, 0x0003),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2339
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2340
2341
2342
2343
  		.vendor_name = "Emagic",
  		/* .product_name = "MT4", */
  		.ifnum = 2,
  		.type = QUIRK_MIDI_EMAGIC,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2344
  		.data = & (const struct snd_usb_midi_endpoint_info) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2345
2346
2347
2348
2349
  			.out_cables = 0x800f,
  			.in_cables  = 0x8003
  		}
  	}
  },
56a9eb1f3   Daniel Mack   ALSA: usb-audio: ...
2350
2351
2352
2353
2354
2355
2356
2357
  /* KORG devices */
  {
  	USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		.vendor_name = "KORG, Inc.",
  		/* .product_name = "PANDORA PX5D", */
  		.ifnum = 3,
  		.type = QUIRK_MIDI_STANDARD_INTERFACE,
1bba160a0   Sergiusz Urbaniak   ALSA: snd-usb: ad...
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
  	}
  },
  
  {
  	USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		.vendor_name = "KORG, Inc.",
  		/* .product_name = "ToneLab ST", */
  		.ifnum = 3,
  		.type = QUIRK_MIDI_STANDARD_INTERFACE,
56a9eb1f3   Daniel Mack   ALSA: usb-audio: ...
2368
2369
  	}
  },
4434ade8c   Krzysztof Foltman   ALSA: usb-audio: ...
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
  /* 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,
  	}
  },
e9f493697   Paul Bonser   ALSA: usb-audio: ...
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
  {
  	/* Akai MPC Element */
  	USB_DEVICE(0x09e8, 0x0021),
  	.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_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_MIDI_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
0689a86ae   Dominic Sacré   ALSA: usb-audio: ...
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
  /* Steinberg devices */
  {
  	/* Steinberg MI2 */
  	USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x2040),
  	.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_AUDIO_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = 3,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
  				.data = &(const struct snd_usb_midi_endpoint_info) {
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
  	/* Steinberg MI4 */
  	USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x4040),
  	.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_AUDIO_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = 3,
  				.type = QUIRK_MIDI_FIXED_ENDPOINT,
  				.data = &(const struct snd_usb_midi_endpoint_info) {
  					.out_cables = 0x0001,
  					.in_cables  = 0x0001
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
31ab9523e   Clemens Ladisch   [ALSA] usb-audio:...
2468
2469
2470
  /* TerraTec devices */
  {
  	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2471
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
31ab9523e   Clemens Ladisch   [ALSA] usb-audio:...
2472
2473
2474
2475
2476
2477
  		.vendor_name = "TerraTec",
  		.product_name = "PHASE 26",
  		.ifnum = 3,
  		.type = QUIRK_MIDI_STANDARD_INTERFACE
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2478
2479
  {
  	USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2480
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
bc56eff12   Clemens Ladisch   [ALSA] add anothe...
2481
2482
2483
2484
2485
2486
2487
2488
2489
  		.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) {
31ab9523e   Clemens Ladisch   [ALSA] usb-audio:...
2490
  		.vendor_name = "TerraTec",
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2491
2492
2493
2494
2495
  		.product_name = "PHASE 26",
  		.ifnum = 3,
  		.type = QUIRK_MIDI_STANDARD_INTERFACE
  	}
  },
b2b8229dd   Clemens Ladisch   [ALSA] usb-audio:...
2496
2497
2498
2499
2500
2501
2502
2503
2504
  {
  	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
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2505
2506
2507
2508
  
  /* Novation EMS devices */
  {
  	USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2509
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2510
2511
2512
2513
2514
2515
2516
2517
  		.vendor_name = "Novation",
  		.product_name = "ReMOTE Audio/XStation",
  		.ifnum = 4,
  		.type = QUIRK_MIDI_NOVATION
  	}
  },
  {
  	USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2518
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2519
2520
2521
2522
2523
2524
2525
  		.vendor_name = "Novation",
  		.product_name = "Speedio",
  		.ifnum = 3,
  		.type = QUIRK_MIDI_NOVATION
  	}
  },
  {
dab998175   Ricard Wanderlof   ALSA: USB-audio: ...
2526
2527
2528
2529
2530
2531
2532
2533
2534
  	USB_DEVICE(0x1235, 0x000a),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		/* .vendor_name = "Novation", */
  		/* .product_name = "Nocturn", */
  		.ifnum = 0,
  		.type = QUIRK_MIDI_RAW_BYTES
  	}
  },
  {
c7f572168   Clemens Ladisch   ALSA: usb-audio: ...
2535
2536
2537
2538
2539
2540
2541
2542
2543
  	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
  	}
  },
  {
358b7dfa1   Daniel Mack   ALSA: snd-usb: re...
2544
2545
2546
2547
  	USB_DEVICE(0x1235, 0x0010),
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		.vendor_name = "Focusrite",
  		.product_name = "Saffire 6 USB",
5e212332c   Mark Hills   ALSA: usb-audio: ...
2548
2549
2550
2551
2552
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = (const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 0,
470757f5b   Alexander Tsoy   ALSA: usb-audio: ...
2553
2554
2555
2556
  				.type = QUIRK_AUDIO_STANDARD_MIXER,
  			},
  			{
  				.ifnum = 0,
5e212332c   Mark Hills   ALSA: usb-audio: ...
2557
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
358b7dfa1   Daniel Mack   ALSA: snd-usb: re...
2558
  				.data = &(const struct audioformat) {
5e212332c   Mark Hills   ALSA: usb-audio: ...
2559
2560
2561
2562
2563
2564
2565
2566
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 4,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  					.endpoint = 0x01,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC,
470757f5b   Alexander Tsoy   ALSA: usb-audio: ...
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
  					.datainterval = 1,
  					.maxpacksize = 0x024c,
  					.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 = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 2,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = 0,
  					.endpoint = 0x82,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC,
  					.datainterval = 1,
  					.maxpacksize = 0x0126,
5e212332c   Mark Hills   ALSA: usb-audio: ...
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
  					.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,
  				.type = QUIRK_MIDI_RAW_BYTES
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
  {
358b7dfa1   Daniel Mack   ALSA: snd-usb: re...
2614
  	USB_DEVICE(0x1235, 0x0018),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2615
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2616
  		.vendor_name = "Novation",
358b7dfa1   Daniel Mack   ALSA: snd-usb: re...
2617
  		.product_name = "Twitch",
11e424e88   Eduard Gilmutdinov   ALSA: usb-audio: ...
2618
2619
2620
2621
2622
2623
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = (const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
358b7dfa1   Daniel Mack   ALSA: snd-usb: re...
2624
  				.data = & (const struct audioformat) {
11e424e88   Eduard Gilmutdinov   ALSA: usb-audio: ...
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 4,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  					.endpoint = 0x01,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC,
  					.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,
  				.type = QUIRK_MIDI_RAW_BYTES
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
358b7dfa1   Daniel Mack   ALSA: snd-usb: re...
2653
2654
2655
2656
2657
2658
2659
2660
2661
  {
  	USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		.vendor_name = "Novation",
  		.product_name = "ReMOTE25",
  		.ifnum = 0,
  		.type = QUIRK_MIDI_NOVATION
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2662

d39e82db7   Sebastien Alaiwan   ALSA: USB MIDI su...
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
  /* 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
  			}
  		}
  	}
  },
f8c11eb7d   Kai-Heng Feng   ALSA: usb-audio: ...
2689
2690
2691
  /* Lenovo ThinkStation P620 Rear Line-in, Line-out and Microphone */
  {
  	USB_DEVICE(0x17aa, 0x1046),
1965c4364   Kai-Heng Feng   ALSA: usb-audio: ...
2692
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1965c4364   Kai-Heng Feng   ALSA: usb-audio: ...
2693
2694
2695
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_SETUP_DISABLE_AUTOSUSPEND
  	}
f8c11eb7d   Kai-Heng Feng   ALSA: usb-audio: ...
2696
2697
2698
2699
  },
  /* Lenovo ThinkStation P620 Internal Speaker + Front Headset */
  {
  	USB_DEVICE(0x17aa, 0x104d),
1965c4364   Kai-Heng Feng   ALSA: usb-audio: ...
2700
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1965c4364   Kai-Heng Feng   ALSA: usb-audio: ...
2701
2702
2703
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_SETUP_DISABLE_AUTOSUSPEND
  	}
f8c11eb7d   Kai-Heng Feng   ALSA: usb-audio: ...
2704
  },
54a8c500d   Daniel Mack   ALSA: usb-audio: ...
2705
2706
  /* Native Instruments MK2 series */
  {
759e890f5   Daniel Mack   ALSA: usb-audio: ...
2707
  	/* Komplete Audio 6 */
9cdc35293   Daniel Mack   ALSA: usb-audio: ...
2708
2709
2710
2711
2712
  	.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  	.idVendor = 0x17cc,
  	.idProduct = 0x1000,
  },
  {
54a8c500d   Daniel Mack   ALSA: usb-audio: ...
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
  	/* Traktor Audio 6 */
  	.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  	.idVendor = 0x17cc,
  	.idProduct = 0x1010,
  },
  {
  	/* Traktor Audio 10 */
  	.match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  	.idVendor = 0x17cc,
  	.idProduct = 0x1020,
  },
1ca8b2013   Clemens Ladisch   ALSA: usb-audio: ...
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
  /* QinHeng devices */
  {
  	USB_DEVICE(0x1a86, 0x752d),
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		.vendor_name = "QinHeng",
  		.product_name = "CH345",
  		.ifnum = 1,
  		.type = QUIRK_MIDI_CH345
  	}
  },
02651d1a9   Miller Puckette   ALSA: usb-audio -...
2734
  /* KeithMcMillen Stringport */
14b51ccd2   Takashi Iwai   ALSA: usb-audio: ...
2735
  { USB_DEVICE(0x1f38, 0x0001) }, /* FIXME: should be more restrictive matching */
02651d1a9   Miller Puckette   ALSA: usb-audio -...
2736

cc7a59bd8   Clemens Ladisch   [ALSA] usb-audio:...
2737
  /* Miditech devices */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2738
  {
f38275fe9   Clemens Ladisch   [ALSA] usb-audio ...
2739
  	USB_DEVICE(0x4752, 0x0011),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2740
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
f38275fe9   Clemens Ladisch   [ALSA] usb-audio ...
2741
2742
2743
  		.vendor_name = "Miditech",
  		.product_name = "Midistart-2",
  		.ifnum = 0,
cc7a59bd8   Clemens Ladisch   [ALSA] usb-audio:...
2744
  		.type = QUIRK_MIDI_CME
f38275fe9   Clemens Ladisch   [ALSA] usb-audio ...
2745
2746
  	}
  },
cc7a59bd8   Clemens Ladisch   [ALSA] usb-audio:...
2747
2748
  
  /* Central Music devices */
f38275fe9   Clemens Ladisch   [ALSA] usb-audio ...
2749
  {
cc7a59bd8   Clemens Ladisch   [ALSA] usb-audio:...
2750
  	/* this ID used by both Miditech MidiStudio-2 and CME UF-x */
f38275fe9   Clemens Ladisch   [ALSA] usb-audio ...
2751
  	USB_DEVICE(0x7104, 0x2202),
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
2752
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
f38275fe9   Clemens Ladisch   [ALSA] usb-audio ...
2753
  		.ifnum = 0,
cc7a59bd8   Clemens Ladisch   [ALSA] usb-audio:...
2754
  		.type = QUIRK_MIDI_CME
f38275fe9   Clemens Ladisch   [ALSA] usb-audio ...
2755
2756
  	}
  },
5d1f00a20   Mauro Carvalho Chehab   [media] sound: si...
2757
2758
2759
2760
2761
2762
2763
2764
  /*
   * Auvitek au0828 devices with audio interface.
   * This should be kept in sync with drivers/media/usb/au0828/au0828-cards.c
   * Please notice that some drivers are DVB only, and don't need to be
   * here. That's the case, for example, of DVICO_FUSIONHDTV7.
   */
  
  #define AU0828_DEVICE(vid, pid, vname, pname) { \
fa10635fc   Takashi Iwai   ALSA: usb-audio: ...
2765
  	USB_AUDIO_DEVICE(vid, pid), \
5d1f00a20   Mauro Carvalho Chehab   [media] sound: si...
2766
2767
2768
2769
2770
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { \
  		.vendor_name = vname, \
  		.product_name = pname, \
  		.ifnum = QUIRK_ANY_INTERFACE, \
  		.type = QUIRK_AUDIO_ALIGN_TRANSFER, \
66354f18f   Shuah Khan   media: sound/usb:...
2771
  		.shares_media_device = 1, \
5d1f00a20   Mauro Carvalho Chehab   [media] sound: si...
2772
2773
2774
2775
  	} \
  }
  
  AU0828_DEVICE(0x2040, 0x7200, "Hauppauge", "HVR-950Q"),
678fa12fb   Mauro Carvalho Chehab   [media] sound: Up...
2776
  AU0828_DEVICE(0x2040, 0x7240, "Hauppauge", "HVR-850"),
5d1f00a20   Mauro Carvalho Chehab   [media] sound: si...
2777
2778
2779
2780
2781
  AU0828_DEVICE(0x2040, 0x7210, "Hauppauge", "HVR-950Q"),
  AU0828_DEVICE(0x2040, 0x7217, "Hauppauge", "HVR-950Q"),
  AU0828_DEVICE(0x2040, 0x721b, "Hauppauge", "HVR-950Q"),
  AU0828_DEVICE(0x2040, 0x721e, "Hauppauge", "HVR-950Q"),
  AU0828_DEVICE(0x2040, 0x721f, "Hauppauge", "HVR-950Q"),
5d1f00a20   Mauro Carvalho Chehab   [media] sound: si...
2782
2783
  AU0828_DEVICE(0x2040, 0x7280, "Hauppauge", "HVR-950Q"),
  AU0828_DEVICE(0x0fd9, 0x0008, "Hauppauge", "HVR-950Q"),
678fa12fb   Mauro Carvalho Chehab   [media] sound: Up...
2784
2785
2786
2787
2788
2789
2790
2791
  AU0828_DEVICE(0x2040, 0x7201, "Hauppauge", "HVR-950Q-MXL"),
  AU0828_DEVICE(0x2040, 0x7211, "Hauppauge", "HVR-950Q-MXL"),
  AU0828_DEVICE(0x2040, 0x7281, "Hauppauge", "HVR-950Q-MXL"),
  AU0828_DEVICE(0x05e1, 0x0480, "Hauppauge", "Woodbury"),
  AU0828_DEVICE(0x2040, 0x8200, "Hauppauge", "Woodbury"),
  AU0828_DEVICE(0x2040, 0x7260, "Hauppauge", "HVR-950Q"),
  AU0828_DEVICE(0x2040, 0x7213, "Hauppauge", "HVR-950Q"),
  AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"),
52a7a5835   John S. Gruber   ALSA: usb-audio: ...
2792

bdc3478f9   Marcel Hasler   ALSA: usb-audio: ...
2793
2794
  /* Syntek STK1160 */
  {
fa10635fc   Takashi Iwai   ALSA: usb-audio: ...
2795
  	USB_AUDIO_DEVICE(0x05e1, 0x0408),
bdc3478f9   Marcel Hasler   ALSA: usb-audio: ...
2796
2797
2798
2799
2800
2801
2802
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		.vendor_name = "Syntek",
  		.product_name = "STK1160",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_AUDIO_ALIGN_TRANSFER
  	}
  },
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
  /* 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,
c63fcb9b6   Damien Zammit   ALSA: usb-audio: ...
2815
  				.type = QUIRK_AUDIO_STANDARD_MIXER,
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2816
2817
2818
2819
2820
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
29088fef3   Clemens Ladisch   ALSA: usb-audio: ...
2821
  					.formats = SNDRV_PCM_FMTBIT_S24_3BE,
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2822
2823
2824
2825
  					.channels = 2,
  					.iface = 1,
  					.altsetting = 1,
  					.altset_idx = 1,
c63fcb9b6   Damien Zammit   ALSA: usb-audio: ...
2826
  					.attributes = 0x4,
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2827
  					.endpoint = 0x02,
c63fcb9b6   Damien Zammit   ALSA: usb-audio: ...
2828
2829
2830
2831
2832
  					.ep_attr = USB_ENDPOINT_XFER_ISOC |
  						USB_ENDPOINT_SYNC_SYNC,
  					.maxpacksize = 0x130,
  					.rates = SNDRV_PCM_RATE_48000,
  					.rate_min = 48000,
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2833
  					.rate_max = 48000,
c63fcb9b6   Damien Zammit   ALSA: usb-audio: ...
2834
  					.nr_rates = 1,
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2835
  					.rate_table = (unsigned int[]) {
c63fcb9b6   Damien Zammit   ALSA: usb-audio: ...
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
  						48000
  					}
  				}
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3BE,
  					.channels = 2,
  					.iface = 1,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = 0x4,
  					.endpoint = 0x81,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC |
  						USB_ENDPOINT_SYNC_ASYNC,
  					.maxpacksize = 0x130,
  					.rates = SNDRV_PCM_RATE_48000,
  					.rate_min = 48000,
  					.rate_max = 48000,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) {
  						48000
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2860
2861
2862
2863
2864
2865
2866
  					}
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2867
2868
  	}
  },
cb99864d4   Damien Zammit   ALSA: usb-audio: ...
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
  
  /* DIGIDESIGN MBOX 2 */
  {
  	USB_DEVICE(0x0dba, 0x3000),
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		.vendor_name = "Digidesign",
  		.product_name = "Mbox 2",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = (const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 0,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3BE,
  					.channels = 2,
  					.iface = 2,
  					.altsetting = 2,
  					.altset_idx = 1,
  					.attributes = 0x00,
  					.endpoint = 0x03,
  					.ep_attr = USB_ENDPOINT_SYNC_ASYNC,
cb99864d4   Damien Zammit   ALSA: usb-audio: ...
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
  					.rates = SNDRV_PCM_RATE_48000,
  					.rate_min = 48000,
  					.rate_max = 48000,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) {
  						48000
  					}
  				}
  			},
  			{
  				.ifnum = 3,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 4,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  				.formats = SNDRV_PCM_FMTBIT_S24_3BE,
  					.channels = 2,
  					.iface = 4,
  					.altsetting = 2,
  					.altset_idx = 1,
  					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  					.endpoint = 0x85,
  					.ep_attr = USB_ENDPOINT_SYNC_SYNC,
cb99864d4   Damien Zammit   ALSA: usb-audio: ...
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
  					.rates = SNDRV_PCM_RATE_48000,
  					.rate_min = 48000,
  					.rate_max = 48000,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) {
  						48000
  					}
  				}
  			},
  			{
  				.ifnum = 5,
  				.type = QUIRK_IGNORE_INTERFACE
  			},
  			{
  				.ifnum = 6,
b7b435e81   Damien Zammit   ALSA: usb-audio: ...
2939
  				.type = QUIRK_MIDI_MIDIMAN,
cb99864d4   Damien Zammit   ALSA: usb-audio: ...
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
  				.data = &(const struct snd_usb_midi_endpoint_info) {
  					.out_ep =  0x02,
  					.out_cables = 0x0001,
  					.in_ep = 0x81,
  					.in_interval = 0x01,
  					.in_cables = 0x0001
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
613769fca   Oto Petřík   ALSA: usb-audio: ...
2954
2955
  {
  	/* Tascam US122 MKII - playback-only support */
14b51ccd2   Takashi Iwai   ALSA: usb-audio: ...
2956
  	USB_DEVICE_VENDOR_SPEC(0x0644, 0x8021),
613769fca   Oto Petřík   ALSA: usb-audio: ...
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		.vendor_name = "TASCAM",
  		.product_name = "US122 MKII",
  		.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) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 2,
  					.iface = 1,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  					.endpoint = 0x02,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC,
  					.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
  					}
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
40717382e   Chris J Arges   ALSA: usbaudio Mb...
2997

c05fce586   Marko Friedemann   ALSA: USB: Suppor...
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
  /* Microsoft XboxLive Headset/Xbox Communicator */
  {
  	USB_DEVICE(0x045e, 0x0283),
  	.bInterfaceClass = USB_CLASS_PER_INTERFACE,
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		.vendor_name = "Microsoft",
  		.product_name = "XboxLive Headset/Xbox Communicator",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = &(const struct snd_usb_audio_quirk[]) {
  			{
  				/* playback */
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S16_LE,
  					.channels = 1,
  					.iface = 0,
  					.altsetting = 0,
  					.altset_idx = 0,
  					.attributes = 0,
  					.endpoint = 0x04,
  					.ep_attr = 0x05,
  					.rates = SNDRV_PCM_RATE_CONTINUOUS,
  					.rate_min = 22050,
  					.rate_max = 22050
  				}
  			},
  			{
  				/* capture */
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S16_LE,
  					.channels = 1,
  					.iface = 1,
  					.altsetting = 0,
  					.altset_idx = 0,
  					.attributes = 0,
  					.endpoint = 0x85,
  					.ep_attr = 0x05,
  					.rates = SNDRV_PCM_RATE_CONTINUOUS,
  					.rate_min = 16000,
  					.rate_max = 16000
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
c90246680   Didier Villevalois   ALSA: usb-audio: ...
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
  /* Reloop Play */
  {
  	USB_DEVICE(0x200c, 0x100b),
  	.bInterfaceClass = USB_CLASS_PER_INTERFACE,
  	.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_MIXER,
  			},
  			{
  				.ifnum = 1,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 4,
  					.iface = 1,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  					.endpoint = 0x01,
  					.ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
  					.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
  			}
  		}
  	}
  },
f38275fe9   Clemens Ladisch   [ALSA] usb-audio ...
3090
  {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3091
  	/*
dacacb0aa   Panu Matilainen   ALSA: usb-audio: ...
3092
  	 * ZOOM R16/24 in audio interface mode.
e05704467   Ricard Wanderlof   ALSA: USB-audio: ...
3093
3094
3095
  	 * Playback requires an extra four byte LE length indicator
  	 * at the start of each isochronous packet. This quirk is
  	 * enabled in create_standard_audio_quirk().
dacacb0aa   Panu Matilainen   ALSA: usb-audio: ...
3096
3097
3098
3099
3100
3101
3102
  	 */
  	USB_DEVICE(0x1686, 0x00dd),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = (const struct snd_usb_audio_quirk[]) {
  			{
dacacb0aa   Panu Matilainen   ALSA: usb-audio: ...
3103
3104
  				/* Playback  */
  				.ifnum = 1,
e05704467   Ricard Wanderlof   ALSA: USB-audio: ...
3105
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE,
dacacb0aa   Panu Matilainen   ALSA: usb-audio: ...
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
  			},
  			{
  				/* Capture */
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_STANDARD_INTERFACE,
  			},
  			{
  				/* Midi */
  				.ifnum = 3,
  				.type = QUIRK_MIDI_STANDARD_INTERFACE
  			},
  			{
  				.ifnum = -1
  			},
  		}
  	}
  },
  
  {
  	/*
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3126
3127
3128
3129
3130
3131
  	 * 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,
de48c7bc6   Daniel Mack   ALSA: usbaudio: c...
3132
  	.bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
86e07d346   Takashi Iwai   [ALSA] Remove xxx...
3133
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3134
3135
3136
3137
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_MIDI_STANDARD_INTERFACE
  	}
  },
5ebf6b1e4   Takashi Iwai   ALSA: usb-audio: ...
3138
3139
3140
3141
  /* disabled due to regression for other devices;
   * see https://bugzilla.kernel.org/show_bug.cgi?id=199905
   */
  #if 0
33193dca6   Martin Peres   ALSA: usb-audio: ...
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
  {
  	/*
  	 * Nura's first gen headphones use Cambridge Silicon Radio's vendor
  	 * ID, but it looks like the product ID actually is only for Nura.
  	 * The capture interface does not work at all (even on Windows),
  	 * and only the 48 kHz sample rate works for the playback interface.
  	 */
  	USB_DEVICE(0x0a12, 0x1243),
  	.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_MIXER,
  			},
  			/* Capture */
  			{
  				.ifnum = 1,
  				.type = QUIRK_IGNORE_INTERFACE,
  			},
  			/* Playback */
  			{
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S16_LE,
  					.channels = 2,
  					.iface = 2,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = UAC_EP_CS_ATTR_FILL_MAX |
  						UAC_EP_CS_ATTR_SAMPLE_RATE,
  					.endpoint = 0x03,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC,
  					.rates = SNDRV_PCM_RATE_48000,
  					.rate_min = 48000,
  					.rate_max = 48000,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) {
  						48000
  					}
  				}
  			},
cbb2ebf70   Hui Peng   ALSA: usb-audio: ...
3186
3187
3188
  			{
  				.ifnum = -1
  			},
33193dca6   Martin Peres   ALSA: usb-audio: ...
3189
3190
3191
  		}
  	}
  },
5ebf6b1e4   Takashi Iwai   ALSA: usb-audio: ...
3192
  #endif /* disabled */
33193dca6   Martin Peres   ALSA: usb-audio: ...
3193

240a8af92   Erik Veijola   ALSA: usb-audio: ...
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
  {
  	/*
  	 * Bower's & Wilkins PX headphones only support the 48 kHz sample rate
  	 * even though it advertises more. The capture interface doesn't work
  	 * even on windows.
  	 */
  	USB_DEVICE(0x19b5, 0x0021),
  	.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_MIXER,
  			},
240a8af92   Erik Veijola   ALSA: usb-audio: ...
3209
3210
  			/* Playback */
  			{
c369c8db1   Nicolas Huaman   ALSA: usb-audio: ...
3211
  				.ifnum = 1,
240a8af92   Erik Veijola   ALSA: usb-audio: ...
3212
3213
3214
3215
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S16_LE,
  					.channels = 2,
c369c8db1   Nicolas Huaman   ALSA: usb-audio: ...
3216
  					.iface = 1,
240a8af92   Erik Veijola   ALSA: usb-audio: ...
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = UAC_EP_CS_ATTR_FILL_MAX |
  						UAC_EP_CS_ATTR_SAMPLE_RATE,
  					.endpoint = 0x03,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC,
  					.rates = SNDRV_PCM_RATE_48000,
  					.rate_min = 48000,
  					.rate_max = 48000,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) {
  						48000
  					}
  				}
  			},
cbb2ebf70   Hui Peng   ALSA: usb-audio: ...
3232
3233
3234
  			{
  				.ifnum = -1
  			},
240a8af92   Erik Veijola   ALSA: usb-audio: ...
3235
3236
3237
  		}
  	}
  },
8159a6a4a   Hui Wang   ALSA: usb-audio: ...
3238
3239
3240
3241
  /* Dell WD19 Dock */
  {
  	USB_DEVICE(0x0bda, 0x402e),
  	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
92adc96f8   Hui Wang   ALSA: usb-audio: ...
3242
3243
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_SETUP_FMT_AFTER_RESUME
8159a6a4a   Hui Wang   ALSA: usb-audio: ...
3244
3245
  	}
  },
a634090a0   Manuel Reinhardt   ALSA: usb-audio: ...
3246
3247
  /* MOTU Microbook II */
  {
2edb84e30   Alexander Tsoy   ALSA: usb-audio: ...
3248
  	USB_DEVICE_VENDOR_SPEC(0x07fd, 0x0004),
a634090a0   Manuel Reinhardt   ALSA: usb-audio: ...
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		.vendor_name = "MOTU",
  		.product_name = "MicroBookII",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = (const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_STANDARD_MIXER,
  			},
  			{
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3BE,
  					.channels = 6,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = 0,
  					.endpoint = 0x84,
  					.rates = SNDRV_PCM_RATE_96000,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC |
  						   USB_ENDPOINT_SYNC_ASYNC,
  					.rate_min = 96000,
  					.rate_max = 96000,
  					.nr_rates = 1,
  					.maxpacksize = 0x00d8,
  					.rate_table = (unsigned int[]) {
  						96000
  					}
  				}
  			},
  			{
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3BE,
  					.channels = 8,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = 0,
  					.endpoint = 0x03,
  					.rates = SNDRV_PCM_RATE_96000,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC |
  						   USB_ENDPOINT_SYNC_ASYNC,
  					.rate_min = 96000,
  					.rate_max = 96000,
  					.nr_rates = 1,
  					.maxpacksize = 0x0120,
  					.rate_table = (unsigned int[]) {
  						96000
  					}
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
118b2806a   Ard van Breemen   ALSA: usb-audio: ...
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
  {
  	/*
  	 * PIONEER DJ DDJ-SX3
  	 * PCM is 12 channels out, 10 channels in @ 44.1 fixed
  	 * interface 0, vendor class alt setting 1 for endpoints 5 and 0x86
  	 * The feedback for the output is the input.
  	 */
  	USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0023),
  	.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_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S32_LE,
  					.channels = 12,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.endpoint = 0x05,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC|
  						   USB_ENDPOINT_SYNC_ASYNC,
  					.rates = SNDRV_PCM_RATE_44100,
  					.rate_min = 44100,
  					.rate_max = 44100,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) { 44100 }
  				}
  			},
  			{
  				.ifnum = 0,
  				.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 = 0x86,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC|
  						 USB_ENDPOINT_SYNC_ASYNC|
  						 USB_ENDPOINT_USAGE_IMPLICIT_FB,
  					.rates = SNDRV_PCM_RATE_44100,
  					.rate_min = 44100,
  					.rate_max = 44100,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) { 44100 }
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
73d8c9408   František Kučera   ALSA: usb-audio: ...
3368
3369
3370
  {
  	/*
  	 * Pioneer DJ DJM-250MK2
14335d8b9   František Kučera   ALSA: usb-audio: ...
3371
3372
  	 * PCM is 8 channels out @ 48 fixed (endpoint 0x01)
  	 * and 8 channels in @ 48 fixed (endpoint 0x82).
73d8c9408   František Kučera   ALSA: usb-audio: ...
3373
  	 *
14335d8b9   František Kučera   ALSA: usb-audio: ...
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
  	 * Both playback and recording is working, even simultaneously.
  	 *
  	 * Playback channels could be mapped to:
  	 *  - CH1
  	 *  - CH2
  	 *  - AUX
  	 *
  	 * Recording channels could be mapped to:
  	 *  - Post CH1 Fader
  	 *  - Post CH2 Fader
  	 *  - Cross Fader A
  	 *  - Cross Fader B
  	 *  - MIC
  	 *  - AUX
  	 *  - REC OUT
  	 *
  	 * There is remaining problem with recording directly from PHONO/LINE.
  	 * If we map a channel to:
  	 *  - CH1 Control Tone PHONO
  	 *  - CH1 Control Tone LINE
  	 *  - CH2 Control Tone PHONO
  	 *  - CH2 Control Tone LINE
  	 * it is silent.
  	 * There is no signal even on other operating systems with official drivers.
  	 * The signal appears only when a supported application is started.
  	 * This needs to be investigated yet...
  	 * (there is quite a lot communication on the USB in both directions)
  	 *
  	 * In current version this mixer could be used for playback
  	 * and for recording from vinyls (through Post CH* Fader)
  	 * but not for DVS (Digital Vinyl Systems) like in Mixxx.
73d8c9408   František Kučera   ALSA: usb-audio: ...
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
  	 */
  	USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0017),
  	.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_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 8, // outputs
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.endpoint = 0x01,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC|
  						USB_ENDPOINT_SYNC_ASYNC,
  					.rates = SNDRV_PCM_RATE_48000,
  					.rate_min = 48000,
  					.rate_max = 48000,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) { 48000 }
14335d8b9   František Kučera   ALSA: usb-audio: ...
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
  					}
  			},
  			{
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 8, // inputs
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.endpoint = 0x82,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC|
  						USB_ENDPOINT_SYNC_ASYNC|
  						USB_ENDPOINT_USAGE_IMPLICIT_FB,
  					.rates = SNDRV_PCM_RATE_48000,
  					.rate_min = 48000,
  					.rate_max = 48000,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) { 48000 }
73d8c9408   František Kučera   ALSA: usb-audio: ...
3448
3449
3450
3451
3452
3453
3454
3455
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
6e8596172   Hector Martin   ALSA: usb-audio: ...
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
  {
  	/*
  	 * PIONEER DJ DDJ-RB
  	 * PCM is 4 channels out, 2 dummy channels in @ 44.1 fixed
  	 * The feedback for the output is the dummy input.
  	 */
  	USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000e),
  	.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_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 4,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.endpoint = 0x01,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC|
  						   USB_ENDPOINT_SYNC_ASYNC,
  					.rates = SNDRV_PCM_RATE_44100,
  					.rate_min = 44100,
  					.rate_max = 44100,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) { 44100 }
  				}
  			},
  			{
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 2,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.endpoint = 0x82,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC|
  						 USB_ENDPOINT_SYNC_ASYNC|
  						 USB_ENDPOINT_USAGE_IMPLICIT_FB,
  					.rates = SNDRV_PCM_RATE_44100,
  					.rate_min = 44100,
  					.rate_max = 44100,
  					.nr_rates = 1,
  					.rate_table = (unsigned int[]) { 44100 }
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
240a8af92   Erik Veijola   ALSA: usb-audio: ...
3512

7fccfecf2   Dmitry Panchenko   ALSA: usb-audio: ...
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
  {
  	/*
  	 * Pioneer DJ DJM-900NXS2
  	 * 10 channels playback & 12 channels capture @ 44.1/48/96kHz S24LE
  	 */
  	USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000a),
  	.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_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 10,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.endpoint = 0x01,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC|
  					    USB_ENDPOINT_SYNC_ASYNC,
  					.rates = SNDRV_PCM_RATE_44100|
  					    SNDRV_PCM_RATE_48000|
  					    SNDRV_PCM_RATE_96000,
  					.rate_min = 44100,
  					.rate_max = 96000,
  					.nr_rates = 3,
  					.rate_table = (unsigned int[]) {
  						44100, 48000, 96000
  					}
  				}
  			},
  			{
  				.ifnum = 0,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S24_3LE,
  					.channels = 12,
  					.iface = 0,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.endpoint = 0x82,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC|
  					    USB_ENDPOINT_SYNC_ASYNC|
  					    USB_ENDPOINT_USAGE_IMPLICIT_FB,
  					.rates = SNDRV_PCM_RATE_44100|
  					    SNDRV_PCM_RATE_48000|
  					    SNDRV_PCM_RATE_96000,
  					.rate_min = 44100,
  					.rate_max = 96000,
  					.nr_rates = 3,
  					.rate_table = (unsigned int[]) {
  						44100, 48000, 96000
  					}
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
7f5ad9c90   Takashi Iwai   ALSA: usb-audio: ...
3576

e337bf19f   Hector Martin   ALSA: usb-audio: ...
3577
3578
3579
3580
3581
3582
3583
3584
  /*
   * MacroSilicon MS2109 based HDMI capture cards
   *
   * These claim 96kHz 1ch in the descriptors, but are actually 48kHz 2ch.
   * They also need QUIRK_AUDIO_ALIGN_TRANSFER, which makes one wonder if
   * they pretend to be 96kHz mono as a workaround for stereo being broken
   * by that...
   *
74a2a7de8   Hector Martin   ALSA: usb-audio: ...
3585
3586
   * They also have an issue with initial stream alignment that causes the
   * channels to be swapped and out of phase, which is dealt with in quirks.c.
e337bf19f   Hector Martin   ALSA: usb-audio: ...
3587
3588
   */
  {
fa10635fc   Takashi Iwai   ALSA: usb-audio: ...
3589
  	USB_AUDIO_DEVICE(0x534d, 0x2109),
e337bf19f   Hector Martin   ALSA: usb-audio: ...
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
  	.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  		.vendor_name = "MacroSilicon",
  		.product_name = "MS2109",
  		.ifnum = QUIRK_ANY_INTERFACE,
  		.type = QUIRK_COMPOSITE,
  		.data = &(const struct snd_usb_audio_quirk[]) {
  			{
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_ALIGN_TRANSFER,
  			},
  			{
  				.ifnum = 2,
  				.type = QUIRK_AUDIO_STANDARD_MIXER,
  			},
  			{
  				.ifnum = 3,
  				.type = QUIRK_AUDIO_FIXED_ENDPOINT,
  				.data = &(const struct audioformat) {
  					.formats = SNDRV_PCM_FMTBIT_S16_LE,
  					.channels = 2,
  					.iface = 3,
  					.altsetting = 1,
  					.altset_idx = 1,
  					.attributes = 0,
  					.endpoint = 0x82,
  					.ep_attr = USB_ENDPOINT_XFER_ISOC |
  						USB_ENDPOINT_SYNC_ASYNC,
  					.rates = SNDRV_PCM_RATE_CONTINUOUS,
  					.rate_min = 48000,
  					.rate_max = 48000,
  				}
  			},
  			{
  				.ifnum = -1
  			}
  		}
  	}
  },
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3628
  #undef USB_DEVICE_VENDOR_SPEC
fa10635fc   Takashi Iwai   ALSA: usb-audio: ...
3629
  #undef USB_AUDIO_DEVICE