usbquirks.h 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428
  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. /*
  40. * Yamaha devices
  41. */
  42. #define YAMAHA_DEVICE(id, name) { \
  43. USB_DEVICE(0x0499, id), \
  44. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \
  45. .vendor_name = "Yamaha", \
  46. .product_name = name, \
  47. .ifnum = QUIRK_ANY_INTERFACE, \
  48. .type = QUIRK_MIDI_YAMAHA \
  49. } \
  50. }
  51. #define YAMAHA_INTERFACE(id, intf, name) { \
  52. USB_DEVICE_VENDOR_SPEC(0x0499, id), \
  53. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \
  54. .vendor_name = "Yamaha", \
  55. .product_name = name, \
  56. .ifnum = intf, \
  57. .type = QUIRK_MIDI_YAMAHA \
  58. } \
  59. }
  60. YAMAHA_DEVICE(0x1000, "UX256"),
  61. YAMAHA_DEVICE(0x1001, "MU1000"),
  62. YAMAHA_DEVICE(0x1002, "MU2000"),
  63. YAMAHA_DEVICE(0x1003, "MU500"),
  64. YAMAHA_INTERFACE(0x1004, 3, "UW500"),
  65. YAMAHA_DEVICE(0x1005, "MOTIF6"),
  66. YAMAHA_DEVICE(0x1006, "MOTIF7"),
  67. YAMAHA_DEVICE(0x1007, "MOTIF8"),
  68. YAMAHA_DEVICE(0x1008, "UX96"),
  69. YAMAHA_DEVICE(0x1009, "UX16"),
  70. YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
  71. YAMAHA_DEVICE(0x100c, "UC-MX"),
  72. YAMAHA_DEVICE(0x100d, "UC-KX"),
  73. YAMAHA_DEVICE(0x100e, "S08"),
  74. YAMAHA_DEVICE(0x100f, "CLP-150"),
  75. YAMAHA_DEVICE(0x1010, "CLP-170"),
  76. YAMAHA_DEVICE(0x1011, "P-250"),
  77. YAMAHA_DEVICE(0x1012, "TYROS"),
  78. YAMAHA_DEVICE(0x1013, "PF-500"),
  79. YAMAHA_DEVICE(0x1014, "S90"),
  80. YAMAHA_DEVICE(0x1015, "MOTIF-R"),
  81. YAMAHA_DEVICE(0x1017, "CVP-204"),
  82. YAMAHA_DEVICE(0x1018, "CVP-206"),
  83. YAMAHA_DEVICE(0x1019, "CVP-208"),
  84. YAMAHA_DEVICE(0x101a, "CVP-210"),
  85. YAMAHA_DEVICE(0x101b, "PSR-1100"),
  86. YAMAHA_DEVICE(0x101c, "PSR-2100"),
  87. YAMAHA_DEVICE(0x101d, "CLP-175"),
  88. YAMAHA_DEVICE(0x101e, "PSR-K1"),
  89. YAMAHA_DEVICE(0x1020, "EZ-250i"),
  90. YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
  91. YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
  92. YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
  93. YAMAHA_DEVICE(0x1024, "CVP-301"),
  94. YAMAHA_DEVICE(0x1025, "CVP-303"),
  95. YAMAHA_DEVICE(0x1026, "CVP-305"),
  96. YAMAHA_DEVICE(0x1027, "CVP-307"),
  97. YAMAHA_DEVICE(0x1028, "CVP-309"),
  98. YAMAHA_DEVICE(0x1029, "CVP-309GP"),
  99. YAMAHA_DEVICE(0x102a, "PSR-1500"),
  100. YAMAHA_DEVICE(0x102b, "PSR-3000"),
  101. YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
  102. YAMAHA_DEVICE(0x1030, "PSR-295/293"),
  103. YAMAHA_DEVICE(0x1031, "DGX-205/203"),
  104. YAMAHA_DEVICE(0x1032, "DGX-305"),
  105. YAMAHA_DEVICE(0x1033, "DGX-505"),
  106. YAMAHA_DEVICE(0x1034, NULL),
  107. YAMAHA_DEVICE(0x1035, NULL),
  108. YAMAHA_DEVICE(0x1036, NULL),
  109. YAMAHA_DEVICE(0x1037, NULL),
  110. YAMAHA_DEVICE(0x1038, NULL),
  111. YAMAHA_DEVICE(0x1039, NULL),
  112. YAMAHA_DEVICE(0x103a, NULL),
  113. YAMAHA_DEVICE(0x103b, NULL),
  114. YAMAHA_DEVICE(0x103c, NULL),
  115. YAMAHA_DEVICE(0x103d, NULL),
  116. YAMAHA_DEVICE(0x2000, "DGP-7"),
  117. YAMAHA_DEVICE(0x2001, "DGP-5"),
  118. YAMAHA_DEVICE(0x2002, NULL),
  119. YAMAHA_DEVICE(0x5000, "CS1D"),
  120. YAMAHA_DEVICE(0x5001, "DSP1D"),
  121. YAMAHA_DEVICE(0x5002, "DME32"),
  122. YAMAHA_DEVICE(0x5003, "DM2000"),
  123. YAMAHA_DEVICE(0x5004, "02R96"),
  124. YAMAHA_DEVICE(0x5005, "ACU16-C"),
  125. YAMAHA_DEVICE(0x5006, "NHB32-C"),
  126. YAMAHA_DEVICE(0x5007, "DM1000"),
  127. YAMAHA_DEVICE(0x5008, "01V96"),
  128. YAMAHA_DEVICE(0x5009, "SPX2000"),
  129. YAMAHA_DEVICE(0x500a, "PM5D"),
  130. YAMAHA_DEVICE(0x500b, "DME64N"),
  131. YAMAHA_DEVICE(0x500c, "DME24N"),
  132. YAMAHA_DEVICE(0x500d, NULL),
  133. YAMAHA_DEVICE(0x500e, NULL),
  134. YAMAHA_DEVICE(0x7000, "DTX"),
  135. YAMAHA_DEVICE(0x7010, "UB99"),
  136. #undef YAMAHA_DEVICE
  137. #undef YAMAHA_INTERFACE
  138. /*
  139. * Roland/RolandED/Edirol/BOSS devices
  140. */
  141. {
  142. USB_DEVICE(0x0582, 0x0000),
  143. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  144. .vendor_name = "Roland",
  145. .product_name = "UA-100",
  146. .ifnum = QUIRK_ANY_INTERFACE,
  147. .type = QUIRK_COMPOSITE,
  148. .data = (const snd_usb_audio_quirk_t[]) {
  149. {
  150. .ifnum = 0,
  151. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  152. .data = & (const struct audioformat) {
  153. .format = SNDRV_PCM_FORMAT_S16_LE,
  154. .channels = 4,
  155. .iface = 0,
  156. .altsetting = 1,
  157. .altset_idx = 1,
  158. .attributes = 0,
  159. .endpoint = 0x01,
  160. .ep_attr = 0x09,
  161. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  162. .rate_min = 44100,
  163. .rate_max = 44100,
  164. }
  165. },
  166. {
  167. .ifnum = 1,
  168. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  169. .data = & (const struct audioformat) {
  170. .format = SNDRV_PCM_FORMAT_S16_LE,
  171. .channels = 2,
  172. .iface = 1,
  173. .altsetting = 1,
  174. .altset_idx = 1,
  175. .attributes = EP_CS_ATTR_FILL_MAX,
  176. .endpoint = 0x81,
  177. .ep_attr = 0x05,
  178. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  179. .rate_min = 44100,
  180. .rate_max = 44100,
  181. }
  182. },
  183. {
  184. .ifnum = 2,
  185. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  186. .data = & (const snd_usb_midi_endpoint_info_t) {
  187. .out_cables = 0x0007,
  188. .in_cables = 0x0007
  189. }
  190. },
  191. {
  192. .ifnum = -1
  193. }
  194. }
  195. }
  196. },
  197. {
  198. USB_DEVICE(0x0582, 0x0002),
  199. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  200. .vendor_name = "EDIROL",
  201. .product_name = "UM-4",
  202. .ifnum = QUIRK_ANY_INTERFACE,
  203. .type = QUIRK_COMPOSITE,
  204. .data = (const snd_usb_audio_quirk_t[]) {
  205. {
  206. .ifnum = 0,
  207. .type = QUIRK_IGNORE_INTERFACE
  208. },
  209. {
  210. .ifnum = 1,
  211. .type = QUIRK_IGNORE_INTERFACE
  212. },
  213. {
  214. .ifnum = 2,
  215. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  216. .data = & (const snd_usb_midi_endpoint_info_t) {
  217. .out_cables = 0x000f,
  218. .in_cables = 0x000f
  219. }
  220. },
  221. {
  222. .ifnum = -1
  223. }
  224. }
  225. }
  226. },
  227. {
  228. USB_DEVICE(0x0582, 0x0003),
  229. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  230. .vendor_name = "Roland",
  231. .product_name = "SC-8850",
  232. .ifnum = QUIRK_ANY_INTERFACE,
  233. .type = QUIRK_COMPOSITE,
  234. .data = (const snd_usb_audio_quirk_t[]) {
  235. {
  236. .ifnum = 0,
  237. .type = QUIRK_IGNORE_INTERFACE
  238. },
  239. {
  240. .ifnum = 1,
  241. .type = QUIRK_IGNORE_INTERFACE
  242. },
  243. {
  244. .ifnum = 2,
  245. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  246. .data = & (const snd_usb_midi_endpoint_info_t) {
  247. .out_cables = 0x003f,
  248. .in_cables = 0x003f
  249. }
  250. },
  251. {
  252. .ifnum = -1
  253. }
  254. }
  255. }
  256. },
  257. {
  258. USB_DEVICE(0x0582, 0x0004),
  259. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  260. .vendor_name = "Roland",
  261. .product_name = "U-8",
  262. .ifnum = QUIRK_ANY_INTERFACE,
  263. .type = QUIRK_COMPOSITE,
  264. .data = (const snd_usb_audio_quirk_t[]) {
  265. {
  266. .ifnum = 0,
  267. .type = QUIRK_IGNORE_INTERFACE
  268. },
  269. {
  270. .ifnum = 1,
  271. .type = QUIRK_IGNORE_INTERFACE
  272. },
  273. {
  274. .ifnum = 2,
  275. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  276. .data = & (const snd_usb_midi_endpoint_info_t) {
  277. .out_cables = 0x0005,
  278. .in_cables = 0x0005
  279. }
  280. },
  281. {
  282. .ifnum = -1
  283. }
  284. }
  285. }
  286. },
  287. {
  288. USB_DEVICE(0x0582, 0x0005),
  289. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  290. .vendor_name = "EDIROL",
  291. .product_name = "UM-2",
  292. .ifnum = QUIRK_ANY_INTERFACE,
  293. .type = QUIRK_COMPOSITE,
  294. .data = (const snd_usb_audio_quirk_t[]) {
  295. {
  296. .ifnum = 0,
  297. .type = QUIRK_IGNORE_INTERFACE
  298. },
  299. {
  300. .ifnum = 1,
  301. .type = QUIRK_IGNORE_INTERFACE
  302. },
  303. {
  304. .ifnum = 2,
  305. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  306. .data = & (const snd_usb_midi_endpoint_info_t) {
  307. .out_cables = 0x0003,
  308. .in_cables = 0x0003
  309. }
  310. },
  311. {
  312. .ifnum = -1
  313. }
  314. }
  315. }
  316. },
  317. {
  318. USB_DEVICE(0x0582, 0x0007),
  319. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  320. .vendor_name = "Roland",
  321. .product_name = "SC-8820",
  322. .ifnum = QUIRK_ANY_INTERFACE,
  323. .type = QUIRK_COMPOSITE,
  324. .data = (const snd_usb_audio_quirk_t[]) {
  325. {
  326. .ifnum = 0,
  327. .type = QUIRK_IGNORE_INTERFACE
  328. },
  329. {
  330. .ifnum = 1,
  331. .type = QUIRK_IGNORE_INTERFACE
  332. },
  333. {
  334. .ifnum = 2,
  335. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  336. .data = & (const snd_usb_midi_endpoint_info_t) {
  337. .out_cables = 0x0013,
  338. .in_cables = 0x0013
  339. }
  340. },
  341. {
  342. .ifnum = -1
  343. }
  344. }
  345. }
  346. },
  347. {
  348. USB_DEVICE(0x0582, 0x0008),
  349. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  350. .vendor_name = "Roland",
  351. .product_name = "PC-300",
  352. .ifnum = QUIRK_ANY_INTERFACE,
  353. .type = QUIRK_COMPOSITE,
  354. .data = (const snd_usb_audio_quirk_t[]) {
  355. {
  356. .ifnum = 0,
  357. .type = QUIRK_IGNORE_INTERFACE
  358. },
  359. {
  360. .ifnum = 1,
  361. .type = QUIRK_IGNORE_INTERFACE
  362. },
  363. {
  364. .ifnum = 2,
  365. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  366. .data = & (const snd_usb_midi_endpoint_info_t) {
  367. .out_cables = 0x0001,
  368. .in_cables = 0x0001
  369. }
  370. },
  371. {
  372. .ifnum = -1
  373. }
  374. }
  375. }
  376. },
  377. {
  378. USB_DEVICE(0x0582, 0x0009),
  379. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  380. .vendor_name = "EDIROL",
  381. .product_name = "UM-1",
  382. .ifnum = QUIRK_ANY_INTERFACE,
  383. .type = QUIRK_COMPOSITE,
  384. .data = (const snd_usb_audio_quirk_t[]) {
  385. {
  386. .ifnum = 0,
  387. .type = QUIRK_IGNORE_INTERFACE
  388. },
  389. {
  390. .ifnum = 1,
  391. .type = QUIRK_IGNORE_INTERFACE
  392. },
  393. {
  394. .ifnum = 2,
  395. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  396. .data = & (const snd_usb_midi_endpoint_info_t) {
  397. .out_cables = 0x0001,
  398. .in_cables = 0x0001
  399. }
  400. },
  401. {
  402. .ifnum = -1
  403. }
  404. }
  405. }
  406. },
  407. {
  408. USB_DEVICE(0x0582, 0x000b),
  409. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  410. .vendor_name = "Roland",
  411. .product_name = "SK-500",
  412. .ifnum = QUIRK_ANY_INTERFACE,
  413. .type = QUIRK_COMPOSITE,
  414. .data = (const snd_usb_audio_quirk_t[]) {
  415. {
  416. .ifnum = 0,
  417. .type = QUIRK_IGNORE_INTERFACE
  418. },
  419. {
  420. .ifnum = 1,
  421. .type = QUIRK_IGNORE_INTERFACE
  422. },
  423. {
  424. .ifnum = 2,
  425. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  426. .data = & (const snd_usb_midi_endpoint_info_t) {
  427. .out_cables = 0x0013,
  428. .in_cables = 0x0013
  429. }
  430. },
  431. {
  432. .ifnum = -1
  433. }
  434. }
  435. }
  436. },
  437. {
  438. /* thanks to Emiliano Grilli <emillo@libero.it>
  439. * for helping researching this data */
  440. USB_DEVICE(0x0582, 0x000c),
  441. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  442. .vendor_name = "Roland",
  443. .product_name = "SC-D70",
  444. .ifnum = QUIRK_ANY_INTERFACE,
  445. .type = QUIRK_COMPOSITE,
  446. .data = (const snd_usb_audio_quirk_t[]) {
  447. {
  448. .ifnum = 0,
  449. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  450. .data = & (const struct audioformat) {
  451. .format = SNDRV_PCM_FORMAT_S24_3LE,
  452. .channels = 2,
  453. .iface = 0,
  454. .altsetting = 1,
  455. .altset_idx = 1,
  456. .attributes = 0,
  457. .endpoint = 0x01,
  458. .ep_attr = 0x01,
  459. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  460. .rate_min = 44100,
  461. .rate_max = 44100,
  462. }
  463. },
  464. {
  465. .ifnum = 1,
  466. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  467. .data = & (const struct audioformat) {
  468. .format = SNDRV_PCM_FORMAT_S24_3LE,
  469. .channels = 2,
  470. .iface = 1,
  471. .altsetting = 1,
  472. .altset_idx = 1,
  473. .attributes = 0,
  474. .endpoint = 0x81,
  475. .ep_attr = 0x01,
  476. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  477. .rate_min = 44100,
  478. .rate_max = 44100,
  479. }
  480. },
  481. {
  482. .ifnum = 2,
  483. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  484. .data = & (const snd_usb_midi_endpoint_info_t) {
  485. .out_cables = 0x0007,
  486. .in_cables = 0x0007
  487. }
  488. },
  489. {
  490. .ifnum = -1
  491. }
  492. }
  493. }
  494. },
  495. { /*
  496. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  497. * If the advanced mode switch at the back of the unit is off, the
  498. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  499. * but offers only 16-bit PCM.
  500. * In advanced mode, the UA-5 will output S24_3LE samples (two
  501. * channels) at the rate indicated on the front switch, including
  502. * the 96kHz sample rate.
  503. */
  504. USB_DEVICE(0x0582, 0x0010),
  505. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  506. .vendor_name = "EDIROL",
  507. .product_name = "UA-5",
  508. .ifnum = QUIRK_ANY_INTERFACE,
  509. .type = QUIRK_COMPOSITE,
  510. .data = (const snd_usb_audio_quirk_t[]) {
  511. {
  512. .ifnum = 1,
  513. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  514. },
  515. {
  516. .ifnum = 2,
  517. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  518. },
  519. {
  520. .ifnum = -1
  521. }
  522. }
  523. }
  524. },
  525. {
  526. USB_DEVICE(0x0582, 0x0012),
  527. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  528. .vendor_name = "Roland",
  529. .product_name = "XV-5050",
  530. .ifnum = 0,
  531. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  532. .data = & (const snd_usb_midi_endpoint_info_t) {
  533. .out_cables = 0x0001,
  534. .in_cables = 0x0001
  535. }
  536. }
  537. },
  538. {
  539. USB_DEVICE(0x0582, 0x0014),
  540. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  541. .vendor_name = "EDIROL",
  542. .product_name = "UM-880",
  543. .ifnum = 0,
  544. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  545. .data = & (const snd_usb_midi_endpoint_info_t) {
  546. .out_cables = 0x01ff,
  547. .in_cables = 0x01ff
  548. }
  549. }
  550. },
  551. {
  552. USB_DEVICE(0x0582, 0x0016),
  553. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  554. .vendor_name = "EDIROL",
  555. .product_name = "SD-90",
  556. .ifnum = QUIRK_ANY_INTERFACE,
  557. .type = QUIRK_COMPOSITE,
  558. .data = (const snd_usb_audio_quirk_t[]) {
  559. {
  560. .ifnum = 0,
  561. .type = QUIRK_IGNORE_INTERFACE
  562. },
  563. {
  564. .ifnum = 1,
  565. .type = QUIRK_IGNORE_INTERFACE
  566. },
  567. {
  568. .ifnum = 2,
  569. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  570. .data = & (const snd_usb_midi_endpoint_info_t) {
  571. .out_cables = 0x000f,
  572. .in_cables = 0x000f
  573. }
  574. },
  575. {
  576. .ifnum = -1
  577. }
  578. }
  579. }
  580. },
  581. {
  582. USB_DEVICE(0x0582, 0x001b),
  583. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  584. .vendor_name = "Roland",
  585. .product_name = "MMP-2",
  586. .ifnum = QUIRK_ANY_INTERFACE,
  587. .type = QUIRK_COMPOSITE,
  588. .data = (const snd_usb_audio_quirk_t[]) {
  589. {
  590. .ifnum = 0,
  591. .type = QUIRK_IGNORE_INTERFACE
  592. },
  593. {
  594. .ifnum = 1,
  595. .type = QUIRK_IGNORE_INTERFACE
  596. },
  597. {
  598. .ifnum = 2,
  599. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  600. .data = & (const snd_usb_midi_endpoint_info_t) {
  601. .out_cables = 0x0001,
  602. .in_cables = 0x0001
  603. }
  604. },
  605. {
  606. .ifnum = -1
  607. }
  608. }
  609. }
  610. },
  611. {
  612. USB_DEVICE(0x0582, 0x001d),
  613. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  614. .vendor_name = "Roland",
  615. .product_name = "V-SYNTH",
  616. .ifnum = 0,
  617. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  618. .data = & (const snd_usb_midi_endpoint_info_t) {
  619. .out_cables = 0x0001,
  620. .in_cables = 0x0001
  621. }
  622. }
  623. },
  624. {
  625. USB_DEVICE(0x0582, 0x0023),
  626. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  627. .vendor_name = "EDIROL",
  628. .product_name = "UM-550",
  629. .ifnum = 0,
  630. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  631. .data = & (const snd_usb_midi_endpoint_info_t) {
  632. .out_cables = 0x003f,
  633. .in_cables = 0x003f
  634. }
  635. }
  636. },
  637. {
  638. /*
  639. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  640. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  641. * and no MIDI.
  642. */
  643. USB_DEVICE(0x0582, 0x0025),
  644. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  645. .vendor_name = "EDIROL",
  646. .product_name = "UA-20",
  647. .ifnum = QUIRK_ANY_INTERFACE,
  648. .type = QUIRK_COMPOSITE,
  649. .data = (const snd_usb_audio_quirk_t[]) {
  650. {
  651. .ifnum = 1,
  652. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  653. },
  654. {
  655. .ifnum = 2,
  656. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  657. },
  658. {
  659. .ifnum = 3,
  660. .type = QUIRK_MIDI_STANDARD_INTERFACE
  661. },
  662. {
  663. .ifnum = -1
  664. }
  665. }
  666. }
  667. },
  668. {
  669. USB_DEVICE(0x0582, 0x0027),
  670. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  671. .vendor_name = "EDIROL",
  672. .product_name = "SD-20",
  673. .ifnum = 0,
  674. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  675. .data = & (const snd_usb_midi_endpoint_info_t) {
  676. .out_cables = 0x0003,
  677. .in_cables = 0x0007
  678. }
  679. }
  680. },
  681. {
  682. USB_DEVICE(0x0582, 0x0029),
  683. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  684. .vendor_name = "EDIROL",
  685. .product_name = "SD-80",
  686. .ifnum = 0,
  687. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  688. .data = & (const snd_usb_midi_endpoint_info_t) {
  689. .out_cables = 0x000f,
  690. .in_cables = 0x000f
  691. }
  692. }
  693. },
  694. { /*
  695. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  696. * If the sample format switch is not in an advanced setting, the
  697. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  698. * but offers only 16-bit PCM and no MIDI.
  699. */
  700. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  701. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  702. .vendor_name = "EDIROL",
  703. .product_name = "UA-700",
  704. .ifnum = QUIRK_ANY_INTERFACE,
  705. .type = QUIRK_COMPOSITE,
  706. .data = (const snd_usb_audio_quirk_t[]) {
  707. {
  708. .ifnum = 1,
  709. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  710. },
  711. {
  712. .ifnum = 2,
  713. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  714. },
  715. {
  716. .ifnum = 3,
  717. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  718. },
  719. {
  720. .ifnum = -1
  721. }
  722. }
  723. }
  724. },
  725. {
  726. USB_DEVICE(0x0582, 0x002d),
  727. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  728. .vendor_name = "Roland",
  729. .product_name = "XV-2020",
  730. .ifnum = 0,
  731. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  732. .data = & (const snd_usb_midi_endpoint_info_t) {
  733. .out_cables = 0x0001,
  734. .in_cables = 0x0001
  735. }
  736. }
  737. },
  738. {
  739. USB_DEVICE(0x0582, 0x002f),
  740. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  741. .vendor_name = "Roland",
  742. .product_name = "VariOS",
  743. .ifnum = 0,
  744. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  745. .data = & (const snd_usb_midi_endpoint_info_t) {
  746. .out_cables = 0x0007,
  747. .in_cables = 0x0007
  748. }
  749. }
  750. },
  751. {
  752. USB_DEVICE(0x0582, 0x0033),
  753. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  754. .vendor_name = "EDIROL",
  755. .product_name = "PCR",
  756. .ifnum = 0,
  757. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  758. .data = & (const snd_usb_midi_endpoint_info_t) {
  759. .out_cables = 0x0003,
  760. .in_cables = 0x0007
  761. }
  762. }
  763. },
  764. {
  765. USB_DEVICE(0x0582, 0x0037),
  766. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  767. .vendor_name = "Roland",
  768. .product_name = "Digital Piano",
  769. .ifnum = 0,
  770. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  771. .data = & (const snd_usb_midi_endpoint_info_t) {
  772. .out_cables = 0x0001,
  773. .in_cables = 0x0001
  774. }
  775. }
  776. },
  777. {
  778. /*
  779. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  780. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  781. * and no MIDI.
  782. */
  783. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  784. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  785. .vendor_name = "BOSS",
  786. .product_name = "GS-10",
  787. .ifnum = QUIRK_ANY_INTERFACE,
  788. .type = QUIRK_COMPOSITE,
  789. .data = & (const snd_usb_audio_quirk_t[]) {
  790. {
  791. .ifnum = 1,
  792. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  793. },
  794. {
  795. .ifnum = 2,
  796. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  797. },
  798. {
  799. .ifnum = 3,
  800. .type = QUIRK_MIDI_STANDARD_INTERFACE
  801. },
  802. {
  803. .ifnum = -1
  804. }
  805. }
  806. }
  807. },
  808. {
  809. USB_DEVICE(0x0582, 0x0040),
  810. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  811. .vendor_name = "Roland",
  812. .product_name = "GI-20",
  813. .ifnum = 0,
  814. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  815. .data = & (const snd_usb_midi_endpoint_info_t) {
  816. .out_cables = 0x0001,
  817. .in_cables = 0x0001
  818. }
  819. }
  820. },
  821. {
  822. USB_DEVICE(0x0582, 0x0042),
  823. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  824. .vendor_name = "Roland",
  825. .product_name = "RS-70",
  826. .ifnum = 0,
  827. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  828. .data = & (const snd_usb_midi_endpoint_info_t) {
  829. .out_cables = 0x0001,
  830. .in_cables = 0x0001
  831. }
  832. }
  833. },
  834. {
  835. USB_DEVICE(0x0582, 0x0044),
  836. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  837. .vendor_name = "Roland",
  838. .product_name = "UA-1000",
  839. .ifnum = QUIRK_ANY_INTERFACE,
  840. .type = QUIRK_COMPOSITE,
  841. .data = (const snd_usb_audio_quirk_t[]) {
  842. {
  843. .ifnum = 1,
  844. .type = QUIRK_AUDIO_EDIROL_UA1000
  845. },
  846. {
  847. .ifnum = 2,
  848. .type = QUIRK_AUDIO_EDIROL_UA1000
  849. },
  850. {
  851. .ifnum = 3,
  852. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  853. .data = & (const snd_usb_midi_endpoint_info_t) {
  854. .out_cables = 0x0003,
  855. .in_cables = 0x0003
  856. }
  857. },
  858. {
  859. .ifnum = -1
  860. }
  861. }
  862. }
  863. },
  864. {
  865. USB_DEVICE(0x0582, 0x0048),
  866. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  867. .vendor_name = "EDIROL",
  868. .product_name = "UR-80",
  869. .ifnum = 0,
  870. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  871. .data = & (const snd_usb_midi_endpoint_info_t) {
  872. .out_cables = 0x0003,
  873. .in_cables = 0x0007
  874. }
  875. }
  876. },
  877. {
  878. USB_DEVICE(0x0582, 0x004d),
  879. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  880. .vendor_name = "EDIROL",
  881. .product_name = "PCR-A",
  882. .ifnum = 0,
  883. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  884. .data = & (const snd_usb_midi_endpoint_info_t) {
  885. .out_cables = 0x0003,
  886. .in_cables = 0x0007
  887. }
  888. }
  889. },
  890. {
  891. /*
  892. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  893. * is standard compliant, but has only 16-bit PCM.
  894. */
  895. USB_DEVICE(0x0582, 0x0050),
  896. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  897. .vendor_name = "EDIROL",
  898. .product_name = "UA-3FX",
  899. .ifnum = QUIRK_ANY_INTERFACE,
  900. .type = QUIRK_COMPOSITE,
  901. .data = (const snd_usb_audio_quirk_t[]) {
  902. {
  903. .ifnum = 1,
  904. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  905. },
  906. {
  907. .ifnum = 2,
  908. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  909. },
  910. {
  911. .ifnum = -1
  912. }
  913. }
  914. }
  915. },
  916. {
  917. USB_DEVICE(0x0582, 0x0052),
  918. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  919. .vendor_name = "EDIROL",
  920. .product_name = "UM-1SX",
  921. .ifnum = 0,
  922. .type = QUIRK_MIDI_STANDARD_INTERFACE
  923. }
  924. },
  925. {
  926. USB_DEVICE(0x0582, 0x0065),
  927. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  928. .vendor_name = "EDIROL",
  929. .product_name = "PCR-1",
  930. .ifnum = 0,
  931. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  932. .data = & (const snd_usb_midi_endpoint_info_t) {
  933. .out_cables = 0x0001,
  934. .in_cables = 0x0003
  935. }
  936. }
  937. },
  938. {
  939. USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
  940. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  941. .vendor_name = "Roland",
  942. .product_name = "SP-606",
  943. .ifnum = 3,
  944. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  945. .data = & (const snd_usb_midi_endpoint_info_t) {
  946. .out_cables = 0x0001,
  947. .in_cables = 0x0001
  948. }
  949. }
  950. },
  951. {
  952. USB_DEVICE(0x0582, 0x006d),
  953. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  954. .vendor_name = "Roland",
  955. .product_name = "FANTOM-X",
  956. .ifnum = 0,
  957. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  958. .data = & (const snd_usb_midi_endpoint_info_t) {
  959. .out_cables = 0x0001,
  960. .in_cables = 0x0001
  961. }
  962. }
  963. },
  964. { /*
  965. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  966. * If the switch is not in an advanced setting, the UA-25 has
  967. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  968. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  969. */
  970. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  971. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  972. .vendor_name = "EDIROL",
  973. .product_name = "UA-25",
  974. .ifnum = QUIRK_ANY_INTERFACE,
  975. .type = QUIRK_COMPOSITE,
  976. .data = (const snd_usb_audio_quirk_t[]) {
  977. {
  978. .ifnum = 0,
  979. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  980. },
  981. {
  982. .ifnum = 1,
  983. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  984. },
  985. {
  986. .ifnum = 2,
  987. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  988. },
  989. {
  990. .ifnum = -1
  991. }
  992. }
  993. }
  994. },
  995. {
  996. USB_DEVICE(0x0582, 0x0075),
  997. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  998. .vendor_name = "BOSS",
  999. .product_name = "DR-880",
  1000. .ifnum = 0,
  1001. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1002. .data = & (const snd_usb_midi_endpoint_info_t) {
  1003. .out_cables = 0x0001,
  1004. .in_cables = 0x0001
  1005. }
  1006. }
  1007. },
  1008. {
  1009. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1010. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1011. .vendor_name = "Roland",
  1012. /* RD-700SX, RD-300SX */
  1013. .ifnum = 0,
  1014. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1015. .data = & (const snd_usb_midi_endpoint_info_t) {
  1016. .out_cables = 0x0003,
  1017. .in_cables = 0x0003
  1018. }
  1019. }
  1020. },
  1021. /* Midiman/M-Audio devices */
  1022. {
  1023. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1024. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1025. .vendor_name = "M-Audio",
  1026. .product_name = "MidiSport 2x2",
  1027. .ifnum = QUIRK_ANY_INTERFACE,
  1028. .type = QUIRK_MIDI_MIDIMAN,
  1029. .data = & (const snd_usb_midi_endpoint_info_t) {
  1030. .out_cables = 0x0003,
  1031. .in_cables = 0x0003
  1032. }
  1033. }
  1034. },
  1035. {
  1036. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1037. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1038. .vendor_name = "M-Audio",
  1039. .product_name = "MidiSport 1x1",
  1040. .ifnum = QUIRK_ANY_INTERFACE,
  1041. .type = QUIRK_MIDI_MIDIMAN,
  1042. .data = & (const snd_usb_midi_endpoint_info_t) {
  1043. .out_cables = 0x0001,
  1044. .in_cables = 0x0001
  1045. }
  1046. }
  1047. },
  1048. {
  1049. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1050. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1051. .vendor_name = "M-Audio",
  1052. .product_name = "Keystation",
  1053. .ifnum = QUIRK_ANY_INTERFACE,
  1054. .type = QUIRK_MIDI_MIDIMAN,
  1055. .data = & (const snd_usb_midi_endpoint_info_t) {
  1056. .out_cables = 0x0001,
  1057. .in_cables = 0x0001
  1058. }
  1059. }
  1060. },
  1061. {
  1062. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1063. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1064. .vendor_name = "M-Audio",
  1065. .product_name = "MidiSport 4x4",
  1066. .ifnum = QUIRK_ANY_INTERFACE,
  1067. .type = QUIRK_MIDI_MIDIMAN,
  1068. .data = & (const snd_usb_midi_endpoint_info_t) {
  1069. .out_cables = 0x000f,
  1070. .in_cables = 0x000f
  1071. }
  1072. }
  1073. },
  1074. {
  1075. /*
  1076. * For hardware revision 1.05; in the later revisions (1.10 and
  1077. * 1.21), 0x1031 is the ID for the device without firmware.
  1078. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1079. */
  1080. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1081. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1082. .vendor_name = "M-Audio",
  1083. .product_name = "MidiSport 8x8",
  1084. .ifnum = QUIRK_ANY_INTERFACE,
  1085. .type = QUIRK_MIDI_MIDIMAN,
  1086. .data = & (const snd_usb_midi_endpoint_info_t) {
  1087. .out_cables = 0x01ff,
  1088. .in_cables = 0x01ff
  1089. }
  1090. }
  1091. },
  1092. {
  1093. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1094. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1095. .vendor_name = "M-Audio",
  1096. .product_name = "MidiSport 8x8",
  1097. .ifnum = QUIRK_ANY_INTERFACE,
  1098. .type = QUIRK_MIDI_MIDIMAN,
  1099. .data = & (const snd_usb_midi_endpoint_info_t) {
  1100. .out_cables = 0x01ff,
  1101. .in_cables = 0x01ff
  1102. }
  1103. }
  1104. },
  1105. {
  1106. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1107. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1108. .vendor_name = "M-Audio",
  1109. .product_name = "MidiSport 2x4",
  1110. .ifnum = QUIRK_ANY_INTERFACE,
  1111. .type = QUIRK_MIDI_MIDIMAN,
  1112. .data = & (const snd_usb_midi_endpoint_info_t) {
  1113. .out_cables = 0x000f,
  1114. .in_cables = 0x0003
  1115. }
  1116. }
  1117. },
  1118. {
  1119. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1120. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1121. .vendor_name = "M-Audio",
  1122. .product_name = "Quattro",
  1123. .ifnum = QUIRK_ANY_INTERFACE,
  1124. .type = QUIRK_COMPOSITE,
  1125. .data = & (const snd_usb_audio_quirk_t[]) {
  1126. /*
  1127. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1128. * and share endpoints with the other interfaces.
  1129. * Ignore them. The other interfaces can do 24 bits,
  1130. * but captured samples are big-endian (see usbaudio.c).
  1131. */
  1132. {
  1133. .ifnum = 0,
  1134. .type = QUIRK_IGNORE_INTERFACE
  1135. },
  1136. {
  1137. .ifnum = 1,
  1138. .type = QUIRK_IGNORE_INTERFACE
  1139. },
  1140. {
  1141. .ifnum = 2,
  1142. .type = QUIRK_IGNORE_INTERFACE
  1143. },
  1144. {
  1145. .ifnum = 3,
  1146. .type = QUIRK_IGNORE_INTERFACE
  1147. },
  1148. {
  1149. .ifnum = 4,
  1150. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1151. },
  1152. {
  1153. .ifnum = 5,
  1154. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1155. },
  1156. {
  1157. .ifnum = 6,
  1158. .type = QUIRK_IGNORE_INTERFACE
  1159. },
  1160. {
  1161. .ifnum = 7,
  1162. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1163. },
  1164. {
  1165. .ifnum = 8,
  1166. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1167. },
  1168. {
  1169. .ifnum = 9,
  1170. .type = QUIRK_MIDI_MIDIMAN,
  1171. .data = & (const snd_usb_midi_endpoint_info_t) {
  1172. .out_cables = 0x0001,
  1173. .in_cables = 0x0001
  1174. }
  1175. },
  1176. {
  1177. .ifnum = -1
  1178. }
  1179. }
  1180. }
  1181. },
  1182. {
  1183. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1184. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1185. .vendor_name = "M-Audio",
  1186. .product_name = "AudioPhile",
  1187. .ifnum = 6,
  1188. .type = QUIRK_MIDI_MIDIMAN,
  1189. .data = & (const snd_usb_midi_endpoint_info_t) {
  1190. .out_cables = 0x0001,
  1191. .in_cables = 0x0001
  1192. }
  1193. }
  1194. },
  1195. {
  1196. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1197. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1198. .vendor_name = "M-Audio",
  1199. .product_name = "Ozone",
  1200. .ifnum = 3,
  1201. .type = QUIRK_MIDI_MIDIMAN,
  1202. .data = & (const snd_usb_midi_endpoint_info_t) {
  1203. .out_cables = 0x0001,
  1204. .in_cables = 0x0001
  1205. }
  1206. }
  1207. },
  1208. {
  1209. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1210. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1211. .vendor_name = "M-Audio",
  1212. .product_name = "OmniStudio",
  1213. .ifnum = QUIRK_ANY_INTERFACE,
  1214. .type = QUIRK_COMPOSITE,
  1215. .data = & (const snd_usb_audio_quirk_t[]) {
  1216. {
  1217. .ifnum = 0,
  1218. .type = QUIRK_IGNORE_INTERFACE
  1219. },
  1220. {
  1221. .ifnum = 1,
  1222. .type = QUIRK_IGNORE_INTERFACE
  1223. },
  1224. {
  1225. .ifnum = 2,
  1226. .type = QUIRK_IGNORE_INTERFACE
  1227. },
  1228. {
  1229. .ifnum = 3,
  1230. .type = QUIRK_IGNORE_INTERFACE
  1231. },
  1232. {
  1233. .ifnum = 4,
  1234. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1235. },
  1236. {
  1237. .ifnum = 5,
  1238. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1239. },
  1240. {
  1241. .ifnum = 6,
  1242. .type = QUIRK_IGNORE_INTERFACE
  1243. },
  1244. {
  1245. .ifnum = 7,
  1246. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1247. },
  1248. {
  1249. .ifnum = 8,
  1250. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1251. },
  1252. {
  1253. .ifnum = 9,
  1254. .type = QUIRK_MIDI_MIDIMAN,
  1255. .data = & (const snd_usb_midi_endpoint_info_t) {
  1256. .out_cables = 0x0001,
  1257. .in_cables = 0x0001
  1258. }
  1259. },
  1260. {
  1261. .ifnum = -1
  1262. }
  1263. }
  1264. }
  1265. },
  1266. /* Mark of the Unicorn devices */
  1267. {
  1268. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  1269. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1270. USB_DEVICE_ID_MATCH_PRODUCT |
  1271. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  1272. .idVendor = 0x07fd,
  1273. .idProduct = 0x0001,
  1274. .bDeviceSubClass = 2,
  1275. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1276. .vendor_name = "MOTU",
  1277. .product_name = "Fastlane",
  1278. .ifnum = QUIRK_ANY_INTERFACE,
  1279. .type = QUIRK_COMPOSITE,
  1280. .data = & (const snd_usb_audio_quirk_t[]) {
  1281. {
  1282. .ifnum = 0,
  1283. .type = QUIRK_MIDI_RAW
  1284. },
  1285. {
  1286. .ifnum = 1,
  1287. .type = QUIRK_IGNORE_INTERFACE
  1288. },
  1289. {
  1290. .ifnum = -1
  1291. }
  1292. }
  1293. }
  1294. },
  1295. {
  1296. /* Creative Sound Blaster MP3+ */
  1297. USB_DEVICE(0x041e, 0x3010),
  1298. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1299. .vendor_name = "Creative Labs",
  1300. .product_name = "Sound Blaster MP3+",
  1301. .ifnum = QUIRK_NO_INTERFACE
  1302. }
  1303. },
  1304. /* Emagic devices */
  1305. {
  1306. USB_DEVICE(0x086a, 0x0001),
  1307. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1308. .vendor_name = "Emagic",
  1309. /* .product_name = "Unitor8", */
  1310. .ifnum = 2,
  1311. .type = QUIRK_MIDI_EMAGIC,
  1312. .data = & (const snd_usb_midi_endpoint_info_t) {
  1313. .out_cables = 0x80ff,
  1314. .in_cables = 0x80ff
  1315. }
  1316. }
  1317. },
  1318. {
  1319. USB_DEVICE(0x086a, 0x0002),
  1320. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1321. .vendor_name = "Emagic",
  1322. /* .product_name = "AMT8", */
  1323. .ifnum = 2,
  1324. .type = QUIRK_MIDI_EMAGIC,
  1325. .data = & (const snd_usb_midi_endpoint_info_t) {
  1326. .out_cables = 0x80ff,
  1327. .in_cables = 0x80ff
  1328. }
  1329. }
  1330. },
  1331. {
  1332. USB_DEVICE(0x086a, 0x0003),
  1333. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1334. .vendor_name = "Emagic",
  1335. /* .product_name = "MT4", */
  1336. .ifnum = 2,
  1337. .type = QUIRK_MIDI_EMAGIC,
  1338. .data = & (const snd_usb_midi_endpoint_info_t) {
  1339. .out_cables = 0x800f,
  1340. .in_cables = 0x8003
  1341. }
  1342. }
  1343. },
  1344. {
  1345. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  1346. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1347. .vendor_name = "Terratec",
  1348. .product_name = "PHASE 26",
  1349. .ifnum = 3,
  1350. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1351. }
  1352. },
  1353. /* Novation EMS devices */
  1354. {
  1355. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  1356. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1357. .vendor_name = "Novation",
  1358. .product_name = "ReMOTE Audio/XStation",
  1359. .ifnum = 4,
  1360. .type = QUIRK_MIDI_NOVATION
  1361. }
  1362. },
  1363. {
  1364. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  1365. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1366. .vendor_name = "Novation",
  1367. .product_name = "Speedio",
  1368. .ifnum = 3,
  1369. .type = QUIRK_MIDI_NOVATION
  1370. }
  1371. },
  1372. {
  1373. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  1374. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1375. .vendor_name = "Novation",
  1376. .product_name = "ReMOTE25",
  1377. .ifnum = 0,
  1378. .type = QUIRK_MIDI_NOVATION
  1379. }
  1380. },
  1381. {
  1382. USB_DEVICE(0x4752, 0x0011),
  1383. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1384. .vendor_name = "Miditech",
  1385. .product_name = "Midistart-2",
  1386. .ifnum = 0,
  1387. .type = QUIRK_MIDI_MIDITECH
  1388. }
  1389. },
  1390. {
  1391. USB_DEVICE(0x7104, 0x2202),
  1392. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1393. .vendor_name = "Miditech",
  1394. .product_name = "MidiStudio-2",
  1395. .ifnum = 0,
  1396. .type = QUIRK_MIDI_MIDITECH
  1397. }
  1398. },
  1399. {
  1400. /*
  1401. * Some USB MIDI devices don't have an audio control interface,
  1402. * so we have to grab MIDI streaming interfaces here.
  1403. */
  1404. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  1405. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  1406. .bInterfaceClass = USB_CLASS_AUDIO,
  1407. .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
  1408. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1409. .ifnum = QUIRK_ANY_INTERFACE,
  1410. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1411. }
  1412. },
  1413. #undef USB_DEVICE_VENDOR_SPEC