usbquirks.h 41 KB

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