quirks-table.h 81 KB

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