quirks-table.h 79 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349
  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 = 0,
  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 = 0x80,
  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 = 0x80,
  2306. }
  2307. },
  2308. /* MIDI */
  2309. {
  2310. .ifnum = -1 /* Interface = 4 */
  2311. }
  2312. }
  2313. }
  2314. },
  2315. {
  2316. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2031),
  2317. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2318. /* .vendor_name = "M-Audio", */
  2319. /* .product_name = "Fast Track C600", */
  2320. .ifnum = QUIRK_ANY_INTERFACE,
  2321. .type = QUIRK_COMPOSITE,
  2322. .data = &(const struct snd_usb_audio_quirk[]) {
  2323. {
  2324. .ifnum = 1,
  2325. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2326. },
  2327. /* Playback */
  2328. {
  2329. .ifnum = 2,
  2330. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2331. .data = &(const struct audioformat) {
  2332. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2333. .channels = 8,
  2334. .iface = 2,
  2335. .altsetting = 1,
  2336. .altset_idx = 1,
  2337. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2338. .endpoint = 0x01,
  2339. .ep_attr = 0x09,
  2340. .rates = SNDRV_PCM_RATE_44100 |
  2341. SNDRV_PCM_RATE_48000 |
  2342. SNDRV_PCM_RATE_88200 |
  2343. SNDRV_PCM_RATE_96000,
  2344. .rate_min = 44100,
  2345. .rate_max = 96000,
  2346. .nr_rates = 4,
  2347. .rate_table = (unsigned int[]) {
  2348. 44100, 48000, 88200, 96000
  2349. },
  2350. .clock = 0x80,
  2351. }
  2352. },
  2353. /* Capture */
  2354. {
  2355. .ifnum = 3,
  2356. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2357. .data = &(const struct audioformat) {
  2358. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2359. .channels = 6,
  2360. .iface = 3,
  2361. .altsetting = 1,
  2362. .altset_idx = 1,
  2363. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2364. .endpoint = 0x81,
  2365. .ep_attr = 0x05,
  2366. .rates = SNDRV_PCM_RATE_44100 |
  2367. SNDRV_PCM_RATE_48000 |
  2368. SNDRV_PCM_RATE_88200 |
  2369. SNDRV_PCM_RATE_96000,
  2370. .rate_min = 44100,
  2371. .rate_max = 96000,
  2372. .nr_rates = 4,
  2373. .rate_table = (unsigned int[]) {
  2374. 44100, 48000, 88200, 96000
  2375. },
  2376. .clock = 0x80,
  2377. }
  2378. },
  2379. /* MIDI */
  2380. {
  2381. .ifnum = -1 /* Interface = 4 */
  2382. }
  2383. }
  2384. }
  2385. },
  2386. {
  2387. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
  2388. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2389. /* .vendor_name = "M-Audio", */
  2390. /* .product_name = "Fast Track Ultra", */
  2391. .ifnum = QUIRK_ANY_INTERFACE,
  2392. .type = QUIRK_COMPOSITE,
  2393. .data = & (const struct snd_usb_audio_quirk[]) {
  2394. {
  2395. .ifnum = 0,
  2396. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2397. },
  2398. {
  2399. .ifnum = 1,
  2400. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2401. .data = & (const struct audioformat) {
  2402. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2403. .channels = 8,
  2404. .iface = 1,
  2405. .altsetting = 1,
  2406. .altset_idx = 1,
  2407. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2408. .endpoint = 0x01,
  2409. .ep_attr = 0x09,
  2410. .rates = SNDRV_PCM_RATE_44100 |
  2411. SNDRV_PCM_RATE_48000 |
  2412. SNDRV_PCM_RATE_88200 |
  2413. SNDRV_PCM_RATE_96000,
  2414. .rate_min = 44100,
  2415. .rate_max = 96000,
  2416. .nr_rates = 4,
  2417. .rate_table = (unsigned int[]) {
  2418. 44100, 48000, 88200, 96000
  2419. }
  2420. }
  2421. },
  2422. {
  2423. .ifnum = 2,
  2424. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2425. .data = & (const struct audioformat) {
  2426. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2427. .channels = 8,
  2428. .iface = 2,
  2429. .altsetting = 1,
  2430. .altset_idx = 1,
  2431. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2432. .endpoint = 0x81,
  2433. .ep_attr = 0x05,
  2434. .rates = SNDRV_PCM_RATE_44100 |
  2435. SNDRV_PCM_RATE_48000 |
  2436. SNDRV_PCM_RATE_88200 |
  2437. SNDRV_PCM_RATE_96000,
  2438. .rate_min = 44100,
  2439. .rate_max = 96000,
  2440. .nr_rates = 4,
  2441. .rate_table = (unsigned int[]) {
  2442. 44100, 48000, 88200, 96000
  2443. }
  2444. }
  2445. },
  2446. /* interface 3 (MIDI) is standard compliant */
  2447. {
  2448. .ifnum = -1
  2449. }
  2450. }
  2451. }
  2452. },
  2453. {
  2454. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
  2455. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2456. /* .vendor_name = "M-Audio", */
  2457. /* .product_name = "Fast Track Ultra 8R", */
  2458. .ifnum = QUIRK_ANY_INTERFACE,
  2459. .type = QUIRK_COMPOSITE,
  2460. .data = & (const struct snd_usb_audio_quirk[]) {
  2461. {
  2462. .ifnum = 0,
  2463. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2464. },
  2465. {
  2466. .ifnum = 1,
  2467. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2468. .data = & (const struct audioformat) {
  2469. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2470. .channels = 8,
  2471. .iface = 1,
  2472. .altsetting = 1,
  2473. .altset_idx = 1,
  2474. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2475. .endpoint = 0x01,
  2476. .ep_attr = 0x09,
  2477. .rates = SNDRV_PCM_RATE_44100 |
  2478. SNDRV_PCM_RATE_48000 |
  2479. SNDRV_PCM_RATE_88200 |
  2480. SNDRV_PCM_RATE_96000,
  2481. .rate_min = 44100,
  2482. .rate_max = 96000,
  2483. .nr_rates = 4,
  2484. .rate_table = (unsigned int[]) {
  2485. 44100, 48000, 88200, 96000
  2486. }
  2487. }
  2488. },
  2489. {
  2490. .ifnum = 2,
  2491. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2492. .data = & (const struct audioformat) {
  2493. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2494. .channels = 8,
  2495. .iface = 2,
  2496. .altsetting = 1,
  2497. .altset_idx = 1,
  2498. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2499. .endpoint = 0x81,
  2500. .ep_attr = 0x05,
  2501. .rates = SNDRV_PCM_RATE_44100 |
  2502. SNDRV_PCM_RATE_48000 |
  2503. SNDRV_PCM_RATE_88200 |
  2504. SNDRV_PCM_RATE_96000,
  2505. .rate_min = 44100,
  2506. .rate_max = 96000,
  2507. .nr_rates = 4,
  2508. .rate_table = (unsigned int[]) {
  2509. 44100, 48000, 88200, 96000
  2510. }
  2511. }
  2512. },
  2513. /* interface 3 (MIDI) is standard compliant */
  2514. {
  2515. .ifnum = -1
  2516. }
  2517. }
  2518. }
  2519. },
  2520. /* Casio devices */
  2521. {
  2522. USB_DEVICE(0x07cf, 0x6801),
  2523. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2524. .vendor_name = "Casio",
  2525. .product_name = "PL-40R",
  2526. .ifnum = 0,
  2527. .type = QUIRK_MIDI_YAMAHA
  2528. }
  2529. },
  2530. {
  2531. /* this ID is used by several devices without a product ID */
  2532. USB_DEVICE(0x07cf, 0x6802),
  2533. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2534. .vendor_name = "Casio",
  2535. .product_name = "Keyboard",
  2536. .ifnum = 0,
  2537. .type = QUIRK_MIDI_YAMAHA
  2538. }
  2539. },
  2540. /* Mark of the Unicorn devices */
  2541. {
  2542. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  2543. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  2544. USB_DEVICE_ID_MATCH_PRODUCT |
  2545. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  2546. .idVendor = 0x07fd,
  2547. .idProduct = 0x0001,
  2548. .bDeviceSubClass = 2,
  2549. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2550. .vendor_name = "MOTU",
  2551. .product_name = "Fastlane",
  2552. .ifnum = QUIRK_ANY_INTERFACE,
  2553. .type = QUIRK_COMPOSITE,
  2554. .data = & (const struct snd_usb_audio_quirk[]) {
  2555. {
  2556. .ifnum = 0,
  2557. .type = QUIRK_MIDI_RAW_BYTES
  2558. },
  2559. {
  2560. .ifnum = 1,
  2561. .type = QUIRK_IGNORE_INTERFACE
  2562. },
  2563. {
  2564. .ifnum = -1
  2565. }
  2566. }
  2567. }
  2568. },
  2569. /* Emagic devices */
  2570. {
  2571. USB_DEVICE(0x086a, 0x0001),
  2572. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2573. .vendor_name = "Emagic",
  2574. /* .product_name = "Unitor8", */
  2575. .ifnum = 2,
  2576. .type = QUIRK_MIDI_EMAGIC,
  2577. .data = & (const struct snd_usb_midi_endpoint_info) {
  2578. .out_cables = 0x80ff,
  2579. .in_cables = 0x80ff
  2580. }
  2581. }
  2582. },
  2583. {
  2584. USB_DEVICE(0x086a, 0x0002),
  2585. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2586. .vendor_name = "Emagic",
  2587. /* .product_name = "AMT8", */
  2588. .ifnum = 2,
  2589. .type = QUIRK_MIDI_EMAGIC,
  2590. .data = & (const struct snd_usb_midi_endpoint_info) {
  2591. .out_cables = 0x80ff,
  2592. .in_cables = 0x80ff
  2593. }
  2594. }
  2595. },
  2596. {
  2597. USB_DEVICE(0x086a, 0x0003),
  2598. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2599. .vendor_name = "Emagic",
  2600. /* .product_name = "MT4", */
  2601. .ifnum = 2,
  2602. .type = QUIRK_MIDI_EMAGIC,
  2603. .data = & (const struct snd_usb_midi_endpoint_info) {
  2604. .out_cables = 0x800f,
  2605. .in_cables = 0x8003
  2606. }
  2607. }
  2608. },
  2609. /* KORG devices */
  2610. {
  2611. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
  2612. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2613. .vendor_name = "KORG, Inc.",
  2614. /* .product_name = "PANDORA PX5D", */
  2615. .ifnum = 3,
  2616. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2617. }
  2618. },
  2619. {
  2620. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
  2621. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2622. .vendor_name = "KORG, Inc.",
  2623. /* .product_name = "ToneLab ST", */
  2624. .ifnum = 3,
  2625. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2626. }
  2627. },
  2628. /* AKAI devices */
  2629. {
  2630. USB_DEVICE(0x09e8, 0x0062),
  2631. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2632. .vendor_name = "AKAI",
  2633. .product_name = "MPD16",
  2634. .ifnum = 0,
  2635. .type = QUIRK_MIDI_AKAI,
  2636. }
  2637. },
  2638. /* TerraTec devices */
  2639. {
  2640. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  2641. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2642. .vendor_name = "TerraTec",
  2643. .product_name = "PHASE 26",
  2644. .ifnum = 3,
  2645. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2646. }
  2647. },
  2648. {
  2649. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  2650. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2651. .vendor_name = "TerraTec",
  2652. .product_name = "PHASE 26",
  2653. .ifnum = 3,
  2654. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2655. }
  2656. },
  2657. {
  2658. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  2659. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2660. .vendor_name = "TerraTec",
  2661. .product_name = "PHASE 26",
  2662. .ifnum = 3,
  2663. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2664. }
  2665. },
  2666. {
  2667. USB_DEVICE(0x0ccd, 0x0028),
  2668. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2669. .vendor_name = "TerraTec",
  2670. .product_name = "Aureon5.1MkII",
  2671. .ifnum = QUIRK_NO_INTERFACE
  2672. }
  2673. },
  2674. {
  2675. USB_DEVICE(0x0ccd, 0x0035),
  2676. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2677. .vendor_name = "Miditech",
  2678. .product_name = "Play'n Roll",
  2679. .ifnum = 0,
  2680. .type = QUIRK_MIDI_CME
  2681. }
  2682. },
  2683. /* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
  2684. {
  2685. USB_DEVICE(0x103d, 0x0100),
  2686. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2687. .vendor_name = "Stanton",
  2688. .product_name = "ScratchAmp",
  2689. .ifnum = QUIRK_NO_INTERFACE
  2690. }
  2691. },
  2692. {
  2693. USB_DEVICE(0x103d, 0x0101),
  2694. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2695. .vendor_name = "Stanton",
  2696. .product_name = "ScratchAmp",
  2697. .ifnum = QUIRK_NO_INTERFACE
  2698. }
  2699. },
  2700. /* Novation EMS devices */
  2701. {
  2702. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  2703. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2704. .vendor_name = "Novation",
  2705. .product_name = "ReMOTE Audio/XStation",
  2706. .ifnum = 4,
  2707. .type = QUIRK_MIDI_NOVATION
  2708. }
  2709. },
  2710. {
  2711. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  2712. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2713. .vendor_name = "Novation",
  2714. .product_name = "Speedio",
  2715. .ifnum = 3,
  2716. .type = QUIRK_MIDI_NOVATION
  2717. }
  2718. },
  2719. {
  2720. USB_DEVICE(0x1235, 0x000e),
  2721. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2722. /* .vendor_name = "Novation", */
  2723. /* .product_name = "Launchpad", */
  2724. .ifnum = 0,
  2725. .type = QUIRK_MIDI_RAW_BYTES
  2726. }
  2727. },
  2728. {
  2729. USB_DEVICE(0x1235, 0x0018),
  2730. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2731. .vendor_name = "Novation",
  2732. .product_name = "Twitch",
  2733. .ifnum = QUIRK_ANY_INTERFACE,
  2734. .type = QUIRK_COMPOSITE,
  2735. .data = (const struct snd_usb_audio_quirk[]) {
  2736. {
  2737. .ifnum = 0,
  2738. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2739. .data = & (const struct audioformat) {
  2740. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2741. .channels = 4,
  2742. .iface = 0,
  2743. .altsetting = 1,
  2744. .altset_idx = 1,
  2745. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2746. .endpoint = 0x01,
  2747. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2748. .rates = SNDRV_PCM_RATE_44100 |
  2749. SNDRV_PCM_RATE_48000,
  2750. .rate_min = 44100,
  2751. .rate_max = 48000,
  2752. .nr_rates = 2,
  2753. .rate_table = (unsigned int[]) {
  2754. 44100, 48000
  2755. }
  2756. }
  2757. },
  2758. {
  2759. .ifnum = 1,
  2760. .type = QUIRK_MIDI_RAW_BYTES
  2761. },
  2762. {
  2763. .ifnum = -1
  2764. }
  2765. }
  2766. }
  2767. },
  2768. {
  2769. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  2770. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2771. .vendor_name = "Novation",
  2772. .product_name = "ReMOTE25",
  2773. .ifnum = 0,
  2774. .type = QUIRK_MIDI_NOVATION
  2775. }
  2776. },
  2777. /* Access Music devices */
  2778. {
  2779. /* VirusTI Desktop */
  2780. USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
  2781. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2782. .ifnum = QUIRK_ANY_INTERFACE,
  2783. .type = QUIRK_COMPOSITE,
  2784. .data = &(const struct snd_usb_audio_quirk[]) {
  2785. {
  2786. .ifnum = 3,
  2787. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2788. .data = &(const struct snd_usb_midi_endpoint_info) {
  2789. .out_cables = 0x0003,
  2790. .in_cables = 0x0003
  2791. }
  2792. },
  2793. {
  2794. .ifnum = 4,
  2795. .type = QUIRK_IGNORE_INTERFACE
  2796. },
  2797. {
  2798. .ifnum = -1
  2799. }
  2800. }
  2801. }
  2802. },
  2803. /* */
  2804. {
  2805. /* aka. Serato Scratch Live DJ Box */
  2806. USB_DEVICE(0x13e5, 0x0001),
  2807. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2808. .vendor_name = "Rane",
  2809. .product_name = "SL-1",
  2810. .ifnum = QUIRK_NO_INTERFACE
  2811. }
  2812. },
  2813. /* Native Instruments MK2 series */
  2814. {
  2815. /* Komplete Audio 6 */
  2816. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2817. .idVendor = 0x17cc,
  2818. .idProduct = 0x1000,
  2819. },
  2820. {
  2821. /* Traktor Audio 6 */
  2822. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2823. .idVendor = 0x17cc,
  2824. .idProduct = 0x1010,
  2825. },
  2826. {
  2827. /* Traktor Audio 10 */
  2828. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2829. .idVendor = 0x17cc,
  2830. .idProduct = 0x1020,
  2831. },
  2832. /* KeithMcMillen Stringport */
  2833. {
  2834. USB_DEVICE(0x1f38, 0x0001),
  2835. .bInterfaceClass = USB_CLASS_AUDIO,
  2836. },
  2837. /* Miditech devices */
  2838. {
  2839. USB_DEVICE(0x4752, 0x0011),
  2840. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2841. .vendor_name = "Miditech",
  2842. .product_name = "Midistart-2",
  2843. .ifnum = 0,
  2844. .type = QUIRK_MIDI_CME
  2845. }
  2846. },
  2847. /* Central Music devices */
  2848. {
  2849. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  2850. USB_DEVICE(0x7104, 0x2202),
  2851. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2852. .ifnum = 0,
  2853. .type = QUIRK_MIDI_CME
  2854. }
  2855. },
  2856. /* Hauppauge HVR-950Q and HVR-850 */
  2857. {
  2858. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
  2859. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2860. USB_DEVICE_ID_MATCH_INT_CLASS |
  2861. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2862. .bInterfaceClass = USB_CLASS_AUDIO,
  2863. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2864. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2865. .vendor_name = "Hauppauge",
  2866. .product_name = "HVR-950Q",
  2867. .ifnum = QUIRK_ANY_INTERFACE,
  2868. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2869. }
  2870. },
  2871. {
  2872. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
  2873. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2874. USB_DEVICE_ID_MATCH_INT_CLASS |
  2875. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2876. .bInterfaceClass = USB_CLASS_AUDIO,
  2877. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2878. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2879. .vendor_name = "Hauppauge",
  2880. .product_name = "HVR-850",
  2881. .ifnum = QUIRK_ANY_INTERFACE,
  2882. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2883. }
  2884. },
  2885. {
  2886. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
  2887. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2888. USB_DEVICE_ID_MATCH_INT_CLASS |
  2889. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2890. .bInterfaceClass = USB_CLASS_AUDIO,
  2891. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2892. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2893. .vendor_name = "Hauppauge",
  2894. .product_name = "HVR-950Q",
  2895. .ifnum = QUIRK_ANY_INTERFACE,
  2896. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2897. }
  2898. },
  2899. {
  2900. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
  2901. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2902. USB_DEVICE_ID_MATCH_INT_CLASS |
  2903. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2904. .bInterfaceClass = USB_CLASS_AUDIO,
  2905. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2906. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2907. .vendor_name = "Hauppauge",
  2908. .product_name = "HVR-950Q",
  2909. .ifnum = QUIRK_ANY_INTERFACE,
  2910. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2911. }
  2912. },
  2913. {
  2914. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
  2915. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2916. USB_DEVICE_ID_MATCH_INT_CLASS |
  2917. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2918. .bInterfaceClass = USB_CLASS_AUDIO,
  2919. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2920. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2921. .vendor_name = "Hauppauge",
  2922. .product_name = "HVR-950Q",
  2923. .ifnum = QUIRK_ANY_INTERFACE,
  2924. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2925. }
  2926. },
  2927. {
  2928. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
  2929. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2930. USB_DEVICE_ID_MATCH_INT_CLASS |
  2931. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2932. .bInterfaceClass = USB_CLASS_AUDIO,
  2933. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2934. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2935. .vendor_name = "Hauppauge",
  2936. .product_name = "HVR-950Q",
  2937. .ifnum = QUIRK_ANY_INTERFACE,
  2938. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2939. }
  2940. },
  2941. {
  2942. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
  2943. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2944. USB_DEVICE_ID_MATCH_INT_CLASS |
  2945. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2946. .bInterfaceClass = USB_CLASS_AUDIO,
  2947. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2948. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2949. .vendor_name = "Hauppauge",
  2950. .product_name = "HVR-950Q",
  2951. .ifnum = QUIRK_ANY_INTERFACE,
  2952. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2953. }
  2954. },
  2955. {
  2956. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
  2957. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2958. USB_DEVICE_ID_MATCH_INT_CLASS |
  2959. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2960. .bInterfaceClass = USB_CLASS_AUDIO,
  2961. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2962. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2963. .vendor_name = "Hauppauge",
  2964. .product_name = "HVR-950Q",
  2965. .ifnum = QUIRK_ANY_INTERFACE,
  2966. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2967. }
  2968. },
  2969. {
  2970. USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
  2971. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2972. USB_DEVICE_ID_MATCH_INT_CLASS |
  2973. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2974. .bInterfaceClass = USB_CLASS_AUDIO,
  2975. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2976. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2977. .vendor_name = "Hauppauge",
  2978. .product_name = "HVR-950Q",
  2979. .ifnum = QUIRK_ANY_INTERFACE,
  2980. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2981. }
  2982. },
  2983. /* Digidesign Mbox */
  2984. {
  2985. /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
  2986. USB_DEVICE(0x0dba, 0x1000),
  2987. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2988. .vendor_name = "Digidesign",
  2989. .product_name = "MBox",
  2990. .ifnum = QUIRK_ANY_INTERFACE,
  2991. .type = QUIRK_COMPOSITE,
  2992. .data = (const struct snd_usb_audio_quirk[]){
  2993. {
  2994. .ifnum = 0,
  2995. .type = QUIRK_IGNORE_INTERFACE,
  2996. },
  2997. {
  2998. .ifnum = 1,
  2999. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3000. .data = &(const struct audioformat) {
  3001. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  3002. .channels = 2,
  3003. .iface = 1,
  3004. .altsetting = 1,
  3005. .altset_idx = 1,
  3006. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3007. .endpoint = 0x02,
  3008. .ep_attr = 0x01,
  3009. .rates = SNDRV_PCM_RATE_44100 |
  3010. SNDRV_PCM_RATE_48000,
  3011. .rate_min = 44100,
  3012. .rate_max = 48000,
  3013. .nr_rates = 2,
  3014. .rate_table = (unsigned int[]) {
  3015. 44100, 48000
  3016. }
  3017. }
  3018. },
  3019. {
  3020. .ifnum = -1
  3021. }
  3022. }
  3023. }
  3024. },
  3025. /* DIGIDESIGN MBOX 2 */
  3026. {
  3027. USB_DEVICE(0x0dba, 0x3000),
  3028. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3029. .vendor_name = "Digidesign",
  3030. .product_name = "Mbox 2",
  3031. .ifnum = QUIRK_ANY_INTERFACE,
  3032. .type = QUIRK_COMPOSITE,
  3033. .data = (const struct snd_usb_audio_quirk[]) {
  3034. {
  3035. .ifnum = 0,
  3036. .type = QUIRK_IGNORE_INTERFACE
  3037. },
  3038. {
  3039. .ifnum = 1,
  3040. .type = QUIRK_IGNORE_INTERFACE
  3041. },
  3042. {
  3043. .ifnum = 2,
  3044. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3045. .data = &(const struct audioformat) {
  3046. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  3047. .channels = 2,
  3048. .iface = 2,
  3049. .altsetting = 2,
  3050. .altset_idx = 1,
  3051. .attributes = 0x00,
  3052. .endpoint = 0x03,
  3053. .ep_attr = USB_ENDPOINT_SYNC_ASYNC,
  3054. .rates = SNDRV_PCM_RATE_48000,
  3055. .rate_min = 48000,
  3056. .rate_max = 48000,
  3057. .nr_rates = 1,
  3058. .rate_table = (unsigned int[]) {
  3059. 48000
  3060. }
  3061. }
  3062. },
  3063. {
  3064. .ifnum = 3,
  3065. .type = QUIRK_IGNORE_INTERFACE
  3066. },
  3067. {
  3068. .ifnum = 4,
  3069. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3070. .data = &(const struct audioformat) {
  3071. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  3072. .channels = 2,
  3073. .iface = 4,
  3074. .altsetting = 2,
  3075. .altset_idx = 1,
  3076. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3077. .endpoint = 0x85,
  3078. .ep_attr = USB_ENDPOINT_SYNC_SYNC,
  3079. .rates = SNDRV_PCM_RATE_48000,
  3080. .rate_min = 48000,
  3081. .rate_max = 48000,
  3082. .nr_rates = 1,
  3083. .rate_table = (unsigned int[]) {
  3084. 48000
  3085. }
  3086. }
  3087. },
  3088. {
  3089. .ifnum = 5,
  3090. .type = QUIRK_IGNORE_INTERFACE
  3091. },
  3092. {
  3093. .ifnum = 6,
  3094. .type = QUIRK_MIDI_MIDIMAN,
  3095. .data = &(const struct snd_usb_midi_endpoint_info) {
  3096. .out_ep = 0x02,
  3097. .out_cables = 0x0001,
  3098. .in_ep = 0x81,
  3099. .in_interval = 0x01,
  3100. .in_cables = 0x0001
  3101. }
  3102. },
  3103. {
  3104. .ifnum = -1
  3105. }
  3106. }
  3107. }
  3108. },
  3109. {
  3110. /* Tascam US122 MKII - playback-only support */
  3111. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  3112. .idVendor = 0x0644,
  3113. .idProduct = 0x8021,
  3114. .bInterfaceClass = USB_CLASS_AUDIO,
  3115. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3116. .vendor_name = "TASCAM",
  3117. .product_name = "US122 MKII",
  3118. .ifnum = QUIRK_ANY_INTERFACE,
  3119. .type = QUIRK_COMPOSITE,
  3120. .data = (const struct snd_usb_audio_quirk[]) {
  3121. {
  3122. .ifnum = 0,
  3123. .type = QUIRK_IGNORE_INTERFACE
  3124. },
  3125. {
  3126. .ifnum = 1,
  3127. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3128. .data = &(const struct audioformat) {
  3129. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3130. .channels = 2,
  3131. .iface = 1,
  3132. .altsetting = 1,
  3133. .altset_idx = 1,
  3134. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3135. .endpoint = 0x02,
  3136. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  3137. .rates = SNDRV_PCM_RATE_44100 |
  3138. SNDRV_PCM_RATE_48000 |
  3139. SNDRV_PCM_RATE_88200 |
  3140. SNDRV_PCM_RATE_96000,
  3141. .rate_min = 44100,
  3142. .rate_max = 96000,
  3143. .nr_rates = 4,
  3144. .rate_table = (unsigned int[]) {
  3145. 44100, 48000, 88200, 96000
  3146. }
  3147. }
  3148. },
  3149. {
  3150. .ifnum = -1
  3151. }
  3152. }
  3153. }
  3154. },
  3155. /* Microsoft XboxLive Headset/Xbox Communicator */
  3156. {
  3157. USB_DEVICE(0x045e, 0x0283),
  3158. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  3159. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3160. .vendor_name = "Microsoft",
  3161. .product_name = "XboxLive Headset/Xbox Communicator",
  3162. .ifnum = QUIRK_ANY_INTERFACE,
  3163. .type = QUIRK_COMPOSITE,
  3164. .data = &(const struct snd_usb_audio_quirk[]) {
  3165. {
  3166. /* playback */
  3167. .ifnum = 0,
  3168. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3169. .data = &(const struct audioformat) {
  3170. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3171. .channels = 1,
  3172. .iface = 0,
  3173. .altsetting = 0,
  3174. .altset_idx = 0,
  3175. .attributes = 0,
  3176. .endpoint = 0x04,
  3177. .ep_attr = 0x05,
  3178. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3179. .rate_min = 22050,
  3180. .rate_max = 22050
  3181. }
  3182. },
  3183. {
  3184. /* capture */
  3185. .ifnum = 1,
  3186. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3187. .data = &(const struct audioformat) {
  3188. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3189. .channels = 1,
  3190. .iface = 1,
  3191. .altsetting = 0,
  3192. .altset_idx = 0,
  3193. .attributes = 0,
  3194. .endpoint = 0x85,
  3195. .ep_attr = 0x05,
  3196. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3197. .rate_min = 16000,
  3198. .rate_max = 16000
  3199. }
  3200. },
  3201. {
  3202. .ifnum = -1
  3203. }
  3204. }
  3205. }
  3206. },
  3207. /* Reloop Play */
  3208. {
  3209. USB_DEVICE(0x200c, 0x100b),
  3210. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  3211. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3212. .ifnum = QUIRK_ANY_INTERFACE,
  3213. .type = QUIRK_COMPOSITE,
  3214. .data = &(const struct snd_usb_audio_quirk[]) {
  3215. {
  3216. .ifnum = 0,
  3217. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3218. },
  3219. {
  3220. .ifnum = 1,
  3221. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3222. .data = &(const struct audioformat) {
  3223. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3224. .channels = 4,
  3225. .iface = 1,
  3226. .altsetting = 1,
  3227. .altset_idx = 1,
  3228. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3229. .endpoint = 0x01,
  3230. .ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
  3231. .rates = SNDRV_PCM_RATE_44100 |
  3232. SNDRV_PCM_RATE_48000,
  3233. .rate_min = 44100,
  3234. .rate_max = 48000,
  3235. .nr_rates = 2,
  3236. .rate_table = (unsigned int[]) {
  3237. 44100, 48000
  3238. }
  3239. }
  3240. },
  3241. {
  3242. .ifnum = -1
  3243. }
  3244. }
  3245. }
  3246. },
  3247. {
  3248. /*
  3249. * Focusrite Scarlett 18i6
  3250. *
  3251. * Avoid mixer creation, which otherwise fails because some of
  3252. * the interface descriptor subtypes for interface 0 are
  3253. * unknown. That should be fixed or worked-around but this at
  3254. * least allows the device to be used successfully with a DAW
  3255. * and an external mixer. See comments below about other
  3256. * ignored interfaces.
  3257. */
  3258. USB_DEVICE(0x1235, 0x8004),
  3259. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  3260. .vendor_name = "Focusrite",
  3261. .product_name = "Scarlett 18i6",
  3262. .ifnum = QUIRK_ANY_INTERFACE,
  3263. .type = QUIRK_COMPOSITE,
  3264. .data = & (const struct snd_usb_audio_quirk[]) {
  3265. {
  3266. /* InterfaceSubClass 1 (Control Device) */
  3267. .ifnum = 0,
  3268. .type = QUIRK_IGNORE_INTERFACE
  3269. },
  3270. {
  3271. .ifnum = 1,
  3272. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  3273. },
  3274. {
  3275. .ifnum = 2,
  3276. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  3277. },
  3278. {
  3279. /* InterfaceSubClass 1 (Control Device) */
  3280. .ifnum = 3,
  3281. .type = QUIRK_IGNORE_INTERFACE
  3282. },
  3283. {
  3284. .ifnum = 4,
  3285. .type = QUIRK_MIDI_STANDARD_INTERFACE
  3286. },
  3287. {
  3288. /* InterfaceSubClass 1 (Device Firmware Update) */
  3289. .ifnum = 5,
  3290. .type = QUIRK_IGNORE_INTERFACE
  3291. },
  3292. {
  3293. .ifnum = -1
  3294. }
  3295. }
  3296. }
  3297. },
  3298. {
  3299. /*
  3300. * Some USB MIDI devices don't have an audio control interface,
  3301. * so we have to grab MIDI streaming interfaces here.
  3302. */
  3303. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  3304. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  3305. .bInterfaceClass = USB_CLASS_AUDIO,
  3306. .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
  3307. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  3308. .ifnum = QUIRK_ANY_INTERFACE,
  3309. .type = QUIRK_MIDI_STANDARD_INTERFACE
  3310. }
  3311. },
  3312. #undef USB_DEVICE_VENDOR_SPEC