quirks-table.h 66 KB

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