quirks-table.h 74 KB

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