usbquirks.h 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941
  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/E-Mu devices */
  40. {
  41. USB_DEVICE(0x041e, 0x3010),
  42. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  43. .vendor_name = "Creative Labs",
  44. .product_name = "Sound Blaster MP3+",
  45. .ifnum = QUIRK_NO_INTERFACE
  46. }
  47. },
  48. {
  49. /* E-Mu 0202 USB */
  50. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  51. .idVendor = 0x041e,
  52. .idProduct = 0x3f02,
  53. .bInterfaceClass = USB_CLASS_AUDIO,
  54. },
  55. {
  56. /* E-Mu 0404 USB */
  57. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  58. .idVendor = 0x041e,
  59. .idProduct = 0x3f04,
  60. .bInterfaceClass = USB_CLASS_AUDIO,
  61. },
  62. /*
  63. * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
  64. * class matches do not take effect without an explicit ID match.
  65. */
  66. {
  67. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  68. USB_DEVICE_ID_MATCH_INT_CLASS |
  69. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  70. .idVendor = 0x046d,
  71. .idProduct = 0x0850,
  72. .bInterfaceClass = USB_CLASS_AUDIO,
  73. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  74. },
  75. {
  76. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  77. USB_DEVICE_ID_MATCH_INT_CLASS |
  78. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  79. .idVendor = 0x046d,
  80. .idProduct = 0x08ae,
  81. .bInterfaceClass = USB_CLASS_AUDIO,
  82. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  83. },
  84. {
  85. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  86. USB_DEVICE_ID_MATCH_INT_CLASS |
  87. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  88. .idVendor = 0x046d,
  89. .idProduct = 0x08c6,
  90. .bInterfaceClass = USB_CLASS_AUDIO,
  91. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  92. },
  93. {
  94. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  95. USB_DEVICE_ID_MATCH_INT_CLASS |
  96. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  97. .idVendor = 0x046d,
  98. .idProduct = 0x08f0,
  99. .bInterfaceClass = USB_CLASS_AUDIO,
  100. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  101. },
  102. {
  103. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  104. USB_DEVICE_ID_MATCH_INT_CLASS |
  105. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  106. .idVendor = 0x046d,
  107. .idProduct = 0x08f5,
  108. .bInterfaceClass = USB_CLASS_AUDIO,
  109. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  110. },
  111. {
  112. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  113. USB_DEVICE_ID_MATCH_INT_CLASS |
  114. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  115. .idVendor = 0x046d,
  116. .idProduct = 0x08f6,
  117. .bInterfaceClass = USB_CLASS_AUDIO,
  118. .bInterfaceSubClass = USB_SUBCLASS_AUDIO_CONTROL
  119. },
  120. /*
  121. * Yamaha devices
  122. */
  123. #define YAMAHA_DEVICE(id, name) { \
  124. USB_DEVICE(0x0499, id), \
  125. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  126. .vendor_name = "Yamaha", \
  127. .product_name = name, \
  128. .ifnum = QUIRK_ANY_INTERFACE, \
  129. .type = QUIRK_MIDI_YAMAHA \
  130. } \
  131. }
  132. #define YAMAHA_INTERFACE(id, intf, name) { \
  133. USB_DEVICE_VENDOR_SPEC(0x0499, id), \
  134. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  135. .vendor_name = "Yamaha", \
  136. .product_name = name, \
  137. .ifnum = intf, \
  138. .type = QUIRK_MIDI_YAMAHA \
  139. } \
  140. }
  141. YAMAHA_DEVICE(0x1000, "UX256"),
  142. YAMAHA_DEVICE(0x1001, "MU1000"),
  143. YAMAHA_DEVICE(0x1002, "MU2000"),
  144. YAMAHA_DEVICE(0x1003, "MU500"),
  145. YAMAHA_INTERFACE(0x1004, 3, "UW500"),
  146. YAMAHA_DEVICE(0x1005, "MOTIF6"),
  147. YAMAHA_DEVICE(0x1006, "MOTIF7"),
  148. YAMAHA_DEVICE(0x1007, "MOTIF8"),
  149. YAMAHA_DEVICE(0x1008, "UX96"),
  150. YAMAHA_DEVICE(0x1009, "UX16"),
  151. YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
  152. YAMAHA_DEVICE(0x100c, "UC-MX"),
  153. YAMAHA_DEVICE(0x100d, "UC-KX"),
  154. YAMAHA_DEVICE(0x100e, "S08"),
  155. YAMAHA_DEVICE(0x100f, "CLP-150"),
  156. YAMAHA_DEVICE(0x1010, "CLP-170"),
  157. YAMAHA_DEVICE(0x1011, "P-250"),
  158. YAMAHA_DEVICE(0x1012, "TYROS"),
  159. YAMAHA_DEVICE(0x1013, "PF-500"),
  160. YAMAHA_DEVICE(0x1014, "S90"),
  161. YAMAHA_DEVICE(0x1015, "MOTIF-R"),
  162. YAMAHA_DEVICE(0x1016, "MDP-5"),
  163. YAMAHA_DEVICE(0x1017, "CVP-204"),
  164. YAMAHA_DEVICE(0x1018, "CVP-206"),
  165. YAMAHA_DEVICE(0x1019, "CVP-208"),
  166. YAMAHA_DEVICE(0x101a, "CVP-210"),
  167. YAMAHA_DEVICE(0x101b, "PSR-1100"),
  168. YAMAHA_DEVICE(0x101c, "PSR-2100"),
  169. YAMAHA_DEVICE(0x101d, "CLP-175"),
  170. YAMAHA_DEVICE(0x101e, "PSR-K1"),
  171. YAMAHA_DEVICE(0x101f, "EZ-J24"),
  172. YAMAHA_DEVICE(0x1020, "EZ-250i"),
  173. YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
  174. YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
  175. YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
  176. YAMAHA_DEVICE(0x1024, "CVP-301"),
  177. YAMAHA_DEVICE(0x1025, "CVP-303"),
  178. YAMAHA_DEVICE(0x1026, "CVP-305"),
  179. YAMAHA_DEVICE(0x1027, "CVP-307"),
  180. YAMAHA_DEVICE(0x1028, "CVP-309"),
  181. YAMAHA_DEVICE(0x1029, "CVP-309GP"),
  182. YAMAHA_DEVICE(0x102a, "PSR-1500"),
  183. YAMAHA_DEVICE(0x102b, "PSR-3000"),
  184. YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
  185. YAMAHA_DEVICE(0x1030, "PSR-295/293"),
  186. YAMAHA_DEVICE(0x1031, "DGX-205/203"),
  187. YAMAHA_DEVICE(0x1032, "DGX-305"),
  188. YAMAHA_DEVICE(0x1033, "DGX-505"),
  189. YAMAHA_DEVICE(0x1034, NULL),
  190. YAMAHA_DEVICE(0x1035, NULL),
  191. YAMAHA_DEVICE(0x1036, NULL),
  192. YAMAHA_DEVICE(0x1037, NULL),
  193. YAMAHA_DEVICE(0x1038, NULL),
  194. YAMAHA_DEVICE(0x1039, NULL),
  195. YAMAHA_DEVICE(0x103a, NULL),
  196. YAMAHA_DEVICE(0x103b, NULL),
  197. YAMAHA_DEVICE(0x103c, NULL),
  198. YAMAHA_DEVICE(0x103d, NULL),
  199. YAMAHA_DEVICE(0x103e, NULL),
  200. YAMAHA_DEVICE(0x103f, NULL),
  201. YAMAHA_DEVICE(0x1040, NULL),
  202. YAMAHA_DEVICE(0x1041, NULL),
  203. YAMAHA_DEVICE(0x1042, NULL),
  204. YAMAHA_DEVICE(0x1043, NULL),
  205. YAMAHA_DEVICE(0x1044, NULL),
  206. YAMAHA_DEVICE(0x1045, NULL),
  207. YAMAHA_INTERFACE(0x104e, 0, NULL),
  208. YAMAHA_DEVICE(0x2000, "DGP-7"),
  209. YAMAHA_DEVICE(0x2001, "DGP-5"),
  210. YAMAHA_DEVICE(0x2002, NULL),
  211. YAMAHA_DEVICE(0x5000, "CS1D"),
  212. YAMAHA_DEVICE(0x5001, "DSP1D"),
  213. YAMAHA_DEVICE(0x5002, "DME32"),
  214. YAMAHA_DEVICE(0x5003, "DM2000"),
  215. YAMAHA_DEVICE(0x5004, "02R96"),
  216. YAMAHA_DEVICE(0x5005, "ACU16-C"),
  217. YAMAHA_DEVICE(0x5006, "NHB32-C"),
  218. YAMAHA_DEVICE(0x5007, "DM1000"),
  219. YAMAHA_DEVICE(0x5008, "01V96"),
  220. YAMAHA_DEVICE(0x5009, "SPX2000"),
  221. YAMAHA_DEVICE(0x500a, "PM5D"),
  222. YAMAHA_DEVICE(0x500b, "DME64N"),
  223. YAMAHA_DEVICE(0x500c, "DME24N"),
  224. YAMAHA_DEVICE(0x500d, NULL),
  225. YAMAHA_DEVICE(0x500e, NULL),
  226. YAMAHA_DEVICE(0x500f, NULL),
  227. YAMAHA_DEVICE(0x7000, "DTX"),
  228. YAMAHA_DEVICE(0x7010, "UB99"),
  229. #undef YAMAHA_DEVICE
  230. #undef YAMAHA_INTERFACE
  231. /*
  232. * Roland/RolandED/Edirol/BOSS devices
  233. */
  234. {
  235. USB_DEVICE(0x0582, 0x0000),
  236. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  237. .vendor_name = "Roland",
  238. .product_name = "UA-100",
  239. .ifnum = QUIRK_ANY_INTERFACE,
  240. .type = QUIRK_COMPOSITE,
  241. .data = (const struct snd_usb_audio_quirk[]) {
  242. {
  243. .ifnum = 0,
  244. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  245. .data = & (const struct audioformat) {
  246. .format = SNDRV_PCM_FORMAT_S16_LE,
  247. .channels = 4,
  248. .iface = 0,
  249. .altsetting = 1,
  250. .altset_idx = 1,
  251. .attributes = 0,
  252. .endpoint = 0x01,
  253. .ep_attr = 0x09,
  254. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  255. .rate_min = 44100,
  256. .rate_max = 44100,
  257. }
  258. },
  259. {
  260. .ifnum = 1,
  261. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  262. .data = & (const struct audioformat) {
  263. .format = SNDRV_PCM_FORMAT_S16_LE,
  264. .channels = 2,
  265. .iface = 1,
  266. .altsetting = 1,
  267. .altset_idx = 1,
  268. .attributes = EP_CS_ATTR_FILL_MAX,
  269. .endpoint = 0x81,
  270. .ep_attr = 0x05,
  271. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  272. .rate_min = 44100,
  273. .rate_max = 44100,
  274. }
  275. },
  276. {
  277. .ifnum = 2,
  278. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  279. .data = & (const struct snd_usb_midi_endpoint_info) {
  280. .out_cables = 0x0007,
  281. .in_cables = 0x0007
  282. }
  283. },
  284. {
  285. .ifnum = -1
  286. }
  287. }
  288. }
  289. },
  290. {
  291. USB_DEVICE(0x0582, 0x0002),
  292. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  293. .vendor_name = "EDIROL",
  294. .product_name = "UM-4",
  295. .ifnum = QUIRK_ANY_INTERFACE,
  296. .type = QUIRK_COMPOSITE,
  297. .data = (const struct snd_usb_audio_quirk[]) {
  298. {
  299. .ifnum = 0,
  300. .type = QUIRK_IGNORE_INTERFACE
  301. },
  302. {
  303. .ifnum = 1,
  304. .type = QUIRK_IGNORE_INTERFACE
  305. },
  306. {
  307. .ifnum = 2,
  308. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  309. .data = & (const struct snd_usb_midi_endpoint_info) {
  310. .out_cables = 0x000f,
  311. .in_cables = 0x000f
  312. }
  313. },
  314. {
  315. .ifnum = -1
  316. }
  317. }
  318. }
  319. },
  320. {
  321. USB_DEVICE(0x0582, 0x0003),
  322. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  323. .vendor_name = "Roland",
  324. .product_name = "SC-8850",
  325. .ifnum = QUIRK_ANY_INTERFACE,
  326. .type = QUIRK_COMPOSITE,
  327. .data = (const struct snd_usb_audio_quirk[]) {
  328. {
  329. .ifnum = 0,
  330. .type = QUIRK_IGNORE_INTERFACE
  331. },
  332. {
  333. .ifnum = 1,
  334. .type = QUIRK_IGNORE_INTERFACE
  335. },
  336. {
  337. .ifnum = 2,
  338. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  339. .data = & (const struct snd_usb_midi_endpoint_info) {
  340. .out_cables = 0x003f,
  341. .in_cables = 0x003f
  342. }
  343. },
  344. {
  345. .ifnum = -1
  346. }
  347. }
  348. }
  349. },
  350. {
  351. USB_DEVICE(0x0582, 0x0004),
  352. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  353. .vendor_name = "Roland",
  354. .product_name = "U-8",
  355. .ifnum = QUIRK_ANY_INTERFACE,
  356. .type = QUIRK_COMPOSITE,
  357. .data = (const struct snd_usb_audio_quirk[]) {
  358. {
  359. .ifnum = 0,
  360. .type = QUIRK_IGNORE_INTERFACE
  361. },
  362. {
  363. .ifnum = 1,
  364. .type = QUIRK_IGNORE_INTERFACE
  365. },
  366. {
  367. .ifnum = 2,
  368. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  369. .data = & (const struct snd_usb_midi_endpoint_info) {
  370. .out_cables = 0x0005,
  371. .in_cables = 0x0005
  372. }
  373. },
  374. {
  375. .ifnum = -1
  376. }
  377. }
  378. }
  379. },
  380. {
  381. /* Has ID 0x0099 when not in "Advanced Driver" mode.
  382. * The UM-2EX has only one input, but we cannot detect this. */
  383. USB_DEVICE(0x0582, 0x0005),
  384. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  385. .vendor_name = "EDIROL",
  386. .product_name = "UM-2",
  387. .ifnum = QUIRK_ANY_INTERFACE,
  388. .type = QUIRK_COMPOSITE,
  389. .data = (const struct snd_usb_audio_quirk[]) {
  390. {
  391. .ifnum = 0,
  392. .type = QUIRK_IGNORE_INTERFACE
  393. },
  394. {
  395. .ifnum = 1,
  396. .type = QUIRK_IGNORE_INTERFACE
  397. },
  398. {
  399. .ifnum = 2,
  400. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  401. .data = & (const struct snd_usb_midi_endpoint_info) {
  402. .out_cables = 0x0003,
  403. .in_cables = 0x0003
  404. }
  405. },
  406. {
  407. .ifnum = -1
  408. }
  409. }
  410. }
  411. },
  412. {
  413. USB_DEVICE(0x0582, 0x0007),
  414. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  415. .vendor_name = "Roland",
  416. .product_name = "SC-8820",
  417. .ifnum = QUIRK_ANY_INTERFACE,
  418. .type = QUIRK_COMPOSITE,
  419. .data = (const struct snd_usb_audio_quirk[]) {
  420. {
  421. .ifnum = 0,
  422. .type = QUIRK_IGNORE_INTERFACE
  423. },
  424. {
  425. .ifnum = 1,
  426. .type = QUIRK_IGNORE_INTERFACE
  427. },
  428. {
  429. .ifnum = 2,
  430. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  431. .data = & (const struct snd_usb_midi_endpoint_info) {
  432. .out_cables = 0x0013,
  433. .in_cables = 0x0013
  434. }
  435. },
  436. {
  437. .ifnum = -1
  438. }
  439. }
  440. }
  441. },
  442. {
  443. USB_DEVICE(0x0582, 0x0008),
  444. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  445. .vendor_name = "Roland",
  446. .product_name = "PC-300",
  447. .ifnum = QUIRK_ANY_INTERFACE,
  448. .type = QUIRK_COMPOSITE,
  449. .data = (const struct snd_usb_audio_quirk[]) {
  450. {
  451. .ifnum = 0,
  452. .type = QUIRK_IGNORE_INTERFACE
  453. },
  454. {
  455. .ifnum = 1,
  456. .type = QUIRK_IGNORE_INTERFACE
  457. },
  458. {
  459. .ifnum = 2,
  460. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  461. .data = & (const struct snd_usb_midi_endpoint_info) {
  462. .out_cables = 0x0001,
  463. .in_cables = 0x0001
  464. }
  465. },
  466. {
  467. .ifnum = -1
  468. }
  469. }
  470. }
  471. },
  472. {
  473. /* has ID 0x009d when not in "Advanced Driver" mode */
  474. USB_DEVICE(0x0582, 0x0009),
  475. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  476. .vendor_name = "EDIROL",
  477. .product_name = "UM-1",
  478. .ifnum = QUIRK_ANY_INTERFACE,
  479. .type = QUIRK_COMPOSITE,
  480. .data = (const struct snd_usb_audio_quirk[]) {
  481. {
  482. .ifnum = 0,
  483. .type = QUIRK_IGNORE_INTERFACE
  484. },
  485. {
  486. .ifnum = 1,
  487. .type = QUIRK_IGNORE_INTERFACE
  488. },
  489. {
  490. .ifnum = 2,
  491. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  492. .data = & (const struct snd_usb_midi_endpoint_info) {
  493. .out_cables = 0x0001,
  494. .in_cables = 0x0001
  495. }
  496. },
  497. {
  498. .ifnum = -1
  499. }
  500. }
  501. }
  502. },
  503. {
  504. USB_DEVICE(0x0582, 0x000b),
  505. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  506. .vendor_name = "Roland",
  507. .product_name = "SK-500",
  508. .ifnum = QUIRK_ANY_INTERFACE,
  509. .type = QUIRK_COMPOSITE,
  510. .data = (const struct snd_usb_audio_quirk[]) {
  511. {
  512. .ifnum = 0,
  513. .type = QUIRK_IGNORE_INTERFACE
  514. },
  515. {
  516. .ifnum = 1,
  517. .type = QUIRK_IGNORE_INTERFACE
  518. },
  519. {
  520. .ifnum = 2,
  521. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  522. .data = & (const struct snd_usb_midi_endpoint_info) {
  523. .out_cables = 0x0013,
  524. .in_cables = 0x0013
  525. }
  526. },
  527. {
  528. .ifnum = -1
  529. }
  530. }
  531. }
  532. },
  533. {
  534. /* thanks to Emiliano Grilli <emillo@libero.it>
  535. * for helping researching this data */
  536. USB_DEVICE(0x0582, 0x000c),
  537. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  538. .vendor_name = "Roland",
  539. .product_name = "SC-D70",
  540. .ifnum = QUIRK_ANY_INTERFACE,
  541. .type = QUIRK_COMPOSITE,
  542. .data = (const struct snd_usb_audio_quirk[]) {
  543. {
  544. .ifnum = 0,
  545. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  546. .data = & (const struct audioformat) {
  547. .format = SNDRV_PCM_FORMAT_S24_3LE,
  548. .channels = 2,
  549. .iface = 0,
  550. .altsetting = 1,
  551. .altset_idx = 1,
  552. .attributes = 0,
  553. .endpoint = 0x01,
  554. .ep_attr = 0x01,
  555. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  556. .rate_min = 44100,
  557. .rate_max = 44100,
  558. }
  559. },
  560. {
  561. .ifnum = 1,
  562. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  563. .data = & (const struct audioformat) {
  564. .format = SNDRV_PCM_FORMAT_S24_3LE,
  565. .channels = 2,
  566. .iface = 1,
  567. .altsetting = 1,
  568. .altset_idx = 1,
  569. .attributes = 0,
  570. .endpoint = 0x81,
  571. .ep_attr = 0x01,
  572. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  573. .rate_min = 44100,
  574. .rate_max = 44100,
  575. }
  576. },
  577. {
  578. .ifnum = 2,
  579. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  580. .data = & (const struct snd_usb_midi_endpoint_info) {
  581. .out_cables = 0x0007,
  582. .in_cables = 0x0007
  583. }
  584. },
  585. {
  586. .ifnum = -1
  587. }
  588. }
  589. }
  590. },
  591. { /*
  592. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  593. * If the advanced mode switch at the back of the unit is off, the
  594. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  595. * but offers only 16-bit PCM.
  596. * In advanced mode, the UA-5 will output S24_3LE samples (two
  597. * channels) at the rate indicated on the front switch, including
  598. * the 96kHz sample rate.
  599. */
  600. USB_DEVICE(0x0582, 0x0010),
  601. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  602. .vendor_name = "EDIROL",
  603. .product_name = "UA-5",
  604. .ifnum = QUIRK_ANY_INTERFACE,
  605. .type = QUIRK_COMPOSITE,
  606. .data = (const struct snd_usb_audio_quirk[]) {
  607. {
  608. .ifnum = 1,
  609. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  610. },
  611. {
  612. .ifnum = 2,
  613. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  614. },
  615. {
  616. .ifnum = -1
  617. }
  618. }
  619. }
  620. },
  621. {
  622. /* has ID 0x0013 when not in "Advanced Driver" mode */
  623. USB_DEVICE(0x0582, 0x0012),
  624. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  625. .vendor_name = "Roland",
  626. .product_name = "XV-5050",
  627. .ifnum = 0,
  628. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  629. .data = & (const struct snd_usb_midi_endpoint_info) {
  630. .out_cables = 0x0001,
  631. .in_cables = 0x0001
  632. }
  633. }
  634. },
  635. {
  636. /* has ID 0x0015 when not in "Advanced Driver" mode */
  637. USB_DEVICE(0x0582, 0x0014),
  638. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  639. .vendor_name = "EDIROL",
  640. .product_name = "UM-880",
  641. .ifnum = 0,
  642. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  643. .data = & (const struct snd_usb_midi_endpoint_info) {
  644. .out_cables = 0x01ff,
  645. .in_cables = 0x01ff
  646. }
  647. }
  648. },
  649. {
  650. /* has ID 0x0017 when not in "Advanced Driver" mode */
  651. USB_DEVICE(0x0582, 0x0016),
  652. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  653. .vendor_name = "EDIROL",
  654. .product_name = "SD-90",
  655. .ifnum = QUIRK_ANY_INTERFACE,
  656. .type = QUIRK_COMPOSITE,
  657. .data = (const struct snd_usb_audio_quirk[]) {
  658. {
  659. .ifnum = 0,
  660. .type = QUIRK_IGNORE_INTERFACE
  661. },
  662. {
  663. .ifnum = 1,
  664. .type = QUIRK_IGNORE_INTERFACE
  665. },
  666. {
  667. .ifnum = 2,
  668. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  669. .data = & (const struct snd_usb_midi_endpoint_info) {
  670. .out_cables = 0x000f,
  671. .in_cables = 0x000f
  672. }
  673. },
  674. {
  675. .ifnum = -1
  676. }
  677. }
  678. }
  679. },
  680. {
  681. /* has ID 0x001c when not in "Advanced Driver" mode */
  682. USB_DEVICE(0x0582, 0x001b),
  683. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  684. .vendor_name = "Roland",
  685. .product_name = "MMP-2",
  686. .ifnum = QUIRK_ANY_INTERFACE,
  687. .type = QUIRK_COMPOSITE,
  688. .data = (const struct snd_usb_audio_quirk[]) {
  689. {
  690. .ifnum = 0,
  691. .type = QUIRK_IGNORE_INTERFACE
  692. },
  693. {
  694. .ifnum = 1,
  695. .type = QUIRK_IGNORE_INTERFACE
  696. },
  697. {
  698. .ifnum = 2,
  699. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  700. .data = & (const struct snd_usb_midi_endpoint_info) {
  701. .out_cables = 0x0001,
  702. .in_cables = 0x0001
  703. }
  704. },
  705. {
  706. .ifnum = -1
  707. }
  708. }
  709. }
  710. },
  711. {
  712. /* has ID 0x001e when not in "Advanced Driver" mode */
  713. USB_DEVICE(0x0582, 0x001d),
  714. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  715. .vendor_name = "Roland",
  716. .product_name = "V-SYNTH",
  717. .ifnum = 0,
  718. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  719. .data = & (const struct snd_usb_midi_endpoint_info) {
  720. .out_cables = 0x0001,
  721. .in_cables = 0x0001
  722. }
  723. }
  724. },
  725. {
  726. /* has ID 0x0024 when not in "Advanced Driver" mode */
  727. USB_DEVICE(0x0582, 0x0023),
  728. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  729. .vendor_name = "EDIROL",
  730. .product_name = "UM-550",
  731. .ifnum = 0,
  732. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  733. .data = & (const struct snd_usb_midi_endpoint_info) {
  734. .out_cables = 0x003f,
  735. .in_cables = 0x003f
  736. }
  737. }
  738. },
  739. {
  740. /*
  741. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  742. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  743. * and no MIDI.
  744. */
  745. USB_DEVICE(0x0582, 0x0025),
  746. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  747. .vendor_name = "EDIROL",
  748. .product_name = "UA-20",
  749. .ifnum = QUIRK_ANY_INTERFACE,
  750. .type = QUIRK_COMPOSITE,
  751. .data = (const struct snd_usb_audio_quirk[]) {
  752. {
  753. .ifnum = 0,
  754. .type = QUIRK_IGNORE_INTERFACE
  755. },
  756. {
  757. .ifnum = 1,
  758. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  759. .data = & (const struct audioformat) {
  760. .format = SNDRV_PCM_FORMAT_S24_3LE,
  761. .channels = 2,
  762. .iface = 1,
  763. .altsetting = 1,
  764. .altset_idx = 1,
  765. .attributes = 0,
  766. .endpoint = 0x01,
  767. .ep_attr = 0x01,
  768. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  769. .rate_min = 44100,
  770. .rate_max = 44100,
  771. }
  772. },
  773. {
  774. .ifnum = 2,
  775. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  776. .data = & (const struct audioformat) {
  777. .format = SNDRV_PCM_FORMAT_S24_3LE,
  778. .channels = 2,
  779. .iface = 2,
  780. .altsetting = 1,
  781. .altset_idx = 1,
  782. .attributes = 0,
  783. .endpoint = 0x82,
  784. .ep_attr = 0x01,
  785. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  786. .rate_min = 44100,
  787. .rate_max = 44100,
  788. }
  789. },
  790. {
  791. .ifnum = 3,
  792. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  793. .data = & (const struct snd_usb_midi_endpoint_info) {
  794. .out_cables = 0x0001,
  795. .in_cables = 0x0001
  796. }
  797. },
  798. {
  799. .ifnum = -1
  800. }
  801. }
  802. }
  803. },
  804. {
  805. /* has ID 0x0028 when not in "Advanced Driver" mode */
  806. USB_DEVICE(0x0582, 0x0027),
  807. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  808. .vendor_name = "EDIROL",
  809. .product_name = "SD-20",
  810. .ifnum = 0,
  811. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  812. .data = & (const struct snd_usb_midi_endpoint_info) {
  813. .out_cables = 0x0003,
  814. .in_cables = 0x0007
  815. }
  816. }
  817. },
  818. {
  819. /* has ID 0x002a when not in "Advanced Driver" mode */
  820. USB_DEVICE(0x0582, 0x0029),
  821. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  822. .vendor_name = "EDIROL",
  823. .product_name = "SD-80",
  824. .ifnum = 0,
  825. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  826. .data = & (const struct snd_usb_midi_endpoint_info) {
  827. .out_cables = 0x000f,
  828. .in_cables = 0x000f
  829. }
  830. }
  831. },
  832. { /*
  833. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  834. * If the sample format switch is not in an advanced setting, the
  835. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  836. * but offers only 16-bit PCM and no MIDI.
  837. */
  838. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  839. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  840. .vendor_name = "EDIROL",
  841. .product_name = "UA-700",
  842. .ifnum = QUIRK_ANY_INTERFACE,
  843. .type = QUIRK_COMPOSITE,
  844. .data = (const struct snd_usb_audio_quirk[]) {
  845. {
  846. .ifnum = 1,
  847. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  848. },
  849. {
  850. .ifnum = 2,
  851. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  852. },
  853. {
  854. .ifnum = 3,
  855. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  856. },
  857. {
  858. .ifnum = -1
  859. }
  860. }
  861. }
  862. },
  863. {
  864. /* has ID 0x002e when not in "Advanced Driver" mode */
  865. USB_DEVICE(0x0582, 0x002d),
  866. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  867. .vendor_name = "Roland",
  868. .product_name = "XV-2020",
  869. .ifnum = 0,
  870. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  871. .data = & (const struct snd_usb_midi_endpoint_info) {
  872. .out_cables = 0x0001,
  873. .in_cables = 0x0001
  874. }
  875. }
  876. },
  877. {
  878. /* has ID 0x0030 when not in "Advanced Driver" mode */
  879. USB_DEVICE(0x0582, 0x002f),
  880. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  881. .vendor_name = "Roland",
  882. .product_name = "VariOS",
  883. .ifnum = 0,
  884. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  885. .data = & (const struct snd_usb_midi_endpoint_info) {
  886. .out_cables = 0x0007,
  887. .in_cables = 0x0007
  888. }
  889. }
  890. },
  891. {
  892. /* has ID 0x0034 when not in "Advanced Driver" mode */
  893. USB_DEVICE(0x0582, 0x0033),
  894. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  895. .vendor_name = "EDIROL",
  896. .product_name = "PCR",
  897. .ifnum = 0,
  898. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  899. .data = & (const struct snd_usb_midi_endpoint_info) {
  900. .out_cables = 0x0003,
  901. .in_cables = 0x0007
  902. }
  903. }
  904. },
  905. /* TODO: add Roland M-1000 support */
  906. {
  907. /*
  908. * Has ID 0x0038 when not in "Advanced Driver" mode;
  909. * later revisions use IDs 0x0054 and 0x00a2.
  910. */
  911. USB_DEVICE(0x0582, 0x0037),
  912. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  913. .vendor_name = "Roland",
  914. .product_name = "Digital Piano",
  915. .ifnum = 0,
  916. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  917. .data = & (const struct snd_usb_midi_endpoint_info) {
  918. .out_cables = 0x0001,
  919. .in_cables = 0x0001
  920. }
  921. }
  922. },
  923. {
  924. /*
  925. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  926. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  927. * and no MIDI.
  928. */
  929. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  930. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  931. .vendor_name = "BOSS",
  932. .product_name = "GS-10",
  933. .ifnum = QUIRK_ANY_INTERFACE,
  934. .type = QUIRK_COMPOSITE,
  935. .data = & (const struct snd_usb_audio_quirk[]) {
  936. {
  937. .ifnum = 1,
  938. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  939. },
  940. {
  941. .ifnum = 2,
  942. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  943. },
  944. {
  945. .ifnum = 3,
  946. .type = QUIRK_MIDI_STANDARD_INTERFACE
  947. },
  948. {
  949. .ifnum = -1
  950. }
  951. }
  952. }
  953. },
  954. {
  955. /* has ID 0x0041 when not in "Advanced Driver" mode */
  956. USB_DEVICE(0x0582, 0x0040),
  957. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  958. .vendor_name = "Roland",
  959. .product_name = "GI-20",
  960. .ifnum = 0,
  961. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  962. .data = & (const struct snd_usb_midi_endpoint_info) {
  963. .out_cables = 0x0001,
  964. .in_cables = 0x0001
  965. }
  966. }
  967. },
  968. {
  969. /* has ID 0x0043 when not in "Advanced Driver" mode */
  970. USB_DEVICE(0x0582, 0x0042),
  971. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  972. .vendor_name = "Roland",
  973. .product_name = "RS-70",
  974. .ifnum = 0,
  975. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  976. .data = & (const struct snd_usb_midi_endpoint_info) {
  977. .out_cables = 0x0001,
  978. .in_cables = 0x0001
  979. }
  980. }
  981. },
  982. {
  983. USB_DEVICE(0x0582, 0x0044),
  984. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  985. .vendor_name = "Roland",
  986. .product_name = "UA-1000",
  987. .ifnum = QUIRK_ANY_INTERFACE,
  988. .type = QUIRK_COMPOSITE,
  989. .data = (const struct snd_usb_audio_quirk[]) {
  990. {
  991. .ifnum = 1,
  992. .type = QUIRK_AUDIO_EDIROL_UA1000
  993. },
  994. {
  995. .ifnum = 2,
  996. .type = QUIRK_AUDIO_EDIROL_UA1000
  997. },
  998. {
  999. .ifnum = 3,
  1000. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1001. .data = & (const struct snd_usb_midi_endpoint_info) {
  1002. .out_cables = 0x0003,
  1003. .in_cables = 0x0003
  1004. }
  1005. },
  1006. {
  1007. .ifnum = -1
  1008. }
  1009. }
  1010. }
  1011. },
  1012. {
  1013. /* has ID 0x0049 when not in "Advanced Driver" mode */
  1014. USB_DEVICE(0x0582, 0x0047),
  1015. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1016. /* .vendor_name = "EDIROL", */
  1017. /* .product_name = "UR-80", */
  1018. .ifnum = QUIRK_ANY_INTERFACE,
  1019. .type = QUIRK_COMPOSITE,
  1020. .data = (const struct snd_usb_audio_quirk[]) {
  1021. /* in the 96 kHz modes, only interface 1 is there */
  1022. {
  1023. .ifnum = 1,
  1024. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1025. },
  1026. {
  1027. .ifnum = 2,
  1028. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1029. },
  1030. {
  1031. .ifnum = -1
  1032. }
  1033. }
  1034. }
  1035. },
  1036. {
  1037. /* has ID 0x004a when not in "Advanced Driver" mode */
  1038. USB_DEVICE(0x0582, 0x0048),
  1039. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1040. /* .vendor_name = "EDIROL", */
  1041. /* .product_name = "UR-80", */
  1042. .ifnum = 0,
  1043. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1044. .data = & (const struct snd_usb_midi_endpoint_info) {
  1045. .out_cables = 0x0003,
  1046. .in_cables = 0x0007
  1047. }
  1048. }
  1049. },
  1050. /* TODO: add Edirol M-100FX support */
  1051. {
  1052. /* has ID 0x004e when not in "Advanced Driver" mode */
  1053. USB_DEVICE(0x0582, 0x004c),
  1054. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1055. .vendor_name = "EDIROL",
  1056. .product_name = "PCR-A",
  1057. .ifnum = QUIRK_ANY_INTERFACE,
  1058. .type = QUIRK_COMPOSITE,
  1059. .data = (const struct snd_usb_audio_quirk[]) {
  1060. {
  1061. .ifnum = 1,
  1062. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1063. },
  1064. {
  1065. .ifnum = 2,
  1066. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1067. },
  1068. {
  1069. .ifnum = -1
  1070. }
  1071. }
  1072. }
  1073. },
  1074. {
  1075. /* has ID 0x004f when not in "Advanced Driver" mode */
  1076. USB_DEVICE(0x0582, 0x004d),
  1077. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1078. .vendor_name = "EDIROL",
  1079. .product_name = "PCR-A",
  1080. .ifnum = 0,
  1081. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1082. .data = & (const struct snd_usb_midi_endpoint_info) {
  1083. .out_cables = 0x0003,
  1084. .in_cables = 0x0007
  1085. }
  1086. }
  1087. },
  1088. {
  1089. /*
  1090. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  1091. * is standard compliant, but has only 16-bit PCM.
  1092. */
  1093. USB_DEVICE(0x0582, 0x0050),
  1094. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1095. .vendor_name = "EDIROL",
  1096. .product_name = "UA-3FX",
  1097. .ifnum = QUIRK_ANY_INTERFACE,
  1098. .type = QUIRK_COMPOSITE,
  1099. .data = (const struct snd_usb_audio_quirk[]) {
  1100. {
  1101. .ifnum = 1,
  1102. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1103. },
  1104. {
  1105. .ifnum = 2,
  1106. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1107. },
  1108. {
  1109. .ifnum = -1
  1110. }
  1111. }
  1112. }
  1113. },
  1114. {
  1115. USB_DEVICE(0x0582, 0x0052),
  1116. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1117. .vendor_name = "EDIROL",
  1118. .product_name = "UM-1SX",
  1119. .ifnum = 0,
  1120. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1121. }
  1122. },
  1123. {
  1124. USB_DEVICE(0x0582, 0x0060),
  1125. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1126. .vendor_name = "Roland",
  1127. .product_name = "EXR Series",
  1128. .ifnum = 0,
  1129. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1130. }
  1131. },
  1132. {
  1133. /* has ID 0x0067 when not in "Advanced Driver" mode */
  1134. USB_DEVICE(0x0582, 0x0065),
  1135. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1136. .vendor_name = "EDIROL",
  1137. .product_name = "PCR-1",
  1138. .ifnum = 0,
  1139. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1140. .data = & (const struct snd_usb_midi_endpoint_info) {
  1141. .out_cables = 0x0001,
  1142. .in_cables = 0x0003
  1143. }
  1144. }
  1145. },
  1146. {
  1147. /* has ID 0x006b when not in "Advanced Driver" mode */
  1148. USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
  1149. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1150. .vendor_name = "Roland",
  1151. .product_name = "SP-606",
  1152. .ifnum = 3,
  1153. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1154. .data = & (const struct snd_usb_midi_endpoint_info) {
  1155. .out_cables = 0x0001,
  1156. .in_cables = 0x0001
  1157. }
  1158. }
  1159. },
  1160. {
  1161. /* has ID 0x006e when not in "Advanced Driver" mode */
  1162. USB_DEVICE(0x0582, 0x006d),
  1163. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1164. .vendor_name = "Roland",
  1165. .product_name = "FANTOM-X",
  1166. .ifnum = 0,
  1167. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1168. .data = & (const struct snd_usb_midi_endpoint_info) {
  1169. .out_cables = 0x0001,
  1170. .in_cables = 0x0001
  1171. }
  1172. }
  1173. },
  1174. { /*
  1175. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  1176. * If the switch is not in an advanced setting, the UA-25 has
  1177. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  1178. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1179. */
  1180. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  1181. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1182. .vendor_name = "EDIROL",
  1183. .product_name = "UA-25",
  1184. .ifnum = QUIRK_ANY_INTERFACE,
  1185. .type = QUIRK_COMPOSITE,
  1186. .data = (const struct snd_usb_audio_quirk[]) {
  1187. {
  1188. .ifnum = 0,
  1189. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1190. },
  1191. {
  1192. .ifnum = 1,
  1193. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1194. },
  1195. {
  1196. .ifnum = 2,
  1197. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  1198. },
  1199. {
  1200. .ifnum = -1
  1201. }
  1202. }
  1203. }
  1204. },
  1205. {
  1206. /* has ID 0x0076 when not in "Advanced Driver" mode */
  1207. USB_DEVICE(0x0582, 0x0075),
  1208. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1209. .vendor_name = "BOSS",
  1210. .product_name = "DR-880",
  1211. .ifnum = 0,
  1212. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1213. .data = & (const struct snd_usb_midi_endpoint_info) {
  1214. .out_cables = 0x0001,
  1215. .in_cables = 0x0001
  1216. }
  1217. }
  1218. },
  1219. {
  1220. /* has ID 0x007b when not in "Advanced Driver" mode */
  1221. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1222. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1223. .vendor_name = "Roland",
  1224. /* "RD" or "RD-700SX"? */
  1225. .ifnum = 0,
  1226. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1227. .data = & (const struct snd_usb_midi_endpoint_info) {
  1228. .out_cables = 0x0003,
  1229. .in_cables = 0x0003
  1230. }
  1231. }
  1232. },
  1233. /* Roland UA-101 in High-Speed Mode only */
  1234. {
  1235. USB_DEVICE(0x0582, 0x007d),
  1236. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1237. .vendor_name = "Roland",
  1238. .product_name = "UA-101",
  1239. .ifnum = QUIRK_ANY_INTERFACE,
  1240. .type = QUIRK_COMPOSITE,
  1241. .data = (const struct snd_usb_audio_quirk[]) {
  1242. {
  1243. .ifnum = 0,
  1244. .type = QUIRK_AUDIO_EDIROL_UA101
  1245. },
  1246. {
  1247. .ifnum = 1,
  1248. .type = QUIRK_AUDIO_EDIROL_UA101
  1249. },
  1250. {
  1251. .ifnum = 2,
  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. .ifnum = -1
  1260. }
  1261. }
  1262. }
  1263. },
  1264. {
  1265. /* has ID 0x0081 when not in "Advanced Driver" mode */
  1266. USB_DEVICE(0x0582, 0x0080),
  1267. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1268. .vendor_name = "Roland",
  1269. .product_name = "G-70",
  1270. .ifnum = 0,
  1271. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1272. .data = & (const struct snd_usb_midi_endpoint_info) {
  1273. .out_cables = 0x0001,
  1274. .in_cables = 0x0001
  1275. }
  1276. }
  1277. },
  1278. /* TODO: add Roland V-SYNTH XT support */
  1279. /* TODO: add BOSS GT-PRO support */
  1280. {
  1281. /* has ID 0x008c when not in "Advanced Driver" mode */
  1282. USB_DEVICE(0x0582, 0x008b),
  1283. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1284. .vendor_name = "EDIROL",
  1285. .product_name = "PC-50",
  1286. .ifnum = 0,
  1287. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1288. .data = & (const struct snd_usb_midi_endpoint_info) {
  1289. .out_cables = 0x0001,
  1290. .in_cables = 0x0001
  1291. }
  1292. }
  1293. },
  1294. /* TODO: add Edirol PC-80 support */
  1295. {
  1296. USB_DEVICE(0x0582, 0x0096),
  1297. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1298. .vendor_name = "EDIROL",
  1299. .product_name = "UA-1EX",
  1300. .ifnum = QUIRK_ANY_INTERFACE,
  1301. .type = QUIRK_COMPOSITE,
  1302. .data = (const struct snd_usb_audio_quirk[]) {
  1303. {
  1304. .ifnum = 0,
  1305. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1306. },
  1307. {
  1308. .ifnum = 1,
  1309. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1310. },
  1311. {
  1312. .ifnum = -1
  1313. }
  1314. }
  1315. }
  1316. },
  1317. {
  1318. USB_DEVICE(0x0582, 0x009a),
  1319. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1320. .vendor_name = "EDIROL",
  1321. .product_name = "UM-3EX",
  1322. .ifnum = 0,
  1323. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1324. .data = & (const struct snd_usb_midi_endpoint_info) {
  1325. .out_cables = 0x000f,
  1326. .in_cables = 0x000f
  1327. }
  1328. }
  1329. },
  1330. /* TODO: add Edirol MD-P1 support */
  1331. {
  1332. USB_DEVICE(0x582, 0x00a6),
  1333. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1334. .vendor_name = "Roland",
  1335. .product_name = "Juno-G",
  1336. .ifnum = 0,
  1337. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1338. .data = & (const struct snd_usb_midi_endpoint_info) {
  1339. .out_cables = 0x0001,
  1340. .in_cables = 0x0001
  1341. }
  1342. }
  1343. },
  1344. {
  1345. /* Roland SH-201 */
  1346. USB_DEVICE(0x0582, 0x00ad),
  1347. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1348. .vendor_name = "Roland",
  1349. .product_name = "SH-201",
  1350. .ifnum = QUIRK_ANY_INTERFACE,
  1351. .type = QUIRK_COMPOSITE,
  1352. .data = (const struct snd_usb_audio_quirk[]) {
  1353. {
  1354. .ifnum = 0,
  1355. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1356. },
  1357. {
  1358. .ifnum = 1,
  1359. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1360. },
  1361. {
  1362. .ifnum = 2,
  1363. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1364. .data = & (const struct snd_usb_midi_endpoint_info) {
  1365. .out_cables = 0x0001,
  1366. .in_cables = 0x0001
  1367. }
  1368. },
  1369. {
  1370. .ifnum = -1
  1371. }
  1372. }
  1373. }
  1374. },
  1375. {
  1376. /* Roland SonicCell */
  1377. USB_DEVICE(0x0582, 0x00c2),
  1378. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1379. .vendor_name = "Roland",
  1380. .product_name = "SonicCell",
  1381. .ifnum = QUIRK_ANY_INTERFACE,
  1382. .type = QUIRK_COMPOSITE,
  1383. .data = (const struct snd_usb_audio_quirk[]) {
  1384. {
  1385. .ifnum = 0,
  1386. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1387. },
  1388. {
  1389. .ifnum = 1,
  1390. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1391. },
  1392. {
  1393. .ifnum = 2,
  1394. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1395. .data = & (const struct snd_usb_midi_endpoint_info) {
  1396. .out_cables = 0x0001,
  1397. .in_cables = 0x0001
  1398. }
  1399. },
  1400. {
  1401. .ifnum = -1
  1402. }
  1403. }
  1404. }
  1405. },
  1406. /* Guillemot devices */
  1407. {
  1408. /*
  1409. * This is for the "Windows Edition" where the external MIDI ports are
  1410. * the only MIDI ports; the control data is reported through HID
  1411. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1412. * compliant USB MIDI ports for external MIDI and controls.
  1413. */
  1414. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1415. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1416. .vendor_name = "Hercules",
  1417. .product_name = "DJ Console (WE)",
  1418. .ifnum = 4,
  1419. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1420. .data = & (const struct snd_usb_midi_endpoint_info) {
  1421. .out_cables = 0x0001,
  1422. .in_cables = 0x0001
  1423. }
  1424. }
  1425. },
  1426. /* Midiman/M-Audio devices */
  1427. {
  1428. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1429. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1430. .vendor_name = "M-Audio",
  1431. .product_name = "MidiSport 2x2",
  1432. .ifnum = QUIRK_ANY_INTERFACE,
  1433. .type = QUIRK_MIDI_MIDIMAN,
  1434. .data = & (const struct snd_usb_midi_endpoint_info) {
  1435. .out_cables = 0x0003,
  1436. .in_cables = 0x0003
  1437. }
  1438. }
  1439. },
  1440. {
  1441. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1442. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1443. .vendor_name = "M-Audio",
  1444. .product_name = "MidiSport 1x1",
  1445. .ifnum = QUIRK_ANY_INTERFACE,
  1446. .type = QUIRK_MIDI_MIDIMAN,
  1447. .data = & (const struct snd_usb_midi_endpoint_info) {
  1448. .out_cables = 0x0001,
  1449. .in_cables = 0x0001
  1450. }
  1451. }
  1452. },
  1453. {
  1454. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1455. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1456. .vendor_name = "M-Audio",
  1457. .product_name = "Keystation",
  1458. .ifnum = QUIRK_ANY_INTERFACE,
  1459. .type = QUIRK_MIDI_MIDIMAN,
  1460. .data = & (const struct snd_usb_midi_endpoint_info) {
  1461. .out_cables = 0x0001,
  1462. .in_cables = 0x0001
  1463. }
  1464. }
  1465. },
  1466. {
  1467. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1468. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1469. .vendor_name = "M-Audio",
  1470. .product_name = "MidiSport 4x4",
  1471. .ifnum = QUIRK_ANY_INTERFACE,
  1472. .type = QUIRK_MIDI_MIDIMAN,
  1473. .data = & (const struct snd_usb_midi_endpoint_info) {
  1474. .out_cables = 0x000f,
  1475. .in_cables = 0x000f
  1476. }
  1477. }
  1478. },
  1479. {
  1480. /*
  1481. * For hardware revision 1.05; in the later revisions (1.10 and
  1482. * 1.21), 0x1031 is the ID for the device without firmware.
  1483. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1484. */
  1485. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1486. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1487. .vendor_name = "M-Audio",
  1488. .product_name = "MidiSport 8x8",
  1489. .ifnum = QUIRK_ANY_INTERFACE,
  1490. .type = QUIRK_MIDI_MIDIMAN,
  1491. .data = & (const struct snd_usb_midi_endpoint_info) {
  1492. .out_cables = 0x01ff,
  1493. .in_cables = 0x01ff
  1494. }
  1495. }
  1496. },
  1497. {
  1498. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1499. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1500. .vendor_name = "M-Audio",
  1501. .product_name = "MidiSport 8x8",
  1502. .ifnum = QUIRK_ANY_INTERFACE,
  1503. .type = QUIRK_MIDI_MIDIMAN,
  1504. .data = & (const struct snd_usb_midi_endpoint_info) {
  1505. .out_cables = 0x01ff,
  1506. .in_cables = 0x01ff
  1507. }
  1508. }
  1509. },
  1510. {
  1511. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1512. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1513. .vendor_name = "M-Audio",
  1514. .product_name = "MidiSport 2x4",
  1515. .ifnum = QUIRK_ANY_INTERFACE,
  1516. .type = QUIRK_MIDI_MIDIMAN,
  1517. .data = & (const struct snd_usb_midi_endpoint_info) {
  1518. .out_cables = 0x000f,
  1519. .in_cables = 0x0003
  1520. }
  1521. }
  1522. },
  1523. {
  1524. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1525. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1526. .vendor_name = "M-Audio",
  1527. .product_name = "Quattro",
  1528. .ifnum = QUIRK_ANY_INTERFACE,
  1529. .type = QUIRK_COMPOSITE,
  1530. .data = & (const struct snd_usb_audio_quirk[]) {
  1531. /*
  1532. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1533. * and share endpoints with the other interfaces.
  1534. * Ignore them. The other interfaces can do 24 bits,
  1535. * but captured samples are big-endian (see usbaudio.c).
  1536. */
  1537. {
  1538. .ifnum = 0,
  1539. .type = QUIRK_IGNORE_INTERFACE
  1540. },
  1541. {
  1542. .ifnum = 1,
  1543. .type = QUIRK_IGNORE_INTERFACE
  1544. },
  1545. {
  1546. .ifnum = 2,
  1547. .type = QUIRK_IGNORE_INTERFACE
  1548. },
  1549. {
  1550. .ifnum = 3,
  1551. .type = QUIRK_IGNORE_INTERFACE
  1552. },
  1553. {
  1554. .ifnum = 4,
  1555. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1556. },
  1557. {
  1558. .ifnum = 5,
  1559. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1560. },
  1561. {
  1562. .ifnum = 6,
  1563. .type = QUIRK_IGNORE_INTERFACE
  1564. },
  1565. {
  1566. .ifnum = 7,
  1567. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1568. },
  1569. {
  1570. .ifnum = 8,
  1571. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1572. },
  1573. {
  1574. .ifnum = 9,
  1575. .type = QUIRK_MIDI_MIDIMAN,
  1576. .data = & (const struct snd_usb_midi_endpoint_info) {
  1577. .out_cables = 0x0001,
  1578. .in_cables = 0x0001
  1579. }
  1580. },
  1581. {
  1582. .ifnum = -1
  1583. }
  1584. }
  1585. }
  1586. },
  1587. {
  1588. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1589. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1590. .vendor_name = "M-Audio",
  1591. .product_name = "AudioPhile",
  1592. .ifnum = 6,
  1593. .type = QUIRK_MIDI_MIDIMAN,
  1594. .data = & (const struct snd_usb_midi_endpoint_info) {
  1595. .out_cables = 0x0001,
  1596. .in_cables = 0x0001
  1597. }
  1598. }
  1599. },
  1600. {
  1601. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1602. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1603. .vendor_name = "M-Audio",
  1604. .product_name = "Ozone",
  1605. .ifnum = 3,
  1606. .type = QUIRK_MIDI_MIDIMAN,
  1607. .data = & (const struct snd_usb_midi_endpoint_info) {
  1608. .out_cables = 0x0001,
  1609. .in_cables = 0x0001
  1610. }
  1611. }
  1612. },
  1613. {
  1614. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1615. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1616. .vendor_name = "M-Audio",
  1617. .product_name = "OmniStudio",
  1618. .ifnum = QUIRK_ANY_INTERFACE,
  1619. .type = QUIRK_COMPOSITE,
  1620. .data = & (const struct snd_usb_audio_quirk[]) {
  1621. {
  1622. .ifnum = 0,
  1623. .type = QUIRK_IGNORE_INTERFACE
  1624. },
  1625. {
  1626. .ifnum = 1,
  1627. .type = QUIRK_IGNORE_INTERFACE
  1628. },
  1629. {
  1630. .ifnum = 2,
  1631. .type = QUIRK_IGNORE_INTERFACE
  1632. },
  1633. {
  1634. .ifnum = 3,
  1635. .type = QUIRK_IGNORE_INTERFACE
  1636. },
  1637. {
  1638. .ifnum = 4,
  1639. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1640. },
  1641. {
  1642. .ifnum = 5,
  1643. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1644. },
  1645. {
  1646. .ifnum = 6,
  1647. .type = QUIRK_IGNORE_INTERFACE
  1648. },
  1649. {
  1650. .ifnum = 7,
  1651. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1652. },
  1653. {
  1654. .ifnum = 8,
  1655. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1656. },
  1657. {
  1658. .ifnum = 9,
  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. .ifnum = -1
  1667. }
  1668. }
  1669. }
  1670. },
  1671. {
  1672. USB_DEVICE(0x0763, 0x2019),
  1673. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1674. /* .vendor_name = "M-Audio", */
  1675. /* .product_name = "Ozone Academic", */
  1676. .ifnum = QUIRK_ANY_INTERFACE,
  1677. .type = QUIRK_COMPOSITE,
  1678. .data = & (const struct snd_usb_audio_quirk[]) {
  1679. {
  1680. .ifnum = 0,
  1681. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1682. },
  1683. {
  1684. .ifnum = 1,
  1685. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1686. },
  1687. {
  1688. .ifnum = 2,
  1689. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1690. },
  1691. {
  1692. .ifnum = 3,
  1693. .type = QUIRK_MIDI_MIDIMAN,
  1694. .data = & (const struct snd_usb_midi_endpoint_info) {
  1695. .out_cables = 0x0001,
  1696. .in_cables = 0x0001
  1697. }
  1698. },
  1699. {
  1700. .ifnum = -1
  1701. }
  1702. }
  1703. }
  1704. },
  1705. /* Casio devices */
  1706. {
  1707. USB_DEVICE(0x07cf, 0x6801),
  1708. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1709. .vendor_name = "Casio",
  1710. .product_name = "PL-40R",
  1711. .ifnum = 0,
  1712. .type = QUIRK_MIDI_YAMAHA
  1713. }
  1714. },
  1715. {
  1716. /* this ID is used by several devices without a product ID */
  1717. USB_DEVICE(0x07cf, 0x6802),
  1718. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1719. .vendor_name = "Casio",
  1720. .product_name = "Keyboard",
  1721. .ifnum = 0,
  1722. .type = QUIRK_MIDI_YAMAHA
  1723. }
  1724. },
  1725. /* Mark of the Unicorn devices */
  1726. {
  1727. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  1728. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1729. USB_DEVICE_ID_MATCH_PRODUCT |
  1730. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  1731. .idVendor = 0x07fd,
  1732. .idProduct = 0x0001,
  1733. .bDeviceSubClass = 2,
  1734. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1735. .vendor_name = "MOTU",
  1736. .product_name = "Fastlane",
  1737. .ifnum = QUIRK_ANY_INTERFACE,
  1738. .type = QUIRK_COMPOSITE,
  1739. .data = & (const struct snd_usb_audio_quirk[]) {
  1740. {
  1741. .ifnum = 0,
  1742. .type = QUIRK_MIDI_RAW
  1743. },
  1744. {
  1745. .ifnum = 1,
  1746. .type = QUIRK_IGNORE_INTERFACE
  1747. },
  1748. {
  1749. .ifnum = -1
  1750. }
  1751. }
  1752. }
  1753. },
  1754. /* Emagic devices */
  1755. {
  1756. USB_DEVICE(0x086a, 0x0001),
  1757. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1758. .vendor_name = "Emagic",
  1759. /* .product_name = "Unitor8", */
  1760. .ifnum = 2,
  1761. .type = QUIRK_MIDI_EMAGIC,
  1762. .data = & (const struct snd_usb_midi_endpoint_info) {
  1763. .out_cables = 0x80ff,
  1764. .in_cables = 0x80ff
  1765. }
  1766. }
  1767. },
  1768. {
  1769. USB_DEVICE(0x086a, 0x0002),
  1770. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1771. .vendor_name = "Emagic",
  1772. /* .product_name = "AMT8", */
  1773. .ifnum = 2,
  1774. .type = QUIRK_MIDI_EMAGIC,
  1775. .data = & (const struct snd_usb_midi_endpoint_info) {
  1776. .out_cables = 0x80ff,
  1777. .in_cables = 0x80ff
  1778. }
  1779. }
  1780. },
  1781. {
  1782. USB_DEVICE(0x086a, 0x0003),
  1783. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1784. .vendor_name = "Emagic",
  1785. /* .product_name = "MT4", */
  1786. .ifnum = 2,
  1787. .type = QUIRK_MIDI_EMAGIC,
  1788. .data = & (const struct snd_usb_midi_endpoint_info) {
  1789. .out_cables = 0x800f,
  1790. .in_cables = 0x8003
  1791. }
  1792. }
  1793. },
  1794. /* TerraTec devices */
  1795. {
  1796. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  1797. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1798. .vendor_name = "TerraTec",
  1799. .product_name = "PHASE 26",
  1800. .ifnum = 3,
  1801. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1802. }
  1803. },
  1804. {
  1805. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  1806. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1807. .vendor_name = "TerraTec",
  1808. .product_name = "PHASE 26",
  1809. .ifnum = 3,
  1810. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1811. }
  1812. },
  1813. {
  1814. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  1815. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1816. .vendor_name = "TerraTec",
  1817. .product_name = "PHASE 26",
  1818. .ifnum = 3,
  1819. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1820. }
  1821. },
  1822. {
  1823. USB_DEVICE(0x0ccd, 0x0035),
  1824. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1825. .vendor_name = "Miditech",
  1826. .product_name = "Play'n Roll",
  1827. .ifnum = 0,
  1828. .type = QUIRK_MIDI_CME
  1829. }
  1830. },
  1831. /* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
  1832. {
  1833. USB_DEVICE(0x103d, 0x0100),
  1834. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1835. .vendor_name = "Stanton",
  1836. .product_name = "ScratchAmp",
  1837. .ifnum = QUIRK_NO_INTERFACE
  1838. }
  1839. },
  1840. {
  1841. USB_DEVICE(0x103d, 0x0101),
  1842. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1843. .vendor_name = "Stanton",
  1844. .product_name = "ScratchAmp",
  1845. .ifnum = QUIRK_NO_INTERFACE
  1846. }
  1847. },
  1848. /* Novation EMS devices */
  1849. {
  1850. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  1851. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1852. .vendor_name = "Novation",
  1853. .product_name = "ReMOTE Audio/XStation",
  1854. .ifnum = 4,
  1855. .type = QUIRK_MIDI_NOVATION
  1856. }
  1857. },
  1858. {
  1859. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  1860. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1861. .vendor_name = "Novation",
  1862. .product_name = "Speedio",
  1863. .ifnum = 3,
  1864. .type = QUIRK_MIDI_NOVATION
  1865. }
  1866. },
  1867. {
  1868. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  1869. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1870. .vendor_name = "Novation",
  1871. .product_name = "ReMOTE25",
  1872. .ifnum = 0,
  1873. .type = QUIRK_MIDI_NOVATION
  1874. }
  1875. },
  1876. /* */
  1877. {
  1878. /* aka. Serato Scratch Live DJ Box */
  1879. USB_DEVICE(0x13e5, 0x0001),
  1880. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1881. .vendor_name = "Rane",
  1882. .product_name = "SL-1",
  1883. .ifnum = QUIRK_NO_INTERFACE
  1884. }
  1885. },
  1886. /* Miditech devices */
  1887. {
  1888. USB_DEVICE(0x4752, 0x0011),
  1889. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1890. .vendor_name = "Miditech",
  1891. .product_name = "Midistart-2",
  1892. .ifnum = 0,
  1893. .type = QUIRK_MIDI_CME
  1894. }
  1895. },
  1896. /* Central Music devices */
  1897. {
  1898. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  1899. USB_DEVICE(0x7104, 0x2202),
  1900. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1901. .ifnum = 0,
  1902. .type = QUIRK_MIDI_CME
  1903. }
  1904. },
  1905. {
  1906. /*
  1907. * Some USB MIDI devices don't have an audio control interface,
  1908. * so we have to grab MIDI streaming interfaces here.
  1909. */
  1910. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  1911. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  1912. .bInterfaceClass = USB_CLASS_AUDIO,
  1913. .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
  1914. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1915. .ifnum = QUIRK_ANY_INTERFACE,
  1916. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1917. }
  1918. },
  1919. #undef USB_DEVICE_VENDOR_SPEC