usbquirks.h 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786
  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. * The contents of this file are part of the driver's id_table.
  24. *
  25. * In a perfect world, this file would be empty.
  26. */
  27. /*
  28. * Use this for devices where other interfaces are standard compliant,
  29. * to prevent the quirk being applied to those interfaces. (To work with
  30. * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
  31. */
  32. #define USB_DEVICE_VENDOR_SPEC(vend, prod) \
  33. .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
  34. USB_DEVICE_ID_MATCH_PRODUCT | \
  35. USB_DEVICE_ID_MATCH_INT_CLASS, \
  36. .idVendor = vend, \
  37. .idProduct = prod, \
  38. .bInterfaceClass = USB_CLASS_VENDOR_SPEC
  39. /*
  40. * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
  41. * class matches do not take effect without an explicit ID match.
  42. */
  43. {
  44. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  45. USB_DEVICE_ID_MATCH_INT_CLASS |
  46. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  47. .idVendor = 0x046d,
  48. .idProduct = 0x0850,
  49. .bInterfaceClass = USB_CLASS_AUDIO,
  50. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  51. },
  52. {
  53. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  54. USB_DEVICE_ID_MATCH_INT_CLASS |
  55. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  56. .idVendor = 0x046d,
  57. .idProduct = 0x08ae,
  58. .bInterfaceClass = USB_CLASS_AUDIO,
  59. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  60. },
  61. {
  62. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  63. USB_DEVICE_ID_MATCH_INT_CLASS |
  64. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  65. .idVendor = 0x046d,
  66. .idProduct = 0x08c6,
  67. .bInterfaceClass = USB_CLASS_AUDIO,
  68. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  69. },
  70. {
  71. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  72. USB_DEVICE_ID_MATCH_INT_CLASS |
  73. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  74. .idVendor = 0x046d,
  75. .idProduct = 0x0850,
  76. .bInterfaceClass = USB_CLASS_AUDIO,
  77. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  78. },
  79. {
  80. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  81. USB_DEVICE_ID_MATCH_INT_CLASS |
  82. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  83. .idVendor = 0x046d,
  84. .idProduct = 0x08f0,
  85. .bInterfaceClass = USB_CLASS_AUDIO,
  86. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  87. },
  88. {
  89. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  90. USB_DEVICE_ID_MATCH_INT_CLASS |
  91. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  92. .idVendor = 0x046d,
  93. .idProduct = 0x08f6,
  94. .bInterfaceClass = USB_CLASS_AUDIO,
  95. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  96. },
  97. /*
  98. * Yamaha devices
  99. */
  100. #define YAMAHA_DEVICE(id, name) { \
  101. USB_DEVICE(0x0499, id), \
  102. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  103. .vendor_name = "Yamaha", \
  104. .product_name = name, \
  105. .ifnum = QUIRK_ANY_INTERFACE, \
  106. .type = QUIRK_MIDI_YAMAHA \
  107. } \
  108. }
  109. #define YAMAHA_INTERFACE(id, intf, name) { \
  110. USB_DEVICE_VENDOR_SPEC(0x0499, id), \
  111. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  112. .vendor_name = "Yamaha", \
  113. .product_name = name, \
  114. .ifnum = intf, \
  115. .type = QUIRK_MIDI_YAMAHA \
  116. } \
  117. }
  118. YAMAHA_DEVICE(0x1000, "UX256"),
  119. YAMAHA_DEVICE(0x1001, "MU1000"),
  120. YAMAHA_DEVICE(0x1002, "MU2000"),
  121. YAMAHA_DEVICE(0x1003, "MU500"),
  122. YAMAHA_INTERFACE(0x1004, 3, "UW500"),
  123. YAMAHA_DEVICE(0x1005, "MOTIF6"),
  124. YAMAHA_DEVICE(0x1006, "MOTIF7"),
  125. YAMAHA_DEVICE(0x1007, "MOTIF8"),
  126. YAMAHA_DEVICE(0x1008, "UX96"),
  127. YAMAHA_DEVICE(0x1009, "UX16"),
  128. YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
  129. YAMAHA_DEVICE(0x100c, "UC-MX"),
  130. YAMAHA_DEVICE(0x100d, "UC-KX"),
  131. YAMAHA_DEVICE(0x100e, "S08"),
  132. YAMAHA_DEVICE(0x100f, "CLP-150"),
  133. YAMAHA_DEVICE(0x1010, "CLP-170"),
  134. YAMAHA_DEVICE(0x1011, "P-250"),
  135. YAMAHA_DEVICE(0x1012, "TYROS"),
  136. YAMAHA_DEVICE(0x1013, "PF-500"),
  137. YAMAHA_DEVICE(0x1014, "S90"),
  138. YAMAHA_DEVICE(0x1015, "MOTIF-R"),
  139. YAMAHA_DEVICE(0x1016, "MDP-5"),
  140. YAMAHA_DEVICE(0x1017, "CVP-204"),
  141. YAMAHA_DEVICE(0x1018, "CVP-206"),
  142. YAMAHA_DEVICE(0x1019, "CVP-208"),
  143. YAMAHA_DEVICE(0x101a, "CVP-210"),
  144. YAMAHA_DEVICE(0x101b, "PSR-1100"),
  145. YAMAHA_DEVICE(0x101c, "PSR-2100"),
  146. YAMAHA_DEVICE(0x101d, "CLP-175"),
  147. YAMAHA_DEVICE(0x101e, "PSR-K1"),
  148. YAMAHA_DEVICE(0x101f, "EZ-J24"),
  149. YAMAHA_DEVICE(0x1020, "EZ-250i"),
  150. YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
  151. YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
  152. YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
  153. YAMAHA_DEVICE(0x1024, "CVP-301"),
  154. YAMAHA_DEVICE(0x1025, "CVP-303"),
  155. YAMAHA_DEVICE(0x1026, "CVP-305"),
  156. YAMAHA_DEVICE(0x1027, "CVP-307"),
  157. YAMAHA_DEVICE(0x1028, "CVP-309"),
  158. YAMAHA_DEVICE(0x1029, "CVP-309GP"),
  159. YAMAHA_DEVICE(0x102a, "PSR-1500"),
  160. YAMAHA_DEVICE(0x102b, "PSR-3000"),
  161. YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
  162. YAMAHA_DEVICE(0x1030, "PSR-295/293"),
  163. YAMAHA_DEVICE(0x1031, "DGX-205/203"),
  164. YAMAHA_DEVICE(0x1032, "DGX-305"),
  165. YAMAHA_DEVICE(0x1033, "DGX-505"),
  166. YAMAHA_DEVICE(0x1034, NULL),
  167. YAMAHA_DEVICE(0x1035, NULL),
  168. YAMAHA_DEVICE(0x1036, NULL),
  169. YAMAHA_DEVICE(0x1037, NULL),
  170. YAMAHA_DEVICE(0x1038, NULL),
  171. YAMAHA_DEVICE(0x1039, NULL),
  172. YAMAHA_DEVICE(0x103a, NULL),
  173. YAMAHA_DEVICE(0x103b, NULL),
  174. YAMAHA_DEVICE(0x103c, NULL),
  175. YAMAHA_DEVICE(0x103d, NULL),
  176. YAMAHA_DEVICE(0x103e, NULL),
  177. YAMAHA_DEVICE(0x103f, NULL),
  178. YAMAHA_DEVICE(0x1040, NULL),
  179. YAMAHA_DEVICE(0x1041, NULL),
  180. YAMAHA_DEVICE(0x1042, NULL),
  181. YAMAHA_DEVICE(0x1043, NULL),
  182. YAMAHA_DEVICE(0x1044, NULL),
  183. YAMAHA_DEVICE(0x1045, NULL),
  184. YAMAHA_DEVICE(0x2000, "DGP-7"),
  185. YAMAHA_DEVICE(0x2001, "DGP-5"),
  186. YAMAHA_DEVICE(0x2002, NULL),
  187. YAMAHA_DEVICE(0x5000, "CS1D"),
  188. YAMAHA_DEVICE(0x5001, "DSP1D"),
  189. YAMAHA_DEVICE(0x5002, "DME32"),
  190. YAMAHA_DEVICE(0x5003, "DM2000"),
  191. YAMAHA_DEVICE(0x5004, "02R96"),
  192. YAMAHA_DEVICE(0x5005, "ACU16-C"),
  193. YAMAHA_DEVICE(0x5006, "NHB32-C"),
  194. YAMAHA_DEVICE(0x5007, "DM1000"),
  195. YAMAHA_DEVICE(0x5008, "01V96"),
  196. YAMAHA_DEVICE(0x5009, "SPX2000"),
  197. YAMAHA_DEVICE(0x500a, "PM5D"),
  198. YAMAHA_DEVICE(0x500b, "DME64N"),
  199. YAMAHA_DEVICE(0x500c, "DME24N"),
  200. YAMAHA_DEVICE(0x500d, NULL),
  201. YAMAHA_DEVICE(0x500e, NULL),
  202. YAMAHA_DEVICE(0x500f, NULL),
  203. YAMAHA_DEVICE(0x7000, "DTX"),
  204. YAMAHA_DEVICE(0x7010, "UB99"),
  205. #undef YAMAHA_DEVICE
  206. #undef YAMAHA_INTERFACE
  207. /*
  208. * Roland/RolandED/Edirol/BOSS devices
  209. */
  210. {
  211. USB_DEVICE(0x0582, 0x0000),
  212. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  213. .vendor_name = "Roland",
  214. .product_name = "UA-100",
  215. .ifnum = QUIRK_ANY_INTERFACE,
  216. .type = QUIRK_COMPOSITE,
  217. .data = (const struct snd_usb_audio_quirk[]) {
  218. {
  219. .ifnum = 0,
  220. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  221. .data = & (const struct audioformat) {
  222. .format = SNDRV_PCM_FORMAT_S16_LE,
  223. .channels = 4,
  224. .iface = 0,
  225. .altsetting = 1,
  226. .altset_idx = 1,
  227. .attributes = 0,
  228. .endpoint = 0x01,
  229. .ep_attr = 0x09,
  230. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  231. .rate_min = 44100,
  232. .rate_max = 44100,
  233. }
  234. },
  235. {
  236. .ifnum = 1,
  237. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  238. .data = & (const struct audioformat) {
  239. .format = SNDRV_PCM_FORMAT_S16_LE,
  240. .channels = 2,
  241. .iface = 1,
  242. .altsetting = 1,
  243. .altset_idx = 1,
  244. .attributes = EP_CS_ATTR_FILL_MAX,
  245. .endpoint = 0x81,
  246. .ep_attr = 0x05,
  247. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  248. .rate_min = 44100,
  249. .rate_max = 44100,
  250. }
  251. },
  252. {
  253. .ifnum = 2,
  254. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  255. .data = & (const struct snd_usb_midi_endpoint_info) {
  256. .out_cables = 0x0007,
  257. .in_cables = 0x0007
  258. }
  259. },
  260. {
  261. .ifnum = -1
  262. }
  263. }
  264. }
  265. },
  266. {
  267. USB_DEVICE(0x0582, 0x0002),
  268. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  269. .vendor_name = "EDIROL",
  270. .product_name = "UM-4",
  271. .ifnum = QUIRK_ANY_INTERFACE,
  272. .type = QUIRK_COMPOSITE,
  273. .data = (const struct snd_usb_audio_quirk[]) {
  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,
  285. .data = & (const struct snd_usb_midi_endpoint_info) {
  286. .out_cables = 0x000f,
  287. .in_cables = 0x000f
  288. }
  289. },
  290. {
  291. .ifnum = -1
  292. }
  293. }
  294. }
  295. },
  296. {
  297. USB_DEVICE(0x0582, 0x0003),
  298. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  299. .vendor_name = "Roland",
  300. .product_name = "SC-8850",
  301. .ifnum = QUIRK_ANY_INTERFACE,
  302. .type = QUIRK_COMPOSITE,
  303. .data = (const struct snd_usb_audio_quirk[]) {
  304. {
  305. .ifnum = 0,
  306. .type = QUIRK_IGNORE_INTERFACE
  307. },
  308. {
  309. .ifnum = 1,
  310. .type = QUIRK_IGNORE_INTERFACE
  311. },
  312. {
  313. .ifnum = 2,
  314. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  315. .data = & (const struct snd_usb_midi_endpoint_info) {
  316. .out_cables = 0x003f,
  317. .in_cables = 0x003f
  318. }
  319. },
  320. {
  321. .ifnum = -1
  322. }
  323. }
  324. }
  325. },
  326. {
  327. USB_DEVICE(0x0582, 0x0004),
  328. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  329. .vendor_name = "Roland",
  330. .product_name = "U-8",
  331. .ifnum = QUIRK_ANY_INTERFACE,
  332. .type = QUIRK_COMPOSITE,
  333. .data = (const struct snd_usb_audio_quirk[]) {
  334. {
  335. .ifnum = 0,
  336. .type = QUIRK_IGNORE_INTERFACE
  337. },
  338. {
  339. .ifnum = 1,
  340. .type = QUIRK_IGNORE_INTERFACE
  341. },
  342. {
  343. .ifnum = 2,
  344. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  345. .data = & (const struct snd_usb_midi_endpoint_info) {
  346. .out_cables = 0x0005,
  347. .in_cables = 0x0005
  348. }
  349. },
  350. {
  351. .ifnum = -1
  352. }
  353. }
  354. }
  355. },
  356. {
  357. /* Has ID 0x0099 when not in "Advanced Driver" mode.
  358. * The UM-2EX has only one input, but we cannot detect this. */
  359. USB_DEVICE(0x0582, 0x0005),
  360. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  361. .vendor_name = "EDIROL",
  362. .product_name = "UM-2",
  363. .ifnum = QUIRK_ANY_INTERFACE,
  364. .type = QUIRK_COMPOSITE,
  365. .data = (const struct snd_usb_audio_quirk[]) {
  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,
  377. .data = & (const struct snd_usb_midi_endpoint_info) {
  378. .out_cables = 0x0003,
  379. .in_cables = 0x0003
  380. }
  381. },
  382. {
  383. .ifnum = -1
  384. }
  385. }
  386. }
  387. },
  388. {
  389. USB_DEVICE(0x0582, 0x0007),
  390. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  391. .vendor_name = "Roland",
  392. .product_name = "SC-8820",
  393. .ifnum = QUIRK_ANY_INTERFACE,
  394. .type = QUIRK_COMPOSITE,
  395. .data = (const struct snd_usb_audio_quirk[]) {
  396. {
  397. .ifnum = 0,
  398. .type = QUIRK_IGNORE_INTERFACE
  399. },
  400. {
  401. .ifnum = 1,
  402. .type = QUIRK_IGNORE_INTERFACE
  403. },
  404. {
  405. .ifnum = 2,
  406. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  407. .data = & (const struct snd_usb_midi_endpoint_info) {
  408. .out_cables = 0x0013,
  409. .in_cables = 0x0013
  410. }
  411. },
  412. {
  413. .ifnum = -1
  414. }
  415. }
  416. }
  417. },
  418. {
  419. USB_DEVICE(0x0582, 0x0008),
  420. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  421. .vendor_name = "Roland",
  422. .product_name = "PC-300",
  423. .ifnum = QUIRK_ANY_INTERFACE,
  424. .type = QUIRK_COMPOSITE,
  425. .data = (const struct snd_usb_audio_quirk[]) {
  426. {
  427. .ifnum = 0,
  428. .type = QUIRK_IGNORE_INTERFACE
  429. },
  430. {
  431. .ifnum = 1,
  432. .type = QUIRK_IGNORE_INTERFACE
  433. },
  434. {
  435. .ifnum = 2,
  436. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  437. .data = & (const struct snd_usb_midi_endpoint_info) {
  438. .out_cables = 0x0001,
  439. .in_cables = 0x0001
  440. }
  441. },
  442. {
  443. .ifnum = -1
  444. }
  445. }
  446. }
  447. },
  448. {
  449. /* has ID 0x009d when not in "Advanced Driver" mode */
  450. USB_DEVICE(0x0582, 0x0009),
  451. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  452. .vendor_name = "EDIROL",
  453. .product_name = "UM-1",
  454. .ifnum = QUIRK_ANY_INTERFACE,
  455. .type = QUIRK_COMPOSITE,
  456. .data = (const struct snd_usb_audio_quirk[]) {
  457. {
  458. .ifnum = 0,
  459. .type = QUIRK_IGNORE_INTERFACE
  460. },
  461. {
  462. .ifnum = 1,
  463. .type = QUIRK_IGNORE_INTERFACE
  464. },
  465. {
  466. .ifnum = 2,
  467. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  468. .data = & (const struct snd_usb_midi_endpoint_info) {
  469. .out_cables = 0x0001,
  470. .in_cables = 0x0001
  471. }
  472. },
  473. {
  474. .ifnum = -1
  475. }
  476. }
  477. }
  478. },
  479. {
  480. USB_DEVICE(0x0582, 0x000b),
  481. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  482. .vendor_name = "Roland",
  483. .product_name = "SK-500",
  484. .ifnum = QUIRK_ANY_INTERFACE,
  485. .type = QUIRK_COMPOSITE,
  486. .data = (const struct snd_usb_audio_quirk[]) {
  487. {
  488. .ifnum = 0,
  489. .type = QUIRK_IGNORE_INTERFACE
  490. },
  491. {
  492. .ifnum = 1,
  493. .type = QUIRK_IGNORE_INTERFACE
  494. },
  495. {
  496. .ifnum = 2,
  497. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  498. .data = & (const struct snd_usb_midi_endpoint_info) {
  499. .out_cables = 0x0013,
  500. .in_cables = 0x0013
  501. }
  502. },
  503. {
  504. .ifnum = -1
  505. }
  506. }
  507. }
  508. },
  509. {
  510. /* thanks to Emiliano Grilli <emillo@libero.it>
  511. * for helping researching this data */
  512. USB_DEVICE(0x0582, 0x000c),
  513. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  514. .vendor_name = "Roland",
  515. .product_name = "SC-D70",
  516. .ifnum = QUIRK_ANY_INTERFACE,
  517. .type = QUIRK_COMPOSITE,
  518. .data = (const struct snd_usb_audio_quirk[]) {
  519. {
  520. .ifnum = 0,
  521. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  522. .data = & (const struct audioformat) {
  523. .format = SNDRV_PCM_FORMAT_S24_3LE,
  524. .channels = 2,
  525. .iface = 0,
  526. .altsetting = 1,
  527. .altset_idx = 1,
  528. .attributes = 0,
  529. .endpoint = 0x01,
  530. .ep_attr = 0x01,
  531. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  532. .rate_min = 44100,
  533. .rate_max = 44100,
  534. }
  535. },
  536. {
  537. .ifnum = 1,
  538. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  539. .data = & (const struct audioformat) {
  540. .format = SNDRV_PCM_FORMAT_S24_3LE,
  541. .channels = 2,
  542. .iface = 1,
  543. .altsetting = 1,
  544. .altset_idx = 1,
  545. .attributes = 0,
  546. .endpoint = 0x81,
  547. .ep_attr = 0x01,
  548. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  549. .rate_min = 44100,
  550. .rate_max = 44100,
  551. }
  552. },
  553. {
  554. .ifnum = 2,
  555. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  556. .data = & (const struct snd_usb_midi_endpoint_info) {
  557. .out_cables = 0x0007,
  558. .in_cables = 0x0007
  559. }
  560. },
  561. {
  562. .ifnum = -1
  563. }
  564. }
  565. }
  566. },
  567. { /*
  568. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  569. * If the advanced mode switch at the back of the unit is off, the
  570. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  571. * but offers only 16-bit PCM.
  572. * In advanced mode, the UA-5 will output S24_3LE samples (two
  573. * channels) at the rate indicated on the front switch, including
  574. * the 96kHz sample rate.
  575. */
  576. USB_DEVICE(0x0582, 0x0010),
  577. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  578. .vendor_name = "EDIROL",
  579. .product_name = "UA-5",
  580. .ifnum = QUIRK_ANY_INTERFACE,
  581. .type = QUIRK_COMPOSITE,
  582. .data = (const struct snd_usb_audio_quirk[]) {
  583. {
  584. .ifnum = 1,
  585. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  586. },
  587. {
  588. .ifnum = 2,
  589. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  590. },
  591. {
  592. .ifnum = -1
  593. }
  594. }
  595. }
  596. },
  597. {
  598. /* has ID 0x0013 when not in "Advanced Driver" mode */
  599. USB_DEVICE(0x0582, 0x0012),
  600. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  601. .vendor_name = "Roland",
  602. .product_name = "XV-5050",
  603. .ifnum = 0,
  604. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  605. .data = & (const struct snd_usb_midi_endpoint_info) {
  606. .out_cables = 0x0001,
  607. .in_cables = 0x0001
  608. }
  609. }
  610. },
  611. {
  612. /* has ID 0x0015 when not in "Advanced Driver" mode */
  613. USB_DEVICE(0x0582, 0x0014),
  614. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  615. .vendor_name = "EDIROL",
  616. .product_name = "UM-880",
  617. .ifnum = 0,
  618. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  619. .data = & (const struct snd_usb_midi_endpoint_info) {
  620. .out_cables = 0x01ff,
  621. .in_cables = 0x01ff
  622. }
  623. }
  624. },
  625. {
  626. /* has ID 0x0017 when not in "Advanced Driver" mode */
  627. USB_DEVICE(0x0582, 0x0016),
  628. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  629. .vendor_name = "EDIROL",
  630. .product_name = "SD-90",
  631. .ifnum = QUIRK_ANY_INTERFACE,
  632. .type = QUIRK_COMPOSITE,
  633. .data = (const struct snd_usb_audio_quirk[]) {
  634. {
  635. .ifnum = 0,
  636. .type = QUIRK_IGNORE_INTERFACE
  637. },
  638. {
  639. .ifnum = 1,
  640. .type = QUIRK_IGNORE_INTERFACE
  641. },
  642. {
  643. .ifnum = 2,
  644. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  645. .data = & (const struct snd_usb_midi_endpoint_info) {
  646. .out_cables = 0x000f,
  647. .in_cables = 0x000f
  648. }
  649. },
  650. {
  651. .ifnum = -1
  652. }
  653. }
  654. }
  655. },
  656. {
  657. /* has ID 0x001c when not in "Advanced Driver" mode */
  658. USB_DEVICE(0x0582, 0x001b),
  659. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  660. .vendor_name = "Roland",
  661. .product_name = "MMP-2",
  662. .ifnum = QUIRK_ANY_INTERFACE,
  663. .type = QUIRK_COMPOSITE,
  664. .data = (const struct snd_usb_audio_quirk[]) {
  665. {
  666. .ifnum = 0,
  667. .type = QUIRK_IGNORE_INTERFACE
  668. },
  669. {
  670. .ifnum = 1,
  671. .type = QUIRK_IGNORE_INTERFACE
  672. },
  673. {
  674. .ifnum = 2,
  675. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  676. .data = & (const struct snd_usb_midi_endpoint_info) {
  677. .out_cables = 0x0001,
  678. .in_cables = 0x0001
  679. }
  680. },
  681. {
  682. .ifnum = -1
  683. }
  684. }
  685. }
  686. },
  687. {
  688. /* has ID 0x001e when not in "Advanced Driver" mode */
  689. USB_DEVICE(0x0582, 0x001d),
  690. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  691. .vendor_name = "Roland",
  692. .product_name = "V-SYNTH",
  693. .ifnum = 0,
  694. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  695. .data = & (const struct snd_usb_midi_endpoint_info) {
  696. .out_cables = 0x0001,
  697. .in_cables = 0x0001
  698. }
  699. }
  700. },
  701. {
  702. /* has ID 0x0024 when not in "Advanced Driver" mode */
  703. USB_DEVICE(0x0582, 0x0023),
  704. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  705. .vendor_name = "EDIROL",
  706. .product_name = "UM-550",
  707. .ifnum = 0,
  708. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  709. .data = & (const struct snd_usb_midi_endpoint_info) {
  710. .out_cables = 0x003f,
  711. .in_cables = 0x003f
  712. }
  713. }
  714. },
  715. {
  716. /*
  717. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  718. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  719. * and no MIDI.
  720. */
  721. USB_DEVICE(0x0582, 0x0025),
  722. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  723. .vendor_name = "EDIROL",
  724. .product_name = "UA-20",
  725. .ifnum = QUIRK_ANY_INTERFACE,
  726. .type = QUIRK_COMPOSITE,
  727. .data = (const struct snd_usb_audio_quirk[]) {
  728. {
  729. .ifnum = 0,
  730. .type = QUIRK_IGNORE_INTERFACE
  731. },
  732. {
  733. .ifnum = 1,
  734. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  735. .data = & (const struct audioformat) {
  736. .format = SNDRV_PCM_FORMAT_S24_3LE,
  737. .channels = 2,
  738. .iface = 1,
  739. .altsetting = 1,
  740. .altset_idx = 1,
  741. .attributes = 0,
  742. .endpoint = 0x01,
  743. .ep_attr = 0x01,
  744. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  745. .rate_min = 44100,
  746. .rate_max = 44100,
  747. }
  748. },
  749. {
  750. .ifnum = 2,
  751. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  752. .data = & (const struct audioformat) {
  753. .format = SNDRV_PCM_FORMAT_S24_3LE,
  754. .channels = 2,
  755. .iface = 2,
  756. .altsetting = 1,
  757. .altset_idx = 1,
  758. .attributes = 0,
  759. .endpoint = 0x82,
  760. .ep_attr = 0x01,
  761. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  762. .rate_min = 44100,
  763. .rate_max = 44100,
  764. }
  765. },
  766. {
  767. .ifnum = 3,
  768. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  769. .data = & (const struct snd_usb_midi_endpoint_info) {
  770. .out_cables = 0x0001,
  771. .in_cables = 0x0001
  772. }
  773. },
  774. {
  775. .ifnum = -1
  776. }
  777. }
  778. }
  779. },
  780. {
  781. /* has ID 0x0028 when not in "Advanced Driver" mode */
  782. USB_DEVICE(0x0582, 0x0027),
  783. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  784. .vendor_name = "EDIROL",
  785. .product_name = "SD-20",
  786. .ifnum = 0,
  787. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  788. .data = & (const struct snd_usb_midi_endpoint_info) {
  789. .out_cables = 0x0003,
  790. .in_cables = 0x0007
  791. }
  792. }
  793. },
  794. {
  795. /* has ID 0x002a when not in "Advanced Driver" mode */
  796. USB_DEVICE(0x0582, 0x0029),
  797. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  798. .vendor_name = "EDIROL",
  799. .product_name = "SD-80",
  800. .ifnum = 0,
  801. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  802. .data = & (const struct snd_usb_midi_endpoint_info) {
  803. .out_cables = 0x000f,
  804. .in_cables = 0x000f
  805. }
  806. }
  807. },
  808. { /*
  809. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  810. * If the sample format switch is not in an advanced setting, the
  811. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  812. * but offers only 16-bit PCM and no MIDI.
  813. */
  814. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  815. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  816. .vendor_name = "EDIROL",
  817. .product_name = "UA-700",
  818. .ifnum = QUIRK_ANY_INTERFACE,
  819. .type = QUIRK_COMPOSITE,
  820. .data = (const struct snd_usb_audio_quirk[]) {
  821. {
  822. .ifnum = 1,
  823. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  824. },
  825. {
  826. .ifnum = 2,
  827. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  828. },
  829. {
  830. .ifnum = 3,
  831. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  832. },
  833. {
  834. .ifnum = -1
  835. }
  836. }
  837. }
  838. },
  839. {
  840. /* has ID 0x002e when not in "Advanced Driver" mode */
  841. USB_DEVICE(0x0582, 0x002d),
  842. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  843. .vendor_name = "Roland",
  844. .product_name = "XV-2020",
  845. .ifnum = 0,
  846. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  847. .data = & (const struct snd_usb_midi_endpoint_info) {
  848. .out_cables = 0x0001,
  849. .in_cables = 0x0001
  850. }
  851. }
  852. },
  853. {
  854. /* has ID 0x0030 when not in "Advanced Driver" mode */
  855. USB_DEVICE(0x0582, 0x002f),
  856. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  857. .vendor_name = "Roland",
  858. .product_name = "VariOS",
  859. .ifnum = 0,
  860. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  861. .data = & (const struct snd_usb_midi_endpoint_info) {
  862. .out_cables = 0x0007,
  863. .in_cables = 0x0007
  864. }
  865. }
  866. },
  867. {
  868. /* has ID 0x0034 when not in "Advanced Driver" mode */
  869. USB_DEVICE(0x0582, 0x0033),
  870. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  871. .vendor_name = "EDIROL",
  872. .product_name = "PCR",
  873. .ifnum = 0,
  874. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  875. .data = & (const struct snd_usb_midi_endpoint_info) {
  876. .out_cables = 0x0003,
  877. .in_cables = 0x0007
  878. }
  879. }
  880. },
  881. /* TODO: add Roland M-1000 support */
  882. {
  883. /*
  884. * Has ID 0x0038 when not in "Advanced Driver" mode;
  885. * later revisions use IDs 0x0054 and 0x00a2.
  886. */
  887. USB_DEVICE(0x0582, 0x0037),
  888. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  889. .vendor_name = "Roland",
  890. .product_name = "Digital Piano",
  891. .ifnum = 0,
  892. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  893. .data = & (const struct snd_usb_midi_endpoint_info) {
  894. .out_cables = 0x0001,
  895. .in_cables = 0x0001
  896. }
  897. }
  898. },
  899. {
  900. /*
  901. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  902. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  903. * and no MIDI.
  904. */
  905. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  906. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  907. .vendor_name = "BOSS",
  908. .product_name = "GS-10",
  909. .ifnum = QUIRK_ANY_INTERFACE,
  910. .type = QUIRK_COMPOSITE,
  911. .data = & (const struct snd_usb_audio_quirk[]) {
  912. {
  913. .ifnum = 1,
  914. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  915. },
  916. {
  917. .ifnum = 2,
  918. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  919. },
  920. {
  921. .ifnum = 3,
  922. .type = QUIRK_MIDI_STANDARD_INTERFACE
  923. },
  924. {
  925. .ifnum = -1
  926. }
  927. }
  928. }
  929. },
  930. {
  931. /* has ID 0x0041 when not in "Advanced Driver" mode */
  932. USB_DEVICE(0x0582, 0x0040),
  933. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  934. .vendor_name = "Roland",
  935. .product_name = "GI-20",
  936. .ifnum = 0,
  937. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  938. .data = & (const struct snd_usb_midi_endpoint_info) {
  939. .out_cables = 0x0001,
  940. .in_cables = 0x0001
  941. }
  942. }
  943. },
  944. {
  945. /* has ID 0x0043 when not in "Advanced Driver" mode */
  946. USB_DEVICE(0x0582, 0x0042),
  947. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  948. .vendor_name = "Roland",
  949. .product_name = "RS-70",
  950. .ifnum = 0,
  951. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  952. .data = & (const struct snd_usb_midi_endpoint_info) {
  953. .out_cables = 0x0001,
  954. .in_cables = 0x0001
  955. }
  956. }
  957. },
  958. {
  959. USB_DEVICE(0x0582, 0x0044),
  960. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  961. .vendor_name = "Roland",
  962. .product_name = "UA-1000",
  963. .ifnum = QUIRK_ANY_INTERFACE,
  964. .type = QUIRK_COMPOSITE,
  965. .data = (const struct snd_usb_audio_quirk[]) {
  966. {
  967. .ifnum = 1,
  968. .type = QUIRK_AUDIO_EDIROL_UA1000
  969. },
  970. {
  971. .ifnum = 2,
  972. .type = QUIRK_AUDIO_EDIROL_UA1000
  973. },
  974. {
  975. .ifnum = 3,
  976. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  977. .data = & (const struct snd_usb_midi_endpoint_info) {
  978. .out_cables = 0x0003,
  979. .in_cables = 0x0003
  980. }
  981. },
  982. {
  983. .ifnum = -1
  984. }
  985. }
  986. }
  987. },
  988. {
  989. /* has ID 0x004a when not in "Advanced Driver" mode */
  990. USB_DEVICE(0x0582, 0x0048),
  991. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  992. .vendor_name = "EDIROL",
  993. .product_name = "UR-80",
  994. .ifnum = 0,
  995. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  996. .data = & (const struct snd_usb_midi_endpoint_info) {
  997. .out_cables = 0x0003,
  998. .in_cables = 0x0007
  999. }
  1000. }
  1001. },
  1002. /* TODO: add Edirol M-100FX support */
  1003. {
  1004. /* has ID 0x004e when not in "Advanced Driver" mode */
  1005. USB_DEVICE(0x0582, 0x004c),
  1006. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1007. .vendor_name = "EDIROL",
  1008. .product_name = "PCR-A",
  1009. .ifnum = QUIRK_ANY_INTERFACE,
  1010. .type = QUIRK_COMPOSITE,
  1011. .data = (const struct snd_usb_audio_quirk[]) {
  1012. {
  1013. .ifnum = 1,
  1014. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1015. },
  1016. {
  1017. .ifnum = 2,
  1018. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1019. },
  1020. {
  1021. .ifnum = -1
  1022. }
  1023. }
  1024. }
  1025. },
  1026. {
  1027. /* has ID 0x004f when not in "Advanced Driver" mode */
  1028. USB_DEVICE(0x0582, 0x004d),
  1029. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1030. .vendor_name = "EDIROL",
  1031. .product_name = "PCR-A",
  1032. .ifnum = 0,
  1033. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1034. .data = & (const struct snd_usb_midi_endpoint_info) {
  1035. .out_cables = 0x0003,
  1036. .in_cables = 0x0007
  1037. }
  1038. }
  1039. },
  1040. {
  1041. /*
  1042. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  1043. * is standard compliant, but has only 16-bit PCM.
  1044. */
  1045. USB_DEVICE(0x0582, 0x0050),
  1046. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1047. .vendor_name = "EDIROL",
  1048. .product_name = "UA-3FX",
  1049. .ifnum = QUIRK_ANY_INTERFACE,
  1050. .type = QUIRK_COMPOSITE,
  1051. .data = (const struct snd_usb_audio_quirk[]) {
  1052. {
  1053. .ifnum = 1,
  1054. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1055. },
  1056. {
  1057. .ifnum = 2,
  1058. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1059. },
  1060. {
  1061. .ifnum = -1
  1062. }
  1063. }
  1064. }
  1065. },
  1066. {
  1067. USB_DEVICE(0x0582, 0x0052),
  1068. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1069. .vendor_name = "EDIROL",
  1070. .product_name = "UM-1SX",
  1071. .ifnum = 0,
  1072. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1073. }
  1074. },
  1075. {
  1076. USB_DEVICE(0x0582, 0x0060),
  1077. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1078. .vendor_name = "Roland",
  1079. .product_name = "EXR Series",
  1080. .ifnum = 0,
  1081. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1082. }
  1083. },
  1084. {
  1085. /* has ID 0x0067 when not in "Advanced Driver" mode */
  1086. USB_DEVICE(0x0582, 0x0065),
  1087. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1088. .vendor_name = "EDIROL",
  1089. .product_name = "PCR-1",
  1090. .ifnum = 0,
  1091. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1092. .data = & (const struct snd_usb_midi_endpoint_info) {
  1093. .out_cables = 0x0001,
  1094. .in_cables = 0x0003
  1095. }
  1096. }
  1097. },
  1098. {
  1099. /* has ID 0x006b when not in "Advanced Driver" mode */
  1100. USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
  1101. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1102. .vendor_name = "Roland",
  1103. .product_name = "SP-606",
  1104. .ifnum = 3,
  1105. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1106. .data = & (const struct snd_usb_midi_endpoint_info) {
  1107. .out_cables = 0x0001,
  1108. .in_cables = 0x0001
  1109. }
  1110. }
  1111. },
  1112. {
  1113. /* has ID 0x006e when not in "Advanced Driver" mode */
  1114. USB_DEVICE(0x0582, 0x006d),
  1115. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1116. .vendor_name = "Roland",
  1117. .product_name = "FANTOM-X",
  1118. .ifnum = 0,
  1119. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1120. .data = & (const struct snd_usb_midi_endpoint_info) {
  1121. .out_cables = 0x0001,
  1122. .in_cables = 0x0001
  1123. }
  1124. }
  1125. },
  1126. {
  1127. USB_DEVICE(0x582, 0x00a6),
  1128. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1129. .vendor_name = "Roland",
  1130. .product_name = "Juno-G",
  1131. .ifnum = 0,
  1132. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1133. .data = & (const struct snd_usb_midi_endpoint_info) {
  1134. .out_cables = 0x0001,
  1135. .in_cables = 0x0001
  1136. }
  1137. }
  1138. },
  1139. { /*
  1140. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  1141. * If the switch is not in an advanced setting, the UA-25 has
  1142. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  1143. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1144. */
  1145. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  1146. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1147. .vendor_name = "EDIROL",
  1148. .product_name = "UA-25",
  1149. .ifnum = QUIRK_ANY_INTERFACE,
  1150. .type = QUIRK_COMPOSITE,
  1151. .data = (const struct snd_usb_audio_quirk[]) {
  1152. {
  1153. .ifnum = 0,
  1154. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1155. },
  1156. {
  1157. .ifnum = 1,
  1158. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1159. },
  1160. {
  1161. .ifnum = 2,
  1162. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1163. },
  1164. {
  1165. .ifnum = -1
  1166. }
  1167. }
  1168. }
  1169. },
  1170. {
  1171. /* has ID 0x0076 when not in "Advanced Driver" mode */
  1172. USB_DEVICE(0x0582, 0x0075),
  1173. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1174. .vendor_name = "BOSS",
  1175. .product_name = "DR-880",
  1176. .ifnum = 0,
  1177. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1178. .data = & (const struct snd_usb_midi_endpoint_info) {
  1179. .out_cables = 0x0001,
  1180. .in_cables = 0x0001
  1181. }
  1182. }
  1183. },
  1184. {
  1185. /* has ID 0x007b when not in "Advanced Driver" mode */
  1186. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1187. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1188. .vendor_name = "Roland",
  1189. /* "RD" or "RD-700SX"? */
  1190. .ifnum = 0,
  1191. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1192. .data = & (const struct snd_usb_midi_endpoint_info) {
  1193. .out_cables = 0x0003,
  1194. .in_cables = 0x0003
  1195. }
  1196. }
  1197. },
  1198. /* Roland UA-101 in High-Speed Mode only */
  1199. {
  1200. USB_DEVICE(0x0582, 0x007d),
  1201. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1202. .vendor_name = "Roland",
  1203. .product_name = "UA-101",
  1204. .ifnum = QUIRK_ANY_INTERFACE,
  1205. .type = QUIRK_COMPOSITE,
  1206. .data = (const struct snd_usb_audio_quirk[]) {
  1207. {
  1208. .ifnum = 0,
  1209. .type = QUIRK_AUDIO_EDIROL_UA101
  1210. },
  1211. {
  1212. .ifnum = 1,
  1213. .type = QUIRK_AUDIO_EDIROL_UA101
  1214. },
  1215. {
  1216. .ifnum = 2,
  1217. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1218. .data = & (const struct snd_usb_midi_endpoint_info) {
  1219. .out_cables = 0x0001,
  1220. .in_cables = 0x0001
  1221. }
  1222. },
  1223. {
  1224. .ifnum = -1
  1225. }
  1226. }
  1227. }
  1228. },
  1229. {
  1230. /* has ID 0x0081 when not in "Advanced Driver" mode */
  1231. USB_DEVICE(0x0582, 0x0080),
  1232. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1233. .vendor_name = "Roland",
  1234. .product_name = "G-70",
  1235. .ifnum = 0,
  1236. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1237. .data = & (const struct snd_usb_midi_endpoint_info) {
  1238. .out_cables = 0x0001,
  1239. .in_cables = 0x0001
  1240. }
  1241. }
  1242. },
  1243. /* TODO: add Roland V-SYNTH XT support */
  1244. /* TODO: add BOSS GT-PRO support */
  1245. {
  1246. /* has ID 0x008c when not in "Advanced Driver" mode */
  1247. USB_DEVICE(0x0582, 0x008b),
  1248. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1249. .vendor_name = "EDIROL",
  1250. .product_name = "PC-50",
  1251. .ifnum = 0,
  1252. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1253. .data = & (const struct snd_usb_midi_endpoint_info) {
  1254. .out_cables = 0x0001,
  1255. .in_cables = 0x0001
  1256. }
  1257. }
  1258. },
  1259. /* TODO: add Edirol PC-80 support */
  1260. /* TODO: add Edirol UA-1EX support */
  1261. {
  1262. USB_DEVICE(0x0582, 0x009a),
  1263. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1264. .vendor_name = "EDIROL",
  1265. .product_name = "UM-3EX",
  1266. .ifnum = 0,
  1267. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1268. .data = & (const struct snd_usb_midi_endpoint_info) {
  1269. .out_cables = 0x000f,
  1270. .in_cables = 0x000f
  1271. }
  1272. }
  1273. },
  1274. /* TODO: add Edirol MD-P1 support */
  1275. {
  1276. /* Roland SH-201 */
  1277. USB_DEVICE(0x0582, 0x00ad),
  1278. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1279. .vendor_name = "Roland",
  1280. .product_name = "SH-201",
  1281. .ifnum = QUIRK_ANY_INTERFACE,
  1282. .type = QUIRK_COMPOSITE,
  1283. .data = (const struct snd_usb_audio_quirk[]) {
  1284. {
  1285. .ifnum = 0,
  1286. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1287. },
  1288. {
  1289. .ifnum = 1,
  1290. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1291. },
  1292. {
  1293. .ifnum = 2,
  1294. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1295. .data = & (const struct snd_usb_midi_endpoint_info) {
  1296. .out_cables = 0x0001,
  1297. .in_cables = 0x0001
  1298. }
  1299. },
  1300. {
  1301. .ifnum = -1
  1302. }
  1303. }
  1304. }
  1305. },
  1306. /* Guillemot devices */
  1307. {
  1308. /*
  1309. * This is for the "Windows Edition" where the external MIDI ports are
  1310. * the only MIDI ports; the control data is reported through HID
  1311. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1312. * compliant USB MIDI ports for external MIDI and controls.
  1313. */
  1314. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1315. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1316. .vendor_name = "Hercules",
  1317. .product_name = "DJ Console (WE)",
  1318. .ifnum = 4,
  1319. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1320. .data = & (const struct snd_usb_midi_endpoint_info) {
  1321. .out_cables = 0x0001,
  1322. .in_cables = 0x0001
  1323. }
  1324. }
  1325. },
  1326. /* Midiman/M-Audio devices */
  1327. {
  1328. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1329. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1330. .vendor_name = "M-Audio",
  1331. .product_name = "MidiSport 2x2",
  1332. .ifnum = QUIRK_ANY_INTERFACE,
  1333. .type = QUIRK_MIDI_MIDIMAN,
  1334. .data = & (const struct snd_usb_midi_endpoint_info) {
  1335. .out_cables = 0x0003,
  1336. .in_cables = 0x0003
  1337. }
  1338. }
  1339. },
  1340. {
  1341. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1342. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1343. .vendor_name = "M-Audio",
  1344. .product_name = "MidiSport 1x1",
  1345. .ifnum = QUIRK_ANY_INTERFACE,
  1346. .type = QUIRK_MIDI_MIDIMAN,
  1347. .data = & (const struct snd_usb_midi_endpoint_info) {
  1348. .out_cables = 0x0001,
  1349. .in_cables = 0x0001
  1350. }
  1351. }
  1352. },
  1353. {
  1354. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1355. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1356. .vendor_name = "M-Audio",
  1357. .product_name = "Keystation",
  1358. .ifnum = QUIRK_ANY_INTERFACE,
  1359. .type = QUIRK_MIDI_MIDIMAN,
  1360. .data = & (const struct snd_usb_midi_endpoint_info) {
  1361. .out_cables = 0x0001,
  1362. .in_cables = 0x0001
  1363. }
  1364. }
  1365. },
  1366. {
  1367. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1368. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1369. .vendor_name = "M-Audio",
  1370. .product_name = "MidiSport 4x4",
  1371. .ifnum = QUIRK_ANY_INTERFACE,
  1372. .type = QUIRK_MIDI_MIDIMAN,
  1373. .data = & (const struct snd_usb_midi_endpoint_info) {
  1374. .out_cables = 0x000f,
  1375. .in_cables = 0x000f
  1376. }
  1377. }
  1378. },
  1379. {
  1380. /*
  1381. * For hardware revision 1.05; in the later revisions (1.10 and
  1382. * 1.21), 0x1031 is the ID for the device without firmware.
  1383. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1384. */
  1385. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1386. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1387. .vendor_name = "M-Audio",
  1388. .product_name = "MidiSport 8x8",
  1389. .ifnum = QUIRK_ANY_INTERFACE,
  1390. .type = QUIRK_MIDI_MIDIMAN,
  1391. .data = & (const struct snd_usb_midi_endpoint_info) {
  1392. .out_cables = 0x01ff,
  1393. .in_cables = 0x01ff
  1394. }
  1395. }
  1396. },
  1397. {
  1398. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1399. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1400. .vendor_name = "M-Audio",
  1401. .product_name = "MidiSport 8x8",
  1402. .ifnum = QUIRK_ANY_INTERFACE,
  1403. .type = QUIRK_MIDI_MIDIMAN,
  1404. .data = & (const struct snd_usb_midi_endpoint_info) {
  1405. .out_cables = 0x01ff,
  1406. .in_cables = 0x01ff
  1407. }
  1408. }
  1409. },
  1410. {
  1411. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1412. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1413. .vendor_name = "M-Audio",
  1414. .product_name = "MidiSport 2x4",
  1415. .ifnum = QUIRK_ANY_INTERFACE,
  1416. .type = QUIRK_MIDI_MIDIMAN,
  1417. .data = & (const struct snd_usb_midi_endpoint_info) {
  1418. .out_cables = 0x000f,
  1419. .in_cables = 0x0003
  1420. }
  1421. }
  1422. },
  1423. {
  1424. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1425. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1426. .vendor_name = "M-Audio",
  1427. .product_name = "Quattro",
  1428. .ifnum = QUIRK_ANY_INTERFACE,
  1429. .type = QUIRK_COMPOSITE,
  1430. .data = & (const struct snd_usb_audio_quirk[]) {
  1431. /*
  1432. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1433. * and share endpoints with the other interfaces.
  1434. * Ignore them. The other interfaces can do 24 bits,
  1435. * but captured samples are big-endian (see usbaudio.c).
  1436. */
  1437. {
  1438. .ifnum = 0,
  1439. .type = QUIRK_IGNORE_INTERFACE
  1440. },
  1441. {
  1442. .ifnum = 1,
  1443. .type = QUIRK_IGNORE_INTERFACE
  1444. },
  1445. {
  1446. .ifnum = 2,
  1447. .type = QUIRK_IGNORE_INTERFACE
  1448. },
  1449. {
  1450. .ifnum = 3,
  1451. .type = QUIRK_IGNORE_INTERFACE
  1452. },
  1453. {
  1454. .ifnum = 4,
  1455. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1456. },
  1457. {
  1458. .ifnum = 5,
  1459. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1460. },
  1461. {
  1462. .ifnum = 6,
  1463. .type = QUIRK_IGNORE_INTERFACE
  1464. },
  1465. {
  1466. .ifnum = 7,
  1467. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1468. },
  1469. {
  1470. .ifnum = 8,
  1471. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1472. },
  1473. {
  1474. .ifnum = 9,
  1475. .type = QUIRK_MIDI_MIDIMAN,
  1476. .data = & (const struct snd_usb_midi_endpoint_info) {
  1477. .out_cables = 0x0001,
  1478. .in_cables = 0x0001
  1479. }
  1480. },
  1481. {
  1482. .ifnum = -1
  1483. }
  1484. }
  1485. }
  1486. },
  1487. {
  1488. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1489. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1490. .vendor_name = "M-Audio",
  1491. .product_name = "AudioPhile",
  1492. .ifnum = 6,
  1493. .type = QUIRK_MIDI_MIDIMAN,
  1494. .data = & (const struct snd_usb_midi_endpoint_info) {
  1495. .out_cables = 0x0001,
  1496. .in_cables = 0x0001
  1497. }
  1498. }
  1499. },
  1500. {
  1501. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1502. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1503. .vendor_name = "M-Audio",
  1504. .product_name = "Ozone",
  1505. .ifnum = 3,
  1506. .type = QUIRK_MIDI_MIDIMAN,
  1507. .data = & (const struct snd_usb_midi_endpoint_info) {
  1508. .out_cables = 0x0001,
  1509. .in_cables = 0x0001
  1510. }
  1511. }
  1512. },
  1513. {
  1514. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1515. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1516. .vendor_name = "M-Audio",
  1517. .product_name = "OmniStudio",
  1518. .ifnum = QUIRK_ANY_INTERFACE,
  1519. .type = QUIRK_COMPOSITE,
  1520. .data = & (const struct snd_usb_audio_quirk[]) {
  1521. {
  1522. .ifnum = 0,
  1523. .type = QUIRK_IGNORE_INTERFACE
  1524. },
  1525. {
  1526. .ifnum = 1,
  1527. .type = QUIRK_IGNORE_INTERFACE
  1528. },
  1529. {
  1530. .ifnum = 2,
  1531. .type = QUIRK_IGNORE_INTERFACE
  1532. },
  1533. {
  1534. .ifnum = 3,
  1535. .type = QUIRK_IGNORE_INTERFACE
  1536. },
  1537. {
  1538. .ifnum = 4,
  1539. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1540. },
  1541. {
  1542. .ifnum = 5,
  1543. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1544. },
  1545. {
  1546. .ifnum = 6,
  1547. .type = QUIRK_IGNORE_INTERFACE
  1548. },
  1549. {
  1550. .ifnum = 7,
  1551. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1552. },
  1553. {
  1554. .ifnum = 8,
  1555. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1556. },
  1557. {
  1558. .ifnum = 9,
  1559. .type = QUIRK_MIDI_MIDIMAN,
  1560. .data = & (const struct snd_usb_midi_endpoint_info) {
  1561. .out_cables = 0x0001,
  1562. .in_cables = 0x0001
  1563. }
  1564. },
  1565. {
  1566. .ifnum = -1
  1567. }
  1568. }
  1569. }
  1570. },
  1571. /* Casio devices */
  1572. {
  1573. USB_DEVICE(0x07cf, 0x6801),
  1574. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1575. .vendor_name = "Casio",
  1576. .product_name = "PL-40R",
  1577. .ifnum = 0,
  1578. .type = QUIRK_MIDI_YAMAHA
  1579. }
  1580. },
  1581. {
  1582. /* this ID is used by several devices without a product ID */
  1583. USB_DEVICE(0x07cf, 0x6802),
  1584. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1585. .vendor_name = "Casio",
  1586. .product_name = "Keyboard",
  1587. .ifnum = 0,
  1588. .type = QUIRK_MIDI_YAMAHA
  1589. }
  1590. },
  1591. /* Mark of the Unicorn devices */
  1592. {
  1593. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  1594. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1595. USB_DEVICE_ID_MATCH_PRODUCT |
  1596. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  1597. .idVendor = 0x07fd,
  1598. .idProduct = 0x0001,
  1599. .bDeviceSubClass = 2,
  1600. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1601. .vendor_name = "MOTU",
  1602. .product_name = "Fastlane",
  1603. .ifnum = QUIRK_ANY_INTERFACE,
  1604. .type = QUIRK_COMPOSITE,
  1605. .data = & (const struct snd_usb_audio_quirk[]) {
  1606. {
  1607. .ifnum = 0,
  1608. .type = QUIRK_MIDI_RAW
  1609. },
  1610. {
  1611. .ifnum = 1,
  1612. .type = QUIRK_IGNORE_INTERFACE
  1613. },
  1614. {
  1615. .ifnum = -1
  1616. }
  1617. }
  1618. }
  1619. },
  1620. {
  1621. /* Creative Sound Blaster MP3+ */
  1622. USB_DEVICE(0x041e, 0x3010),
  1623. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1624. .vendor_name = "Creative Labs",
  1625. .product_name = "Sound Blaster MP3+",
  1626. .ifnum = QUIRK_NO_INTERFACE
  1627. }
  1628. },
  1629. /* Emagic devices */
  1630. {
  1631. USB_DEVICE(0x086a, 0x0001),
  1632. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1633. .vendor_name = "Emagic",
  1634. /* .product_name = "Unitor8", */
  1635. .ifnum = 2,
  1636. .type = QUIRK_MIDI_EMAGIC,
  1637. .data = & (const struct snd_usb_midi_endpoint_info) {
  1638. .out_cables = 0x80ff,
  1639. .in_cables = 0x80ff
  1640. }
  1641. }
  1642. },
  1643. {
  1644. USB_DEVICE(0x086a, 0x0002),
  1645. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1646. .vendor_name = "Emagic",
  1647. /* .product_name = "AMT8", */
  1648. .ifnum = 2,
  1649. .type = QUIRK_MIDI_EMAGIC,
  1650. .data = & (const struct snd_usb_midi_endpoint_info) {
  1651. .out_cables = 0x80ff,
  1652. .in_cables = 0x80ff
  1653. }
  1654. }
  1655. },
  1656. {
  1657. USB_DEVICE(0x086a, 0x0003),
  1658. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1659. .vendor_name = "Emagic",
  1660. /* .product_name = "MT4", */
  1661. .ifnum = 2,
  1662. .type = QUIRK_MIDI_EMAGIC,
  1663. .data = & (const struct snd_usb_midi_endpoint_info) {
  1664. .out_cables = 0x800f,
  1665. .in_cables = 0x8003
  1666. }
  1667. }
  1668. },
  1669. /* TerraTec devices */
  1670. {
  1671. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  1672. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1673. .vendor_name = "TerraTec",
  1674. .product_name = "PHASE 26",
  1675. .ifnum = 3,
  1676. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1677. }
  1678. },
  1679. {
  1680. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  1681. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1682. .vendor_name = "TerraTec",
  1683. .product_name = "PHASE 26",
  1684. .ifnum = 3,
  1685. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1686. }
  1687. },
  1688. {
  1689. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  1690. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1691. .vendor_name = "TerraTec",
  1692. .product_name = "PHASE 26",
  1693. .ifnum = 3,
  1694. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1695. }
  1696. },
  1697. {
  1698. USB_DEVICE(0x0ccd, 0x0035),
  1699. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1700. .vendor_name = "Miditech",
  1701. .product_name = "Play'n Roll",
  1702. .ifnum = 0,
  1703. .type = QUIRK_MIDI_CME
  1704. }
  1705. },
  1706. /* Novation EMS devices */
  1707. {
  1708. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  1709. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1710. .vendor_name = "Novation",
  1711. .product_name = "ReMOTE Audio/XStation",
  1712. .ifnum = 4,
  1713. .type = QUIRK_MIDI_NOVATION
  1714. }
  1715. },
  1716. {
  1717. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  1718. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1719. .vendor_name = "Novation",
  1720. .product_name = "Speedio",
  1721. .ifnum = 3,
  1722. .type = QUIRK_MIDI_NOVATION
  1723. }
  1724. },
  1725. {
  1726. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  1727. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1728. .vendor_name = "Novation",
  1729. .product_name = "ReMOTE25",
  1730. .ifnum = 0,
  1731. .type = QUIRK_MIDI_NOVATION
  1732. }
  1733. },
  1734. /* Miditech devices */
  1735. {
  1736. USB_DEVICE(0x4752, 0x0011),
  1737. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1738. .vendor_name = "Miditech",
  1739. .product_name = "Midistart-2",
  1740. .ifnum = 0,
  1741. .type = QUIRK_MIDI_CME
  1742. }
  1743. },
  1744. /* Central Music devices */
  1745. {
  1746. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  1747. USB_DEVICE(0x7104, 0x2202),
  1748. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1749. .ifnum = 0,
  1750. .type = QUIRK_MIDI_CME
  1751. }
  1752. },
  1753. {
  1754. /*
  1755. * Some USB MIDI devices don't have an audio control interface,
  1756. * so we have to grab MIDI streaming interfaces here.
  1757. */
  1758. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  1759. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  1760. .bInterfaceClass = USB_CLASS_AUDIO,
  1761. .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
  1762. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1763. .ifnum = QUIRK_ANY_INTERFACE,
  1764. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1765. }
  1766. },
  1767. #undef USB_DEVICE_VENDOR_SPEC