quirks-table.h 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502
  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. /* has ID 0x0110 when not in Advanced Driver mode */
  1564. USB_DEVICE_VENDOR_SPEC(0x0582, 0x010f),
  1565. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1566. /* .vendor_name = "Roland", */
  1567. /* .product_name = "A-PRO", */
  1568. .ifnum = 1,
  1569. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1570. .data = & (const struct snd_usb_midi_endpoint_info) {
  1571. .out_cables = 0x0003,
  1572. .in_cables = 0x0007
  1573. }
  1574. }
  1575. },
  1576. {
  1577. USB_DEVICE(0x0582, 0x0113),
  1578. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1579. /* .vendor_name = "BOSS", */
  1580. /* .product_name = "ME-25", */
  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_FIXED_ENDPOINT,
  1595. .data = & (const struct snd_usb_midi_endpoint_info) {
  1596. .out_cables = 0x0001,
  1597. .in_cables = 0x0001
  1598. }
  1599. },
  1600. {
  1601. .ifnum = -1
  1602. }
  1603. }
  1604. }
  1605. },
  1606. /* Guillemot devices */
  1607. {
  1608. /*
  1609. * This is for the "Windows Edition" where the external MIDI ports are
  1610. * the only MIDI ports; the control data is reported through HID
  1611. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1612. * compliant USB MIDI ports for external MIDI and controls.
  1613. */
  1614. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1615. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1616. .vendor_name = "Hercules",
  1617. .product_name = "DJ Console (WE)",
  1618. .ifnum = 4,
  1619. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1620. .data = & (const struct snd_usb_midi_endpoint_info) {
  1621. .out_cables = 0x0001,
  1622. .in_cables = 0x0001
  1623. }
  1624. }
  1625. },
  1626. /* Midiman/M-Audio devices */
  1627. {
  1628. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1629. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1630. .vendor_name = "M-Audio",
  1631. .product_name = "MidiSport 2x2",
  1632. .ifnum = QUIRK_ANY_INTERFACE,
  1633. .type = QUIRK_MIDI_MIDIMAN,
  1634. .data = & (const struct snd_usb_midi_endpoint_info) {
  1635. .out_cables = 0x0003,
  1636. .in_cables = 0x0003
  1637. }
  1638. }
  1639. },
  1640. {
  1641. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1642. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1643. .vendor_name = "M-Audio",
  1644. .product_name = "MidiSport 1x1",
  1645. .ifnum = QUIRK_ANY_INTERFACE,
  1646. .type = QUIRK_MIDI_MIDIMAN,
  1647. .data = & (const struct snd_usb_midi_endpoint_info) {
  1648. .out_cables = 0x0001,
  1649. .in_cables = 0x0001
  1650. }
  1651. }
  1652. },
  1653. {
  1654. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1655. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1656. .vendor_name = "M-Audio",
  1657. .product_name = "Keystation",
  1658. .ifnum = QUIRK_ANY_INTERFACE,
  1659. .type = QUIRK_MIDI_MIDIMAN,
  1660. .data = & (const struct snd_usb_midi_endpoint_info) {
  1661. .out_cables = 0x0001,
  1662. .in_cables = 0x0001
  1663. }
  1664. }
  1665. },
  1666. {
  1667. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1668. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1669. .vendor_name = "M-Audio",
  1670. .product_name = "MidiSport 4x4",
  1671. .ifnum = QUIRK_ANY_INTERFACE,
  1672. .type = QUIRK_MIDI_MIDIMAN,
  1673. .data = & (const struct snd_usb_midi_endpoint_info) {
  1674. .out_cables = 0x000f,
  1675. .in_cables = 0x000f
  1676. }
  1677. }
  1678. },
  1679. {
  1680. /*
  1681. * For hardware revision 1.05; in the later revisions (1.10 and
  1682. * 1.21), 0x1031 is the ID for the device without firmware.
  1683. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1684. */
  1685. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1686. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1687. .vendor_name = "M-Audio",
  1688. .product_name = "MidiSport 8x8",
  1689. .ifnum = QUIRK_ANY_INTERFACE,
  1690. .type = QUIRK_MIDI_MIDIMAN,
  1691. .data = & (const struct snd_usb_midi_endpoint_info) {
  1692. .out_cables = 0x01ff,
  1693. .in_cables = 0x01ff
  1694. }
  1695. }
  1696. },
  1697. {
  1698. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1699. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1700. .vendor_name = "M-Audio",
  1701. .product_name = "MidiSport 8x8",
  1702. .ifnum = QUIRK_ANY_INTERFACE,
  1703. .type = QUIRK_MIDI_MIDIMAN,
  1704. .data = & (const struct snd_usb_midi_endpoint_info) {
  1705. .out_cables = 0x01ff,
  1706. .in_cables = 0x01ff
  1707. }
  1708. }
  1709. },
  1710. {
  1711. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1712. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1713. .vendor_name = "M-Audio",
  1714. .product_name = "MidiSport 2x4",
  1715. .ifnum = QUIRK_ANY_INTERFACE,
  1716. .type = QUIRK_MIDI_MIDIMAN,
  1717. .data = & (const struct snd_usb_midi_endpoint_info) {
  1718. .out_cables = 0x000f,
  1719. .in_cables = 0x0003
  1720. }
  1721. }
  1722. },
  1723. {
  1724. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1725. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1726. .vendor_name = "M-Audio",
  1727. .product_name = "Quattro",
  1728. .ifnum = QUIRK_ANY_INTERFACE,
  1729. .type = QUIRK_COMPOSITE,
  1730. .data = & (const struct snd_usb_audio_quirk[]) {
  1731. /*
  1732. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1733. * and share endpoints with the other interfaces.
  1734. * Ignore them. The other interfaces can do 24 bits,
  1735. * but captured samples are big-endian (see usbaudio.c).
  1736. */
  1737. {
  1738. .ifnum = 0,
  1739. .type = QUIRK_IGNORE_INTERFACE
  1740. },
  1741. {
  1742. .ifnum = 1,
  1743. .type = QUIRK_IGNORE_INTERFACE
  1744. },
  1745. {
  1746. .ifnum = 2,
  1747. .type = QUIRK_IGNORE_INTERFACE
  1748. },
  1749. {
  1750. .ifnum = 3,
  1751. .type = QUIRK_IGNORE_INTERFACE
  1752. },
  1753. {
  1754. .ifnum = 4,
  1755. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1756. },
  1757. {
  1758. .ifnum = 5,
  1759. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1760. },
  1761. {
  1762. .ifnum = 6,
  1763. .type = QUIRK_IGNORE_INTERFACE
  1764. },
  1765. {
  1766. .ifnum = 7,
  1767. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1768. },
  1769. {
  1770. .ifnum = 8,
  1771. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1772. },
  1773. {
  1774. .ifnum = 9,
  1775. .type = QUIRK_MIDI_MIDIMAN,
  1776. .data = & (const struct snd_usb_midi_endpoint_info) {
  1777. .out_cables = 0x0001,
  1778. .in_cables = 0x0001
  1779. }
  1780. },
  1781. {
  1782. .ifnum = -1
  1783. }
  1784. }
  1785. }
  1786. },
  1787. {
  1788. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1789. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1790. .vendor_name = "M-Audio",
  1791. .product_name = "AudioPhile",
  1792. .ifnum = 6,
  1793. .type = QUIRK_MIDI_MIDIMAN,
  1794. .data = & (const struct snd_usb_midi_endpoint_info) {
  1795. .out_cables = 0x0001,
  1796. .in_cables = 0x0001
  1797. }
  1798. }
  1799. },
  1800. {
  1801. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1802. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1803. .vendor_name = "M-Audio",
  1804. .product_name = "Ozone",
  1805. .ifnum = 3,
  1806. .type = QUIRK_MIDI_MIDIMAN,
  1807. .data = & (const struct snd_usb_midi_endpoint_info) {
  1808. .out_cables = 0x0001,
  1809. .in_cables = 0x0001
  1810. }
  1811. }
  1812. },
  1813. {
  1814. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1815. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1816. .vendor_name = "M-Audio",
  1817. .product_name = "OmniStudio",
  1818. .ifnum = QUIRK_ANY_INTERFACE,
  1819. .type = QUIRK_COMPOSITE,
  1820. .data = & (const struct snd_usb_audio_quirk[]) {
  1821. {
  1822. .ifnum = 0,
  1823. .type = QUIRK_IGNORE_INTERFACE
  1824. },
  1825. {
  1826. .ifnum = 1,
  1827. .type = QUIRK_IGNORE_INTERFACE
  1828. },
  1829. {
  1830. .ifnum = 2,
  1831. .type = QUIRK_IGNORE_INTERFACE
  1832. },
  1833. {
  1834. .ifnum = 3,
  1835. .type = QUIRK_IGNORE_INTERFACE
  1836. },
  1837. {
  1838. .ifnum = 4,
  1839. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1840. },
  1841. {
  1842. .ifnum = 5,
  1843. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1844. },
  1845. {
  1846. .ifnum = 6,
  1847. .type = QUIRK_IGNORE_INTERFACE
  1848. },
  1849. {
  1850. .ifnum = 7,
  1851. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1852. },
  1853. {
  1854. .ifnum = 8,
  1855. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1856. },
  1857. {
  1858. .ifnum = 9,
  1859. .type = QUIRK_MIDI_MIDIMAN,
  1860. .data = & (const struct snd_usb_midi_endpoint_info) {
  1861. .out_cables = 0x0001,
  1862. .in_cables = 0x0001
  1863. }
  1864. },
  1865. {
  1866. .ifnum = -1
  1867. }
  1868. }
  1869. }
  1870. },
  1871. {
  1872. USB_DEVICE(0x0763, 0x2019),
  1873. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1874. /* .vendor_name = "M-Audio", */
  1875. /* .product_name = "Ozone Academic", */
  1876. .ifnum = QUIRK_ANY_INTERFACE,
  1877. .type = QUIRK_COMPOSITE,
  1878. .data = & (const struct snd_usb_audio_quirk[]) {
  1879. {
  1880. .ifnum = 0,
  1881. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1882. },
  1883. {
  1884. .ifnum = 1,
  1885. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1886. },
  1887. {
  1888. .ifnum = 2,
  1889. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1890. },
  1891. {
  1892. .ifnum = 3,
  1893. .type = QUIRK_MIDI_MIDIMAN,
  1894. .data = & (const struct snd_usb_midi_endpoint_info) {
  1895. .out_cables = 0x0001,
  1896. .in_cables = 0x0001
  1897. }
  1898. },
  1899. {
  1900. .ifnum = -1
  1901. }
  1902. }
  1903. }
  1904. },
  1905. {
  1906. USB_DEVICE(0x0763, 0x2080),
  1907. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1908. /* .vendor_name = "M-Audio", */
  1909. /* .product_name = "Fast Track Ultra", */
  1910. .ifnum = QUIRK_ANY_INTERFACE,
  1911. .type = QUIRK_COMPOSITE,
  1912. .data = & (const struct snd_usb_audio_quirk[]) {
  1913. {
  1914. .ifnum = 0,
  1915. .type = QUIRK_IGNORE_INTERFACE
  1916. },
  1917. {
  1918. .ifnum = 1,
  1919. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1920. .data = & (const struct audioformat) {
  1921. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1922. .channels = 8,
  1923. .iface = 1,
  1924. .altsetting = 1,
  1925. .altset_idx = 1,
  1926. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1927. .endpoint = 0x01,
  1928. .ep_attr = 0x09,
  1929. .rates = SNDRV_PCM_RATE_44100 |
  1930. SNDRV_PCM_RATE_48000 |
  1931. SNDRV_PCM_RATE_88200 |
  1932. SNDRV_PCM_RATE_96000,
  1933. .rate_min = 44100,
  1934. .rate_max = 96000,
  1935. .nr_rates = 4,
  1936. .rate_table = (unsigned int[]) {
  1937. 44100, 48000, 88200, 96000
  1938. }
  1939. }
  1940. },
  1941. {
  1942. .ifnum = 2,
  1943. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1944. .data = & (const struct audioformat) {
  1945. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1946. .channels = 8,
  1947. .iface = 2,
  1948. .altsetting = 1,
  1949. .altset_idx = 1,
  1950. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1951. .endpoint = 0x81,
  1952. .ep_attr = 0x05,
  1953. .rates = SNDRV_PCM_RATE_44100 |
  1954. SNDRV_PCM_RATE_48000 |
  1955. SNDRV_PCM_RATE_88200 |
  1956. SNDRV_PCM_RATE_96000,
  1957. .rate_min = 44100,
  1958. .rate_max = 96000,
  1959. .nr_rates = 4,
  1960. .rate_table = (unsigned int[]) {
  1961. 44100, 48000, 88200, 96000
  1962. }
  1963. }
  1964. },
  1965. /* interface 3 (MIDI) is standard compliant */
  1966. {
  1967. .ifnum = -1
  1968. }
  1969. }
  1970. }
  1971. },
  1972. {
  1973. USB_DEVICE(0x0763, 0x2081),
  1974. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1975. /* .vendor_name = "M-Audio", */
  1976. /* .product_name = "Fast Track Ultra 8R", */
  1977. .ifnum = QUIRK_ANY_INTERFACE,
  1978. .type = QUIRK_COMPOSITE,
  1979. .data = & (const struct snd_usb_audio_quirk[]) {
  1980. {
  1981. .ifnum = 0,
  1982. .type = QUIRK_IGNORE_INTERFACE
  1983. },
  1984. {
  1985. .ifnum = 1,
  1986. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1987. .data = & (const struct audioformat) {
  1988. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1989. .channels = 8,
  1990. .iface = 1,
  1991. .altsetting = 1,
  1992. .altset_idx = 1,
  1993. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1994. .endpoint = 0x01,
  1995. .ep_attr = 0x09,
  1996. .rates = SNDRV_PCM_RATE_44100 |
  1997. SNDRV_PCM_RATE_48000 |
  1998. SNDRV_PCM_RATE_88200 |
  1999. SNDRV_PCM_RATE_96000,
  2000. .rate_min = 44100,
  2001. .rate_max = 96000,
  2002. .nr_rates = 4,
  2003. .rate_table = (unsigned int[]) {
  2004. 44100, 48000, 88200, 96000
  2005. }
  2006. }
  2007. },
  2008. {
  2009. .ifnum = 2,
  2010. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2011. .data = & (const struct audioformat) {
  2012. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2013. .channels = 8,
  2014. .iface = 2,
  2015. .altsetting = 1,
  2016. .altset_idx = 1,
  2017. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2018. .endpoint = 0x81,
  2019. .ep_attr = 0x05,
  2020. .rates = SNDRV_PCM_RATE_44100 |
  2021. SNDRV_PCM_RATE_48000 |
  2022. SNDRV_PCM_RATE_88200 |
  2023. SNDRV_PCM_RATE_96000,
  2024. .rate_min = 44100,
  2025. .rate_max = 96000,
  2026. .nr_rates = 4,
  2027. .rate_table = (unsigned int[]) {
  2028. 44100, 48000, 88200, 96000
  2029. }
  2030. }
  2031. },
  2032. /* interface 3 (MIDI) is standard compliant */
  2033. {
  2034. .ifnum = -1
  2035. }
  2036. }
  2037. }
  2038. },
  2039. /* Casio devices */
  2040. {
  2041. USB_DEVICE(0x07cf, 0x6801),
  2042. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2043. .vendor_name = "Casio",
  2044. .product_name = "PL-40R",
  2045. .ifnum = 0,
  2046. .type = QUIRK_MIDI_YAMAHA
  2047. }
  2048. },
  2049. {
  2050. /* this ID is used by several devices without a product ID */
  2051. USB_DEVICE(0x07cf, 0x6802),
  2052. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2053. .vendor_name = "Casio",
  2054. .product_name = "Keyboard",
  2055. .ifnum = 0,
  2056. .type = QUIRK_MIDI_YAMAHA
  2057. }
  2058. },
  2059. /* Mark of the Unicorn devices */
  2060. {
  2061. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  2062. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  2063. USB_DEVICE_ID_MATCH_PRODUCT |
  2064. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  2065. .idVendor = 0x07fd,
  2066. .idProduct = 0x0001,
  2067. .bDeviceSubClass = 2,
  2068. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2069. .vendor_name = "MOTU",
  2070. .product_name = "Fastlane",
  2071. .ifnum = QUIRK_ANY_INTERFACE,
  2072. .type = QUIRK_COMPOSITE,
  2073. .data = & (const struct snd_usb_audio_quirk[]) {
  2074. {
  2075. .ifnum = 0,
  2076. .type = QUIRK_MIDI_RAW_BYTES
  2077. },
  2078. {
  2079. .ifnum = 1,
  2080. .type = QUIRK_IGNORE_INTERFACE
  2081. },
  2082. {
  2083. .ifnum = -1
  2084. }
  2085. }
  2086. }
  2087. },
  2088. /* Emagic devices */
  2089. {
  2090. USB_DEVICE(0x086a, 0x0001),
  2091. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2092. .vendor_name = "Emagic",
  2093. /* .product_name = "Unitor8", */
  2094. .ifnum = 2,
  2095. .type = QUIRK_MIDI_EMAGIC,
  2096. .data = & (const struct snd_usb_midi_endpoint_info) {
  2097. .out_cables = 0x80ff,
  2098. .in_cables = 0x80ff
  2099. }
  2100. }
  2101. },
  2102. {
  2103. USB_DEVICE(0x086a, 0x0002),
  2104. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2105. .vendor_name = "Emagic",
  2106. /* .product_name = "AMT8", */
  2107. .ifnum = 2,
  2108. .type = QUIRK_MIDI_EMAGIC,
  2109. .data = & (const struct snd_usb_midi_endpoint_info) {
  2110. .out_cables = 0x80ff,
  2111. .in_cables = 0x80ff
  2112. }
  2113. }
  2114. },
  2115. {
  2116. USB_DEVICE(0x086a, 0x0003),
  2117. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2118. .vendor_name = "Emagic",
  2119. /* .product_name = "MT4", */
  2120. .ifnum = 2,
  2121. .type = QUIRK_MIDI_EMAGIC,
  2122. .data = & (const struct snd_usb_midi_endpoint_info) {
  2123. .out_cables = 0x800f,
  2124. .in_cables = 0x8003
  2125. }
  2126. }
  2127. },
  2128. /* AKAI devices */
  2129. {
  2130. USB_DEVICE(0x09e8, 0x0062),
  2131. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2132. .vendor_name = "AKAI",
  2133. .product_name = "MPD16",
  2134. .ifnum = 0,
  2135. .type = QUIRK_MIDI_AKAI,
  2136. }
  2137. },
  2138. /* TerraTec devices */
  2139. {
  2140. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  2141. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2142. .vendor_name = "TerraTec",
  2143. .product_name = "PHASE 26",
  2144. .ifnum = 3,
  2145. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2146. }
  2147. },
  2148. {
  2149. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  2150. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2151. .vendor_name = "TerraTec",
  2152. .product_name = "PHASE 26",
  2153. .ifnum = 3,
  2154. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2155. }
  2156. },
  2157. {
  2158. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  2159. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2160. .vendor_name = "TerraTec",
  2161. .product_name = "PHASE 26",
  2162. .ifnum = 3,
  2163. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2164. }
  2165. },
  2166. {
  2167. USB_DEVICE(0x0ccd, 0x0028),
  2168. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2169. .vendor_name = "TerraTec",
  2170. .product_name = "Aureon5.1MkII",
  2171. .ifnum = QUIRK_NO_INTERFACE
  2172. }
  2173. },
  2174. {
  2175. USB_DEVICE(0x0ccd, 0x0035),
  2176. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2177. .vendor_name = "Miditech",
  2178. .product_name = "Play'n Roll",
  2179. .ifnum = 0,
  2180. .type = QUIRK_MIDI_CME
  2181. }
  2182. },
  2183. /* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
  2184. {
  2185. USB_DEVICE(0x103d, 0x0100),
  2186. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2187. .vendor_name = "Stanton",
  2188. .product_name = "ScratchAmp",
  2189. .ifnum = QUIRK_NO_INTERFACE
  2190. }
  2191. },
  2192. {
  2193. USB_DEVICE(0x103d, 0x0101),
  2194. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2195. .vendor_name = "Stanton",
  2196. .product_name = "ScratchAmp",
  2197. .ifnum = QUIRK_NO_INTERFACE
  2198. }
  2199. },
  2200. /* Novation EMS devices */
  2201. {
  2202. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  2203. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2204. .vendor_name = "Novation",
  2205. .product_name = "ReMOTE Audio/XStation",
  2206. .ifnum = 4,
  2207. .type = QUIRK_MIDI_NOVATION
  2208. }
  2209. },
  2210. {
  2211. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  2212. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2213. .vendor_name = "Novation",
  2214. .product_name = "Speedio",
  2215. .ifnum = 3,
  2216. .type = QUIRK_MIDI_NOVATION
  2217. }
  2218. },
  2219. {
  2220. USB_DEVICE(0x1235, 0x000e),
  2221. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2222. /* .vendor_name = "Novation", */
  2223. /* .product_name = "Launchpad", */
  2224. .ifnum = 0,
  2225. .type = QUIRK_MIDI_RAW_BYTES
  2226. }
  2227. },
  2228. {
  2229. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  2230. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2231. .vendor_name = "Novation",
  2232. .product_name = "ReMOTE25",
  2233. .ifnum = 0,
  2234. .type = QUIRK_MIDI_NOVATION
  2235. }
  2236. },
  2237. /* Access Music devices */
  2238. {
  2239. /* VirusTI Desktop */
  2240. USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
  2241. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2242. .ifnum = QUIRK_ANY_INTERFACE,
  2243. .type = QUIRK_COMPOSITE,
  2244. .data = &(const struct snd_usb_audio_quirk[]) {
  2245. {
  2246. .ifnum = 3,
  2247. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2248. .data = &(const struct snd_usb_midi_endpoint_info) {
  2249. .out_cables = 0x0003,
  2250. .in_cables = 0x0003
  2251. }
  2252. },
  2253. {
  2254. .ifnum = 4,
  2255. .type = QUIRK_IGNORE_INTERFACE
  2256. },
  2257. {
  2258. .ifnum = -1
  2259. }
  2260. }
  2261. }
  2262. },
  2263. /* */
  2264. {
  2265. /* aka. Serato Scratch Live DJ Box */
  2266. USB_DEVICE(0x13e5, 0x0001),
  2267. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2268. .vendor_name = "Rane",
  2269. .product_name = "SL-1",
  2270. .ifnum = QUIRK_NO_INTERFACE
  2271. }
  2272. },
  2273. /* Miditech devices */
  2274. {
  2275. USB_DEVICE(0x4752, 0x0011),
  2276. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2277. .vendor_name = "Miditech",
  2278. .product_name = "Midistart-2",
  2279. .ifnum = 0,
  2280. .type = QUIRK_MIDI_CME
  2281. }
  2282. },
  2283. /* Central Music devices */
  2284. {
  2285. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  2286. USB_DEVICE(0x7104, 0x2202),
  2287. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2288. .ifnum = 0,
  2289. .type = QUIRK_MIDI_CME
  2290. }
  2291. },
  2292. /* Hauppauge HVR-950Q and HVR-850 */
  2293. {
  2294. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
  2295. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2296. USB_DEVICE_ID_MATCH_INT_CLASS |
  2297. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2298. .bInterfaceClass = USB_CLASS_AUDIO,
  2299. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2300. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2301. .vendor_name = "Hauppauge",
  2302. .product_name = "HVR-950Q",
  2303. .ifnum = QUIRK_ANY_INTERFACE,
  2304. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2305. }
  2306. },
  2307. {
  2308. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
  2309. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2310. USB_DEVICE_ID_MATCH_INT_CLASS |
  2311. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2312. .bInterfaceClass = USB_CLASS_AUDIO,
  2313. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2314. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2315. .vendor_name = "Hauppauge",
  2316. .product_name = "HVR-850",
  2317. .ifnum = QUIRK_ANY_INTERFACE,
  2318. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2319. }
  2320. },
  2321. {
  2322. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
  2323. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2324. USB_DEVICE_ID_MATCH_INT_CLASS |
  2325. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2326. .bInterfaceClass = USB_CLASS_AUDIO,
  2327. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2328. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2329. .vendor_name = "Hauppauge",
  2330. .product_name = "HVR-950Q",
  2331. .ifnum = QUIRK_ANY_INTERFACE,
  2332. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2333. }
  2334. },
  2335. {
  2336. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
  2337. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2338. USB_DEVICE_ID_MATCH_INT_CLASS |
  2339. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2340. .bInterfaceClass = USB_CLASS_AUDIO,
  2341. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2342. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2343. .vendor_name = "Hauppauge",
  2344. .product_name = "HVR-950Q",
  2345. .ifnum = QUIRK_ANY_INTERFACE,
  2346. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2347. }
  2348. },
  2349. {
  2350. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
  2351. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2352. USB_DEVICE_ID_MATCH_INT_CLASS |
  2353. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2354. .bInterfaceClass = USB_CLASS_AUDIO,
  2355. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2356. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2357. .vendor_name = "Hauppauge",
  2358. .product_name = "HVR-950Q",
  2359. .ifnum = QUIRK_ANY_INTERFACE,
  2360. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2361. }
  2362. },
  2363. {
  2364. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
  2365. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2366. USB_DEVICE_ID_MATCH_INT_CLASS |
  2367. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2368. .bInterfaceClass = USB_CLASS_AUDIO,
  2369. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2370. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2371. .vendor_name = "Hauppauge",
  2372. .product_name = "HVR-950Q",
  2373. .ifnum = QUIRK_ANY_INTERFACE,
  2374. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2375. }
  2376. },
  2377. {
  2378. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
  2379. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2380. USB_DEVICE_ID_MATCH_INT_CLASS |
  2381. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2382. .bInterfaceClass = USB_CLASS_AUDIO,
  2383. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2384. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2385. .vendor_name = "Hauppauge",
  2386. .product_name = "HVR-950Q",
  2387. .ifnum = QUIRK_ANY_INTERFACE,
  2388. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2389. }
  2390. },
  2391. {
  2392. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
  2393. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2394. USB_DEVICE_ID_MATCH_INT_CLASS |
  2395. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2396. .bInterfaceClass = USB_CLASS_AUDIO,
  2397. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2398. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2399. .vendor_name = "Hauppauge",
  2400. .product_name = "HVR-950Q",
  2401. .ifnum = QUIRK_ANY_INTERFACE,
  2402. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2403. }
  2404. },
  2405. {
  2406. USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
  2407. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2408. USB_DEVICE_ID_MATCH_INT_CLASS |
  2409. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2410. .bInterfaceClass = USB_CLASS_AUDIO,
  2411. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2412. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2413. .vendor_name = "Hauppauge",
  2414. .product_name = "HVR-950Q",
  2415. .ifnum = QUIRK_ANY_INTERFACE,
  2416. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2417. }
  2418. },
  2419. /* Digidesign Mbox */
  2420. {
  2421. /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
  2422. USB_DEVICE(0x0dba, 0x1000),
  2423. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2424. .vendor_name = "Digidesign",
  2425. .product_name = "MBox",
  2426. .ifnum = QUIRK_ANY_INTERFACE,
  2427. .type = QUIRK_COMPOSITE,
  2428. .data = (const struct snd_usb_audio_quirk[]){
  2429. {
  2430. .ifnum = 0,
  2431. .type = QUIRK_IGNORE_INTERFACE,
  2432. },
  2433. {
  2434. .ifnum = 1,
  2435. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2436. .data = &(const struct audioformat) {
  2437. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2438. .channels = 2,
  2439. .iface = 1,
  2440. .altsetting = 1,
  2441. .altset_idx = 1,
  2442. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2443. .endpoint = 0x02,
  2444. .ep_attr = 0x01,
  2445. .maxpacksize = 0x130,
  2446. .rates = SNDRV_PCM_RATE_44100 |
  2447. SNDRV_PCM_RATE_48000,
  2448. .rate_min = 44100,
  2449. .rate_max = 48000,
  2450. .nr_rates = 2,
  2451. .rate_table = (unsigned int[]) {
  2452. 44100, 48000
  2453. }
  2454. }
  2455. },
  2456. {
  2457. .ifnum = -1
  2458. }
  2459. }
  2460. }
  2461. },
  2462. {
  2463. /*
  2464. * Some USB MIDI devices don't have an audio control interface,
  2465. * so we have to grab MIDI streaming interfaces here.
  2466. */
  2467. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  2468. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2469. .bInterfaceClass = USB_CLASS_AUDIO,
  2470. .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
  2471. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2472. .ifnum = QUIRK_ANY_INTERFACE,
  2473. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2474. }
  2475. },
  2476. #undef USB_DEVICE_VENDOR_SPEC