quirks-table.h 76 KB

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