quirks-table.h 78 KB

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