quirks-table.h 77 KB

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