usbquirks.h 49 KB

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