quirks-table.h 62 KB

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