quirks-table.h 65 KB

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