usbquirks.h 46 KB

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