quirks-table.h 75 KB

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