usbquirks.h 54 KB

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