quirks-table.h 65 KB

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