usbquirks.h 41 KB

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