usbquirks.h 38 KB

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