usbquirks.h 39 KB

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