usbquirks.h 40 KB

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