quirks-table.h 63 KB

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