usbquirks.h 38 KB

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