Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 48 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 57 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 58 | .vendor_name = "Yamaha", \ |
| 59 | .product_name = name, \ |
| 60 | .ifnum = intf, \ |
| 61 | .type = QUIRK_MIDI_YAMAHA \ |
| 62 | } \ |
| 63 | } |
| 64 | YAMAHA_DEVICE(0x1000, "UX256"), |
| 65 | YAMAHA_DEVICE(0x1001, "MU1000"), |
| 66 | YAMAHA_DEVICE(0x1002, "MU2000"), |
| 67 | YAMAHA_DEVICE(0x1003, "MU500"), |
| 68 | YAMAHA_INTERFACE(0x1004, 3, "UW500"), |
| 69 | YAMAHA_DEVICE(0x1005, "MOTIF6"), |
| 70 | YAMAHA_DEVICE(0x1006, "MOTIF7"), |
| 71 | YAMAHA_DEVICE(0x1007, "MOTIF8"), |
| 72 | YAMAHA_DEVICE(0x1008, "UX96"), |
| 73 | YAMAHA_DEVICE(0x1009, "UX16"), |
| 74 | YAMAHA_INTERFACE(0x100a, 3, "EOS BX"), |
| 75 | YAMAHA_DEVICE(0x100c, "UC-MX"), |
| 76 | YAMAHA_DEVICE(0x100d, "UC-KX"), |
| 77 | YAMAHA_DEVICE(0x100e, "S08"), |
| 78 | YAMAHA_DEVICE(0x100f, "CLP-150"), |
| 79 | YAMAHA_DEVICE(0x1010, "CLP-170"), |
| 80 | YAMAHA_DEVICE(0x1011, "P-250"), |
| 81 | YAMAHA_DEVICE(0x1012, "TYROS"), |
| 82 | YAMAHA_DEVICE(0x1013, "PF-500"), |
| 83 | YAMAHA_DEVICE(0x1014, "S90"), |
| 84 | YAMAHA_DEVICE(0x1015, "MOTIF-R"), |
| 85 | YAMAHA_DEVICE(0x1017, "CVP-204"), |
| 86 | YAMAHA_DEVICE(0x1018, "CVP-206"), |
| 87 | YAMAHA_DEVICE(0x1019, "CVP-208"), |
| 88 | YAMAHA_DEVICE(0x101a, "CVP-210"), |
| 89 | YAMAHA_DEVICE(0x101b, "PSR-1100"), |
| 90 | YAMAHA_DEVICE(0x101c, "PSR-2100"), |
| 91 | YAMAHA_DEVICE(0x101d, "CLP-175"), |
| 92 | YAMAHA_DEVICE(0x101e, "PSR-K1"), |
| 93 | YAMAHA_DEVICE(0x1020, "EZ-250i"), |
| 94 | YAMAHA_DEVICE(0x1021, "MOTIF ES 6"), |
| 95 | YAMAHA_DEVICE(0x1022, "MOTIF ES 7"), |
| 96 | YAMAHA_DEVICE(0x1023, "MOTIF ES 8"), |
| 97 | YAMAHA_DEVICE(0x1024, "CVP-301"), |
| 98 | YAMAHA_DEVICE(0x1025, "CVP-303"), |
| 99 | YAMAHA_DEVICE(0x1026, "CVP-305"), |
| 100 | YAMAHA_DEVICE(0x1027, "CVP-307"), |
| 101 | YAMAHA_DEVICE(0x1028, "CVP-309"), |
| 102 | YAMAHA_DEVICE(0x1029, "CVP-309GP"), |
| 103 | YAMAHA_DEVICE(0x102a, "PSR-1500"), |
| 104 | YAMAHA_DEVICE(0x102b, "PSR-3000"), |
| 105 | YAMAHA_DEVICE(0x102e, "ELS-01/01C"), |
| 106 | YAMAHA_DEVICE(0x1030, "PSR-295/293"), |
| 107 | YAMAHA_DEVICE(0x1031, "DGX-205/203"), |
| 108 | YAMAHA_DEVICE(0x1032, "DGX-305"), |
| 109 | YAMAHA_DEVICE(0x1033, "DGX-505"), |
| 110 | YAMAHA_DEVICE(0x1034, NULL), |
| 111 | YAMAHA_DEVICE(0x1035, NULL), |
| 112 | YAMAHA_DEVICE(0x1036, NULL), |
| 113 | YAMAHA_DEVICE(0x1037, NULL), |
| 114 | YAMAHA_DEVICE(0x1038, NULL), |
| 115 | YAMAHA_DEVICE(0x1039, NULL), |
| 116 | YAMAHA_DEVICE(0x103a, NULL), |
| 117 | YAMAHA_DEVICE(0x103b, NULL), |
| 118 | YAMAHA_DEVICE(0x103c, NULL), |
Clemens Ladisch | 0ac2ac0 | 2005-07-01 16:19:39 +0200 | [diff] [blame] | 119 | YAMAHA_DEVICE(0x103d, NULL), |
Clemens Ladisch | f542fda | 2005-09-20 09:06:36 +0200 | [diff] [blame] | 120 | YAMAHA_DEVICE(0x103e, NULL), |
| 121 | YAMAHA_DEVICE(0x103f, NULL), |
| 122 | YAMAHA_DEVICE(0x1040, NULL), |
| 123 | YAMAHA_DEVICE(0x1041, NULL), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 124 | YAMAHA_DEVICE(0x2000, "DGP-7"), |
| 125 | YAMAHA_DEVICE(0x2001, "DGP-5"), |
| 126 | YAMAHA_DEVICE(0x2002, NULL), |
| 127 | YAMAHA_DEVICE(0x5000, "CS1D"), |
| 128 | YAMAHA_DEVICE(0x5001, "DSP1D"), |
| 129 | YAMAHA_DEVICE(0x5002, "DME32"), |
| 130 | YAMAHA_DEVICE(0x5003, "DM2000"), |
| 131 | YAMAHA_DEVICE(0x5004, "02R96"), |
| 132 | YAMAHA_DEVICE(0x5005, "ACU16-C"), |
| 133 | YAMAHA_DEVICE(0x5006, "NHB32-C"), |
| 134 | YAMAHA_DEVICE(0x5007, "DM1000"), |
| 135 | YAMAHA_DEVICE(0x5008, "01V96"), |
| 136 | YAMAHA_DEVICE(0x5009, "SPX2000"), |
| 137 | YAMAHA_DEVICE(0x500a, "PM5D"), |
| 138 | YAMAHA_DEVICE(0x500b, "DME64N"), |
| 139 | YAMAHA_DEVICE(0x500c, "DME24N"), |
| 140 | YAMAHA_DEVICE(0x500d, NULL), |
| 141 | YAMAHA_DEVICE(0x500e, NULL), |
| 142 | YAMAHA_DEVICE(0x7000, "DTX"), |
| 143 | YAMAHA_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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 152 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 153 | .vendor_name = "Roland", |
| 154 | .product_name = "UA-100", |
| 155 | .ifnum = QUIRK_ANY_INTERFACE, |
| 156 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 157 | .data = (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 158 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 195 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 196 | .out_cables = 0x0007, |
| 197 | .in_cables = 0x0007 |
| 198 | } |
| 199 | }, |
| 200 | { |
| 201 | .ifnum = -1 |
| 202 | } |
| 203 | } |
| 204 | } |
| 205 | }, |
| 206 | { |
| 207 | USB_DEVICE(0x0582, 0x0002), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 208 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 209 | .vendor_name = "EDIROL", |
| 210 | .product_name = "UM-4", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 211 | .ifnum = QUIRK_ANY_INTERFACE, |
| 212 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 213 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 214 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 225 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 226 | .out_cables = 0x000f, |
| 227 | .in_cables = 0x000f |
| 228 | } |
| 229 | }, |
| 230 | { |
| 231 | .ifnum = -1 |
| 232 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 233 | } |
| 234 | } |
| 235 | }, |
| 236 | { |
| 237 | USB_DEVICE(0x0582, 0x0003), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 238 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 239 | .vendor_name = "Roland", |
| 240 | .product_name = "SC-8850", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 241 | .ifnum = QUIRK_ANY_INTERFACE, |
| 242 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 243 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 244 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 255 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 256 | .out_cables = 0x003f, |
| 257 | .in_cables = 0x003f |
| 258 | } |
| 259 | }, |
| 260 | { |
| 261 | .ifnum = -1 |
| 262 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 263 | } |
| 264 | } |
| 265 | }, |
| 266 | { |
| 267 | USB_DEVICE(0x0582, 0x0004), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 268 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 269 | .vendor_name = "Roland", |
| 270 | .product_name = "U-8", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 271 | .ifnum = QUIRK_ANY_INTERFACE, |
| 272 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 273 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 274 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 285 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 286 | .out_cables = 0x0005, |
| 287 | .in_cables = 0x0005 |
| 288 | } |
| 289 | }, |
| 290 | { |
| 291 | .ifnum = -1 |
| 292 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 293 | } |
| 294 | } |
| 295 | }, |
| 296 | { |
Clemens Ladisch | 119c4ff | 2006-01-19 08:25:19 +0100 | [diff] [blame] | 297 | /* Has ID 0x0099 when not in "Advanced Driver" mode. |
| 298 | * The UM-2EX has only one input, but we cannot detect this. */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 299 | USB_DEVICE(0x0582, 0x0005), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 300 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 301 | .vendor_name = "EDIROL", |
| 302 | .product_name = "UM-2", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 303 | .ifnum = QUIRK_ANY_INTERFACE, |
| 304 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 305 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 306 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 317 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 318 | .out_cables = 0x0003, |
| 319 | .in_cables = 0x0003 |
| 320 | } |
| 321 | }, |
| 322 | { |
| 323 | .ifnum = -1 |
| 324 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 325 | } |
| 326 | } |
| 327 | }, |
| 328 | { |
| 329 | USB_DEVICE(0x0582, 0x0007), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 330 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 331 | .vendor_name = "Roland", |
| 332 | .product_name = "SC-8820", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 333 | .ifnum = QUIRK_ANY_INTERFACE, |
| 334 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 335 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 336 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 347 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 348 | .out_cables = 0x0013, |
| 349 | .in_cables = 0x0013 |
| 350 | } |
| 351 | }, |
| 352 | { |
| 353 | .ifnum = -1 |
| 354 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 355 | } |
| 356 | } |
| 357 | }, |
| 358 | { |
| 359 | USB_DEVICE(0x0582, 0x0008), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 360 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 361 | .vendor_name = "Roland", |
| 362 | .product_name = "PC-300", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 363 | .ifnum = QUIRK_ANY_INTERFACE, |
| 364 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 365 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 366 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 377 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 378 | .out_cables = 0x0001, |
| 379 | .in_cables = 0x0001 |
| 380 | } |
| 381 | }, |
| 382 | { |
| 383 | .ifnum = -1 |
| 384 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 385 | } |
| 386 | } |
| 387 | }, |
| 388 | { |
Clemens Ladisch | 119c4ff | 2006-01-19 08:25:19 +0100 | [diff] [blame] | 389 | /* has ID 0x009d when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 390 | USB_DEVICE(0x0582, 0x0009), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 391 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 392 | .vendor_name = "EDIROL", |
| 393 | .product_name = "UM-1", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 394 | .ifnum = QUIRK_ANY_INTERFACE, |
| 395 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 396 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 397 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 408 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 409 | .out_cables = 0x0001, |
| 410 | .in_cables = 0x0001 |
| 411 | } |
| 412 | }, |
| 413 | { |
| 414 | .ifnum = -1 |
| 415 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 416 | } |
| 417 | } |
| 418 | }, |
| 419 | { |
| 420 | USB_DEVICE(0x0582, 0x000b), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 421 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 422 | .vendor_name = "Roland", |
| 423 | .product_name = "SK-500", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 424 | .ifnum = QUIRK_ANY_INTERFACE, |
| 425 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 426 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 427 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 438 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 439 | .out_cables = 0x0013, |
| 440 | .in_cables = 0x0013 |
| 441 | } |
| 442 | }, |
| 443 | { |
| 444 | .ifnum = -1 |
| 445 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 446 | } |
| 447 | } |
| 448 | }, |
| 449 | { |
| 450 | /* thanks to Emiliano Grilli <emillo@libero.it> |
| 451 | * for helping researching this data */ |
| 452 | USB_DEVICE(0x0582, 0x000c), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 453 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 454 | .vendor_name = "Roland", |
| 455 | .product_name = "SC-D70", |
| 456 | .ifnum = QUIRK_ANY_INTERFACE, |
| 457 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 458 | .data = (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 459 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 496 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 497 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 517 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 518 | .vendor_name = "EDIROL", |
| 519 | .product_name = "UA-5", |
| 520 | .ifnum = QUIRK_ANY_INTERFACE, |
| 521 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 522 | .data = (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 523 | { |
| 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 Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 538 | /* has ID 0x0013 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 539 | USB_DEVICE(0x0582, 0x0012), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 540 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 541 | .vendor_name = "Roland", |
| 542 | .product_name = "XV-5050", |
| 543 | .ifnum = 0, |
| 544 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 545 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 546 | .out_cables = 0x0001, |
| 547 | .in_cables = 0x0001 |
| 548 | } |
| 549 | } |
| 550 | }, |
| 551 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 552 | /* has ID 0x0015 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 553 | USB_DEVICE(0x0582, 0x0014), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 554 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 555 | .vendor_name = "EDIROL", |
| 556 | .product_name = "UM-880", |
| 557 | .ifnum = 0, |
| 558 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 559 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 560 | .out_cables = 0x01ff, |
| 561 | .in_cables = 0x01ff |
| 562 | } |
| 563 | } |
| 564 | }, |
| 565 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 566 | /* has ID 0x0017 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 567 | USB_DEVICE(0x0582, 0x0016), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 568 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 569 | .vendor_name = "EDIROL", |
| 570 | .product_name = "SD-90", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 571 | .ifnum = QUIRK_ANY_INTERFACE, |
| 572 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 573 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 574 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 585 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 586 | .out_cables = 0x000f, |
| 587 | .in_cables = 0x000f |
| 588 | } |
| 589 | }, |
| 590 | { |
| 591 | .ifnum = -1 |
| 592 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 593 | } |
| 594 | } |
| 595 | }, |
| 596 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 597 | /* has ID 0x001c when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 598 | USB_DEVICE(0x0582, 0x001b), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 599 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 600 | .vendor_name = "Roland", |
| 601 | .product_name = "MMP-2", |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 602 | .ifnum = QUIRK_ANY_INTERFACE, |
| 603 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 604 | .data = (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 605 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 616 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | d3ff42f | 2005-05-17 09:14:27 +0200 | [diff] [blame] | 617 | .out_cables = 0x0001, |
| 618 | .in_cables = 0x0001 |
| 619 | } |
| 620 | }, |
| 621 | { |
| 622 | .ifnum = -1 |
| 623 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 624 | } |
| 625 | } |
| 626 | }, |
| 627 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 628 | /* has ID 0x001e when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 629 | USB_DEVICE(0x0582, 0x001d), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 630 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 631 | .vendor_name = "Roland", |
| 632 | .product_name = "V-SYNTH", |
| 633 | .ifnum = 0, |
| 634 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 635 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 636 | .out_cables = 0x0001, |
| 637 | .in_cables = 0x0001 |
| 638 | } |
| 639 | } |
| 640 | }, |
| 641 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 642 | /* has ID 0x0024 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 643 | USB_DEVICE(0x0582, 0x0023), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 644 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 645 | .vendor_name = "EDIROL", |
| 646 | .product_name = "UM-550", |
| 647 | .ifnum = 0, |
| 648 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 649 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 650 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 662 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 663 | .vendor_name = "EDIROL", |
| 664 | .product_name = "UA-20", |
| 665 | .ifnum = QUIRK_ANY_INTERFACE, |
| 666 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 667 | .data = (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 668 | { |
Clemens Ladisch | 1f14a65 | 2005-11-21 16:40:00 +0100 | [diff] [blame] | 669 | .ifnum = 0, |
| 670 | .type = QUIRK_IGNORE_INTERFACE |
| 671 | }, |
| 672 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 673 | .ifnum = 1, |
Clemens Ladisch | 1f14a65 | 2005-11-21 16:40:00 +0100 | [diff] [blame] | 674 | .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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 688 | }, |
| 689 | { |
| 690 | .ifnum = 2, |
Clemens Ladisch | 1f14a65 | 2005-11-21 16:40:00 +0100 | [diff] [blame] | 691 | .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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 705 | }, |
| 706 | { |
| 707 | .ifnum = 3, |
Clemens Ladisch | 1f14a65 | 2005-11-21 16:40:00 +0100 | [diff] [blame] | 708 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
| 709 | .data = & (const struct snd_usb_midi_endpoint_info) { |
| 710 | .out_cables = 0x0001, |
| 711 | .in_cables = 0x0001 |
| 712 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 713 | }, |
| 714 | { |
| 715 | .ifnum = -1 |
| 716 | } |
| 717 | } |
| 718 | } |
| 719 | }, |
| 720 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 721 | /* has ID 0x0028 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 722 | USB_DEVICE(0x0582, 0x0027), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 723 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 724 | .vendor_name = "EDIROL", |
| 725 | .product_name = "SD-20", |
| 726 | .ifnum = 0, |
| 727 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 728 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 729 | .out_cables = 0x0003, |
| 730 | .in_cables = 0x0007 |
| 731 | } |
| 732 | } |
| 733 | }, |
| 734 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 735 | /* has ID 0x002a when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 736 | USB_DEVICE(0x0582, 0x0029), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 737 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 738 | .vendor_name = "EDIROL", |
| 739 | .product_name = "SD-80", |
| 740 | .ifnum = 0, |
| 741 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 742 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 743 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 755 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 756 | .vendor_name = "EDIROL", |
| 757 | .product_name = "UA-700", |
| 758 | .ifnum = QUIRK_ANY_INTERFACE, |
| 759 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 760 | .data = (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 761 | { |
| 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 Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 780 | /* has ID 0x002e when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 781 | USB_DEVICE(0x0582, 0x002d), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 782 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 783 | .vendor_name = "Roland", |
| 784 | .product_name = "XV-2020", |
| 785 | .ifnum = 0, |
| 786 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 787 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 788 | .out_cables = 0x0001, |
| 789 | .in_cables = 0x0001 |
| 790 | } |
| 791 | } |
| 792 | }, |
| 793 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 794 | /* has ID 0x0030 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 795 | USB_DEVICE(0x0582, 0x002f), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 796 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 797 | .vendor_name = "Roland", |
| 798 | .product_name = "VariOS", |
| 799 | .ifnum = 0, |
| 800 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 801 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 802 | .out_cables = 0x0007, |
| 803 | .in_cables = 0x0007 |
| 804 | } |
| 805 | } |
| 806 | }, |
| 807 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 808 | /* has ID 0x0034 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 809 | USB_DEVICE(0x0582, 0x0033), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 810 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 811 | .vendor_name = "EDIROL", |
| 812 | .product_name = "PCR", |
| 813 | .ifnum = 0, |
| 814 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 815 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 816 | .out_cables = 0x0003, |
| 817 | .in_cables = 0x0007 |
| 818 | } |
| 819 | } |
| 820 | }, |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 821 | /* TODO: add Roland M-1000 support */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 822 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 823 | /* |
| 824 | * Has ID 0x0038 when not in "Advanced Driver" mode; |
| 825 | * later revisions use IDs 0x0054 and 0x00a2. |
| 826 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 827 | USB_DEVICE(0x0582, 0x0037), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 828 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 829 | .vendor_name = "Roland", |
| 830 | .product_name = "Digital Piano", |
| 831 | .ifnum = 0, |
| 832 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 833 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 834 | .out_cables = 0x0001, |
| 835 | .in_cables = 0x0001 |
| 836 | } |
| 837 | } |
| 838 | }, |
| 839 | { |
Clemens Ladisch | 5af4c83 | 2005-04-06 09:47:02 +0200 | [diff] [blame] | 840 | /* |
| 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 845 | USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 846 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 847 | .vendor_name = "BOSS", |
| 848 | .product_name = "GS-10", |
Clemens Ladisch | 5af4c83 | 2005-04-06 09:47:02 +0200 | [diff] [blame] | 849 | .ifnum = QUIRK_ANY_INTERFACE, |
| 850 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 851 | .data = & (const struct snd_usb_audio_quirk[]) { |
Clemens Ladisch | 5af4c83 | 2005-04-06 09:47:02 +0200 | [diff] [blame] | 852 | { |
| 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 867 | } |
| 868 | } |
| 869 | }, |
| 870 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 871 | /* has ID 0x0041 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 872 | USB_DEVICE(0x0582, 0x0040), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 873 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 874 | .vendor_name = "Roland", |
| 875 | .product_name = "GI-20", |
| 876 | .ifnum = 0, |
| 877 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 878 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 879 | .out_cables = 0x0001, |
| 880 | .in_cables = 0x0001 |
| 881 | } |
| 882 | } |
| 883 | }, |
| 884 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 885 | /* has ID 0x0043 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 886 | USB_DEVICE(0x0582, 0x0042), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 887 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 888 | .vendor_name = "Roland", |
| 889 | .product_name = "RS-70", |
| 890 | .ifnum = 0, |
| 891 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 892 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 893 | .out_cables = 0x0001, |
| 894 | .in_cables = 0x0001 |
| 895 | } |
| 896 | } |
| 897 | }, |
| 898 | { |
| 899 | USB_DEVICE(0x0582, 0x0044), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 900 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 901 | .vendor_name = "Roland", |
| 902 | .product_name = "UA-1000", |
| 903 | .ifnum = QUIRK_ANY_INTERFACE, |
| 904 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 905 | .data = (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 906 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 917 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 918 | .out_cables = 0x0003, |
| 919 | .in_cables = 0x0003 |
| 920 | } |
| 921 | }, |
| 922 | { |
| 923 | .ifnum = -1 |
| 924 | } |
| 925 | } |
| 926 | } |
| 927 | }, |
| 928 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 929 | /* has ID 0x004a when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 930 | USB_DEVICE(0x0582, 0x0048), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 931 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 932 | .vendor_name = "EDIROL", |
| 933 | .product_name = "UR-80", |
| 934 | .ifnum = 0, |
| 935 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 936 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 937 | .out_cables = 0x0003, |
| 938 | .in_cables = 0x0007 |
| 939 | } |
| 940 | } |
| 941 | }, |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 942 | /* TODO: add Edirol M-100FX support */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 943 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 944 | /* has ID 0x004f when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 945 | USB_DEVICE(0x0582, 0x004d), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 946 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 947 | .vendor_name = "EDIROL", |
| 948 | .product_name = "PCR-A", |
| 949 | .ifnum = 0, |
| 950 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 951 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 952 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 963 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 964 | .vendor_name = "EDIROL", |
| 965 | .product_name = "UA-3FX", |
| 966 | .ifnum = QUIRK_ANY_INTERFACE, |
| 967 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 968 | .data = (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 969 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 985 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 986 | .vendor_name = "EDIROL", |
| 987 | .product_name = "UM-1SX", |
| 988 | .ifnum = 0, |
| 989 | .type = QUIRK_MIDI_STANDARD_INTERFACE |
| 990 | } |
| 991 | }, |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 992 | /* TODO: add Roland EXR support */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 993 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 994 | /* has ID 0x0067 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 995 | USB_DEVICE(0x0582, 0x0065), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 996 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 997 | .vendor_name = "EDIROL", |
| 998 | .product_name = "PCR-1", |
| 999 | .ifnum = 0, |
| 1000 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1001 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1002 | .out_cables = 0x0001, |
| 1003 | .in_cables = 0x0003 |
| 1004 | } |
| 1005 | } |
| 1006 | }, |
| 1007 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 1008 | /* has ID 0x006b when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1009 | USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1010 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1011 | .vendor_name = "Roland", |
| 1012 | .product_name = "SP-606", |
| 1013 | .ifnum = 3, |
| 1014 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1015 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1016 | .out_cables = 0x0001, |
| 1017 | .in_cables = 0x0001 |
| 1018 | } |
| 1019 | } |
| 1020 | }, |
| 1021 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 1022 | /* has ID 0x006e when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1023 | USB_DEVICE(0x0582, 0x006d), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1024 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1025 | .vendor_name = "Roland", |
| 1026 | .product_name = "FANTOM-X", |
| 1027 | .ifnum = 0, |
| 1028 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1029 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1030 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1042 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1043 | .vendor_name = "EDIROL", |
| 1044 | .product_name = "UA-25", |
| 1045 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1046 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1047 | .data = (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1048 | { |
| 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 Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 1067 | /* has ID 0x0076 when not in "Advanced Driver" mode */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1068 | USB_DEVICE(0x0582, 0x0075), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1069 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1070 | .vendor_name = "BOSS", |
| 1071 | .product_name = "DR-880", |
| 1072 | .ifnum = 0, |
| 1073 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1074 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1075 | .out_cables = 0x0001, |
| 1076 | .in_cables = 0x0001 |
| 1077 | } |
| 1078 | } |
| 1079 | }, |
Clemens Ladisch | 5a2a68f | 2005-09-19 12:24:00 +0200 | [diff] [blame] | 1080 | { |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 1081 | /* has ID 0x007b when not in "Advanced Driver" mode */ |
Clemens Ladisch | 5a2a68f | 2005-09-19 12:24:00 +0200 | [diff] [blame] | 1082 | USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1083 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Clemens Ladisch | 5a2a68f | 2005-09-19 12:24:00 +0200 | [diff] [blame] | 1084 | .vendor_name = "Roland", |
Clemens Ladisch | d879f0c | 2005-09-21 16:33:49 +0200 | [diff] [blame] | 1085 | /* "RD" or "RD-700SX"? */ |
Clemens Ladisch | 5a2a68f | 2005-09-19 12:24:00 +0200 | [diff] [blame] | 1086 | .ifnum = 0, |
| 1087 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1088 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | 5a2a68f | 2005-09-19 12:24:00 +0200 | [diff] [blame] | 1089 | .out_cables = 0x0003, |
| 1090 | .in_cables = 0x0003 |
| 1091 | } |
| 1092 | } |
| 1093 | }, |
Clemens Ladisch | 7c79b76 | 2006-01-10 18:56:23 +0100 | [diff] [blame] | 1094 | /* TODO: add Edirol UA-101 support */ |
Clemens Ladisch | cdca881 | 2006-01-18 08:53:32 +0100 | [diff] [blame] | 1095 | { |
| 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 Ladisch | 0542257 | 2006-01-18 15:44:53 +0100 | [diff] [blame] | 1104 | .out_cables = 0x0001, |
| 1105 | .in_cables = 0x0001 |
Clemens Ladisch | cdca881 | 2006-01-18 08:53:32 +0100 | [diff] [blame] | 1106 | } |
| 1107 | } |
| 1108 | }, |
Clemens Ladisch | 7c79b76 | 2006-01-10 18:56:23 +0100 | [diff] [blame] | 1109 | /* TODO: add Roland V-SYNTH XT support */ |
| 1110 | /* TODO: add BOSS GT-PRO support */ |
Clemens Ladisch | 415b09e4 | 2006-01-16 08:03:52 +0100 | [diff] [blame] | 1111 | { |
| 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 Ladisch | 7c79b76 | 2006-01-10 18:56:23 +0100 | [diff] [blame] | 1125 | /* 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1141 | |
Clemens Ladisch | a25f175 | 2005-10-05 13:23:19 +0200 | [diff] [blame] | 1142 | /* 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1151 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Clemens Ladisch | a25f175 | 2005-10-05 13:23:19 +0200 | [diff] [blame] | 1152 | .vendor_name = "Hercules", |
| 1153 | .product_name = "DJ Console (WE)", |
| 1154 | .ifnum = 4, |
| 1155 | .type = QUIRK_MIDI_FIXED_ENDPOINT, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1156 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Clemens Ladisch | a25f175 | 2005-10-05 13:23:19 +0200 | [diff] [blame] | 1157 | .out_cables = 0x0001, |
| 1158 | .in_cables = 0x0001 |
| 1159 | } |
| 1160 | } |
| 1161 | }, |
| 1162 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1163 | /* Midiman/M-Audio devices */ |
| 1164 | { |
| 1165 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1166 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1167 | .vendor_name = "M-Audio", |
| 1168 | .product_name = "MidiSport 2x2", |
| 1169 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1170 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1171 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1172 | .out_cables = 0x0003, |
| 1173 | .in_cables = 0x0003 |
| 1174 | } |
| 1175 | } |
| 1176 | }, |
| 1177 | { |
| 1178 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1179 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1180 | .vendor_name = "M-Audio", |
| 1181 | .product_name = "MidiSport 1x1", |
| 1182 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1183 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1184 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1185 | .out_cables = 0x0001, |
| 1186 | .in_cables = 0x0001 |
| 1187 | } |
| 1188 | } |
| 1189 | }, |
| 1190 | { |
| 1191 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1192 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1193 | .vendor_name = "M-Audio", |
| 1194 | .product_name = "Keystation", |
| 1195 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1196 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1197 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1198 | .out_cables = 0x0001, |
| 1199 | .in_cables = 0x0001 |
| 1200 | } |
| 1201 | } |
| 1202 | }, |
| 1203 | { |
| 1204 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1205 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1206 | .vendor_name = "M-Audio", |
| 1207 | .product_name = "MidiSport 4x4", |
| 1208 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1209 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1210 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1211 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1223 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1224 | .vendor_name = "M-Audio", |
| 1225 | .product_name = "MidiSport 8x8", |
| 1226 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1227 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1228 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1229 | .out_cables = 0x01ff, |
| 1230 | .in_cables = 0x01ff |
| 1231 | } |
| 1232 | } |
| 1233 | }, |
| 1234 | { |
| 1235 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1236 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1237 | .vendor_name = "M-Audio", |
| 1238 | .product_name = "MidiSport 8x8", |
| 1239 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1240 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1241 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1242 | .out_cables = 0x01ff, |
| 1243 | .in_cables = 0x01ff |
| 1244 | } |
| 1245 | } |
| 1246 | }, |
| 1247 | { |
| 1248 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1249 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1250 | .vendor_name = "M-Audio", |
| 1251 | .product_name = "MidiSport 2x4", |
| 1252 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1253 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1254 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1255 | .out_cables = 0x000f, |
| 1256 | .in_cables = 0x0003 |
| 1257 | } |
| 1258 | } |
| 1259 | }, |
| 1260 | { |
| 1261 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1262 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1263 | .vendor_name = "M-Audio", |
| 1264 | .product_name = "Quattro", |
| 1265 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1266 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1267 | .data = & (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1268 | /* |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1313 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1314 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1326 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1327 | .vendor_name = "M-Audio", |
| 1328 | .product_name = "AudioPhile", |
| 1329 | .ifnum = 6, |
| 1330 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1331 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1332 | .out_cables = 0x0001, |
| 1333 | .in_cables = 0x0001 |
| 1334 | } |
| 1335 | } |
| 1336 | }, |
| 1337 | { |
| 1338 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1339 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1340 | .vendor_name = "M-Audio", |
| 1341 | .product_name = "Ozone", |
| 1342 | .ifnum = 3, |
| 1343 | .type = QUIRK_MIDI_MIDIMAN, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1344 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1345 | .out_cables = 0x0001, |
| 1346 | .in_cables = 0x0001 |
| 1347 | } |
| 1348 | } |
| 1349 | }, |
| 1350 | { |
| 1351 | USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1352 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1353 | .vendor_name = "M-Audio", |
| 1354 | .product_name = "OmniStudio", |
| 1355 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1356 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1357 | .data = & (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1358 | { |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1397 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1398 | .out_cables = 0x0001, |
| 1399 | .in_cables = 0x0001 |
| 1400 | } |
| 1401 | }, |
| 1402 | { |
| 1403 | .ifnum = -1 |
| 1404 | } |
| 1405 | } |
| 1406 | } |
| 1407 | }, |
| 1408 | |
Clemens Ladisch | 0243ef71 | 2006-03-09 07:55:55 +0100 | [diff] [blame^] | 1409 | /* 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1420 | /* Mark of the Unicorn devices */ |
| 1421 | { |
| 1422 | /* thanks to Robert A. Lerche <ral 'at' msbit.com> */ |
Clemens Ladisch | bbd4615 | 2005-07-04 09:21:45 +0200 | [diff] [blame] | 1423 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1429 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1430 | .vendor_name = "MOTU", |
| 1431 | .product_name = "Fastlane", |
| 1432 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1433 | .type = QUIRK_COMPOSITE, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1434 | .data = & (const struct snd_usb_audio_quirk[]) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1435 | { |
| 1436 | .ifnum = 0, |
Clemens Ladisch | 6155aff | 2005-07-04 09:20:42 +0200 | [diff] [blame] | 1437 | .type = QUIRK_MIDI_RAW |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1438 | }, |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1453 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1454 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1464 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1465 | .vendor_name = "Emagic", |
| 1466 | /* .product_name = "Unitor8", */ |
| 1467 | .ifnum = 2, |
| 1468 | .type = QUIRK_MIDI_EMAGIC, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1469 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1470 | .out_cables = 0x80ff, |
| 1471 | .in_cables = 0x80ff |
| 1472 | } |
| 1473 | } |
| 1474 | }, |
| 1475 | { |
| 1476 | USB_DEVICE(0x086a, 0x0002), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1477 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1478 | .vendor_name = "Emagic", |
| 1479 | /* .product_name = "AMT8", */ |
| 1480 | .ifnum = 2, |
| 1481 | .type = QUIRK_MIDI_EMAGIC, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1482 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1483 | .out_cables = 0x80ff, |
| 1484 | .in_cables = 0x80ff |
| 1485 | } |
| 1486 | } |
| 1487 | }, |
| 1488 | { |
| 1489 | USB_DEVICE(0x086a, 0x0003), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1490 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1491 | .vendor_name = "Emagic", |
| 1492 | /* .product_name = "MT4", */ |
| 1493 | .ifnum = 2, |
| 1494 | .type = QUIRK_MIDI_EMAGIC, |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1495 | .data = & (const struct snd_usb_midi_endpoint_info) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1496 | .out_cables = 0x800f, |
| 1497 | .in_cables = 0x8003 |
| 1498 | } |
| 1499 | } |
| 1500 | }, |
| 1501 | |
Clemens Ladisch | 31ab952 | 2005-09-26 08:55:01 +0200 | [diff] [blame] | 1502 | /* TerraTec devices */ |
| 1503 | { |
| 1504 | USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1505 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Clemens Ladisch | 31ab952 | 2005-09-26 08:55:01 +0200 | [diff] [blame] | 1506 | .vendor_name = "TerraTec", |
| 1507 | .product_name = "PHASE 26", |
| 1508 | .ifnum = 3, |
| 1509 | .type = QUIRK_MIDI_STANDARD_INTERFACE |
| 1510 | } |
| 1511 | }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1512 | { |
| 1513 | USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1514 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Clemens Ladisch | 31ab952 | 2005-09-26 08:55:01 +0200 | [diff] [blame] | 1515 | .vendor_name = "TerraTec", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1516 | .product_name = "PHASE 26", |
| 1517 | .ifnum = 3, |
| 1518 | .type = QUIRK_MIDI_STANDARD_INTERFACE |
| 1519 | } |
| 1520 | }, |
Clemens Ladisch | b2b8229 | 2006-02-08 12:38:23 +0100 | [diff] [blame] | 1521 | { |
| 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1530 | |
| 1531 | /* Novation EMS devices */ |
| 1532 | { |
| 1533 | USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1534 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1535 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1543 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1544 | .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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1552 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1553 | .vendor_name = "Novation", |
| 1554 | .product_name = "ReMOTE25", |
| 1555 | .ifnum = 0, |
| 1556 | .type = QUIRK_MIDI_NOVATION |
| 1557 | } |
| 1558 | }, |
| 1559 | |
Clemens Ladisch | cc7a59b | 2006-02-07 17:11:06 +0100 | [diff] [blame] | 1560 | /* Miditech devices */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1561 | { |
Clemens Ladisch | f38275f | 2005-07-25 16:17:29 +0200 | [diff] [blame] | 1562 | USB_DEVICE(0x4752, 0x0011), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1563 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Clemens Ladisch | f38275f | 2005-07-25 16:17:29 +0200 | [diff] [blame] | 1564 | .vendor_name = "Miditech", |
| 1565 | .product_name = "Midistart-2", |
| 1566 | .ifnum = 0, |
Clemens Ladisch | cc7a59b | 2006-02-07 17:11:06 +0100 | [diff] [blame] | 1567 | .type = QUIRK_MIDI_CME |
Clemens Ladisch | f38275f | 2005-07-25 16:17:29 +0200 | [diff] [blame] | 1568 | } |
| 1569 | }, |
Clemens Ladisch | cc7a59b | 2006-02-07 17:11:06 +0100 | [diff] [blame] | 1570 | |
| 1571 | /* Central Music devices */ |
Clemens Ladisch | f38275f | 2005-07-25 16:17:29 +0200 | [diff] [blame] | 1572 | { |
Clemens Ladisch | cc7a59b | 2006-02-07 17:11:06 +0100 | [diff] [blame] | 1573 | /* this ID used by both Miditech MidiStudio-2 and CME UF-x */ |
Clemens Ladisch | f38275f | 2005-07-25 16:17:29 +0200 | [diff] [blame] | 1574 | USB_DEVICE(0x7104, 0x2202), |
Takashi Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1575 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Clemens Ladisch | f38275f | 2005-07-25 16:17:29 +0200 | [diff] [blame] | 1576 | .ifnum = 0, |
Clemens Ladisch | cc7a59b | 2006-02-07 17:11:06 +0100 | [diff] [blame] | 1577 | .type = QUIRK_MIDI_CME |
Clemens Ladisch | f38275f | 2005-07-25 16:17:29 +0200 | [diff] [blame] | 1578 | } |
| 1579 | }, |
| 1580 | |
| 1581 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1582 | /* |
| 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 Iwai | 86e07d3 | 2005-11-17 15:08:02 +0100 | [diff] [blame] | 1590 | .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1591 | .ifnum = QUIRK_ANY_INTERFACE, |
| 1592 | .type = QUIRK_MIDI_STANDARD_INTERFACE |
| 1593 | } |
| 1594 | }, |
| 1595 | |
| 1596 | #undef USB_DEVICE_VENDOR_SPEC |