usbquirks.h 42 KB

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