usbquirks.h 45 KB

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