quirks-table.h 75 KB

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