quirks-table.h 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201
  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. /* BOSS ME-25 */
  1575. USB_DEVICE(0x0582, 0x0113),
  1576. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1577. .ifnum = QUIRK_ANY_INTERFACE,
  1578. .type = QUIRK_COMPOSITE,
  1579. .data = (const struct snd_usb_audio_quirk[]) {
  1580. {
  1581. .ifnum = 0,
  1582. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1583. },
  1584. {
  1585. .ifnum = 1,
  1586. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1587. },
  1588. {
  1589. .ifnum = 2,
  1590. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1591. .data = & (const struct snd_usb_midi_endpoint_info) {
  1592. .out_cables = 0x0001,
  1593. .in_cables = 0x0001
  1594. }
  1595. },
  1596. {
  1597. .ifnum = -1
  1598. }
  1599. }
  1600. }
  1601. },
  1602. {
  1603. /* only 44.1 kHz works at the moment */
  1604. USB_DEVICE(0x0582, 0x0120),
  1605. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1606. /* .vendor_name = "Roland", */
  1607. /* .product_name = "OCTO-CAPTURE", */
  1608. .ifnum = QUIRK_ANY_INTERFACE,
  1609. .type = QUIRK_COMPOSITE,
  1610. .data = (const struct snd_usb_audio_quirk[]) {
  1611. {
  1612. .ifnum = 0,
  1613. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1614. .data = & (const struct audioformat) {
  1615. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1616. .channels = 10,
  1617. .iface = 0,
  1618. .altsetting = 1,
  1619. .altset_idx = 1,
  1620. .endpoint = 0x05,
  1621. .ep_attr = 0x05,
  1622. .rates = SNDRV_PCM_RATE_44100,
  1623. .rate_min = 44100,
  1624. .rate_max = 44100,
  1625. .nr_rates = 1,
  1626. .rate_table = (unsigned int[]) { 44100 }
  1627. }
  1628. },
  1629. {
  1630. .ifnum = 1,
  1631. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1632. .data = & (const struct audioformat) {
  1633. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1634. .channels = 12,
  1635. .iface = 1,
  1636. .altsetting = 1,
  1637. .altset_idx = 1,
  1638. .endpoint = 0x85,
  1639. .ep_attr = 0x25,
  1640. .rates = SNDRV_PCM_RATE_44100,
  1641. .rate_min = 44100,
  1642. .rate_max = 44100,
  1643. .nr_rates = 1,
  1644. .rate_table = (unsigned int[]) { 44100 }
  1645. }
  1646. },
  1647. {
  1648. .ifnum = 2,
  1649. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1650. .data = & (const struct snd_usb_midi_endpoint_info) {
  1651. .out_cables = 0x0001,
  1652. .in_cables = 0x0001
  1653. }
  1654. },
  1655. {
  1656. .ifnum = 3,
  1657. .type = QUIRK_IGNORE_INTERFACE
  1658. },
  1659. {
  1660. .ifnum = 4,
  1661. .type = QUIRK_IGNORE_INTERFACE
  1662. },
  1663. {
  1664. .ifnum = -1
  1665. }
  1666. }
  1667. }
  1668. },
  1669. {
  1670. /* only 44.1 kHz works at the moment */
  1671. USB_DEVICE(0x0582, 0x012f),
  1672. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1673. /* .vendor_name = "Roland", */
  1674. /* .product_name = "QUAD-CAPTURE", */
  1675. .ifnum = QUIRK_ANY_INTERFACE,
  1676. .type = QUIRK_COMPOSITE,
  1677. .data = (const struct snd_usb_audio_quirk[]) {
  1678. {
  1679. .ifnum = 0,
  1680. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1681. .data = & (const struct audioformat) {
  1682. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1683. .channels = 4,
  1684. .iface = 0,
  1685. .altsetting = 1,
  1686. .altset_idx = 1,
  1687. .endpoint = 0x05,
  1688. .ep_attr = 0x05,
  1689. .rates = SNDRV_PCM_RATE_44100,
  1690. .rate_min = 44100,
  1691. .rate_max = 44100,
  1692. .nr_rates = 1,
  1693. .rate_table = (unsigned int[]) { 44100 }
  1694. }
  1695. },
  1696. {
  1697. .ifnum = 1,
  1698. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1699. .data = & (const struct audioformat) {
  1700. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1701. .channels = 6,
  1702. .iface = 1,
  1703. .altsetting = 1,
  1704. .altset_idx = 1,
  1705. .endpoint = 0x85,
  1706. .ep_attr = 0x25,
  1707. .rates = SNDRV_PCM_RATE_44100,
  1708. .rate_min = 44100,
  1709. .rate_max = 44100,
  1710. .nr_rates = 1,
  1711. .rate_table = (unsigned int[]) { 44100 }
  1712. }
  1713. },
  1714. {
  1715. .ifnum = 2,
  1716. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1717. .data = & (const struct snd_usb_midi_endpoint_info) {
  1718. .out_cables = 0x0001,
  1719. .in_cables = 0x0001
  1720. }
  1721. },
  1722. {
  1723. .ifnum = 3,
  1724. .type = QUIRK_IGNORE_INTERFACE
  1725. },
  1726. {
  1727. .ifnum = 4,
  1728. .type = QUIRK_IGNORE_INTERFACE
  1729. },
  1730. {
  1731. .ifnum = -1
  1732. }
  1733. }
  1734. }
  1735. },
  1736. /* this catches most recent vendor-specific Roland devices */
  1737. {
  1738. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1739. USB_DEVICE_ID_MATCH_INT_CLASS,
  1740. .idVendor = 0x0582,
  1741. .bInterfaceClass = USB_CLASS_VENDOR_SPEC,
  1742. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  1743. .ifnum = QUIRK_ANY_INTERFACE,
  1744. .type = QUIRK_AUTODETECT
  1745. }
  1746. },
  1747. /* Guillemot devices */
  1748. {
  1749. /*
  1750. * This is for the "Windows Edition" where the external MIDI ports are
  1751. * the only MIDI ports; the control data is reported through HID
  1752. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1753. * compliant USB MIDI ports for external MIDI and controls.
  1754. */
  1755. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1756. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1757. .vendor_name = "Hercules",
  1758. .product_name = "DJ Console (WE)",
  1759. .ifnum = 4,
  1760. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1761. .data = & (const struct snd_usb_midi_endpoint_info) {
  1762. .out_cables = 0x0001,
  1763. .in_cables = 0x0001
  1764. }
  1765. }
  1766. },
  1767. /* Midiman/M-Audio devices */
  1768. {
  1769. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1770. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1771. .vendor_name = "M-Audio",
  1772. .product_name = "MidiSport 2x2",
  1773. .ifnum = QUIRK_ANY_INTERFACE,
  1774. .type = QUIRK_MIDI_MIDIMAN,
  1775. .data = & (const struct snd_usb_midi_endpoint_info) {
  1776. .out_cables = 0x0003,
  1777. .in_cables = 0x0003
  1778. }
  1779. }
  1780. },
  1781. {
  1782. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1783. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1784. .vendor_name = "M-Audio",
  1785. .product_name = "MidiSport 1x1",
  1786. .ifnum = QUIRK_ANY_INTERFACE,
  1787. .type = QUIRK_MIDI_MIDIMAN,
  1788. .data = & (const struct snd_usb_midi_endpoint_info) {
  1789. .out_cables = 0x0001,
  1790. .in_cables = 0x0001
  1791. }
  1792. }
  1793. },
  1794. {
  1795. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1796. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1797. .vendor_name = "M-Audio",
  1798. .product_name = "Keystation",
  1799. .ifnum = QUIRK_ANY_INTERFACE,
  1800. .type = QUIRK_MIDI_MIDIMAN,
  1801. .data = & (const struct snd_usb_midi_endpoint_info) {
  1802. .out_cables = 0x0001,
  1803. .in_cables = 0x0001
  1804. }
  1805. }
  1806. },
  1807. {
  1808. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1809. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1810. .vendor_name = "M-Audio",
  1811. .product_name = "MidiSport 4x4",
  1812. .ifnum = QUIRK_ANY_INTERFACE,
  1813. .type = QUIRK_MIDI_MIDIMAN,
  1814. .data = & (const struct snd_usb_midi_endpoint_info) {
  1815. .out_cables = 0x000f,
  1816. .in_cables = 0x000f
  1817. }
  1818. }
  1819. },
  1820. {
  1821. /*
  1822. * For hardware revision 1.05; in the later revisions (1.10 and
  1823. * 1.21), 0x1031 is the ID for the device without firmware.
  1824. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1825. */
  1826. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1827. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1828. .vendor_name = "M-Audio",
  1829. .product_name = "MidiSport 8x8",
  1830. .ifnum = QUIRK_ANY_INTERFACE,
  1831. .type = QUIRK_MIDI_MIDIMAN,
  1832. .data = & (const struct snd_usb_midi_endpoint_info) {
  1833. .out_cables = 0x01ff,
  1834. .in_cables = 0x01ff
  1835. }
  1836. }
  1837. },
  1838. {
  1839. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1840. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1841. .vendor_name = "M-Audio",
  1842. .product_name = "MidiSport 8x8",
  1843. .ifnum = QUIRK_ANY_INTERFACE,
  1844. .type = QUIRK_MIDI_MIDIMAN,
  1845. .data = & (const struct snd_usb_midi_endpoint_info) {
  1846. .out_cables = 0x01ff,
  1847. .in_cables = 0x01ff
  1848. }
  1849. }
  1850. },
  1851. {
  1852. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1853. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1854. .vendor_name = "M-Audio",
  1855. .product_name = "MidiSport 2x4",
  1856. .ifnum = QUIRK_ANY_INTERFACE,
  1857. .type = QUIRK_MIDI_MIDIMAN,
  1858. .data = & (const struct snd_usb_midi_endpoint_info) {
  1859. .out_cables = 0x000f,
  1860. .in_cables = 0x0003
  1861. }
  1862. }
  1863. },
  1864. {
  1865. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1866. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1867. .vendor_name = "M-Audio",
  1868. .product_name = "Quattro",
  1869. .ifnum = QUIRK_ANY_INTERFACE,
  1870. .type = QUIRK_COMPOSITE,
  1871. .data = & (const struct snd_usb_audio_quirk[]) {
  1872. /*
  1873. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1874. * and share endpoints with the other interfaces.
  1875. * Ignore them. The other interfaces can do 24 bits,
  1876. * but captured samples are big-endian (see usbaudio.c).
  1877. */
  1878. {
  1879. .ifnum = 0,
  1880. .type = QUIRK_IGNORE_INTERFACE
  1881. },
  1882. {
  1883. .ifnum = 1,
  1884. .type = QUIRK_IGNORE_INTERFACE
  1885. },
  1886. {
  1887. .ifnum = 2,
  1888. .type = QUIRK_IGNORE_INTERFACE
  1889. },
  1890. {
  1891. .ifnum = 3,
  1892. .type = QUIRK_IGNORE_INTERFACE
  1893. },
  1894. {
  1895. .ifnum = 4,
  1896. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1897. },
  1898. {
  1899. .ifnum = 5,
  1900. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1901. },
  1902. {
  1903. .ifnum = 6,
  1904. .type = QUIRK_IGNORE_INTERFACE
  1905. },
  1906. {
  1907. .ifnum = 7,
  1908. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1909. },
  1910. {
  1911. .ifnum = 8,
  1912. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1913. },
  1914. {
  1915. .ifnum = 9,
  1916. .type = QUIRK_MIDI_MIDIMAN,
  1917. .data = & (const struct snd_usb_midi_endpoint_info) {
  1918. .out_cables = 0x0001,
  1919. .in_cables = 0x0001
  1920. }
  1921. },
  1922. {
  1923. .ifnum = -1
  1924. }
  1925. }
  1926. }
  1927. },
  1928. {
  1929. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1930. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1931. .vendor_name = "M-Audio",
  1932. .product_name = "AudioPhile",
  1933. .ifnum = 6,
  1934. .type = QUIRK_MIDI_MIDIMAN,
  1935. .data = & (const struct snd_usb_midi_endpoint_info) {
  1936. .out_cables = 0x0001,
  1937. .in_cables = 0x0001
  1938. }
  1939. }
  1940. },
  1941. {
  1942. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1943. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1944. .vendor_name = "M-Audio",
  1945. .product_name = "Ozone",
  1946. .ifnum = 3,
  1947. .type = QUIRK_MIDI_MIDIMAN,
  1948. .data = & (const struct snd_usb_midi_endpoint_info) {
  1949. .out_cables = 0x0001,
  1950. .in_cables = 0x0001
  1951. }
  1952. }
  1953. },
  1954. {
  1955. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1956. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1957. .vendor_name = "M-Audio",
  1958. .product_name = "OmniStudio",
  1959. .ifnum = QUIRK_ANY_INTERFACE,
  1960. .type = QUIRK_COMPOSITE,
  1961. .data = & (const struct snd_usb_audio_quirk[]) {
  1962. {
  1963. .ifnum = 0,
  1964. .type = QUIRK_IGNORE_INTERFACE
  1965. },
  1966. {
  1967. .ifnum = 1,
  1968. .type = QUIRK_IGNORE_INTERFACE
  1969. },
  1970. {
  1971. .ifnum = 2,
  1972. .type = QUIRK_IGNORE_INTERFACE
  1973. },
  1974. {
  1975. .ifnum = 3,
  1976. .type = QUIRK_IGNORE_INTERFACE
  1977. },
  1978. {
  1979. .ifnum = 4,
  1980. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1981. },
  1982. {
  1983. .ifnum = 5,
  1984. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1985. },
  1986. {
  1987. .ifnum = 6,
  1988. .type = QUIRK_IGNORE_INTERFACE
  1989. },
  1990. {
  1991. .ifnum = 7,
  1992. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1993. },
  1994. {
  1995. .ifnum = 8,
  1996. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1997. },
  1998. {
  1999. .ifnum = 9,
  2000. .type = QUIRK_MIDI_MIDIMAN,
  2001. .data = & (const struct snd_usb_midi_endpoint_info) {
  2002. .out_cables = 0x0001,
  2003. .in_cables = 0x0001
  2004. }
  2005. },
  2006. {
  2007. .ifnum = -1
  2008. }
  2009. }
  2010. }
  2011. },
  2012. {
  2013. USB_DEVICE(0x0763, 0x2019),
  2014. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2015. /* .vendor_name = "M-Audio", */
  2016. /* .product_name = "Ozone Academic", */
  2017. .ifnum = QUIRK_ANY_INTERFACE,
  2018. .type = QUIRK_COMPOSITE,
  2019. .data = & (const struct snd_usb_audio_quirk[]) {
  2020. {
  2021. .ifnum = 0,
  2022. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2023. },
  2024. {
  2025. .ifnum = 1,
  2026. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2027. },
  2028. {
  2029. .ifnum = 2,
  2030. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2031. },
  2032. {
  2033. .ifnum = 3,
  2034. .type = QUIRK_MIDI_MIDIMAN,
  2035. .data = & (const struct snd_usb_midi_endpoint_info) {
  2036. .out_cables = 0x0001,
  2037. .in_cables = 0x0001
  2038. }
  2039. },
  2040. {
  2041. .ifnum = -1
  2042. }
  2043. }
  2044. }
  2045. },
  2046. {
  2047. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030),
  2048. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2049. /* .vendor_name = "M-Audio", */
  2050. /* .product_name = "Fast Track C400", */
  2051. .ifnum = QUIRK_ANY_INTERFACE,
  2052. .type = QUIRK_COMPOSITE,
  2053. .data = &(const struct snd_usb_audio_quirk[]) {
  2054. {
  2055. .ifnum = 1,
  2056. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2057. },
  2058. /* Playback */
  2059. {
  2060. .ifnum = 2,
  2061. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2062. .data = &(const struct audioformat) {
  2063. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2064. .channels = 6,
  2065. .iface = 2,
  2066. .altsetting = 1,
  2067. .altset_idx = 1,
  2068. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2069. .endpoint = 0x01,
  2070. .ep_attr = 0x09,
  2071. .rates = SNDRV_PCM_RATE_44100 |
  2072. SNDRV_PCM_RATE_48000 |
  2073. SNDRV_PCM_RATE_88200 |
  2074. SNDRV_PCM_RATE_96000,
  2075. .rate_min = 44100,
  2076. .rate_max = 96000,
  2077. .nr_rates = 4,
  2078. .rate_table = (unsigned int[]) {
  2079. 44100, 48000, 88200, 96000
  2080. },
  2081. .clock = 0x80,
  2082. }
  2083. },
  2084. /* Capture */
  2085. {
  2086. .ifnum = 3,
  2087. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2088. .data = &(const struct audioformat) {
  2089. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2090. .channels = 4,
  2091. .iface = 3,
  2092. .altsetting = 1,
  2093. .altset_idx = 1,
  2094. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2095. .endpoint = 0x81,
  2096. .ep_attr = 0x05,
  2097. .rates = SNDRV_PCM_RATE_44100 |
  2098. SNDRV_PCM_RATE_48000 |
  2099. SNDRV_PCM_RATE_88200 |
  2100. SNDRV_PCM_RATE_96000,
  2101. .rate_min = 44100,
  2102. .rate_max = 96000,
  2103. .nr_rates = 4,
  2104. .rate_table = (unsigned int[]) {
  2105. 44100, 48000, 88200, 96000
  2106. },
  2107. .clock = 0x80,
  2108. }
  2109. },
  2110. /* MIDI */
  2111. {
  2112. .ifnum = -1 /* Interface = 4 */
  2113. }
  2114. }
  2115. }
  2116. },
  2117. {
  2118. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2031),
  2119. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2120. /* .vendor_name = "M-Audio", */
  2121. /* .product_name = "Fast Track C600", */
  2122. .ifnum = QUIRK_ANY_INTERFACE,
  2123. .type = QUIRK_COMPOSITE,
  2124. .data = &(const struct snd_usb_audio_quirk[]) {
  2125. {
  2126. .ifnum = 1,
  2127. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2128. },
  2129. /* Playback */
  2130. {
  2131. .ifnum = 2,
  2132. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2133. .data = &(const struct audioformat) {
  2134. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2135. .channels = 8,
  2136. .iface = 2,
  2137. .altsetting = 1,
  2138. .altset_idx = 1,
  2139. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2140. .endpoint = 0x01,
  2141. .ep_attr = 0x09,
  2142. .rates = SNDRV_PCM_RATE_44100 |
  2143. SNDRV_PCM_RATE_48000 |
  2144. SNDRV_PCM_RATE_88200 |
  2145. SNDRV_PCM_RATE_96000,
  2146. .rate_min = 44100,
  2147. .rate_max = 96000,
  2148. .nr_rates = 4,
  2149. .rate_table = (unsigned int[]) {
  2150. 44100, 48000, 88200, 96000
  2151. },
  2152. .clock = 0x80,
  2153. }
  2154. },
  2155. /* Capture */
  2156. {
  2157. .ifnum = 3,
  2158. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2159. .data = &(const struct audioformat) {
  2160. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2161. .channels = 6,
  2162. .iface = 3,
  2163. .altsetting = 1,
  2164. .altset_idx = 1,
  2165. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2166. .endpoint = 0x81,
  2167. .ep_attr = 0x05,
  2168. .rates = SNDRV_PCM_RATE_44100 |
  2169. SNDRV_PCM_RATE_48000 |
  2170. SNDRV_PCM_RATE_88200 |
  2171. SNDRV_PCM_RATE_96000,
  2172. .rate_min = 44100,
  2173. .rate_max = 96000,
  2174. .nr_rates = 4,
  2175. .rate_table = (unsigned int[]) {
  2176. 44100, 48000, 88200, 96000
  2177. },
  2178. .clock = 0x80,
  2179. }
  2180. },
  2181. /* MIDI */
  2182. {
  2183. .ifnum = -1 /* Interface = 4 */
  2184. }
  2185. }
  2186. }
  2187. },
  2188. {
  2189. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
  2190. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2191. /* .vendor_name = "M-Audio", */
  2192. /* .product_name = "Fast Track Ultra", */
  2193. .ifnum = QUIRK_ANY_INTERFACE,
  2194. .type = QUIRK_COMPOSITE,
  2195. .data = & (const struct snd_usb_audio_quirk[]) {
  2196. {
  2197. .ifnum = 0,
  2198. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2199. },
  2200. {
  2201. .ifnum = 1,
  2202. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2203. .data = & (const struct audioformat) {
  2204. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2205. .channels = 8,
  2206. .iface = 1,
  2207. .altsetting = 1,
  2208. .altset_idx = 1,
  2209. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2210. .endpoint = 0x01,
  2211. .ep_attr = 0x09,
  2212. .rates = SNDRV_PCM_RATE_44100 |
  2213. SNDRV_PCM_RATE_48000 |
  2214. SNDRV_PCM_RATE_88200 |
  2215. SNDRV_PCM_RATE_96000,
  2216. .rate_min = 44100,
  2217. .rate_max = 96000,
  2218. .nr_rates = 4,
  2219. .rate_table = (unsigned int[]) {
  2220. 44100, 48000, 88200, 96000
  2221. }
  2222. }
  2223. },
  2224. {
  2225. .ifnum = 2,
  2226. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2227. .data = & (const struct audioformat) {
  2228. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2229. .channels = 8,
  2230. .iface = 2,
  2231. .altsetting = 1,
  2232. .altset_idx = 1,
  2233. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2234. .endpoint = 0x81,
  2235. .ep_attr = 0x05,
  2236. .rates = SNDRV_PCM_RATE_44100 |
  2237. SNDRV_PCM_RATE_48000 |
  2238. SNDRV_PCM_RATE_88200 |
  2239. SNDRV_PCM_RATE_96000,
  2240. .rate_min = 44100,
  2241. .rate_max = 96000,
  2242. .nr_rates = 4,
  2243. .rate_table = (unsigned int[]) {
  2244. 44100, 48000, 88200, 96000
  2245. }
  2246. }
  2247. },
  2248. /* interface 3 (MIDI) is standard compliant */
  2249. {
  2250. .ifnum = -1
  2251. }
  2252. }
  2253. }
  2254. },
  2255. {
  2256. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
  2257. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2258. /* .vendor_name = "M-Audio", */
  2259. /* .product_name = "Fast Track Ultra 8R", */
  2260. .ifnum = QUIRK_ANY_INTERFACE,
  2261. .type = QUIRK_COMPOSITE,
  2262. .data = & (const struct snd_usb_audio_quirk[]) {
  2263. {
  2264. .ifnum = 0,
  2265. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2266. },
  2267. {
  2268. .ifnum = 1,
  2269. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2270. .data = & (const struct audioformat) {
  2271. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2272. .channels = 8,
  2273. .iface = 1,
  2274. .altsetting = 1,
  2275. .altset_idx = 1,
  2276. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2277. .endpoint = 0x01,
  2278. .ep_attr = 0x09,
  2279. .rates = SNDRV_PCM_RATE_44100 |
  2280. SNDRV_PCM_RATE_48000 |
  2281. SNDRV_PCM_RATE_88200 |
  2282. SNDRV_PCM_RATE_96000,
  2283. .rate_min = 44100,
  2284. .rate_max = 96000,
  2285. .nr_rates = 4,
  2286. .rate_table = (unsigned int[]) {
  2287. 44100, 48000, 88200, 96000
  2288. }
  2289. }
  2290. },
  2291. {
  2292. .ifnum = 2,
  2293. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2294. .data = & (const struct audioformat) {
  2295. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2296. .channels = 8,
  2297. .iface = 2,
  2298. .altsetting = 1,
  2299. .altset_idx = 1,
  2300. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2301. .endpoint = 0x81,
  2302. .ep_attr = 0x05,
  2303. .rates = SNDRV_PCM_RATE_44100 |
  2304. SNDRV_PCM_RATE_48000 |
  2305. SNDRV_PCM_RATE_88200 |
  2306. SNDRV_PCM_RATE_96000,
  2307. .rate_min = 44100,
  2308. .rate_max = 96000,
  2309. .nr_rates = 4,
  2310. .rate_table = (unsigned int[]) {
  2311. 44100, 48000, 88200, 96000
  2312. }
  2313. }
  2314. },
  2315. /* interface 3 (MIDI) is standard compliant */
  2316. {
  2317. .ifnum = -1
  2318. }
  2319. }
  2320. }
  2321. },
  2322. /* Casio devices */
  2323. {
  2324. USB_DEVICE(0x07cf, 0x6801),
  2325. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2326. .vendor_name = "Casio",
  2327. .product_name = "PL-40R",
  2328. .ifnum = 0,
  2329. .type = QUIRK_MIDI_YAMAHA
  2330. }
  2331. },
  2332. {
  2333. /* this ID is used by several devices without a product ID */
  2334. USB_DEVICE(0x07cf, 0x6802),
  2335. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2336. .vendor_name = "Casio",
  2337. .product_name = "Keyboard",
  2338. .ifnum = 0,
  2339. .type = QUIRK_MIDI_YAMAHA
  2340. }
  2341. },
  2342. /* Mark of the Unicorn devices */
  2343. {
  2344. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  2345. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  2346. USB_DEVICE_ID_MATCH_PRODUCT |
  2347. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  2348. .idVendor = 0x07fd,
  2349. .idProduct = 0x0001,
  2350. .bDeviceSubClass = 2,
  2351. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2352. .vendor_name = "MOTU",
  2353. .product_name = "Fastlane",
  2354. .ifnum = QUIRK_ANY_INTERFACE,
  2355. .type = QUIRK_COMPOSITE,
  2356. .data = & (const struct snd_usb_audio_quirk[]) {
  2357. {
  2358. .ifnum = 0,
  2359. .type = QUIRK_MIDI_RAW_BYTES
  2360. },
  2361. {
  2362. .ifnum = 1,
  2363. .type = QUIRK_IGNORE_INTERFACE
  2364. },
  2365. {
  2366. .ifnum = -1
  2367. }
  2368. }
  2369. }
  2370. },
  2371. /* Emagic devices */
  2372. {
  2373. USB_DEVICE(0x086a, 0x0001),
  2374. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2375. .vendor_name = "Emagic",
  2376. /* .product_name = "Unitor8", */
  2377. .ifnum = 2,
  2378. .type = QUIRK_MIDI_EMAGIC,
  2379. .data = & (const struct snd_usb_midi_endpoint_info) {
  2380. .out_cables = 0x80ff,
  2381. .in_cables = 0x80ff
  2382. }
  2383. }
  2384. },
  2385. {
  2386. USB_DEVICE(0x086a, 0x0002),
  2387. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2388. .vendor_name = "Emagic",
  2389. /* .product_name = "AMT8", */
  2390. .ifnum = 2,
  2391. .type = QUIRK_MIDI_EMAGIC,
  2392. .data = & (const struct snd_usb_midi_endpoint_info) {
  2393. .out_cables = 0x80ff,
  2394. .in_cables = 0x80ff
  2395. }
  2396. }
  2397. },
  2398. {
  2399. USB_DEVICE(0x086a, 0x0003),
  2400. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2401. .vendor_name = "Emagic",
  2402. /* .product_name = "MT4", */
  2403. .ifnum = 2,
  2404. .type = QUIRK_MIDI_EMAGIC,
  2405. .data = & (const struct snd_usb_midi_endpoint_info) {
  2406. .out_cables = 0x800f,
  2407. .in_cables = 0x8003
  2408. }
  2409. }
  2410. },
  2411. /* KORG devices */
  2412. {
  2413. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
  2414. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2415. .vendor_name = "KORG, Inc.",
  2416. /* .product_name = "PANDORA PX5D", */
  2417. .ifnum = 3,
  2418. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2419. }
  2420. },
  2421. {
  2422. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
  2423. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2424. .vendor_name = "KORG, Inc.",
  2425. /* .product_name = "ToneLab ST", */
  2426. .ifnum = 3,
  2427. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2428. }
  2429. },
  2430. /* AKAI devices */
  2431. {
  2432. USB_DEVICE(0x09e8, 0x0062),
  2433. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2434. .vendor_name = "AKAI",
  2435. .product_name = "MPD16",
  2436. .ifnum = 0,
  2437. .type = QUIRK_MIDI_AKAI,
  2438. }
  2439. },
  2440. /* TerraTec devices */
  2441. {
  2442. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  2443. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2444. .vendor_name = "TerraTec",
  2445. .product_name = "PHASE 26",
  2446. .ifnum = 3,
  2447. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2448. }
  2449. },
  2450. {
  2451. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  2452. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2453. .vendor_name = "TerraTec",
  2454. .product_name = "PHASE 26",
  2455. .ifnum = 3,
  2456. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2457. }
  2458. },
  2459. {
  2460. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  2461. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2462. .vendor_name = "TerraTec",
  2463. .product_name = "PHASE 26",
  2464. .ifnum = 3,
  2465. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2466. }
  2467. },
  2468. {
  2469. USB_DEVICE(0x0ccd, 0x0028),
  2470. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2471. .vendor_name = "TerraTec",
  2472. .product_name = "Aureon5.1MkII",
  2473. .ifnum = QUIRK_NO_INTERFACE
  2474. }
  2475. },
  2476. {
  2477. USB_DEVICE(0x0ccd, 0x0035),
  2478. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2479. .vendor_name = "Miditech",
  2480. .product_name = "Play'n Roll",
  2481. .ifnum = 0,
  2482. .type = QUIRK_MIDI_CME
  2483. }
  2484. },
  2485. /* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
  2486. {
  2487. USB_DEVICE(0x103d, 0x0100),
  2488. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2489. .vendor_name = "Stanton",
  2490. .product_name = "ScratchAmp",
  2491. .ifnum = QUIRK_NO_INTERFACE
  2492. }
  2493. },
  2494. {
  2495. USB_DEVICE(0x103d, 0x0101),
  2496. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2497. .vendor_name = "Stanton",
  2498. .product_name = "ScratchAmp",
  2499. .ifnum = QUIRK_NO_INTERFACE
  2500. }
  2501. },
  2502. /* Novation EMS devices */
  2503. {
  2504. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  2505. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2506. .vendor_name = "Novation",
  2507. .product_name = "ReMOTE Audio/XStation",
  2508. .ifnum = 4,
  2509. .type = QUIRK_MIDI_NOVATION
  2510. }
  2511. },
  2512. {
  2513. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  2514. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2515. .vendor_name = "Novation",
  2516. .product_name = "Speedio",
  2517. .ifnum = 3,
  2518. .type = QUIRK_MIDI_NOVATION
  2519. }
  2520. },
  2521. {
  2522. USB_DEVICE(0x1235, 0x000e),
  2523. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2524. /* .vendor_name = "Novation", */
  2525. /* .product_name = "Launchpad", */
  2526. .ifnum = 0,
  2527. .type = QUIRK_MIDI_RAW_BYTES
  2528. }
  2529. },
  2530. {
  2531. USB_DEVICE(0x1235, 0x0010),
  2532. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2533. .vendor_name = "Focusrite",
  2534. .product_name = "Saffire 6 USB",
  2535. .ifnum = QUIRK_ANY_INTERFACE,
  2536. .type = QUIRK_COMPOSITE,
  2537. .data = (const struct snd_usb_audio_quirk[]) {
  2538. {
  2539. .ifnum = 0,
  2540. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2541. .data = &(const struct audioformat) {
  2542. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2543. .channels = 4,
  2544. .iface = 0,
  2545. .altsetting = 1,
  2546. .altset_idx = 1,
  2547. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2548. .endpoint = 0x01,
  2549. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2550. .rates = SNDRV_PCM_RATE_44100 |
  2551. SNDRV_PCM_RATE_48000,
  2552. .rate_min = 44100,
  2553. .rate_max = 48000,
  2554. .nr_rates = 2,
  2555. .rate_table = (unsigned int[]) {
  2556. 44100, 48000
  2557. }
  2558. }
  2559. },
  2560. {
  2561. .ifnum = 1,
  2562. .type = QUIRK_MIDI_RAW_BYTES
  2563. },
  2564. {
  2565. .ifnum = -1
  2566. }
  2567. }
  2568. }
  2569. },
  2570. {
  2571. USB_DEVICE(0x1235, 0x0018),
  2572. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2573. .vendor_name = "Novation",
  2574. .product_name = "Twitch",
  2575. .ifnum = QUIRK_ANY_INTERFACE,
  2576. .type = QUIRK_COMPOSITE,
  2577. .data = (const struct snd_usb_audio_quirk[]) {
  2578. {
  2579. .ifnum = 0,
  2580. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2581. .data = & (const struct audioformat) {
  2582. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2583. .channels = 4,
  2584. .iface = 0,
  2585. .altsetting = 1,
  2586. .altset_idx = 1,
  2587. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2588. .endpoint = 0x01,
  2589. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2590. .rates = SNDRV_PCM_RATE_44100 |
  2591. SNDRV_PCM_RATE_48000,
  2592. .rate_min = 44100,
  2593. .rate_max = 48000,
  2594. .nr_rates = 2,
  2595. .rate_table = (unsigned int[]) {
  2596. 44100, 48000
  2597. }
  2598. }
  2599. },
  2600. {
  2601. .ifnum = 1,
  2602. .type = QUIRK_MIDI_RAW_BYTES
  2603. },
  2604. {
  2605. .ifnum = -1
  2606. }
  2607. }
  2608. }
  2609. },
  2610. {
  2611. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  2612. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2613. .vendor_name = "Novation",
  2614. .product_name = "ReMOTE25",
  2615. .ifnum = 0,
  2616. .type = QUIRK_MIDI_NOVATION
  2617. }
  2618. },
  2619. {
  2620. /*
  2621. * Focusrite Scarlett 18i6
  2622. *
  2623. * Avoid mixer creation, which otherwise fails because some of
  2624. * the interface descriptor subtypes for interface 0 are
  2625. * unknown. That should be fixed or worked-around but this at
  2626. * least allows the device to be used successfully with a DAW
  2627. * and an external mixer. See comments below about other
  2628. * ignored interfaces.
  2629. */
  2630. USB_DEVICE(0x1235, 0x8004),
  2631. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2632. .vendor_name = "Focusrite",
  2633. .product_name = "Scarlett 18i6",
  2634. .ifnum = QUIRK_ANY_INTERFACE,
  2635. .type = QUIRK_COMPOSITE,
  2636. .data = & (const struct snd_usb_audio_quirk[]) {
  2637. {
  2638. /* InterfaceSubClass 1 (Control Device) */
  2639. .ifnum = 0,
  2640. .type = QUIRK_IGNORE_INTERFACE
  2641. },
  2642. {
  2643. .ifnum = 1,
  2644. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2645. },
  2646. {
  2647. .ifnum = 2,
  2648. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2649. },
  2650. {
  2651. /* InterfaceSubClass 1 (Control Device) */
  2652. .ifnum = 3,
  2653. .type = QUIRK_IGNORE_INTERFACE
  2654. },
  2655. {
  2656. .ifnum = 4,
  2657. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2658. },
  2659. {
  2660. /* InterfaceSubClass 1 (Device Firmware Update) */
  2661. .ifnum = 5,
  2662. .type = QUIRK_IGNORE_INTERFACE
  2663. },
  2664. {
  2665. .ifnum = -1
  2666. }
  2667. }
  2668. }
  2669. },
  2670. /* Access Music devices */
  2671. {
  2672. /* VirusTI Desktop */
  2673. USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
  2674. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2675. .ifnum = QUIRK_ANY_INTERFACE,
  2676. .type = QUIRK_COMPOSITE,
  2677. .data = &(const struct snd_usb_audio_quirk[]) {
  2678. {
  2679. .ifnum = 3,
  2680. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2681. .data = &(const struct snd_usb_midi_endpoint_info) {
  2682. .out_cables = 0x0003,
  2683. .in_cables = 0x0003
  2684. }
  2685. },
  2686. {
  2687. .ifnum = 4,
  2688. .type = QUIRK_IGNORE_INTERFACE
  2689. },
  2690. {
  2691. .ifnum = -1
  2692. }
  2693. }
  2694. }
  2695. },
  2696. /* */
  2697. {
  2698. /* aka. Serato Scratch Live DJ Box */
  2699. USB_DEVICE(0x13e5, 0x0001),
  2700. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2701. .vendor_name = "Rane",
  2702. .product_name = "SL-1",
  2703. .ifnum = QUIRK_NO_INTERFACE
  2704. }
  2705. },
  2706. /* Native Instruments MK2 series */
  2707. {
  2708. /* Komplete Audio 6 */
  2709. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2710. .idVendor = 0x17cc,
  2711. .idProduct = 0x1000,
  2712. },
  2713. {
  2714. /* Traktor Audio 6 */
  2715. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2716. .idVendor = 0x17cc,
  2717. .idProduct = 0x1010,
  2718. },
  2719. {
  2720. /* Traktor Audio 10 */
  2721. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2722. .idVendor = 0x17cc,
  2723. .idProduct = 0x1020,
  2724. },
  2725. /* KeithMcMillen Stringport */
  2726. {
  2727. USB_DEVICE(0x1f38, 0x0001),
  2728. .bInterfaceClass = USB_CLASS_AUDIO,
  2729. },
  2730. /* Miditech devices */
  2731. {
  2732. USB_DEVICE(0x4752, 0x0011),
  2733. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2734. .vendor_name = "Miditech",
  2735. .product_name = "Midistart-2",
  2736. .ifnum = 0,
  2737. .type = QUIRK_MIDI_CME
  2738. }
  2739. },
  2740. /* Central Music devices */
  2741. {
  2742. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  2743. USB_DEVICE(0x7104, 0x2202),
  2744. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2745. .ifnum = 0,
  2746. .type = QUIRK_MIDI_CME
  2747. }
  2748. },
  2749. /* Hauppauge HVR-950Q and HVR-850 */
  2750. {
  2751. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
  2752. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2753. USB_DEVICE_ID_MATCH_INT_CLASS |
  2754. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2755. .bInterfaceClass = USB_CLASS_AUDIO,
  2756. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2757. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2758. .vendor_name = "Hauppauge",
  2759. .product_name = "HVR-950Q",
  2760. .ifnum = QUIRK_ANY_INTERFACE,
  2761. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2762. }
  2763. },
  2764. {
  2765. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
  2766. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2767. USB_DEVICE_ID_MATCH_INT_CLASS |
  2768. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2769. .bInterfaceClass = USB_CLASS_AUDIO,
  2770. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2771. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2772. .vendor_name = "Hauppauge",
  2773. .product_name = "HVR-950Q",
  2774. .ifnum = QUIRK_ANY_INTERFACE,
  2775. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2776. }
  2777. },
  2778. {
  2779. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
  2780. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2781. USB_DEVICE_ID_MATCH_INT_CLASS |
  2782. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2783. .bInterfaceClass = USB_CLASS_AUDIO,
  2784. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2785. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2786. .vendor_name = "Hauppauge",
  2787. .product_name = "HVR-950Q",
  2788. .ifnum = QUIRK_ANY_INTERFACE,
  2789. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2790. }
  2791. },
  2792. {
  2793. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
  2794. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2795. USB_DEVICE_ID_MATCH_INT_CLASS |
  2796. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2797. .bInterfaceClass = USB_CLASS_AUDIO,
  2798. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2799. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2800. .vendor_name = "Hauppauge",
  2801. .product_name = "HVR-950Q",
  2802. .ifnum = QUIRK_ANY_INTERFACE,
  2803. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2804. }
  2805. },
  2806. {
  2807. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
  2808. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2809. USB_DEVICE_ID_MATCH_INT_CLASS |
  2810. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2811. .bInterfaceClass = USB_CLASS_AUDIO,
  2812. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2813. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2814. .vendor_name = "Hauppauge",
  2815. .product_name = "HVR-950Q",
  2816. .ifnum = QUIRK_ANY_INTERFACE,
  2817. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2818. }
  2819. },
  2820. {
  2821. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
  2822. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2823. USB_DEVICE_ID_MATCH_INT_CLASS |
  2824. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2825. .bInterfaceClass = USB_CLASS_AUDIO,
  2826. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2827. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2828. .vendor_name = "Hauppauge",
  2829. .product_name = "HVR-950Q",
  2830. .ifnum = QUIRK_ANY_INTERFACE,
  2831. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2832. }
  2833. },
  2834. {
  2835. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
  2836. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2837. USB_DEVICE_ID_MATCH_INT_CLASS |
  2838. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2839. .bInterfaceClass = USB_CLASS_AUDIO,
  2840. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2841. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2842. .vendor_name = "Hauppauge",
  2843. .product_name = "HVR-850",
  2844. .ifnum = QUIRK_ANY_INTERFACE,
  2845. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2846. }
  2847. },
  2848. {
  2849. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
  2850. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2851. USB_DEVICE_ID_MATCH_INT_CLASS |
  2852. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2853. .bInterfaceClass = USB_CLASS_AUDIO,
  2854. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2855. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2856. .vendor_name = "Hauppauge",
  2857. .product_name = "HVR-950Q",
  2858. .ifnum = QUIRK_ANY_INTERFACE,
  2859. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2860. }
  2861. },
  2862. {
  2863. USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
  2864. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2865. USB_DEVICE_ID_MATCH_INT_CLASS |
  2866. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2867. .bInterfaceClass = USB_CLASS_AUDIO,
  2868. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2869. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2870. .vendor_name = "Hauppauge",
  2871. .product_name = "HVR-950Q",
  2872. .ifnum = QUIRK_ANY_INTERFACE,
  2873. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2874. }
  2875. },
  2876. /* Digidesign Mbox */
  2877. {
  2878. /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
  2879. USB_DEVICE(0x0dba, 0x1000),
  2880. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2881. .vendor_name = "Digidesign",
  2882. .product_name = "MBox",
  2883. .ifnum = QUIRK_ANY_INTERFACE,
  2884. .type = QUIRK_COMPOSITE,
  2885. .data = (const struct snd_usb_audio_quirk[]){
  2886. {
  2887. .ifnum = 0,
  2888. .type = QUIRK_IGNORE_INTERFACE,
  2889. },
  2890. {
  2891. .ifnum = 1,
  2892. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2893. .data = &(const struct audioformat) {
  2894. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2895. .channels = 2,
  2896. .iface = 1,
  2897. .altsetting = 1,
  2898. .altset_idx = 1,
  2899. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2900. .endpoint = 0x02,
  2901. .ep_attr = 0x01,
  2902. .rates = SNDRV_PCM_RATE_44100 |
  2903. SNDRV_PCM_RATE_48000,
  2904. .rate_min = 44100,
  2905. .rate_max = 48000,
  2906. .nr_rates = 2,
  2907. .rate_table = (unsigned int[]) {
  2908. 44100, 48000
  2909. }
  2910. }
  2911. },
  2912. {
  2913. .ifnum = -1
  2914. }
  2915. }
  2916. }
  2917. },
  2918. /* DIGIDESIGN MBOX 2 */
  2919. {
  2920. USB_DEVICE(0x0dba, 0x3000),
  2921. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2922. .vendor_name = "Digidesign",
  2923. .product_name = "Mbox 2",
  2924. .ifnum = QUIRK_ANY_INTERFACE,
  2925. .type = QUIRK_COMPOSITE,
  2926. .data = (const struct snd_usb_audio_quirk[]) {
  2927. {
  2928. .ifnum = 0,
  2929. .type = QUIRK_IGNORE_INTERFACE
  2930. },
  2931. {
  2932. .ifnum = 1,
  2933. .type = QUIRK_IGNORE_INTERFACE
  2934. },
  2935. {
  2936. .ifnum = 2,
  2937. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2938. .data = &(const struct audioformat) {
  2939. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2940. .channels = 2,
  2941. .iface = 2,
  2942. .altsetting = 2,
  2943. .altset_idx = 1,
  2944. .attributes = 0x00,
  2945. .endpoint = 0x03,
  2946. .ep_attr = USB_ENDPOINT_SYNC_ASYNC,
  2947. .rates = SNDRV_PCM_RATE_48000,
  2948. .rate_min = 48000,
  2949. .rate_max = 48000,
  2950. .nr_rates = 1,
  2951. .rate_table = (unsigned int[]) {
  2952. 48000
  2953. }
  2954. }
  2955. },
  2956. {
  2957. .ifnum = 3,
  2958. .type = QUIRK_IGNORE_INTERFACE
  2959. },
  2960. {
  2961. .ifnum = 4,
  2962. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2963. .data = &(const struct audioformat) {
  2964. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2965. .channels = 2,
  2966. .iface = 4,
  2967. .altsetting = 2,
  2968. .altset_idx = 1,
  2969. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2970. .endpoint = 0x85,
  2971. .ep_attr = USB_ENDPOINT_SYNC_SYNC,
  2972. .rates = SNDRV_PCM_RATE_48000,
  2973. .rate_min = 48000,
  2974. .rate_max = 48000,
  2975. .nr_rates = 1,
  2976. .rate_table = (unsigned int[]) {
  2977. 48000
  2978. }
  2979. }
  2980. },
  2981. {
  2982. .ifnum = 5,
  2983. .type = QUIRK_IGNORE_INTERFACE
  2984. },
  2985. {
  2986. .ifnum = 6,
  2987. .type = QUIRK_MIDI_MIDIMAN,
  2988. .data = &(const struct snd_usb_midi_endpoint_info) {
  2989. .out_ep = 0x02,
  2990. .out_cables = 0x0001,
  2991. .in_ep = 0x81,
  2992. .in_interval = 0x01,
  2993. .in_cables = 0x0001
  2994. }
  2995. },
  2996. {
  2997. .ifnum = -1
  2998. }
  2999. }
  3000. }
  3001. },
  3002. {
  3003. /* Tascam US122 MKII - playback-only support */
  3004. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  3005. .idVendor = 0x0644,
  3006. .idProduct = 0x8021,
  3007. .bInterfaceClass = USB_CLASS_AUDIO,
  3008. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3009. .vendor_name = "TASCAM",
  3010. .product_name = "US122 MKII",
  3011. .ifnum = QUIRK_ANY_INTERFACE,
  3012. .type = QUIRK_COMPOSITE,
  3013. .data = (const struct snd_usb_audio_quirk[]) {
  3014. {
  3015. .ifnum = 0,
  3016. .type = QUIRK_IGNORE_INTERFACE
  3017. },
  3018. {
  3019. .ifnum = 1,
  3020. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3021. .data = &(const struct audioformat) {
  3022. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3023. .channels = 2,
  3024. .iface = 1,
  3025. .altsetting = 1,
  3026. .altset_idx = 1,
  3027. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3028. .endpoint = 0x02,
  3029. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  3030. .rates = SNDRV_PCM_RATE_44100 |
  3031. SNDRV_PCM_RATE_48000 |
  3032. SNDRV_PCM_RATE_88200 |
  3033. SNDRV_PCM_RATE_96000,
  3034. .rate_min = 44100,
  3035. .rate_max = 96000,
  3036. .nr_rates = 4,
  3037. .rate_table = (unsigned int[]) {
  3038. 44100, 48000, 88200, 96000
  3039. }
  3040. }
  3041. },
  3042. {
  3043. .ifnum = -1
  3044. }
  3045. }
  3046. }
  3047. },
  3048. /* Microsoft XboxLive Headset/Xbox Communicator */
  3049. {
  3050. USB_DEVICE(0x045e, 0x0283),
  3051. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  3052. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3053. .vendor_name = "Microsoft",
  3054. .product_name = "XboxLive Headset/Xbox Communicator",
  3055. .ifnum = QUIRK_ANY_INTERFACE,
  3056. .type = QUIRK_COMPOSITE,
  3057. .data = &(const struct snd_usb_audio_quirk[]) {
  3058. {
  3059. /* playback */
  3060. .ifnum = 0,
  3061. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3062. .data = &(const struct audioformat) {
  3063. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3064. .channels = 1,
  3065. .iface = 0,
  3066. .altsetting = 0,
  3067. .altset_idx = 0,
  3068. .attributes = 0,
  3069. .endpoint = 0x04,
  3070. .ep_attr = 0x05,
  3071. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3072. .rate_min = 22050,
  3073. .rate_max = 22050
  3074. }
  3075. },
  3076. {
  3077. /* capture */
  3078. .ifnum = 1,
  3079. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3080. .data = &(const struct audioformat) {
  3081. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3082. .channels = 1,
  3083. .iface = 1,
  3084. .altsetting = 0,
  3085. .altset_idx = 0,
  3086. .attributes = 0,
  3087. .endpoint = 0x85,
  3088. .ep_attr = 0x05,
  3089. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3090. .rate_min = 16000,
  3091. .rate_max = 16000
  3092. }
  3093. },
  3094. {
  3095. .ifnum = -1
  3096. }
  3097. }
  3098. }
  3099. },
  3100. /* Reloop Play */
  3101. {
  3102. USB_DEVICE(0x200c, 0x100b),
  3103. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  3104. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3105. .ifnum = QUIRK_ANY_INTERFACE,
  3106. .type = QUIRK_COMPOSITE,
  3107. .data = &(const struct snd_usb_audio_quirk[]) {
  3108. {
  3109. .ifnum = 0,
  3110. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3111. },
  3112. {
  3113. .ifnum = 1,
  3114. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3115. .data = &(const struct audioformat) {
  3116. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3117. .channels = 4,
  3118. .iface = 1,
  3119. .altsetting = 1,
  3120. .altset_idx = 1,
  3121. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3122. .endpoint = 0x01,
  3123. .ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
  3124. .rates = SNDRV_PCM_RATE_44100 |
  3125. SNDRV_PCM_RATE_48000,
  3126. .rate_min = 44100,
  3127. .rate_max = 48000,
  3128. .nr_rates = 2,
  3129. .rate_table = (unsigned int[]) {
  3130. 44100, 48000
  3131. }
  3132. }
  3133. },
  3134. {
  3135. .ifnum = -1
  3136. }
  3137. }
  3138. }
  3139. },
  3140. {
  3141. /*
  3142. * Some USB MIDI devices don't have an audio control interface,
  3143. * so we have to grab MIDI streaming interfaces here.
  3144. */
  3145. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  3146. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  3147. .bInterfaceClass = USB_CLASS_AUDIO,
  3148. .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
  3149. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  3150. .ifnum = QUIRK_ANY_INTERFACE,
  3151. .type = QUIRK_MIDI_STANDARD_INTERFACE
  3152. }
  3153. },
  3154. {
  3155. /*
  3156. * The original product_name is "USB Sound Device", however this name
  3157. * is also used by the CM106 based cards, so make it unique.
  3158. */
  3159. USB_DEVICE(0x0d8c, 0x0103),
  3160. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3161. .product_name = "Audio Advantage MicroII",
  3162. .ifnum = QUIRK_NO_INTERFACE
  3163. }
  3164. },
  3165. #undef USB_DEVICE_VENDOR_SPEC