blob: 25b4ab4f61e7299d1eda8dc84b5eb1b47c2f17fd [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"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +010085YAMAHA_DEVICE(0x1016, "MDP-5"),
Linus Torvalds1da177e2005-04-16 15:20:36 -070086YAMAHA_DEVICE(0x1017, "CVP-204"),
87YAMAHA_DEVICE(0x1018, "CVP-206"),
88YAMAHA_DEVICE(0x1019, "CVP-208"),
89YAMAHA_DEVICE(0x101a, "CVP-210"),
90YAMAHA_DEVICE(0x101b, "PSR-1100"),
91YAMAHA_DEVICE(0x101c, "PSR-2100"),
92YAMAHA_DEVICE(0x101d, "CLP-175"),
93YAMAHA_DEVICE(0x101e, "PSR-K1"),
Clemens Ladisch4ccb4a42006-03-15 12:24:19 +010094YAMAHA_DEVICE(0x101f, "EZ-J24"),
Linus Torvalds1da177e2005-04-16 15:20:36 -070095YAMAHA_DEVICE(0x1020, "EZ-250i"),
96YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
97YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
98YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
99YAMAHA_DEVICE(0x1024, "CVP-301"),
100YAMAHA_DEVICE(0x1025, "CVP-303"),
101YAMAHA_DEVICE(0x1026, "CVP-305"),
102YAMAHA_DEVICE(0x1027, "CVP-307"),
103YAMAHA_DEVICE(0x1028, "CVP-309"),
104YAMAHA_DEVICE(0x1029, "CVP-309GP"),
105YAMAHA_DEVICE(0x102a, "PSR-1500"),
106YAMAHA_DEVICE(0x102b, "PSR-3000"),
107YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
108YAMAHA_DEVICE(0x1030, "PSR-295/293"),
109YAMAHA_DEVICE(0x1031, "DGX-205/203"),
110YAMAHA_DEVICE(0x1032, "DGX-305"),
111YAMAHA_DEVICE(0x1033, "DGX-505"),
112YAMAHA_DEVICE(0x1034, NULL),
113YAMAHA_DEVICE(0x1035, NULL),
114YAMAHA_DEVICE(0x1036, NULL),
115YAMAHA_DEVICE(0x1037, NULL),
116YAMAHA_DEVICE(0x1038, NULL),
117YAMAHA_DEVICE(0x1039, NULL),
118YAMAHA_DEVICE(0x103a, NULL),
119YAMAHA_DEVICE(0x103b, NULL),
120YAMAHA_DEVICE(0x103c, NULL),
Clemens Ladisch0ac2ac02005-07-01 16:19:39 +0200121YAMAHA_DEVICE(0x103d, NULL),
Clemens Ladischf542fda2005-09-20 09:06:36 +0200122YAMAHA_DEVICE(0x103e, NULL),
123YAMAHA_DEVICE(0x103f, NULL),
124YAMAHA_DEVICE(0x1040, NULL),
125YAMAHA_DEVICE(0x1041, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200126YAMAHA_DEVICE(0x1042, NULL),
127YAMAHA_DEVICE(0x1043, NULL),
128YAMAHA_DEVICE(0x1044, NULL),
129YAMAHA_DEVICE(0x1045, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700130YAMAHA_DEVICE(0x2000, "DGP-7"),
131YAMAHA_DEVICE(0x2001, "DGP-5"),
132YAMAHA_DEVICE(0x2002, NULL),
133YAMAHA_DEVICE(0x5000, "CS1D"),
134YAMAHA_DEVICE(0x5001, "DSP1D"),
135YAMAHA_DEVICE(0x5002, "DME32"),
136YAMAHA_DEVICE(0x5003, "DM2000"),
137YAMAHA_DEVICE(0x5004, "02R96"),
138YAMAHA_DEVICE(0x5005, "ACU16-C"),
139YAMAHA_DEVICE(0x5006, "NHB32-C"),
140YAMAHA_DEVICE(0x5007, "DM1000"),
141YAMAHA_DEVICE(0x5008, "01V96"),
142YAMAHA_DEVICE(0x5009, "SPX2000"),
143YAMAHA_DEVICE(0x500a, "PM5D"),
144YAMAHA_DEVICE(0x500b, "DME64N"),
145YAMAHA_DEVICE(0x500c, "DME24N"),
146YAMAHA_DEVICE(0x500d, NULL),
147YAMAHA_DEVICE(0x500e, NULL),
Clemens Ladischf1265392006-07-21 10:46:18 +0200148YAMAHA_DEVICE(0x500f, NULL),
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149YAMAHA_DEVICE(0x7000, "DTX"),
150YAMAHA_DEVICE(0x7010, "UB99"),
151#undef YAMAHA_DEVICE
152#undef YAMAHA_INTERFACE
153
154/*
155 * Roland/RolandED/Edirol/BOSS devices
156 */
157{
158 USB_DEVICE(0x0582, 0x0000),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100159 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160 .vendor_name = "Roland",
161 .product_name = "UA-100",
162 .ifnum = QUIRK_ANY_INTERFACE,
163 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100164 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165 {
166 .ifnum = 0,
167 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
168 .data = & (const struct audioformat) {
169 .format = SNDRV_PCM_FORMAT_S16_LE,
170 .channels = 4,
171 .iface = 0,
172 .altsetting = 1,
173 .altset_idx = 1,
174 .attributes = 0,
175 .endpoint = 0x01,
176 .ep_attr = 0x09,
177 .rates = SNDRV_PCM_RATE_CONTINUOUS,
178 .rate_min = 44100,
179 .rate_max = 44100,
180 }
181 },
182 {
183 .ifnum = 1,
184 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
185 .data = & (const struct audioformat) {
186 .format = SNDRV_PCM_FORMAT_S16_LE,
187 .channels = 2,
188 .iface = 1,
189 .altsetting = 1,
190 .altset_idx = 1,
191 .attributes = EP_CS_ATTR_FILL_MAX,
192 .endpoint = 0x81,
193 .ep_attr = 0x05,
194 .rates = SNDRV_PCM_RATE_CONTINUOUS,
195 .rate_min = 44100,
196 .rate_max = 44100,
197 }
198 },
199 {
200 .ifnum = 2,
201 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100202 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700203 .out_cables = 0x0007,
204 .in_cables = 0x0007
205 }
206 },
207 {
208 .ifnum = -1
209 }
210 }
211 }
212},
213{
214 USB_DEVICE(0x0582, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100215 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700216 .vendor_name = "EDIROL",
217 .product_name = "UM-4",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200218 .ifnum = QUIRK_ANY_INTERFACE,
219 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100220 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200221 {
222 .ifnum = 0,
223 .type = QUIRK_IGNORE_INTERFACE
224 },
225 {
226 .ifnum = 1,
227 .type = QUIRK_IGNORE_INTERFACE
228 },
229 {
230 .ifnum = 2,
231 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100232 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200233 .out_cables = 0x000f,
234 .in_cables = 0x000f
235 }
236 },
237 {
238 .ifnum = -1
239 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240 }
241 }
242},
243{
244 USB_DEVICE(0x0582, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100245 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700246 .vendor_name = "Roland",
247 .product_name = "SC-8850",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200248 .ifnum = QUIRK_ANY_INTERFACE,
249 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100250 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200251 {
252 .ifnum = 0,
253 .type = QUIRK_IGNORE_INTERFACE
254 },
255 {
256 .ifnum = 1,
257 .type = QUIRK_IGNORE_INTERFACE
258 },
259 {
260 .ifnum = 2,
261 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100262 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200263 .out_cables = 0x003f,
264 .in_cables = 0x003f
265 }
266 },
267 {
268 .ifnum = -1
269 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700270 }
271 }
272},
273{
274 USB_DEVICE(0x0582, 0x0004),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100275 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700276 .vendor_name = "Roland",
277 .product_name = "U-8",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200278 .ifnum = QUIRK_ANY_INTERFACE,
279 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100280 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200281 {
282 .ifnum = 0,
283 .type = QUIRK_IGNORE_INTERFACE
284 },
285 {
286 .ifnum = 1,
287 .type = QUIRK_IGNORE_INTERFACE
288 },
289 {
290 .ifnum = 2,
291 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100292 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200293 .out_cables = 0x0005,
294 .in_cables = 0x0005
295 }
296 },
297 {
298 .ifnum = -1
299 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700300 }
301 }
302},
303{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100304 /* Has ID 0x0099 when not in "Advanced Driver" mode.
305 * The UM-2EX has only one input, but we cannot detect this. */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700306 USB_DEVICE(0x0582, 0x0005),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100307 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308 .vendor_name = "EDIROL",
309 .product_name = "UM-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200310 .ifnum = QUIRK_ANY_INTERFACE,
311 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100312 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200313 {
314 .ifnum = 0,
315 .type = QUIRK_IGNORE_INTERFACE
316 },
317 {
318 .ifnum = 1,
319 .type = QUIRK_IGNORE_INTERFACE
320 },
321 {
322 .ifnum = 2,
323 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100324 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200325 .out_cables = 0x0003,
326 .in_cables = 0x0003
327 }
328 },
329 {
330 .ifnum = -1
331 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700332 }
333 }
334},
335{
336 USB_DEVICE(0x0582, 0x0007),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100337 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338 .vendor_name = "Roland",
339 .product_name = "SC-8820",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200340 .ifnum = QUIRK_ANY_INTERFACE,
341 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100342 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200343 {
344 .ifnum = 0,
345 .type = QUIRK_IGNORE_INTERFACE
346 },
347 {
348 .ifnum = 1,
349 .type = QUIRK_IGNORE_INTERFACE
350 },
351 {
352 .ifnum = 2,
353 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100354 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200355 .out_cables = 0x0013,
356 .in_cables = 0x0013
357 }
358 },
359 {
360 .ifnum = -1
361 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700362 }
363 }
364},
365{
366 USB_DEVICE(0x0582, 0x0008),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100367 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700368 .vendor_name = "Roland",
369 .product_name = "PC-300",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200370 .ifnum = QUIRK_ANY_INTERFACE,
371 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100372 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200373 {
374 .ifnum = 0,
375 .type = QUIRK_IGNORE_INTERFACE
376 },
377 {
378 .ifnum = 1,
379 .type = QUIRK_IGNORE_INTERFACE
380 },
381 {
382 .ifnum = 2,
383 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100384 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200385 .out_cables = 0x0001,
386 .in_cables = 0x0001
387 }
388 },
389 {
390 .ifnum = -1
391 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700392 }
393 }
394},
395{
Clemens Ladisch119c4ff2006-01-19 08:25:19 +0100396 /* has ID 0x009d when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397 USB_DEVICE(0x0582, 0x0009),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100398 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700399 .vendor_name = "EDIROL",
400 .product_name = "UM-1",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200401 .ifnum = QUIRK_ANY_INTERFACE,
402 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100403 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200404 {
405 .ifnum = 0,
406 .type = QUIRK_IGNORE_INTERFACE
407 },
408 {
409 .ifnum = 1,
410 .type = QUIRK_IGNORE_INTERFACE
411 },
412 {
413 .ifnum = 2,
414 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100415 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200416 .out_cables = 0x0001,
417 .in_cables = 0x0001
418 }
419 },
420 {
421 .ifnum = -1
422 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700423 }
424 }
425},
426{
427 USB_DEVICE(0x0582, 0x000b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100428 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700429 .vendor_name = "Roland",
430 .product_name = "SK-500",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200431 .ifnum = QUIRK_ANY_INTERFACE,
432 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100433 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200434 {
435 .ifnum = 0,
436 .type = QUIRK_IGNORE_INTERFACE
437 },
438 {
439 .ifnum = 1,
440 .type = QUIRK_IGNORE_INTERFACE
441 },
442 {
443 .ifnum = 2,
444 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100445 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200446 .out_cables = 0x0013,
447 .in_cables = 0x0013
448 }
449 },
450 {
451 .ifnum = -1
452 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700453 }
454 }
455},
456{
457 /* thanks to Emiliano Grilli <emillo@libero.it>
458 * for helping researching this data */
459 USB_DEVICE(0x0582, 0x000c),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100460 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700461 .vendor_name = "Roland",
462 .product_name = "SC-D70",
463 .ifnum = QUIRK_ANY_INTERFACE,
464 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100465 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700466 {
467 .ifnum = 0,
468 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
469 .data = & (const struct audioformat) {
470 .format = SNDRV_PCM_FORMAT_S24_3LE,
471 .channels = 2,
472 .iface = 0,
473 .altsetting = 1,
474 .altset_idx = 1,
475 .attributes = 0,
476 .endpoint = 0x01,
477 .ep_attr = 0x01,
478 .rates = SNDRV_PCM_RATE_CONTINUOUS,
479 .rate_min = 44100,
480 .rate_max = 44100,
481 }
482 },
483 {
484 .ifnum = 1,
485 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
486 .data = & (const struct audioformat) {
487 .format = SNDRV_PCM_FORMAT_S24_3LE,
488 .channels = 2,
489 .iface = 1,
490 .altsetting = 1,
491 .altset_idx = 1,
492 .attributes = 0,
493 .endpoint = 0x81,
494 .ep_attr = 0x01,
495 .rates = SNDRV_PCM_RATE_CONTINUOUS,
496 .rate_min = 44100,
497 .rate_max = 44100,
498 }
499 },
500 {
501 .ifnum = 2,
502 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100503 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504 .out_cables = 0x0007,
505 .in_cables = 0x0007
506 }
507 },
508 {
509 .ifnum = -1
510 }
511 }
512 }
513},
514{ /*
515 * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
516 * If the advanced mode switch at the back of the unit is off, the
517 * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
518 * but offers only 16-bit PCM.
519 * In advanced mode, the UA-5 will output S24_3LE samples (two
520 * channels) at the rate indicated on the front switch, including
521 * the 96kHz sample rate.
522 */
523 USB_DEVICE(0x0582, 0x0010),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100524 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700525 .vendor_name = "EDIROL",
526 .product_name = "UA-5",
527 .ifnum = QUIRK_ANY_INTERFACE,
528 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100529 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700530 {
531 .ifnum = 1,
532 .type = QUIRK_AUDIO_STANDARD_INTERFACE
533 },
534 {
535 .ifnum = 2,
536 .type = QUIRK_AUDIO_STANDARD_INTERFACE
537 },
538 {
539 .ifnum = -1
540 }
541 }
542 }
543},
544{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200545 /* has ID 0x0013 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700546 USB_DEVICE(0x0582, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100547 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700548 .vendor_name = "Roland",
549 .product_name = "XV-5050",
550 .ifnum = 0,
551 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100552 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700553 .out_cables = 0x0001,
554 .in_cables = 0x0001
555 }
556 }
557},
558{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200559 /* has ID 0x0015 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700560 USB_DEVICE(0x0582, 0x0014),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100561 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700562 .vendor_name = "EDIROL",
563 .product_name = "UM-880",
564 .ifnum = 0,
565 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100566 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700567 .out_cables = 0x01ff,
568 .in_cables = 0x01ff
569 }
570 }
571},
572{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200573 /* has ID 0x0017 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700574 USB_DEVICE(0x0582, 0x0016),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100575 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 .vendor_name = "EDIROL",
577 .product_name = "SD-90",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200578 .ifnum = QUIRK_ANY_INTERFACE,
579 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100580 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200581 {
582 .ifnum = 0,
583 .type = QUIRK_IGNORE_INTERFACE
584 },
585 {
586 .ifnum = 1,
587 .type = QUIRK_IGNORE_INTERFACE
588 },
589 {
590 .ifnum = 2,
591 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100592 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200593 .out_cables = 0x000f,
594 .in_cables = 0x000f
595 }
596 },
597 {
598 .ifnum = -1
599 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700600 }
601 }
602},
603{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200604 /* has ID 0x001c when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700605 USB_DEVICE(0x0582, 0x001b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100606 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700607 .vendor_name = "Roland",
608 .product_name = "MMP-2",
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200609 .ifnum = QUIRK_ANY_INTERFACE,
610 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100611 .data = (const struct snd_usb_audio_quirk[]) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200612 {
613 .ifnum = 0,
614 .type = QUIRK_IGNORE_INTERFACE
615 },
616 {
617 .ifnum = 1,
618 .type = QUIRK_IGNORE_INTERFACE
619 },
620 {
621 .ifnum = 2,
622 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100623 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischd3ff42f2005-05-17 09:14:27 +0200624 .out_cables = 0x0001,
625 .in_cables = 0x0001
626 }
627 },
628 {
629 .ifnum = -1
630 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700631 }
632 }
633},
634{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200635 /* has ID 0x001e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700636 USB_DEVICE(0x0582, 0x001d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100637 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700638 .vendor_name = "Roland",
639 .product_name = "V-SYNTH",
640 .ifnum = 0,
641 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100642 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643 .out_cables = 0x0001,
644 .in_cables = 0x0001
645 }
646 }
647},
648{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200649 /* has ID 0x0024 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 USB_DEVICE(0x0582, 0x0023),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100651 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700652 .vendor_name = "EDIROL",
653 .product_name = "UM-550",
654 .ifnum = 0,
655 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100656 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700657 .out_cables = 0x003f,
658 .in_cables = 0x003f
659 }
660 }
661},
662{
663 /*
664 * This quirk is for the "Advanced Driver" mode. If off, the UA-20
665 * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
666 * and no MIDI.
667 */
668 USB_DEVICE(0x0582, 0x0025),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100669 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700670 .vendor_name = "EDIROL",
671 .product_name = "UA-20",
672 .ifnum = QUIRK_ANY_INTERFACE,
673 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100674 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700675 {
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100676 .ifnum = 0,
677 .type = QUIRK_IGNORE_INTERFACE
678 },
679 {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700680 .ifnum = 1,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100681 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
682 .data = & (const struct audioformat) {
683 .format = SNDRV_PCM_FORMAT_S24_3LE,
684 .channels = 2,
685 .iface = 1,
686 .altsetting = 1,
687 .altset_idx = 1,
688 .attributes = 0,
689 .endpoint = 0x01,
690 .ep_attr = 0x01,
691 .rates = SNDRV_PCM_RATE_CONTINUOUS,
692 .rate_min = 44100,
693 .rate_max = 44100,
694 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700695 },
696 {
697 .ifnum = 2,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100698 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
699 .data = & (const struct audioformat) {
700 .format = SNDRV_PCM_FORMAT_S24_3LE,
701 .channels = 2,
702 .iface = 2,
703 .altsetting = 1,
704 .altset_idx = 1,
705 .attributes = 0,
706 .endpoint = 0x82,
707 .ep_attr = 0x01,
708 .rates = SNDRV_PCM_RATE_CONTINUOUS,
709 .rate_min = 44100,
710 .rate_max = 44100,
711 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700712 },
713 {
714 .ifnum = 3,
Clemens Ladisch1f14a652005-11-21 16:40:00 +0100715 .type = QUIRK_MIDI_FIXED_ENDPOINT,
716 .data = & (const struct snd_usb_midi_endpoint_info) {
717 .out_cables = 0x0001,
718 .in_cables = 0x0001
719 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700720 },
721 {
722 .ifnum = -1
723 }
724 }
725 }
726},
727{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200728 /* has ID 0x0028 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700729 USB_DEVICE(0x0582, 0x0027),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100730 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700731 .vendor_name = "EDIROL",
732 .product_name = "SD-20",
733 .ifnum = 0,
734 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100735 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700736 .out_cables = 0x0003,
737 .in_cables = 0x0007
738 }
739 }
740},
741{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200742 /* has ID 0x002a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700743 USB_DEVICE(0x0582, 0x0029),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100744 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700745 .vendor_name = "EDIROL",
746 .product_name = "SD-80",
747 .ifnum = 0,
748 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100749 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700750 .out_cables = 0x000f,
751 .in_cables = 0x000f
752 }
753 }
754},
755{ /*
756 * This quirk is for the "Advanced" modes of the Edirol UA-700.
757 * If the sample format switch is not in an advanced setting, the
758 * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
759 * but offers only 16-bit PCM and no MIDI.
760 */
761 USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100762 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700763 .vendor_name = "EDIROL",
764 .product_name = "UA-700",
765 .ifnum = QUIRK_ANY_INTERFACE,
766 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100767 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700768 {
769 .ifnum = 1,
770 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
771 },
772 {
773 .ifnum = 2,
774 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
775 },
776 {
777 .ifnum = 3,
778 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
779 },
780 {
781 .ifnum = -1
782 }
783 }
784 }
785},
786{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200787 /* has ID 0x002e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700788 USB_DEVICE(0x0582, 0x002d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100789 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700790 .vendor_name = "Roland",
791 .product_name = "XV-2020",
792 .ifnum = 0,
793 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100794 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700795 .out_cables = 0x0001,
796 .in_cables = 0x0001
797 }
798 }
799},
800{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200801 /* has ID 0x0030 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700802 USB_DEVICE(0x0582, 0x002f),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100803 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700804 .vendor_name = "Roland",
805 .product_name = "VariOS",
806 .ifnum = 0,
807 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100808 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700809 .out_cables = 0x0007,
810 .in_cables = 0x0007
811 }
812 }
813},
814{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200815 /* has ID 0x0034 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700816 USB_DEVICE(0x0582, 0x0033),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100817 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700818 .vendor_name = "EDIROL",
819 .product_name = "PCR",
820 .ifnum = 0,
821 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100822 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700823 .out_cables = 0x0003,
824 .in_cables = 0x0007
825 }
826 }
827},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200828 /* TODO: add Roland M-1000 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700829{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200830 /*
831 * Has ID 0x0038 when not in "Advanced Driver" mode;
832 * later revisions use IDs 0x0054 and 0x00a2.
833 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700834 USB_DEVICE(0x0582, 0x0037),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100835 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700836 .vendor_name = "Roland",
837 .product_name = "Digital Piano",
838 .ifnum = 0,
839 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100840 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700841 .out_cables = 0x0001,
842 .in_cables = 0x0001
843 }
844 }
845},
846{
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200847 /*
848 * This quirk is for the "Advanced Driver" mode. If off, the GS-10
849 * has ID 0x003c and is standard compliant, but has only 16-bit PCM
850 * and no MIDI.
851 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700852 USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100853 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700854 .vendor_name = "BOSS",
855 .product_name = "GS-10",
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200856 .ifnum = QUIRK_ANY_INTERFACE,
857 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100858 .data = & (const struct snd_usb_audio_quirk[]) {
Clemens Ladisch5af4c832005-04-06 09:47:02 +0200859 {
860 .ifnum = 1,
861 .type = QUIRK_AUDIO_STANDARD_INTERFACE
862 },
863 {
864 .ifnum = 2,
865 .type = QUIRK_AUDIO_STANDARD_INTERFACE
866 },
867 {
868 .ifnum = 3,
869 .type = QUIRK_MIDI_STANDARD_INTERFACE
870 },
871 {
872 .ifnum = -1
873 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700874 }
875 }
876},
877{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200878 /* has ID 0x0041 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700879 USB_DEVICE(0x0582, 0x0040),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100880 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700881 .vendor_name = "Roland",
882 .product_name = "GI-20",
883 .ifnum = 0,
884 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100885 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700886 .out_cables = 0x0001,
887 .in_cables = 0x0001
888 }
889 }
890},
891{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200892 /* has ID 0x0043 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700893 USB_DEVICE(0x0582, 0x0042),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100894 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700895 .vendor_name = "Roland",
896 .product_name = "RS-70",
897 .ifnum = 0,
898 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100899 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700900 .out_cables = 0x0001,
901 .in_cables = 0x0001
902 }
903 }
904},
905{
906 USB_DEVICE(0x0582, 0x0044),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100907 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700908 .vendor_name = "Roland",
909 .product_name = "UA-1000",
910 .ifnum = QUIRK_ANY_INTERFACE,
911 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100912 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700913 {
914 .ifnum = 1,
915 .type = QUIRK_AUDIO_EDIROL_UA1000
916 },
917 {
918 .ifnum = 2,
919 .type = QUIRK_AUDIO_EDIROL_UA1000
920 },
921 {
922 .ifnum = 3,
923 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100924 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700925 .out_cables = 0x0003,
926 .in_cables = 0x0003
927 }
928 },
929 {
930 .ifnum = -1
931 }
932 }
933 }
934},
935{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200936 /* has ID 0x004a when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700937 USB_DEVICE(0x0582, 0x0048),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100938 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700939 .vendor_name = "EDIROL",
940 .product_name = "UR-80",
941 .ifnum = 0,
942 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100943 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700944 .out_cables = 0x0003,
945 .in_cables = 0x0007
946 }
947 }
948},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200949 /* TODO: add Edirol M-100FX support */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700950{
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200951 /* has ID 0x004f when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700952 USB_DEVICE(0x0582, 0x004d),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100953 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700954 .vendor_name = "EDIROL",
955 .product_name = "PCR-A",
956 .ifnum = 0,
957 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100958 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700959 .out_cables = 0x0003,
960 .in_cables = 0x0007
961 }
962 }
963},
964{
965 /*
966 * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
967 * is standard compliant, but has only 16-bit PCM.
968 */
969 USB_DEVICE(0x0582, 0x0050),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100970 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700971 .vendor_name = "EDIROL",
972 .product_name = "UA-3FX",
973 .ifnum = QUIRK_ANY_INTERFACE,
974 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +0100975 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700976 {
977 .ifnum = 1,
978 .type = QUIRK_AUDIO_STANDARD_INTERFACE
979 },
980 {
981 .ifnum = 2,
982 .type = QUIRK_AUDIO_STANDARD_INTERFACE
983 },
984 {
985 .ifnum = -1
986 }
987 }
988 }
989},
990{
991 USB_DEVICE(0x0582, 0x0052),
Takashi Iwai86e07d32005-11-17 15:08:02 +0100992 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700993 .vendor_name = "EDIROL",
994 .product_name = "UM-1SX",
995 .ifnum = 0,
996 .type = QUIRK_MIDI_STANDARD_INTERFACE
997 }
998},
Clemens Ladischd879f0c2005-09-21 16:33:49 +0200999 /* TODO: add Roland EXR support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001000{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001001 /* has ID 0x0067 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001002 USB_DEVICE(0x0582, 0x0065),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001003 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001004 .vendor_name = "EDIROL",
1005 .product_name = "PCR-1",
1006 .ifnum = 0,
1007 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001008 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001009 .out_cables = 0x0001,
1010 .in_cables = 0x0003
1011 }
1012 }
1013},
1014{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001015 /* has ID 0x006b when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001016 USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001017 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001018 .vendor_name = "Roland",
1019 .product_name = "SP-606",
1020 .ifnum = 3,
1021 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001022 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001023 .out_cables = 0x0001,
1024 .in_cables = 0x0001
1025 }
1026 }
1027},
1028{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001029 /* has ID 0x006e when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001030 USB_DEVICE(0x0582, 0x006d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001031 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001032 .vendor_name = "Roland",
1033 .product_name = "FANTOM-X",
1034 .ifnum = 0,
1035 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001036 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001037 .out_cables = 0x0001,
1038 .in_cables = 0x0001
1039 }
1040 }
1041},
1042{ /*
1043 * This quirk is for the "Advanced" modes of the Edirol UA-25.
1044 * If the switch is not in an advanced setting, the UA-25 has
1045 * ID 0x0582/0x0073 and is standard compliant (no quirks), but
1046 * offers only 16-bit PCM at 44.1 kHz and no MIDI.
1047 */
1048 USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001049 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001050 .vendor_name = "EDIROL",
1051 .product_name = "UA-25",
1052 .ifnum = QUIRK_ANY_INTERFACE,
1053 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001054 .data = (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001055 {
1056 .ifnum = 0,
1057 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1058 },
1059 {
1060 .ifnum = 1,
1061 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1062 },
1063 {
1064 .ifnum = 2,
1065 .type = QUIRK_AUDIO_EDIROL_UA700_UA25
1066 },
1067 {
1068 .ifnum = -1
1069 }
1070 }
1071 }
1072},
1073{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001074 /* has ID 0x0076 when not in "Advanced Driver" mode */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001075 USB_DEVICE(0x0582, 0x0075),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001076 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001077 .vendor_name = "BOSS",
1078 .product_name = "DR-880",
1079 .ifnum = 0,
1080 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001081 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001082 .out_cables = 0x0001,
1083 .in_cables = 0x0001
1084 }
1085 }
1086},
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001087{
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001088 /* has ID 0x007b when not in "Advanced Driver" mode */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001089 USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001090 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001091 .vendor_name = "Roland",
Clemens Ladischd879f0c2005-09-21 16:33:49 +02001092 /* "RD" or "RD-700SX"? */
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001093 .ifnum = 0,
1094 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001095 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch5a2a68f2005-09-19 12:24:00 +02001096 .out_cables = 0x0003,
1097 .in_cables = 0x0003
1098 }
1099 }
1100},
Bjoern Fayd0b0fac2007-02-05 12:27:21 +01001101/* Roland UA-101 in High-Speed Mode only */
1102{
1103 USB_DEVICE(0x0582, 0x007d),
1104 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1105 .vendor_name = "Roland",
1106 .product_name = "UA-101",
1107 .ifnum = QUIRK_ANY_INTERFACE,
1108 .type = QUIRK_COMPOSITE,
1109 .data = (const struct snd_usb_audio_quirk[]) {
1110 {
1111 .ifnum = 0,
1112 .type = QUIRK_AUDIO_EDIROL_UA101
1113 },
1114 {
1115 .ifnum = 1,
1116 .type = QUIRK_AUDIO_EDIROL_UA101
1117 },
1118 {
1119 .ifnum = 2,
1120 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1121 .data = & (const struct snd_usb_midi_endpoint_info) {
1122 .out_cables = 0x0001,
1123 .in_cables = 0x0001
1124 }
1125 },
1126 {
1127 .ifnum = -1
1128 }
1129 }
1130 }
1131},
Clemens Ladischcdca8812006-01-18 08:53:32 +01001132{
1133 /* has ID 0x0081 when not in "Advanced Driver" mode */
1134 USB_DEVICE(0x0582, 0x0080),
1135 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1136 .vendor_name = "Roland",
1137 .product_name = "G-70",
1138 .ifnum = 0,
1139 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1140 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladisch05422572006-01-18 15:44:53 +01001141 .out_cables = 0x0001,
1142 .in_cables = 0x0001
Clemens Ladischcdca8812006-01-18 08:53:32 +01001143 }
1144 }
1145},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001146 /* TODO: add Roland V-SYNTH XT support */
1147 /* TODO: add BOSS GT-PRO support */
Clemens Ladisch415b09e2006-01-16 08:03:52 +01001148{
1149 /* has ID 0x008c when not in "Advanced Driver" mode */
1150 USB_DEVICE(0x0582, 0x008b),
1151 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1152 .vendor_name = "EDIROL",
1153 .product_name = "PC-50",
1154 .ifnum = 0,
1155 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1156 .data = & (const struct snd_usb_midi_endpoint_info) {
1157 .out_cables = 0x0001,
1158 .in_cables = 0x0001
1159 }
1160 }
1161},
Clemens Ladisch7c79b762006-01-10 18:56:23 +01001162 /* TODO: add Edirol PC-80 support */
1163 /* TODO: add Edirol UA-1EX support */
1164{
1165 USB_DEVICE(0x0582, 0x009a),
1166 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1167 .vendor_name = "EDIROL",
1168 .product_name = "UM-3EX",
1169 .ifnum = 0,
1170 .type = QUIRK_MIDI_FIXED_ENDPOINT,
1171 .data = & (const struct snd_usb_midi_endpoint_info) {
1172 .out_cables = 0x000f,
1173 .in_cables = 0x000f
1174 }
1175 }
1176},
1177 /* TODO: add Edirol MD-P1 support */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001178
Clemens Ladischa25f1752005-10-05 13:23:19 +02001179/* Guillemot devices */
1180{
1181 /*
1182 * This is for the "Windows Edition" where the external MIDI ports are
1183 * the only MIDI ports; the control data is reported through HID
1184 * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
1185 * compliant USB MIDI ports for external MIDI and controls.
1186 */
1187 USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001188 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001189 .vendor_name = "Hercules",
1190 .product_name = "DJ Console (WE)",
1191 .ifnum = 4,
1192 .type = QUIRK_MIDI_FIXED_ENDPOINT,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001193 .data = & (const struct snd_usb_midi_endpoint_info) {
Clemens Ladischa25f1752005-10-05 13:23:19 +02001194 .out_cables = 0x0001,
1195 .in_cables = 0x0001
1196 }
1197 }
1198},
1199
Linus Torvalds1da177e2005-04-16 15:20:36 -07001200/* Midiman/M-Audio devices */
1201{
1202 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001203 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001204 .vendor_name = "M-Audio",
1205 .product_name = "MidiSport 2x2",
1206 .ifnum = QUIRK_ANY_INTERFACE,
1207 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001208 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001209 .out_cables = 0x0003,
1210 .in_cables = 0x0003
1211 }
1212 }
1213},
1214{
1215 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001216 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001217 .vendor_name = "M-Audio",
1218 .product_name = "MidiSport 1x1",
1219 .ifnum = QUIRK_ANY_INTERFACE,
1220 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001221 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001222 .out_cables = 0x0001,
1223 .in_cables = 0x0001
1224 }
1225 }
1226},
1227{
1228 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001229 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001230 .vendor_name = "M-Audio",
1231 .product_name = "Keystation",
1232 .ifnum = QUIRK_ANY_INTERFACE,
1233 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001234 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001235 .out_cables = 0x0001,
1236 .in_cables = 0x0001
1237 }
1238 }
1239},
1240{
1241 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001242 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001243 .vendor_name = "M-Audio",
1244 .product_name = "MidiSport 4x4",
1245 .ifnum = QUIRK_ANY_INTERFACE,
1246 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001247 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001248 .out_cables = 0x000f,
1249 .in_cables = 0x000f
1250 }
1251 }
1252},
1253{
1254 /*
1255 * For hardware revision 1.05; in the later revisions (1.10 and
1256 * 1.21), 0x1031 is the ID for the device without firmware.
1257 * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
1258 */
1259 USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001260 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001261 .vendor_name = "M-Audio",
1262 .product_name = "MidiSport 8x8",
1263 .ifnum = QUIRK_ANY_INTERFACE,
1264 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001265 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001266 .out_cables = 0x01ff,
1267 .in_cables = 0x01ff
1268 }
1269 }
1270},
1271{
1272 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001273 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001274 .vendor_name = "M-Audio",
1275 .product_name = "MidiSport 8x8",
1276 .ifnum = QUIRK_ANY_INTERFACE,
1277 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001278 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001279 .out_cables = 0x01ff,
1280 .in_cables = 0x01ff
1281 }
1282 }
1283},
1284{
1285 USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001286 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001287 .vendor_name = "M-Audio",
1288 .product_name = "MidiSport 2x4",
1289 .ifnum = QUIRK_ANY_INTERFACE,
1290 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001291 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001292 .out_cables = 0x000f,
1293 .in_cables = 0x0003
1294 }
1295 }
1296},
1297{
1298 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001299 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001300 .vendor_name = "M-Audio",
1301 .product_name = "Quattro",
1302 .ifnum = QUIRK_ANY_INTERFACE,
1303 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001304 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001305 /*
1306 * Interfaces 0-2 are "Windows-compatible", 16-bit only,
1307 * and share endpoints with the other interfaces.
1308 * Ignore them. The other interfaces can do 24 bits,
1309 * but captured samples are big-endian (see usbaudio.c).
1310 */
1311 {
1312 .ifnum = 0,
1313 .type = QUIRK_IGNORE_INTERFACE
1314 },
1315 {
1316 .ifnum = 1,
1317 .type = QUIRK_IGNORE_INTERFACE
1318 },
1319 {
1320 .ifnum = 2,
1321 .type = QUIRK_IGNORE_INTERFACE
1322 },
1323 {
1324 .ifnum = 3,
1325 .type = QUIRK_IGNORE_INTERFACE
1326 },
1327 {
1328 .ifnum = 4,
1329 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1330 },
1331 {
1332 .ifnum = 5,
1333 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1334 },
1335 {
1336 .ifnum = 6,
1337 .type = QUIRK_IGNORE_INTERFACE
1338 },
1339 {
1340 .ifnum = 7,
1341 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1342 },
1343 {
1344 .ifnum = 8,
1345 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1346 },
1347 {
1348 .ifnum = 9,
1349 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001350 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001351 .out_cables = 0x0001,
1352 .in_cables = 0x0001
1353 }
1354 },
1355 {
1356 .ifnum = -1
1357 }
1358 }
1359 }
1360},
1361{
1362 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001363 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001364 .vendor_name = "M-Audio",
1365 .product_name = "AudioPhile",
1366 .ifnum = 6,
1367 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001368 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001369 .out_cables = 0x0001,
1370 .in_cables = 0x0001
1371 }
1372 }
1373},
1374{
1375 USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001376 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001377 .vendor_name = "M-Audio",
1378 .product_name = "Ozone",
1379 .ifnum = 3,
1380 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001381 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001382 .out_cables = 0x0001,
1383 .in_cables = 0x0001
1384 }
1385 }
1386},
1387{
1388 USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001389 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001390 .vendor_name = "M-Audio",
1391 .product_name = "OmniStudio",
1392 .ifnum = QUIRK_ANY_INTERFACE,
1393 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001394 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001395 {
1396 .ifnum = 0,
1397 .type = QUIRK_IGNORE_INTERFACE
1398 },
1399 {
1400 .ifnum = 1,
1401 .type = QUIRK_IGNORE_INTERFACE
1402 },
1403 {
1404 .ifnum = 2,
1405 .type = QUIRK_IGNORE_INTERFACE
1406 },
1407 {
1408 .ifnum = 3,
1409 .type = QUIRK_IGNORE_INTERFACE
1410 },
1411 {
1412 .ifnum = 4,
1413 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1414 },
1415 {
1416 .ifnum = 5,
1417 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1418 },
1419 {
1420 .ifnum = 6,
1421 .type = QUIRK_IGNORE_INTERFACE
1422 },
1423 {
1424 .ifnum = 7,
1425 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1426 },
1427 {
1428 .ifnum = 8,
1429 .type = QUIRK_AUDIO_STANDARD_INTERFACE
1430 },
1431 {
1432 .ifnum = 9,
1433 .type = QUIRK_MIDI_MIDIMAN,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001434 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001435 .out_cables = 0x0001,
1436 .in_cables = 0x0001
1437 }
1438 },
1439 {
1440 .ifnum = -1
1441 }
1442 }
1443 }
1444},
1445
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001446/* Casio devices */
1447{
Clemens Ladisch9808dc92006-03-16 08:15:25 +01001448 USB_DEVICE(0x07cf, 0x6801),
1449 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1450 .vendor_name = "Casio",
1451 .product_name = "PL-40R",
1452 .ifnum = 0,
1453 .type = QUIRK_MIDI_YAMAHA
1454 }
1455},
1456{
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001457 /* this ID is used by several devices without a product ID */
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001458 USB_DEVICE(0x07cf, 0x6802),
1459 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1460 .vendor_name = "Casio",
Clemens Ladisch318d27f2006-03-09 08:17:08 +01001461 .product_name = "Keyboard",
Clemens Ladisch0243ef712006-03-09 07:55:55 +01001462 .ifnum = 0,
1463 .type = QUIRK_MIDI_YAMAHA
1464 }
1465},
1466
Linus Torvalds1da177e2005-04-16 15:20:36 -07001467/* Mark of the Unicorn devices */
1468{
1469 /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
Clemens Ladischbbd46152005-07-04 09:21:45 +02001470 .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
1471 USB_DEVICE_ID_MATCH_PRODUCT |
1472 USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
1473 .idVendor = 0x07fd,
1474 .idProduct = 0x0001,
1475 .bDeviceSubClass = 2,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001476 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001477 .vendor_name = "MOTU",
1478 .product_name = "Fastlane",
1479 .ifnum = QUIRK_ANY_INTERFACE,
1480 .type = QUIRK_COMPOSITE,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001481 .data = & (const struct snd_usb_audio_quirk[]) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001482 {
1483 .ifnum = 0,
Clemens Ladisch6155aff2005-07-04 09:20:42 +02001484 .type = QUIRK_MIDI_RAW
Linus Torvalds1da177e2005-04-16 15:20:36 -07001485 },
1486 {
1487 .ifnum = 1,
1488 .type = QUIRK_IGNORE_INTERFACE
1489 },
1490 {
1491 .ifnum = -1
1492 }
1493 }
1494 }
1495},
1496
1497{
1498 /* Creative Sound Blaster MP3+ */
1499 USB_DEVICE(0x041e, 0x3010),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001500 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001501 .vendor_name = "Creative Labs",
1502 .product_name = "Sound Blaster MP3+",
1503 .ifnum = QUIRK_NO_INTERFACE
1504 }
1505
1506},
1507
1508/* Emagic devices */
1509{
1510 USB_DEVICE(0x086a, 0x0001),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001511 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001512 .vendor_name = "Emagic",
1513 /* .product_name = "Unitor8", */
1514 .ifnum = 2,
1515 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001516 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001517 .out_cables = 0x80ff,
1518 .in_cables = 0x80ff
1519 }
1520 }
1521},
1522{
1523 USB_DEVICE(0x086a, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001524 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001525 .vendor_name = "Emagic",
1526 /* .product_name = "AMT8", */
1527 .ifnum = 2,
1528 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001529 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001530 .out_cables = 0x80ff,
1531 .in_cables = 0x80ff
1532 }
1533 }
1534},
1535{
1536 USB_DEVICE(0x086a, 0x0003),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001537 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001538 .vendor_name = "Emagic",
1539 /* .product_name = "MT4", */
1540 .ifnum = 2,
1541 .type = QUIRK_MIDI_EMAGIC,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001542 .data = & (const struct snd_usb_midi_endpoint_info) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001543 .out_cables = 0x800f,
1544 .in_cables = 0x8003
1545 }
1546 }
1547},
1548
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001549/* TerraTec devices */
1550{
1551 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001552 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001553 .vendor_name = "TerraTec",
1554 .product_name = "PHASE 26",
1555 .ifnum = 3,
1556 .type = QUIRK_MIDI_STANDARD_INTERFACE
1557 }
1558},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001559{
1560 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001561 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladisch31ab9522005-09-26 08:55:01 +02001562 .vendor_name = "TerraTec",
Linus Torvalds1da177e2005-04-16 15:20:36 -07001563 .product_name = "PHASE 26",
1564 .ifnum = 3,
1565 .type = QUIRK_MIDI_STANDARD_INTERFACE
1566 }
1567},
Clemens Ladischb2b82292006-02-08 12:38:23 +01001568{
Clemens Ladischbc56eff2006-04-13 10:16:08 +02001569 USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
1570 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1571 .vendor_name = "TerraTec",
1572 .product_name = "PHASE 26",
1573 .ifnum = 3,
1574 .type = QUIRK_MIDI_STANDARD_INTERFACE
1575 }
1576},
1577{
Clemens Ladischb2b82292006-02-08 12:38:23 +01001578 USB_DEVICE(0x0ccd, 0x0035),
1579 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
1580 .vendor_name = "Miditech",
1581 .product_name = "Play'n Roll",
1582 .ifnum = 0,
1583 .type = QUIRK_MIDI_CME
1584 }
1585},
Linus Torvalds1da177e2005-04-16 15:20:36 -07001586
1587/* Novation EMS devices */
1588{
1589 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
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 .vendor_name = "Novation",
1592 .product_name = "ReMOTE Audio/XStation",
1593 .ifnum = 4,
1594 .type = QUIRK_MIDI_NOVATION
1595 }
1596},
1597{
1598 USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001599 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001600 .vendor_name = "Novation",
1601 .product_name = "Speedio",
1602 .ifnum = 3,
1603 .type = QUIRK_MIDI_NOVATION
1604 }
1605},
1606{
1607 USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001608 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001609 .vendor_name = "Novation",
1610 .product_name = "ReMOTE25",
1611 .ifnum = 0,
1612 .type = QUIRK_MIDI_NOVATION
1613 }
1614},
1615
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001616/* Miditech devices */
Linus Torvalds1da177e2005-04-16 15:20:36 -07001617{
Clemens Ladischf38275f2005-07-25 16:17:29 +02001618 USB_DEVICE(0x4752, 0x0011),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001619 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02001620 .vendor_name = "Miditech",
1621 .product_name = "Midistart-2",
1622 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001623 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02001624 }
1625},
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001626
1627/* Central Music devices */
Clemens Ladischf38275f2005-07-25 16:17:29 +02001628{
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001629 /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
Clemens Ladischf38275f2005-07-25 16:17:29 +02001630 USB_DEVICE(0x7104, 0x2202),
Takashi Iwai86e07d32005-11-17 15:08:02 +01001631 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Clemens Ladischf38275f2005-07-25 16:17:29 +02001632 .ifnum = 0,
Clemens Ladischcc7a59b2006-02-07 17:11:06 +01001633 .type = QUIRK_MIDI_CME
Clemens Ladischf38275f2005-07-25 16:17:29 +02001634 }
1635},
1636
1637{
Linus Torvalds1da177e2005-04-16 15:20:36 -07001638 /*
1639 * Some USB MIDI devices don't have an audio control interface,
1640 * so we have to grab MIDI streaming interfaces here.
1641 */
1642 .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
1643 USB_DEVICE_ID_MATCH_INT_SUBCLASS,
1644 .bInterfaceClass = USB_CLASS_AUDIO,
1645 .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
Takashi Iwai86e07d32005-11-17 15:08:02 +01001646 .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
Linus Torvalds1da177e2005-04-16 15:20:36 -07001647 .ifnum = QUIRK_ANY_INTERFACE,
1648 .type = QUIRK_MIDI_STANDARD_INTERFACE
1649 }
1650},
1651
1652#undef USB_DEVICE_VENDOR_SPEC