quirks-table.h 75 KB

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