usbquirks.h 35 KB

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