usbquirks.h 41 KB

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