blob: e310af0db1b57aa3462bfd3d2c53124ea92883d3 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * ALSA USB Audio Driver
3 *
4 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
5 * Clemens Ladisch <clemens@ladisch.de>
6 *
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23/*
24 * The contents of this file are part of the driver's id_table.
25 *
26 * In a perfect world, this file would be empty.
27 */
28
29/*
30 * Use this for devices where other interfaces are standard compliant,
31 * to prevent the quirk being applied to those interfaces. (To work with
32 * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
33 */
34#define USB_DEVICE_VENDOR_SPEC(vend, prod) \
35 .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
36 USB_DEVICE_ID_MATCH_PRODUCT | \
37 USB_DEVICE_ID_MATCH_INT_CLASS, \
38 .idVendor = vend, \
39 .idProduct = prod, \
40 .bInterfaceClass = USB_CLASS_VENDOR_SPEC
41
42/*
43 * Yamaha devices
44 */
45
46#define YAMAHA_DEVICE(id, name) { \
47 USB_DEVICE(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +010048 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -070049 .vendor_name = "Yamaha", \
50 .product_name = name, \
51 .ifnum = QUIRK_ANY_INTERFACE, \
52 .type = QUIRK_MIDI_YAMAHA \
53 } \
54}
55#define YAMAHA_INTERFACE(id, intf, name) { \
56 USB_DEVICE_VENDOR_SPEC(0x0499, id), \
Takashi Iwai86e07d32005-11-17 15:08:02 +010057 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
Linus Torvalds1da177e2005-04-16 15:20:36 -070058 .vendor_name = "Yamaha", \
59 .product_name = name, \
60 .ifnum = intf, \
61 .type = QUIRK_MIDI_YAMAHA \
62 } \
63}
64YAMAHA_DEVICE(0x1000, "UX256"),
65YAMAHA_DEVICE(0x1001, "MU1000"),
66YAMAHA_DEVICE(0x1002, "MU2000"),
67YAMAHA_DEVICE(0x1003, "MU500"),
68YAMAHA_INTERFACE(0x1004, 3, "UW500"),
69YAMAHA_DEVICE(0x1005, "MOTIF6"),
70YAMAHA_DEVICE(0x1006, "MOTIF7"),
71YAMAHA_DEVICE(0x1007, "MOTIF8"),
72YAMAHA_DEVICE(0x1008, "UX96"),
73YAMAHA_DEVICE(0x1009, "UX16"),
74YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
75YAMAHA_DEVICE(0x100c, "UC-MX"),
76YAMAHA_DEVICE(0x100d, "UC-KX"),
77YAMAHA_DEVICE(0x100e, "S08"),
78YAMAHA_DEVICE(0x100f, "CLP-150"),
79YAMAHA_DEVICE(0x1010, "CLP-170"),
80YAMAHA_DEVICE(0x1011, "P-250"),
81YAMAHA_DEVICE(0x1012, "TYROS"),
82YAMAHA_DEVICE(0x1013, "PF-500"),
83YAMAHA_DEVICE(0x1014, "S90"),
84YAMAHA_DEVICE(0x1015, "MOTIF-R"),
85YAMAHA_DEVICE(0x1017, "CVP-204"),
86YAMAHA_DEVICE(0x1018, "CVP-206"),
87YAMAHA_DEVICE(0x1019, "CVP-208"),
88YAMAHA_DEVICE(0x101a, "CVP-210"),
89YAMAHA_DEVICE(0x101b, "PSR-1100"),
90YAMAHA_DEVICE(0x101c, "PSR-2100"),
91YAMAHA_DEVICE(0x101d, "CLP-175"),
92YAMAHA_DEVICE(0x101e, "PSR-K1"),
93YAMAHA_DEVICE(0x1020, "EZ-250i"),
94YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
95YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
96YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
97YAMAHA_DEVICE(0x1024, "CVP-301"),
98YAMAHA_DEVICE(0x1025, "CVP-303"),
99YAMAHA_DEVICE(0x1026, "CVP-305"),
100YAMAHA_DEVICE(0x1027, "CVP-307"),
101YAMAHA_DEVICE(0x1028, "CVP-309"),
102YAMAHA_DEVICE(0x1029, "CVP-309GP"),
103YAMAHA_DEVICE(0x102a, "PSR-1500"),
104YAMAHA_DEVICE(0x102b, "PSR-3000"),
105YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
106YAMAHA_DEVICE(0x1030, "PSR-295/293"),
107YAMAHA_DEVICE(0x1031, "DGX-205/203"),
108YAMAHA_DEVICE(0x1032, "DGX-305"),
109YAMAHA_DEVICE(0x1033, "DGX-505"),
110YAMAHA_DEVICE(0x1034, NULL),
111YAMAHA_DEVICE(0x1035, NULL),
112YAMAHA_DEVICE(0x1036, NULL),
113YAMAHA_DEVICE(0x1037, NULL),
114YAMAHA_DEVICE(0x1038, NULL),
115YAMAHA_DEVICE(0x1039, NULL),
116YAMAHA_DEVICE(0x103a, NULL),
117YAMAHA_DEVICE(0x103b, NULL),
118YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200119YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200120YAMAHA_DEVICE(0x103e, NULL),
121YAMAHA_DEVICE(0x103f, NULL),
122YAMAHA_DEVICE(0x1040, NULL),
123YAMAHA_DEVICE(0x1041, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700124YAMAHA_DEVICE(0x2000, "DGP-7"),
125YAMAHA_DEVICE(0x2001, "DGP-5"),
126YAMAHA_DEVICE(0x2002, NULL),
127YAMAHA_DEVICE(0x5000, "CS1D"),
128YAMAHA_DEVICE(0x5001, "DSP1D"),
129YAMAHA_DEVICE(0x5002, "DME32"),
130YAMAHA_DEVICE(0x5003, "DM2000"),
131YAMAHA_DEVICE(0x5004, "02R96"),
132YAMAHA_DEVICE(0x5005, "ACU16-C"),
133YAMAHA_DEVICE(0x5006, "NHB32-C"),
134YAMAHA_DEVICE(0x5007, "DM1000"),
135YAMAHA_DEVICE(0x5008, "01V96"),
136YAMAHA_DEVICE(0x5009, "SPX2000"),
137YAMAHA_DEVICE(0x500a, "PM5D"),
138YAMAHA_DEVICE(0x500b, "DME64N"),
139YAMAHA_DEVICE(0x500c, "DME24N"),
140YAMAHA_DEVICE(0x500d, NULL),
141YAMAHA_DEVICE(0x500e, NULL),
142YAMAHA_DEVICE(0x7000, "DTX"),
143YAMAHA_DEVICE(0x7010, "UB99"),
144#undef YAMAHA_DEVICE
145#undef YAMAHA_INTERFACE
146
147/*
148 * Roland/RolandED/Edirol/BOSS devices
149 */
150{
151 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100152 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700153 .vendor_name = "Roland",
154 .product_name = "UA-100",
155 .ifnum = QUIRK_ANY_INTERFACE,
156 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100157 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700158 {
159 .ifnum = 0,
160 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
161 .data = & (const struct audioformat) {
162 .format = SNDRV_PCM_FORMAT_S16_LE,
163 .channels = 4,
164 .iface = 0,
165 .altsetting = 1,
166 .altset_idx = 1,
167 .attributes = 0,
168 .endpoint = 0x01,
169 .ep_attr = 0x09,
170 .rates = SNDRV_PCM_RATE_CONTINUOUS,
171 .rate_min = 44100,
172 .rate_max = 44100,
173 }
174 },
175 {
176 .ifnum = 1,
177 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
178 .data = & (const struct audioformat) {
179 .format = SNDRV_PCM_FORMAT_S16_LE,
180 .channels = 2,
181 .iface = 1,
182 .altsetting = 1,
183 .altset_idx = 1,
184 .attributes = EP_CS_ATTR_FILL_MAX,
185 .endpoint = 0x81,
186 .ep_attr = 0x05,
187 .rates = SNDRV_PCM_RATE_CONTINUOUS,
188 .rate_min = 44100,
189 .rate_max = 44100,
190 }
191 },
192 {
193 .ifnum = 2,
194 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100195 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196 .out_cables = 0x0007,
197 .in_cables = 0x0007
198 }
199 },
200 {
201 .ifnum = -1
202 }
203 }
204 }
205},
206{
207 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100208 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700209 .vendor_name = "EDIROL",
210 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200211 .ifnum = QUIRK_ANY_INTERFACE,
212 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100213 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200214 {
215 .ifnum = 0,
216 .type = QUIRK_IGNORE_INTERFACE
217 },
218 {
219 .ifnum = 1,
220 .type = QUIRK_IGNORE_INTERFACE
221 },
222 {
223 .ifnum = 2,
224 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100225 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200226 .out_cables = 0x000f,
227 .in_cables = 0x000f
228 }
229 },
230 {
231 .ifnum = -1
232 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700233 }
234 }
235},
236{
237 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100238 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700239 .vendor_name = "Roland",
240 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200241 .ifnum = QUIRK_ANY_INTERFACE,
242 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100243 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200244 {
245 .ifnum = 0,
246 .type = QUIRK_IGNORE_INTERFACE
247 },
248 {
249 .ifnum = 1,
250 .type = QUIRK_IGNORE_INTERFACE
251 },
252 {
253 .ifnum = 2,
254 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100255 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200256 .out_cables = 0x003f,
257 .in_cables = 0x003f
258 }
259 },
260 {
261 .ifnum = -1
262 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263 }
264 }
265},
266{
267 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100268 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269 .vendor_name = "Roland",
270 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200271 .ifnum = QUIRK_ANY_INTERFACE,
272 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100273 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200274 {
275 .ifnum = 0,
276 .type = QUIRK_IGNORE_INTERFACE
277 },
278 {
279 .ifnum = 1,
280 .type = QUIRK_IGNORE_INTERFACE
281 },
282 {
283 .ifnum = 2,
284 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100285 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200286 .out_cables = 0x0005,
287 .in_cables = 0x0005
288 }
289 },
290 {
291 .ifnum = -1
292 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700293 }
294 }
295},
296{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100297 /* Has ID 0x0099 when not in "Advanced Driver" mode.
298 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700299 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100300 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700301 .vendor_name = "EDIROL",
302 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200303 .ifnum = QUIRK_ANY_INTERFACE,
304 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100305 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200306 {
307 .ifnum = 0,
308 .type = QUIRK_IGNORE_INTERFACE
309 },
310 {
311 .ifnum = 1,
312 .type = QUIRK_IGNORE_INTERFACE
313 },
314 {
315 .ifnum = 2,
316 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100317 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200318 .out_cables = 0x0003,
319 .in_cables = 0x0003
320 }
321 },
322 {
323 .ifnum = -1
324 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700325 }
326 }
327},
328{
329 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100330 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331 .vendor_name = "Roland",
332 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200333 .ifnum = QUIRK_ANY_INTERFACE,
334 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100335 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200336 {
337 .ifnum = 0,
338 .type = QUIRK_IGNORE_INTERFACE
339 },
340 {
341 .ifnum = 1,
342 .type = QUIRK_IGNORE_INTERFACE
343 },
344 {
345 .ifnum = 2,
346 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100347 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200348 .out_cables = 0x0013,
349 .in_cables = 0x0013
350 }
351 },
352 {
353 .ifnum = -1
354 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700355 }
356 }
357},
358{
359 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100360 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700361 .vendor_name = "Roland",
362 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200363 .ifnum = QUIRK_ANY_INTERFACE,
364 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100365 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200366 {
367 .ifnum = 0,
368 .type = QUIRK_IGNORE_INTERFACE
369 },
370 {
371 .ifnum = 1,
372 .type = QUIRK_IGNORE_INTERFACE
373 },
374 {
375 .ifnum = 2,
376 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100377 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200378 .out_cables = 0x0001,
379 .in_cables = 0x0001
380 }
381 },
382 {
383 .ifnum = -1
384 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700385 }
386 }
387},
388{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100389 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700390 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100391 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700392 .vendor_name = "EDIROL",
393 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200394 .ifnum = QUIRK_ANY_INTERFACE,
395 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100396 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200397 {
398 .ifnum = 0,
399 .type = QUIRK_IGNORE_INTERFACE
400 },
401 {
402 .ifnum = 1,
403 .type = QUIRK_IGNORE_INTERFACE
404 },
405 {
406 .ifnum = 2,
407 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100408 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200409 .out_cables = 0x0001,
410 .in_cables = 0x0001
411 }
412 },
413 {
414 .ifnum = -1
415 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700416 }
417 }
418},
419{
420 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100421 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700422 .vendor_name = "Roland",
423 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200424 .ifnum = QUIRK_ANY_INTERFACE,
425 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100426 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200427 {
428 .ifnum = 0,
429 .type = QUIRK_IGNORE_INTERFACE
430 },
431 {
432 .ifnum = 1,
433 .type = QUIRK_IGNORE_INTERFACE
434 },
435 {
436 .ifnum = 2,
437 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100438 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200439 .out_cables = 0x0013,
440 .in_cables = 0x0013
441 }
442 },
443 {
444 .ifnum = -1
445 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700446 }
447 }
448},
449{
450 /* thanks to Emiliano Grilli <emillo@libero.it>
451 * for helping researching this data */
452 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100453 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700454 .vendor_name = "Roland",
455 .product_name = "SC-D70",
456 .ifnum = QUIRK_ANY_INTERFACE,
457 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100458 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700459 {
460 .ifnum = 0,
461 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
462 .data = & (const struct audioformat) {
463 .format = SNDRV_PCM_FORMAT_S24_3LE,
464 .channels = 2,
465 .iface = 0,
466 .altsetting = 1,
467 .altset_idx = 1,
468 .attributes = 0,
469 .endpoint = 0x01,
470 .ep_attr = 0x01,
471 .rates = SNDRV_PCM_RATE_CONTINUOUS,
472 .rate_min = 44100,
473 .rate_max = 44100,
474 }
475 },
476 {
477 .ifnum = 1,
478 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
479 .data = & (const struct audioformat) {
480 .format = SNDRV_PCM_FORMAT_S24_3LE,
481 .channels = 2,
482 .iface = 1,
483 .altsetting = 1,
484 .altset_idx = 1,
485 .attributes = 0,
486 .endpoint = 0x81,
487 .ep_attr = 0x01,
488 .rates = SNDRV_PCM_RATE_CONTINUOUS,
489 .rate_min = 44100,
490 .rate_max = 44100,
491 }
492 },
493 {
494 .ifnum = 2,
495 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100496 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700497 .out_cables = 0x0007,
498 .in_cables = 0x0007
499 }
500 },
501 {
502 .ifnum = -1
503 }
504 }
505 }
506},
507{ /*
508 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
509 * If the advanced mode switch at the back of the unit is off, the
510 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
511 * but offers only 16-bit PCM.
512 * In advanced mode, the UA-5 will output S24_3LE samples (two
513 * channels) at the rate indicated on the front switch, including
514 * the 96kHz sample rate.
515 */
516 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100517 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700518 .vendor_name = "EDIROL",
519 .product_name = "UA-5",
520 .ifnum = QUIRK_ANY_INTERFACE,
521 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100522 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700523 {
524 .ifnum = 1,
525 .type = QUIRK_AUDIO_STANDARD_INTERFACE
526 },
527 {
528 .ifnum = 2,
529 .type = QUIRK_AUDIO_STANDARD_INTERFACE
530 },
531 {
532 .ifnum = -1
533 }
534 }
535 }
536},
537{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200538 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700539 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100540 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700541 .vendor_name = "Roland",
542 .product_name = "XV-5050",
543 .ifnum = 0,
544 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100545 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700546 .out_cables = 0x0001,
547 .in_cables = 0x0001
548 }
549 }
550},
551{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200552 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700553 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100554 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700555 .vendor_name = "EDIROL",
556 .product_name = "UM-880",
557 .ifnum = 0,
558 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100559 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700560 .out_cables = 0x01ff,
561 .in_cables = 0x01ff
562 }
563 }
564},
565{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200566 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700567 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100568 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700569 .vendor_name = "EDIROL",
570 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200571 .ifnum = QUIRK_ANY_INTERFACE,
572 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100573 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200574 {
575 .ifnum = 0,
576 .type = QUIRK_IGNORE_INTERFACE
577 },
578 {
579 .ifnum = 1,
580 .type = QUIRK_IGNORE_INTERFACE
581 },
582 {
583 .ifnum = 2,
584 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100585 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200586 .out_cables = 0x000f,
587 .in_cables = 0x000f
588 }
589 },
590 {
591 .ifnum = -1
592 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700593 }
594 }
595},
596{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200597 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700598 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100599 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700600 .vendor_name = "Roland",
601 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200602 .ifnum = QUIRK_ANY_INTERFACE,
603 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100604 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200605 {
606 .ifnum = 0,
607 .type = QUIRK_IGNORE_INTERFACE
608 },
609 {
610 .ifnum = 1,
611 .type = QUIRK_IGNORE_INTERFACE
612 },
613 {
614 .ifnum = 2,
615 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100616 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200617 .out_cables = 0x0001,
618 .in_cables = 0x0001
619 }
620 },
621 {
622 .ifnum = -1
623 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700624 }
625 }
626},
627{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200628 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700629 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100630 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700631 .vendor_name = "Roland",
632 .product_name = "V-SYNTH",
633 .ifnum = 0,
634 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100635 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700636 .out_cables = 0x0001,
637 .in_cables = 0x0001
638 }
639 }
640},
641{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200642 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100644 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700645 .vendor_name = "EDIROL",
646 .product_name = "UM-550",
647 .ifnum = 0,
648 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100649 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 .out_cables = 0x003f,
651 .in_cables = 0x003f
652 }
653 }
654},
655{
656 /*
657 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
658 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
659 * and no MIDI.
660 */
661 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100662 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700663 .vendor_name = "EDIROL",
664 .product_name = "UA-20",
665 .ifnum = QUIRK_ANY_INTERFACE,
666 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100667 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700668 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100669 .ifnum = 0,
670 .type = QUIRK_IGNORE_INTERFACE
671 },
672 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700673 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100674 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
675 .data = & (const struct audioformat) {
676 .format = SNDRV_PCM_FORMAT_S24_3LE,
677 .channels = 2,
678 .iface = 1,
679 .altsetting = 1,
680 .altset_idx = 1,
681 .attributes = 0,
682 .endpoint = 0x01,
683 .ep_attr = 0x01,
684 .rates = SNDRV_PCM_RATE_CONTINUOUS,
685 .rate_min = 44100,
686 .rate_max = 44100,
687 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700688 },
689 {
690 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100691 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
692 .data = & (const struct audioformat) {
693 .format = SNDRV_PCM_FORMAT_S24_3LE,
694 .channels = 2,
695 .iface = 2,
696 .altsetting = 1,
697 .altset_idx = 1,
698 .attributes = 0,
699 .endpoint = 0x82,
700 .ep_attr = 0x01,
701 .rates = SNDRV_PCM_RATE_CONTINUOUS,
702 .rate_min = 44100,
703 .rate_max = 44100,
704 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700705 },
706 {
707 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100708 .type = QUIRK_MIDI_FIXED_ENDPOINT,
709 .data = & (const struct snd_usb_midi_endpoint_info) {
710 .out_cables = 0x0001,
711 .in_cables = 0x0001
712 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700713 },
714 {
715 .ifnum = -1
716 }
717 }
718 }
719},
720{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200721 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700722 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100723 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700724 .vendor_name = "EDIROL",
725 .product_name = "SD-20",
726 .ifnum = 0,
727 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100728 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700729 .out_cables = 0x0003,
730 .in_cables = 0x0007
731 }
732 }
733},
734{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200735 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700736 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100737 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700738 .vendor_name = "EDIROL",
739 .product_name = "SD-80",
740 .ifnum = 0,
741 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100742 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700743 .out_cables = 0x000f,
744 .in_cables = 0x000f
745 }
746 }
747},
748{ /*
749 * This quirk is for the "Advanced" modes of the Edirol UA-700.
750 * If the sample format switch is not in an advanced setting, the
751 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
752 * but offers only 16-bit PCM and no MIDI.
753 */
754 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100755 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700756 .vendor_name = "EDIROL",
757 .product_name = "UA-700",
758 .ifnum = QUIRK_ANY_INTERFACE,
759 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100760 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700761 {
762 .ifnum = 1,
763 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
764 },
765 {
766 .ifnum = 2,
767 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
768 },
769 {
770 .ifnum = 3,
771 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
772 },
773 {
774 .ifnum = -1
775 }
776 }
777 }
778},
779{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200780 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700781 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100782 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700783 .vendor_name = "Roland",
784 .product_name = "XV-2020",
785 .ifnum = 0,
786 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100787 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700788 .out_cables = 0x0001,
789 .in_cables = 0x0001
790 }
791 }
792},
793{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200794 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700795 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100796 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700797 .vendor_name = "Roland",
798 .product_name = "VariOS",
799 .ifnum = 0,
800 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100801 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700802 .out_cables = 0x0007,
803 .in_cables = 0x0007
804 }
805 }
806},
807{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200808 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100810 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700811 .vendor_name = "EDIROL",
812 .product_name = "PCR",
813 .ifnum = 0,
814 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100815 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700816 .out_cables = 0x0003,
817 .in_cables = 0x0007
818 }
819 }
820},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200821 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700822{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200823 /*
824 * Has ID 0x0038 when not in "Advanced Driver" mode;
825 * later revisions use IDs 0x0054 and 0x00a2.
826 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700827 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100828 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700829 .vendor_name = "Roland",
830 .product_name = "Digital Piano",
831 .ifnum = 0,
832 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100833 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700834 .out_cables = 0x0001,
835 .in_cables = 0x0001
836 }
837 }
838},
839{
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200840 /*
841 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
842 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
843 * and no MIDI.
844 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700845 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100846 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700847 .vendor_name = "BOSS",
848 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200849 .ifnum = QUIRK_ANY_INTERFACE,
850 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100851 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200852 {
853 .ifnum = 1,
854 .type = QUIRK_AUDIO_STANDARD_INTERFACE
855 },
856 {
857 .ifnum = 2,
858 .type = QUIRK_AUDIO_STANDARD_INTERFACE
859 },
860 {
861 .ifnum = 3,
862 .type = QUIRK_MIDI_STANDARD_INTERFACE
863 },
864 {
865 .ifnum = -1
866 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700867 }
868 }
869},
870{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200871 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700872 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100873 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700874 .vendor_name = "Roland",
875 .product_name = "GI-20",
876 .ifnum = 0,
877 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100878 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700879 .out_cables = 0x0001,
880 .in_cables = 0x0001
881 }
882 }
883},
884{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200885 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700886 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100887 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700888 .vendor_name = "Roland",
889 .product_name = "RS-70",
890 .ifnum = 0,
891 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100892 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893 .out_cables = 0x0001,
894 .in_cables = 0x0001
895 }
896 }
897},
898{
899 USB_DEVICE(0x0582, 0x0044),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100900 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700901 .vendor_name = "Roland",
902 .product_name = "UA-1000",
903 .ifnum = QUIRK_ANY_INTERFACE,
904 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100905 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700906 {
907 .ifnum = 1,
908 .type = QUIRK_AUDIO_EDIROL_UA1000
909 },
910 {
911 .ifnum = 2,
912 .type = QUIRK_AUDIO_EDIROL_UA1000
913 },
914 {
915 .ifnum = 3,
916 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100917 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700918 .out_cables = 0x0003,
919 .in_cables = 0x0003
920 }
921 },
922 {
923 .ifnum = -1
924 }
925 }
926 }
927},
928{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200929 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700930 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100931 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700932 .vendor_name = "EDIROL",
933 .product_name = "UR-80",
934 .ifnum = 0,
935 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100936 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700937 .out_cables = 0x0003,
938 .in_cables = 0x0007
939 }
940 }
941},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200942 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700943{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200944 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700945 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100946 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700947 .vendor_name = "EDIROL",
948 .product_name = "PCR-A",
949 .ifnum = 0,
950 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100951 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700952 .out_cables = 0x0003,
953 .in_cables = 0x0007
954 }
955 }
956},
957{
958 /*
959 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
960 * is standard compliant, but has only 16-bit PCM.
961 */
962 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100963 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700964 .vendor_name = "EDIROL",
965 .product_name = "UA-3FX",
966 .ifnum = QUIRK_ANY_INTERFACE,
967 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100968 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700969 {
970 .ifnum = 1,
971 .type = QUIRK_AUDIO_STANDARD_INTERFACE
972 },
973 {
974 .ifnum = 2,
975 .type = QUIRK_AUDIO_STANDARD_INTERFACE
976 },
977 {
978 .ifnum = -1
979 }
980 }
981 }
982},
983{
984 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100985 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700986 .vendor_name = "EDIROL",
987 .product_name = "UM-1SX",
988 .ifnum = 0,
989 .type = QUIRK_MIDI_STANDARD_INTERFACE
990 }
991},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200992 /* TODO: add Roland EXR support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700993{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200994 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700995 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100996 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700997 .vendor_name = "EDIROL",
998 .product_name = "PCR-1",
999 .ifnum = 0,
1000 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001001 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001002 .out_cables = 0x0001,
1003 .in_cables = 0x0003
1004 }
1005 }
1006},
1007{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001008 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001009 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001010 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001011 .vendor_name = "Roland",
1012 .product_name = "SP-606",
1013 .ifnum = 3,
1014 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001015 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001016 .out_cables = 0x0001,
1017 .in_cables = 0x0001
1018 }
1019 }
1020},
1021{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001022 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001023 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001024 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001025 .vendor_name = "Roland",
1026 .product_name = "FANTOM-X",
1027 .ifnum = 0,
1028 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001029 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001030 .out_cables = 0x0001,
1031 .in_cables = 0x0001
1032 }
1033 }
1034},
1035{ /*
1036 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1037 * If the switch is not in an advanced setting, the UA-25 has
1038 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1039 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1040 */
1041 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001042 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001043 .vendor_name = "EDIROL",
1044 .product_name = "UA-25",
1045 .ifnum = QUIRK_ANY_INTERFACE,
1046 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001047 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001048 {
1049 .ifnum = 0,
1050 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1051 },
1052 {
1053 .ifnum = 1,
1054 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1055 },
1056 {
1057 .ifnum = 2,
1058 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1059 },
1060 {
1061 .ifnum = -1
1062 }
1063 }
1064 }
1065},
1066{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001067 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001068 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001069 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001070 .vendor_name = "BOSS",
1071 .product_name = "DR-880",
1072 .ifnum = 0,
1073 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001074 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001075 .out_cables = 0x0001,
1076 .in_cables = 0x0001
1077 }
1078 }
1079},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001080{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001081 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001082 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001083 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001084 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001085 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001086 .ifnum = 0,
1087 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001088 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001089 .out_cables = 0x0003,
1090 .in_cables = 0x0003
1091 }
1092 }
1093},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001094 /* TODO: add Edirol UA-101 support */
Clemens Ladischcdca8812006-01-18 08:53:32 +01001095{
1096 /* has ID 0x0081 when not in "Advanced Driver" mode */
1097 USB_DEVICE(0x0582, 0x0080),
1098 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1099 .vendor_name = "Roland",
1100 .product_name = "G-70",
1101 .ifnum = 0,
1102 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1103 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001104 .out_cables = 0x0001,
1105 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001106 }
1107 }
1108},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001109 /* TODO: add Roland V-SYNTH XT support */
1110 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001111{
1112 /* has ID 0x008c when not in "Advanced Driver" mode */
1113 USB_DEVICE(0x0582, 0x008b),
1114 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1115 .vendor_name = "EDIROL",
1116 .product_name = "PC-50",
1117 .ifnum = 0,
1118 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1119 .data = & (const struct snd_usb_midi_endpoint_info) {
1120 .out_cables = 0x0001,
1121 .in_cables = 0x0001
1122 }
1123 }
1124},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001125 /* TODO: add Edirol PC-80 support */
1126 /* TODO: add Edirol UA-1EX support */
1127{
1128 USB_DEVICE(0x0582, 0x009a),
1129 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1130 .vendor_name = "EDIROL",
1131 .product_name = "UM-3EX",
1132 .ifnum = 0,
1133 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1134 .data = & (const struct snd_usb_midi_endpoint_info) {
1135 .out_cables = 0x000f,
1136 .in_cables = 0x000f
1137 }
1138 }
1139},
1140 /* TODO: add Edirol MD-P1 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001141
Clemens Ladischa25f1752005-10-05 13:23:19 +02001142/* Guillemot devices */
1143{
1144 /*
1145 * This is for the "Windows Edition" where the external MIDI ports are
1146 * the only MIDI ports; the control data is reported through HID
1147 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1148 * compliant USB MIDI ports for external MIDI and controls.
1149 */
1150 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001151 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001152 .vendor_name = "Hercules",
1153 .product_name = "DJ Console (WE)",
1154 .ifnum = 4,
1155 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001156 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001157 .out_cables = 0x0001,
1158 .in_cables = 0x0001
1159 }
1160 }
1161},
1162
Linus Torvalds1da177e2005-04-16 15:20:36 -07001163/* Midiman/M-Audio devices */
1164{
1165 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001166 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001167 .vendor_name = "M-Audio",
1168 .product_name = "MidiSport 2x2",
1169 .ifnum = QUIRK_ANY_INTERFACE,
1170 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001171 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001172 .out_cables = 0x0003,
1173 .in_cables = 0x0003
1174 }
1175 }
1176},
1177{
1178 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001179 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001180 .vendor_name = "M-Audio",
1181 .product_name = "MidiSport 1x1",
1182 .ifnum = QUIRK_ANY_INTERFACE,
1183 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001184 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001185 .out_cables = 0x0001,
1186 .in_cables = 0x0001
1187 }
1188 }
1189},
1190{
1191 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001192 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001193 .vendor_name = "M-Audio",
1194 .product_name = "Keystation",
1195 .ifnum = QUIRK_ANY_INTERFACE,
1196 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001197 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001198 .out_cables = 0x0001,
1199 .in_cables = 0x0001
1200 }
1201 }
1202},
1203{
1204 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001205 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001206 .vendor_name = "M-Audio",
1207 .product_name = "MidiSport 4x4",
1208 .ifnum = QUIRK_ANY_INTERFACE,
1209 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001210 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001211 .out_cables = 0x000f,
1212 .in_cables = 0x000f
1213 }
1214 }
1215},
1216{
1217 /*
1218 * For hardware revision 1.05; in the later revisions (1.10 and
1219 * 1.21), 0x1031 is the ID for the device without firmware.
1220 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1221 */
1222 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001223 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001224 .vendor_name = "M-Audio",
1225 .product_name = "MidiSport 8x8",
1226 .ifnum = QUIRK_ANY_INTERFACE,
1227 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001228 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001229 .out_cables = 0x01ff,
1230 .in_cables = 0x01ff
1231 }
1232 }
1233},
1234{
1235 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001236 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001237 .vendor_name = "M-Audio",
1238 .product_name = "MidiSport 8x8",
1239 .ifnum = QUIRK_ANY_INTERFACE,
1240 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001241 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001242 .out_cables = 0x01ff,
1243 .in_cables = 0x01ff
1244 }
1245 }
1246},
1247{
1248 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001249 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001250 .vendor_name = "M-Audio",
1251 .product_name = "MidiSport 2x4",
1252 .ifnum = QUIRK_ANY_INTERFACE,
1253 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001254 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001255 .out_cables = 0x000f,
1256 .in_cables = 0x0003
1257 }
1258 }
1259},
1260{
1261 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001262 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001263 .vendor_name = "M-Audio",
1264 .product_name = "Quattro",
1265 .ifnum = QUIRK_ANY_INTERFACE,
1266 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001267 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001268 /*
1269 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1270 * and share endpoints with the other interfaces.
1271 * Ignore them. The other interfaces can do 24 bits,
1272 * but captured samples are big-endian (see usbaudio.c).
1273 */
1274 {
1275 .ifnum = 0,
1276 .type = QUIRK_IGNORE_INTERFACE
1277 },
1278 {
1279 .ifnum = 1,
1280 .type = QUIRK_IGNORE_INTERFACE
1281 },
1282 {
1283 .ifnum = 2,
1284 .type = QUIRK_IGNORE_INTERFACE
1285 },
1286 {
1287 .ifnum = 3,
1288 .type = QUIRK_IGNORE_INTERFACE
1289 },
1290 {
1291 .ifnum = 4,
1292 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1293 },
1294 {
1295 .ifnum = 5,
1296 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1297 },
1298 {
1299 .ifnum = 6,
1300 .type = QUIRK_IGNORE_INTERFACE
1301 },
1302 {
1303 .ifnum = 7,
1304 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1305 },
1306 {
1307 .ifnum = 8,
1308 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1309 },
1310 {
1311 .ifnum = 9,
1312 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001313 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001314 .out_cables = 0x0001,
1315 .in_cables = 0x0001
1316 }
1317 },
1318 {
1319 .ifnum = -1
1320 }
1321 }
1322 }
1323},
1324{
1325 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001326 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001327 .vendor_name = "M-Audio",
1328 .product_name = "AudioPhile",
1329 .ifnum = 6,
1330 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001331 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001332 .out_cables = 0x0001,
1333 .in_cables = 0x0001
1334 }
1335 }
1336},
1337{
1338 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001339 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001340 .vendor_name = "M-Audio",
1341 .product_name = "Ozone",
1342 .ifnum = 3,
1343 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001344 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001345 .out_cables = 0x0001,
1346 .in_cables = 0x0001
1347 }
1348 }
1349},
1350{
1351 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001352 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001353 .vendor_name = "M-Audio",
1354 .product_name = "OmniStudio",
1355 .ifnum = QUIRK_ANY_INTERFACE,
1356 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001357 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001358 {
1359 .ifnum = 0,
1360 .type = QUIRK_IGNORE_INTERFACE
1361 },
1362 {
1363 .ifnum = 1,
1364 .type = QUIRK_IGNORE_INTERFACE
1365 },
1366 {
1367 .ifnum = 2,
1368 .type = QUIRK_IGNORE_INTERFACE
1369 },
1370 {
1371 .ifnum = 3,
1372 .type = QUIRK_IGNORE_INTERFACE
1373 },
1374 {
1375 .ifnum = 4,
1376 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1377 },
1378 {
1379 .ifnum = 5,
1380 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1381 },
1382 {
1383 .ifnum = 6,
1384 .type = QUIRK_IGNORE_INTERFACE
1385 },
1386 {
1387 .ifnum = 7,
1388 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1389 },
1390 {
1391 .ifnum = 8,
1392 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1393 },
1394 {
1395 .ifnum = 9,
1396 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001397 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001398 .out_cables = 0x0001,
1399 .in_cables = 0x0001
1400 }
1401 },
1402 {
1403 .ifnum = -1
1404 }
1405 }
1406 }
1407},
1408
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001409/* Casio devices */
1410{
1411 USB_DEVICE(0x07cf, 0x6802),
1412 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1413 .vendor_name = "Casio",
1414 .product_name = "AP-80R",
1415 .ifnum = 0,
1416 .type = QUIRK_MIDI_YAMAHA
1417 }
1418},
1419
Linus Torvalds1da177e2005-04-16 15:20:36 -07001420/* Mark of the Unicorn devices */
1421{
1422 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02001423 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1424 USB_DEVICE_ID_MATCH_PRODUCT |
1425 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1426 .idVendor = 0x07fd,
1427 .idProduct = 0x0001,
1428 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001429 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001430 .vendor_name = "MOTU",
1431 .product_name = "Fastlane",
1432 .ifnum = QUIRK_ANY_INTERFACE,
1433 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001434 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001435 {
1436 .ifnum = 0,
Clemens Ladisch6155aff2005-07-04 09:20:42 +02001437 .type = QUIRK_MIDI_RAW
Linus Torvalds1da177e2005-04-16 15:20:36 -07001438 },
1439 {
1440 .ifnum = 1,
1441 .type = QUIRK_IGNORE_INTERFACE
1442 },
1443 {
1444 .ifnum = -1
1445 }
1446 }
1447 }
1448},
1449
1450{
1451 /* Creative Sound Blaster MP3+ */
1452 USB_DEVICE(0x041e, 0x3010),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001453 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001454 .vendor_name = "Creative Labs",
1455 .product_name = "Sound Blaster MP3+",
1456 .ifnum = QUIRK_NO_INTERFACE
1457 }
1458
1459},
1460
1461/* Emagic devices */
1462{
1463 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001464 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001465 .vendor_name = "Emagic",
1466 /* .product_name = "Unitor8", */
1467 .ifnum = 2,
1468 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001469 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001470 .out_cables = 0x80ff,
1471 .in_cables = 0x80ff
1472 }
1473 }
1474},
1475{
1476 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001477 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001478 .vendor_name = "Emagic",
1479 /* .product_name = "AMT8", */
1480 .ifnum = 2,
1481 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001482 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001483 .out_cables = 0x80ff,
1484 .in_cables = 0x80ff
1485 }
1486 }
1487},
1488{
1489 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001490 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001491 .vendor_name = "Emagic",
1492 /* .product_name = "MT4", */
1493 .ifnum = 2,
1494 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001495 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001496 .out_cables = 0x800f,
1497 .in_cables = 0x8003
1498 }
1499 }
1500},
1501
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001502/* TerraTec devices */
1503{
1504 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001505 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001506 .vendor_name = "TerraTec",
1507 .product_name = "PHASE 26",
1508 .ifnum = 3,
1509 .type = QUIRK_MIDI_STANDARD_INTERFACE
1510 }
1511},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001512{
1513 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001514 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001515 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001516 .product_name = "PHASE 26",
1517 .ifnum = 3,
1518 .type = QUIRK_MIDI_STANDARD_INTERFACE
1519 }
1520},
Clemens Ladischb2b82292006-02-08 12:38:23 +01001521{
1522 USB_DEVICE(0x0ccd, 0x0035),
1523 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1524 .vendor_name = "Miditech",
1525 .product_name = "Play'n Roll",
1526 .ifnum = 0,
1527 .type = QUIRK_MIDI_CME
1528 }
1529},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001530
1531/* Novation EMS devices */
1532{
1533 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001534 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001535 .vendor_name = "Novation",
1536 .product_name = "ReMOTE Audio/XStation",
1537 .ifnum = 4,
1538 .type = QUIRK_MIDI_NOVATION
1539 }
1540},
1541{
1542 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001543 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001544 .vendor_name = "Novation",
1545 .product_name = "Speedio",
1546 .ifnum = 3,
1547 .type = QUIRK_MIDI_NOVATION
1548 }
1549},
1550{
1551 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001552 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001553 .vendor_name = "Novation",
1554 .product_name = "ReMOTE25",
1555 .ifnum = 0,
1556 .type = QUIRK_MIDI_NOVATION
1557 }
1558},
1559
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001560/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001561{
Clemens Ladischf38275f2005-07-25 16:17:29 +02001562 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001563 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02001564 .vendor_name = "Miditech",
1565 .product_name = "Midistart-2",
1566 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001567 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02001568 }
1569},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001570
1571/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02001572{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001573 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02001574 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001575 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02001576 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001577 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02001578 }
1579},
1580
1581{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001582 /*
1583 * Some USB MIDI devices don't have an audio control interface,
1584 * so we have to grab MIDI streaming interfaces here.
1585 */
1586 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
1587 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
1588 .bInterfaceClass = USB_CLASS_AUDIO,
1589 .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001590 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001591 .ifnum = QUIRK_ANY_INTERFACE,
1592 .type = QUIRK_MIDI_STANDARD_INTERFACE
1593 }
1594},
1595
1596#undef USB_DEVICE_VENDOR_SPEC