usbquirks.h 45 KB

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