usbquirks.h 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415
  1. /*
  2. * ALSA USB Audio Driver
  3. *
  4. * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>,
  5. * Clemens Ladisch <clemens@ladisch.de>
  6. *
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. */
  22. /*
  23. * The contents of this file are part of the driver's id_table.
  24. *
  25. * In a perfect world, this file would be empty.
  26. */
  27. /*
  28. * Use this for devices where other interfaces are standard compliant,
  29. * to prevent the quirk being applied to those interfaces. (To work with
  30. * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
  31. */
  32. #define USB_DEVICE_VENDOR_SPEC(vend, prod) \
  33. .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
  34. USB_DEVICE_ID_MATCH_PRODUCT | \
  35. USB_DEVICE_ID_MATCH_INT_CLASS, \
  36. .idVendor = vend, \
  37. .idProduct = prod, \
  38. .bInterfaceClass = USB_CLASS_VENDOR_SPEC
  39. /*
  40. * Yamaha devices
  41. */
  42. #define YAMAHA_DEVICE(id, name) { \
  43. USB_DEVICE(0x0499, id), \
  44. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \
  45. .vendor_name = "Yamaha", \
  46. .product_name = name, \
  47. .ifnum = QUIRK_ANY_INTERFACE, \
  48. .type = QUIRK_MIDI_YAMAHA \
  49. } \
  50. }
  51. #define YAMAHA_INTERFACE(id, intf, name) { \
  52. USB_DEVICE_VENDOR_SPEC(0x0499, id), \
  53. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) { \
  54. .vendor_name = "Yamaha", \
  55. .product_name = name, \
  56. .ifnum = intf, \
  57. .type = QUIRK_MIDI_YAMAHA \
  58. } \
  59. }
  60. YAMAHA_DEVICE(0x1000, "UX256"),
  61. YAMAHA_DEVICE(0x1001, "MU1000"),
  62. YAMAHA_DEVICE(0x1002, "MU2000"),
  63. YAMAHA_DEVICE(0x1003, "MU500"),
  64. YAMAHA_INTERFACE(0x1004, 3, "UW500"),
  65. YAMAHA_DEVICE(0x1005, "MOTIF6"),
  66. YAMAHA_DEVICE(0x1006, "MOTIF7"),
  67. YAMAHA_DEVICE(0x1007, "MOTIF8"),
  68. YAMAHA_DEVICE(0x1008, "UX96"),
  69. YAMAHA_DEVICE(0x1009, "UX16"),
  70. YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
  71. YAMAHA_DEVICE(0x100c, "UC-MX"),
  72. YAMAHA_DEVICE(0x100d, "UC-KX"),
  73. YAMAHA_DEVICE(0x100e, "S08"),
  74. YAMAHA_DEVICE(0x100f, "CLP-150"),
  75. YAMAHA_DEVICE(0x1010, "CLP-170"),
  76. YAMAHA_DEVICE(0x1011, "P-250"),
  77. YAMAHA_DEVICE(0x1012, "TYROS"),
  78. YAMAHA_DEVICE(0x1013, "PF-500"),
  79. YAMAHA_DEVICE(0x1014, "S90"),
  80. YAMAHA_DEVICE(0x1015, "MOTIF-R"),
  81. YAMAHA_DEVICE(0x1017, "CVP-204"),
  82. YAMAHA_DEVICE(0x1018, "CVP-206"),
  83. YAMAHA_DEVICE(0x1019, "CVP-208"),
  84. YAMAHA_DEVICE(0x101a, "CVP-210"),
  85. YAMAHA_DEVICE(0x101b, "PSR-1100"),
  86. YAMAHA_DEVICE(0x101c, "PSR-2100"),
  87. YAMAHA_DEVICE(0x101d, "CLP-175"),
  88. YAMAHA_DEVICE(0x101e, "PSR-K1"),
  89. YAMAHA_DEVICE(0x1020, "EZ-250i"),
  90. YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
  91. YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
  92. YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
  93. YAMAHA_DEVICE(0x1024, "CVP-301"),
  94. YAMAHA_DEVICE(0x1025, "CVP-303"),
  95. YAMAHA_DEVICE(0x1026, "CVP-305"),
  96. YAMAHA_DEVICE(0x1027, "CVP-307"),
  97. YAMAHA_DEVICE(0x1028, "CVP-309"),
  98. YAMAHA_DEVICE(0x1029, "CVP-309GP"),
  99. YAMAHA_DEVICE(0x102a, "PSR-1500"),
  100. YAMAHA_DEVICE(0x102b, "PSR-3000"),
  101. YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
  102. YAMAHA_DEVICE(0x1030, "PSR-295/293"),
  103. YAMAHA_DEVICE(0x1031, "DGX-205/203"),
  104. YAMAHA_DEVICE(0x1032, "DGX-305"),
  105. YAMAHA_DEVICE(0x1033, "DGX-505"),
  106. YAMAHA_DEVICE(0x1034, NULL),
  107. YAMAHA_DEVICE(0x1035, NULL),
  108. YAMAHA_DEVICE(0x1036, NULL),
  109. YAMAHA_DEVICE(0x1037, NULL),
  110. YAMAHA_DEVICE(0x1038, NULL),
  111. YAMAHA_DEVICE(0x1039, NULL),
  112. YAMAHA_DEVICE(0x103a, NULL),
  113. YAMAHA_DEVICE(0x103b, NULL),
  114. YAMAHA_DEVICE(0x103c, NULL),
  115. YAMAHA_DEVICE(0x103d, NULL),
  116. YAMAHA_DEVICE(0x2000, "DGP-7"),
  117. YAMAHA_DEVICE(0x2001, "DGP-5"),
  118. YAMAHA_DEVICE(0x2002, NULL),
  119. YAMAHA_DEVICE(0x5000, "CS1D"),
  120. YAMAHA_DEVICE(0x5001, "DSP1D"),
  121. YAMAHA_DEVICE(0x5002, "DME32"),
  122. YAMAHA_DEVICE(0x5003, "DM2000"),
  123. YAMAHA_DEVICE(0x5004, "02R96"),
  124. YAMAHA_DEVICE(0x5005, "ACU16-C"),
  125. YAMAHA_DEVICE(0x5006, "NHB32-C"),
  126. YAMAHA_DEVICE(0x5007, "DM1000"),
  127. YAMAHA_DEVICE(0x5008, "01V96"),
  128. YAMAHA_DEVICE(0x5009, "SPX2000"),
  129. YAMAHA_DEVICE(0x500a, "PM5D"),
  130. YAMAHA_DEVICE(0x500b, "DME64N"),
  131. YAMAHA_DEVICE(0x500c, "DME24N"),
  132. YAMAHA_DEVICE(0x500d, NULL),
  133. YAMAHA_DEVICE(0x500e, NULL),
  134. YAMAHA_DEVICE(0x7000, "DTX"),
  135. YAMAHA_DEVICE(0x7010, "UB99"),
  136. #undef YAMAHA_DEVICE
  137. #undef YAMAHA_INTERFACE
  138. /*
  139. * Roland/RolandED/Edirol/BOSS devices
  140. */
  141. {
  142. USB_DEVICE(0x0582, 0x0000),
  143. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  144. .vendor_name = "Roland",
  145. .product_name = "UA-100",
  146. .ifnum = QUIRK_ANY_INTERFACE,
  147. .type = QUIRK_COMPOSITE,
  148. .data = (const snd_usb_audio_quirk_t[]) {
  149. {
  150. .ifnum = 0,
  151. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  152. .data = & (const struct audioformat) {
  153. .format = SNDRV_PCM_FORMAT_S16_LE,
  154. .channels = 4,
  155. .iface = 0,
  156. .altsetting = 1,
  157. .altset_idx = 1,
  158. .attributes = 0,
  159. .endpoint = 0x01,
  160. .ep_attr = 0x09,
  161. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  162. .rate_min = 44100,
  163. .rate_max = 44100,
  164. }
  165. },
  166. {
  167. .ifnum = 1,
  168. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  169. .data = & (const struct audioformat) {
  170. .format = SNDRV_PCM_FORMAT_S16_LE,
  171. .channels = 2,
  172. .iface = 1,
  173. .altsetting = 1,
  174. .altset_idx = 1,
  175. .attributes = EP_CS_ATTR_FILL_MAX,
  176. .endpoint = 0x81,
  177. .ep_attr = 0x05,
  178. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  179. .rate_min = 44100,
  180. .rate_max = 44100,
  181. }
  182. },
  183. {
  184. .ifnum = 2,
  185. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  186. .data = & (const snd_usb_midi_endpoint_info_t) {
  187. .out_cables = 0x0007,
  188. .in_cables = 0x0007
  189. }
  190. },
  191. {
  192. .ifnum = -1
  193. }
  194. }
  195. }
  196. },
  197. {
  198. USB_DEVICE(0x0582, 0x0002),
  199. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  200. .vendor_name = "EDIROL",
  201. .product_name = "UM-4",
  202. .ifnum = QUIRK_ANY_INTERFACE,
  203. .type = QUIRK_COMPOSITE,
  204. .data = (const snd_usb_audio_quirk_t[]) {
  205. {
  206. .ifnum = 0,
  207. .type = QUIRK_IGNORE_INTERFACE
  208. },
  209. {
  210. .ifnum = 1,
  211. .type = QUIRK_IGNORE_INTERFACE
  212. },
  213. {
  214. .ifnum = 2,
  215. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  216. .data = & (const snd_usb_midi_endpoint_info_t) {
  217. .out_cables = 0x000f,
  218. .in_cables = 0x000f
  219. }
  220. },
  221. {
  222. .ifnum = -1
  223. }
  224. }
  225. }
  226. },
  227. {
  228. USB_DEVICE(0x0582, 0x0003),
  229. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  230. .vendor_name = "Roland",
  231. .product_name = "SC-8850",
  232. .ifnum = QUIRK_ANY_INTERFACE,
  233. .type = QUIRK_COMPOSITE,
  234. .data = (const snd_usb_audio_quirk_t[]) {
  235. {
  236. .ifnum = 0,
  237. .type = QUIRK_IGNORE_INTERFACE
  238. },
  239. {
  240. .ifnum = 1,
  241. .type = QUIRK_IGNORE_INTERFACE
  242. },
  243. {
  244. .ifnum = 2,
  245. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  246. .data = & (const snd_usb_midi_endpoint_info_t) {
  247. .out_cables = 0x003f,
  248. .in_cables = 0x003f
  249. }
  250. },
  251. {
  252. .ifnum = -1
  253. }
  254. }
  255. }
  256. },
  257. {
  258. USB_DEVICE(0x0582, 0x0004),
  259. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  260. .vendor_name = "Roland",
  261. .product_name = "U-8",
  262. .ifnum = QUIRK_ANY_INTERFACE,
  263. .type = QUIRK_COMPOSITE,
  264. .data = (const snd_usb_audio_quirk_t[]) {
  265. {
  266. .ifnum = 0,
  267. .type = QUIRK_IGNORE_INTERFACE
  268. },
  269. {
  270. .ifnum = 1,
  271. .type = QUIRK_IGNORE_INTERFACE
  272. },
  273. {
  274. .ifnum = 2,
  275. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  276. .data = & (const snd_usb_midi_endpoint_info_t) {
  277. .out_cables = 0x0005,
  278. .in_cables = 0x0005
  279. }
  280. },
  281. {
  282. .ifnum = -1
  283. }
  284. }
  285. }
  286. },
  287. {
  288. USB_DEVICE(0x0582, 0x0005),
  289. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  290. .vendor_name = "EDIROL",
  291. .product_name = "UM-2",
  292. .ifnum = QUIRK_ANY_INTERFACE,
  293. .type = QUIRK_COMPOSITE,
  294. .data = (const snd_usb_audio_quirk_t[]) {
  295. {
  296. .ifnum = 0,
  297. .type = QUIRK_IGNORE_INTERFACE
  298. },
  299. {
  300. .ifnum = 1,
  301. .type = QUIRK_IGNORE_INTERFACE
  302. },
  303. {
  304. .ifnum = 2,
  305. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  306. .data = & (const snd_usb_midi_endpoint_info_t) {
  307. .out_cables = 0x0003,
  308. .in_cables = 0x0003
  309. }
  310. },
  311. {
  312. .ifnum = -1
  313. }
  314. }
  315. }
  316. },
  317. {
  318. USB_DEVICE(0x0582, 0x0007),
  319. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  320. .vendor_name = "Roland",
  321. .product_name = "SC-8820",
  322. .ifnum = QUIRK_ANY_INTERFACE,
  323. .type = QUIRK_COMPOSITE,
  324. .data = (const snd_usb_audio_quirk_t[]) {
  325. {
  326. .ifnum = 0,
  327. .type = QUIRK_IGNORE_INTERFACE
  328. },
  329. {
  330. .ifnum = 1,
  331. .type = QUIRK_IGNORE_INTERFACE
  332. },
  333. {
  334. .ifnum = 2,
  335. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  336. .data = & (const snd_usb_midi_endpoint_info_t) {
  337. .out_cables = 0x0013,
  338. .in_cables = 0x0013
  339. }
  340. },
  341. {
  342. .ifnum = -1
  343. }
  344. }
  345. }
  346. },
  347. {
  348. USB_DEVICE(0x0582, 0x0008),
  349. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  350. .vendor_name = "Roland",
  351. .product_name = "PC-300",
  352. .ifnum = QUIRK_ANY_INTERFACE,
  353. .type = QUIRK_COMPOSITE,
  354. .data = (const snd_usb_audio_quirk_t[]) {
  355. {
  356. .ifnum = 0,
  357. .type = QUIRK_IGNORE_INTERFACE
  358. },
  359. {
  360. .ifnum = 1,
  361. .type = QUIRK_IGNORE_INTERFACE
  362. },
  363. {
  364. .ifnum = 2,
  365. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  366. .data = & (const snd_usb_midi_endpoint_info_t) {
  367. .out_cables = 0x0001,
  368. .in_cables = 0x0001
  369. }
  370. },
  371. {
  372. .ifnum = -1
  373. }
  374. }
  375. }
  376. },
  377. {
  378. USB_DEVICE(0x0582, 0x0009),
  379. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  380. .vendor_name = "EDIROL",
  381. .product_name = "UM-1",
  382. .ifnum = QUIRK_ANY_INTERFACE,
  383. .type = QUIRK_COMPOSITE,
  384. .data = (const snd_usb_audio_quirk_t[]) {
  385. {
  386. .ifnum = 0,
  387. .type = QUIRK_IGNORE_INTERFACE
  388. },
  389. {
  390. .ifnum = 1,
  391. .type = QUIRK_IGNORE_INTERFACE
  392. },
  393. {
  394. .ifnum = 2,
  395. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  396. .data = & (const snd_usb_midi_endpoint_info_t) {
  397. .out_cables = 0x0001,
  398. .in_cables = 0x0001
  399. }
  400. },
  401. {
  402. .ifnum = -1
  403. }
  404. }
  405. }
  406. },
  407. {
  408. USB_DEVICE(0x0582, 0x000b),
  409. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  410. .vendor_name = "Roland",
  411. .product_name = "SK-500",
  412. .ifnum = QUIRK_ANY_INTERFACE,
  413. .type = QUIRK_COMPOSITE,
  414. .data = (const snd_usb_audio_quirk_t[]) {
  415. {
  416. .ifnum = 0,
  417. .type = QUIRK_IGNORE_INTERFACE
  418. },
  419. {
  420. .ifnum = 1,
  421. .type = QUIRK_IGNORE_INTERFACE
  422. },
  423. {
  424. .ifnum = 2,
  425. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  426. .data = & (const snd_usb_midi_endpoint_info_t) {
  427. .out_cables = 0x0013,
  428. .in_cables = 0x0013
  429. }
  430. },
  431. {
  432. .ifnum = -1
  433. }
  434. }
  435. }
  436. },
  437. {
  438. /* thanks to Emiliano Grilli <emillo@libero.it>
  439. * for helping researching this data */
  440. USB_DEVICE(0x0582, 0x000c),
  441. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  442. .vendor_name = "Roland",
  443. .product_name = "SC-D70",
  444. .ifnum = QUIRK_ANY_INTERFACE,
  445. .type = QUIRK_COMPOSITE,
  446. .data = (const snd_usb_audio_quirk_t[]) {
  447. {
  448. .ifnum = 0,
  449. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  450. .data = & (const struct audioformat) {
  451. .format = SNDRV_PCM_FORMAT_S24_3LE,
  452. .channels = 2,
  453. .iface = 0,
  454. .altsetting = 1,
  455. .altset_idx = 1,
  456. .attributes = 0,
  457. .endpoint = 0x01,
  458. .ep_attr = 0x01,
  459. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  460. .rate_min = 44100,
  461. .rate_max = 44100,
  462. }
  463. },
  464. {
  465. .ifnum = 1,
  466. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  467. .data = & (const struct audioformat) {
  468. .format = SNDRV_PCM_FORMAT_S24_3LE,
  469. .channels = 2,
  470. .iface = 1,
  471. .altsetting = 1,
  472. .altset_idx = 1,
  473. .attributes = 0,
  474. .endpoint = 0x81,
  475. .ep_attr = 0x01,
  476. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  477. .rate_min = 44100,
  478. .rate_max = 44100,
  479. }
  480. },
  481. {
  482. .ifnum = 2,
  483. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  484. .data = & (const snd_usb_midi_endpoint_info_t) {
  485. .out_cables = 0x0007,
  486. .in_cables = 0x0007
  487. }
  488. },
  489. {
  490. .ifnum = -1
  491. }
  492. }
  493. }
  494. },
  495. { /*
  496. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  497. * If the advanced mode switch at the back of the unit is off, the
  498. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  499. * but offers only 16-bit PCM.
  500. * In advanced mode, the UA-5 will output S24_3LE samples (two
  501. * channels) at the rate indicated on the front switch, including
  502. * the 96kHz sample rate.
  503. */
  504. USB_DEVICE(0x0582, 0x0010),
  505. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  506. .vendor_name = "EDIROL",
  507. .product_name = "UA-5",
  508. .ifnum = QUIRK_ANY_INTERFACE,
  509. .type = QUIRK_COMPOSITE,
  510. .data = (const snd_usb_audio_quirk_t[]) {
  511. {
  512. .ifnum = 1,
  513. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  514. },
  515. {
  516. .ifnum = 2,
  517. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  518. },
  519. {
  520. .ifnum = -1
  521. }
  522. }
  523. }
  524. },
  525. {
  526. USB_DEVICE(0x0582, 0x0012),
  527. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  528. .vendor_name = "Roland",
  529. .product_name = "XV-5050",
  530. .ifnum = 0,
  531. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  532. .data = & (const snd_usb_midi_endpoint_info_t) {
  533. .out_cables = 0x0001,
  534. .in_cables = 0x0001
  535. }
  536. }
  537. },
  538. {
  539. USB_DEVICE(0x0582, 0x0014),
  540. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  541. .vendor_name = "EDIROL",
  542. .product_name = "UM-880",
  543. .ifnum = 0,
  544. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  545. .data = & (const snd_usb_midi_endpoint_info_t) {
  546. .out_cables = 0x01ff,
  547. .in_cables = 0x01ff
  548. }
  549. }
  550. },
  551. {
  552. USB_DEVICE(0x0582, 0x0016),
  553. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  554. .vendor_name = "EDIROL",
  555. .product_name = "SD-90",
  556. .ifnum = QUIRK_ANY_INTERFACE,
  557. .type = QUIRK_COMPOSITE,
  558. .data = (const snd_usb_audio_quirk_t[]) {
  559. {
  560. .ifnum = 0,
  561. .type = QUIRK_IGNORE_INTERFACE
  562. },
  563. {
  564. .ifnum = 1,
  565. .type = QUIRK_IGNORE_INTERFACE
  566. },
  567. {
  568. .ifnum = 2,
  569. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  570. .data = & (const snd_usb_midi_endpoint_info_t) {
  571. .out_cables = 0x000f,
  572. .in_cables = 0x000f
  573. }
  574. },
  575. {
  576. .ifnum = -1
  577. }
  578. }
  579. }
  580. },
  581. {
  582. USB_DEVICE(0x0582, 0x001b),
  583. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  584. .vendor_name = "Roland",
  585. .product_name = "MMP-2",
  586. .ifnum = QUIRK_ANY_INTERFACE,
  587. .type = QUIRK_COMPOSITE,
  588. .data = (const snd_usb_audio_quirk_t[]) {
  589. {
  590. .ifnum = 0,
  591. .type = QUIRK_IGNORE_INTERFACE
  592. },
  593. {
  594. .ifnum = 1,
  595. .type = QUIRK_IGNORE_INTERFACE
  596. },
  597. {
  598. .ifnum = 2,
  599. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  600. .data = & (const snd_usb_midi_endpoint_info_t) {
  601. .out_cables = 0x0001,
  602. .in_cables = 0x0001
  603. }
  604. },
  605. {
  606. .ifnum = -1
  607. }
  608. }
  609. }
  610. },
  611. {
  612. USB_DEVICE(0x0582, 0x001d),
  613. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  614. .vendor_name = "Roland",
  615. .product_name = "V-SYNTH",
  616. .ifnum = 0,
  617. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  618. .data = & (const snd_usb_midi_endpoint_info_t) {
  619. .out_cables = 0x0001,
  620. .in_cables = 0x0001
  621. }
  622. }
  623. },
  624. {
  625. USB_DEVICE(0x0582, 0x0023),
  626. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  627. .vendor_name = "EDIROL",
  628. .product_name = "UM-550",
  629. .ifnum = 0,
  630. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  631. .data = & (const snd_usb_midi_endpoint_info_t) {
  632. .out_cables = 0x003f,
  633. .in_cables = 0x003f
  634. }
  635. }
  636. },
  637. {
  638. /*
  639. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  640. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  641. * and no MIDI.
  642. */
  643. USB_DEVICE(0x0582, 0x0025),
  644. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  645. .vendor_name = "EDIROL",
  646. .product_name = "UA-20",
  647. .ifnum = QUIRK_ANY_INTERFACE,
  648. .type = QUIRK_COMPOSITE,
  649. .data = (const snd_usb_audio_quirk_t[]) {
  650. {
  651. .ifnum = 1,
  652. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  653. },
  654. {
  655. .ifnum = 2,
  656. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  657. },
  658. {
  659. .ifnum = 3,
  660. .type = QUIRK_MIDI_STANDARD_INTERFACE
  661. },
  662. {
  663. .ifnum = -1
  664. }
  665. }
  666. }
  667. },
  668. {
  669. USB_DEVICE(0x0582, 0x0027),
  670. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  671. .vendor_name = "EDIROL",
  672. .product_name = "SD-20",
  673. .ifnum = 0,
  674. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  675. .data = & (const snd_usb_midi_endpoint_info_t) {
  676. .out_cables = 0x0003,
  677. .in_cables = 0x0007
  678. }
  679. }
  680. },
  681. {
  682. USB_DEVICE(0x0582, 0x0029),
  683. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  684. .vendor_name = "EDIROL",
  685. .product_name = "SD-80",
  686. .ifnum = 0,
  687. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  688. .data = & (const snd_usb_midi_endpoint_info_t) {
  689. .out_cables = 0x000f,
  690. .in_cables = 0x000f
  691. }
  692. }
  693. },
  694. { /*
  695. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  696. * If the sample format switch is not in an advanced setting, the
  697. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  698. * but offers only 16-bit PCM and no MIDI.
  699. */
  700. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  701. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  702. .vendor_name = "EDIROL",
  703. .product_name = "UA-700",
  704. .ifnum = QUIRK_ANY_INTERFACE,
  705. .type = QUIRK_COMPOSITE,
  706. .data = (const snd_usb_audio_quirk_t[]) {
  707. {
  708. .ifnum = 1,
  709. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  710. },
  711. {
  712. .ifnum = 2,
  713. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  714. },
  715. {
  716. .ifnum = 3,
  717. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  718. },
  719. {
  720. .ifnum = -1
  721. }
  722. }
  723. }
  724. },
  725. {
  726. USB_DEVICE(0x0582, 0x002d),
  727. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  728. .vendor_name = "Roland",
  729. .product_name = "XV-2020",
  730. .ifnum = 0,
  731. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  732. .data = & (const snd_usb_midi_endpoint_info_t) {
  733. .out_cables = 0x0001,
  734. .in_cables = 0x0001
  735. }
  736. }
  737. },
  738. {
  739. USB_DEVICE(0x0582, 0x002f),
  740. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  741. .vendor_name = "Roland",
  742. .product_name = "VariOS",
  743. .ifnum = 0,
  744. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  745. .data = & (const snd_usb_midi_endpoint_info_t) {
  746. .out_cables = 0x0007,
  747. .in_cables = 0x0007
  748. }
  749. }
  750. },
  751. {
  752. USB_DEVICE(0x0582, 0x0033),
  753. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  754. .vendor_name = "EDIROL",
  755. .product_name = "PCR",
  756. .ifnum = 0,
  757. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  758. .data = & (const snd_usb_midi_endpoint_info_t) {
  759. .out_cables = 0x0003,
  760. .in_cables = 0x0007
  761. }
  762. }
  763. },
  764. {
  765. USB_DEVICE(0x0582, 0x0037),
  766. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  767. .vendor_name = "Roland",
  768. .product_name = "Digital Piano",
  769. .ifnum = 0,
  770. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  771. .data = & (const snd_usb_midi_endpoint_info_t) {
  772. .out_cables = 0x0001,
  773. .in_cables = 0x0001
  774. }
  775. }
  776. },
  777. {
  778. /*
  779. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  780. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  781. * and no MIDI.
  782. */
  783. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  784. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  785. .vendor_name = "BOSS",
  786. .product_name = "GS-10",
  787. .ifnum = QUIRK_ANY_INTERFACE,
  788. .type = QUIRK_COMPOSITE,
  789. .data = & (const snd_usb_audio_quirk_t[]) {
  790. {
  791. .ifnum = 1,
  792. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  793. },
  794. {
  795. .ifnum = 2,
  796. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  797. },
  798. {
  799. .ifnum = 3,
  800. .type = QUIRK_MIDI_STANDARD_INTERFACE
  801. },
  802. {
  803. .ifnum = -1
  804. }
  805. }
  806. }
  807. },
  808. {
  809. USB_DEVICE(0x0582, 0x0040),
  810. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  811. .vendor_name = "Roland",
  812. .product_name = "GI-20",
  813. .ifnum = 0,
  814. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  815. .data = & (const snd_usb_midi_endpoint_info_t) {
  816. .out_cables = 0x0001,
  817. .in_cables = 0x0001
  818. }
  819. }
  820. },
  821. {
  822. USB_DEVICE(0x0582, 0x0042),
  823. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  824. .vendor_name = "Roland",
  825. .product_name = "RS-70",
  826. .ifnum = 0,
  827. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  828. .data = & (const snd_usb_midi_endpoint_info_t) {
  829. .out_cables = 0x0001,
  830. .in_cables = 0x0001
  831. }
  832. }
  833. },
  834. {
  835. USB_DEVICE(0x0582, 0x0044),
  836. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  837. .vendor_name = "Roland",
  838. .product_name = "UA-1000",
  839. .ifnum = QUIRK_ANY_INTERFACE,
  840. .type = QUIRK_COMPOSITE,
  841. .data = (const snd_usb_audio_quirk_t[]) {
  842. {
  843. .ifnum = 1,
  844. .type = QUIRK_AUDIO_EDIROL_UA1000
  845. },
  846. {
  847. .ifnum = 2,
  848. .type = QUIRK_AUDIO_EDIROL_UA1000
  849. },
  850. {
  851. .ifnum = 3,
  852. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  853. .data = & (const snd_usb_midi_endpoint_info_t) {
  854. .out_cables = 0x0003,
  855. .in_cables = 0x0003
  856. }
  857. },
  858. {
  859. .ifnum = -1
  860. }
  861. }
  862. }
  863. },
  864. {
  865. USB_DEVICE(0x0582, 0x0048),
  866. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  867. .vendor_name = "EDIROL",
  868. .product_name = "UR-80",
  869. .ifnum = 0,
  870. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  871. .data = & (const snd_usb_midi_endpoint_info_t) {
  872. .out_cables = 0x0003,
  873. .in_cables = 0x0007
  874. }
  875. }
  876. },
  877. {
  878. USB_DEVICE(0x0582, 0x004d),
  879. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  880. .vendor_name = "EDIROL",
  881. .product_name = "PCR-A",
  882. .ifnum = 0,
  883. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  884. .data = & (const snd_usb_midi_endpoint_info_t) {
  885. .out_cables = 0x0003,
  886. .in_cables = 0x0007
  887. }
  888. }
  889. },
  890. {
  891. /*
  892. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  893. * is standard compliant, but has only 16-bit PCM.
  894. */
  895. USB_DEVICE(0x0582, 0x0050),
  896. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  897. .vendor_name = "EDIROL",
  898. .product_name = "UA-3FX",
  899. .ifnum = QUIRK_ANY_INTERFACE,
  900. .type = QUIRK_COMPOSITE,
  901. .data = (const snd_usb_audio_quirk_t[]) {
  902. {
  903. .ifnum = 1,
  904. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  905. },
  906. {
  907. .ifnum = 2,
  908. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  909. },
  910. {
  911. .ifnum = -1
  912. }
  913. }
  914. }
  915. },
  916. {
  917. USB_DEVICE(0x0582, 0x0052),
  918. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  919. .vendor_name = "EDIROL",
  920. .product_name = "UM-1SX",
  921. .ifnum = 0,
  922. .type = QUIRK_MIDI_STANDARD_INTERFACE
  923. }
  924. },
  925. {
  926. USB_DEVICE(0x0582, 0x0065),
  927. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  928. .vendor_name = "EDIROL",
  929. .product_name = "PCR-1",
  930. .ifnum = 0,
  931. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  932. .data = & (const snd_usb_midi_endpoint_info_t) {
  933. .out_cables = 0x0001,
  934. .in_cables = 0x0003
  935. }
  936. }
  937. },
  938. {
  939. USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
  940. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  941. .vendor_name = "Roland",
  942. .product_name = "SP-606",
  943. .ifnum = 3,
  944. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  945. .data = & (const snd_usb_midi_endpoint_info_t) {
  946. .out_cables = 0x0001,
  947. .in_cables = 0x0001
  948. }
  949. }
  950. },
  951. {
  952. USB_DEVICE(0x0582, 0x006d),
  953. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  954. .vendor_name = "Roland",
  955. .product_name = "FANTOM-X",
  956. .ifnum = 0,
  957. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  958. .data = & (const snd_usb_midi_endpoint_info_t) {
  959. .out_cables = 0x0001,
  960. .in_cables = 0x0001
  961. }
  962. }
  963. },
  964. { /*
  965. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  966. * If the switch is not in an advanced setting, the UA-25 has
  967. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  968. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  969. */
  970. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  971. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  972. .vendor_name = "EDIROL",
  973. .product_name = "UA-25",
  974. .ifnum = QUIRK_ANY_INTERFACE,
  975. .type = QUIRK_COMPOSITE,
  976. .data = (const snd_usb_audio_quirk_t[]) {
  977. {
  978. .ifnum = 0,
  979. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  980. },
  981. {
  982. .ifnum = 1,
  983. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  984. },
  985. {
  986. .ifnum = 2,
  987. .type = QUIRK_AUDIO_EDIROL_UA700_UA25
  988. },
  989. {
  990. .ifnum = -1
  991. }
  992. }
  993. }
  994. },
  995. {
  996. USB_DEVICE(0x0582, 0x0075),
  997. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  998. .vendor_name = "BOSS",
  999. .product_name = "DR-880",
  1000. .ifnum = 0,
  1001. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1002. .data = & (const snd_usb_midi_endpoint_info_t) {
  1003. .out_cables = 0x0001,
  1004. .in_cables = 0x0001
  1005. }
  1006. }
  1007. },
  1008. /* Midiman/M-Audio devices */
  1009. {
  1010. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1011. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1012. .vendor_name = "M-Audio",
  1013. .product_name = "MidiSport 2x2",
  1014. .ifnum = QUIRK_ANY_INTERFACE,
  1015. .type = QUIRK_MIDI_MIDIMAN,
  1016. .data = & (const snd_usb_midi_endpoint_info_t) {
  1017. .out_cables = 0x0003,
  1018. .in_cables = 0x0003
  1019. }
  1020. }
  1021. },
  1022. {
  1023. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1024. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1025. .vendor_name = "M-Audio",
  1026. .product_name = "MidiSport 1x1",
  1027. .ifnum = QUIRK_ANY_INTERFACE,
  1028. .type = QUIRK_MIDI_MIDIMAN,
  1029. .data = & (const snd_usb_midi_endpoint_info_t) {
  1030. .out_cables = 0x0001,
  1031. .in_cables = 0x0001
  1032. }
  1033. }
  1034. },
  1035. {
  1036. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1037. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1038. .vendor_name = "M-Audio",
  1039. .product_name = "Keystation",
  1040. .ifnum = QUIRK_ANY_INTERFACE,
  1041. .type = QUIRK_MIDI_MIDIMAN,
  1042. .data = & (const snd_usb_midi_endpoint_info_t) {
  1043. .out_cables = 0x0001,
  1044. .in_cables = 0x0001
  1045. }
  1046. }
  1047. },
  1048. {
  1049. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1050. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1051. .vendor_name = "M-Audio",
  1052. .product_name = "MidiSport 4x4",
  1053. .ifnum = QUIRK_ANY_INTERFACE,
  1054. .type = QUIRK_MIDI_MIDIMAN,
  1055. .data = & (const snd_usb_midi_endpoint_info_t) {
  1056. .out_cables = 0x000f,
  1057. .in_cables = 0x000f
  1058. }
  1059. }
  1060. },
  1061. {
  1062. /*
  1063. * For hardware revision 1.05; in the later revisions (1.10 and
  1064. * 1.21), 0x1031 is the ID for the device without firmware.
  1065. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1066. */
  1067. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1068. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1069. .vendor_name = "M-Audio",
  1070. .product_name = "MidiSport 8x8",
  1071. .ifnum = QUIRK_ANY_INTERFACE,
  1072. .type = QUIRK_MIDI_MIDIMAN,
  1073. .data = & (const snd_usb_midi_endpoint_info_t) {
  1074. .out_cables = 0x01ff,
  1075. .in_cables = 0x01ff
  1076. }
  1077. }
  1078. },
  1079. {
  1080. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1081. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1082. .vendor_name = "M-Audio",
  1083. .product_name = "MidiSport 8x8",
  1084. .ifnum = QUIRK_ANY_INTERFACE,
  1085. .type = QUIRK_MIDI_MIDIMAN,
  1086. .data = & (const snd_usb_midi_endpoint_info_t) {
  1087. .out_cables = 0x01ff,
  1088. .in_cables = 0x01ff
  1089. }
  1090. }
  1091. },
  1092. {
  1093. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1094. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1095. .vendor_name = "M-Audio",
  1096. .product_name = "MidiSport 2x4",
  1097. .ifnum = QUIRK_ANY_INTERFACE,
  1098. .type = QUIRK_MIDI_MIDIMAN,
  1099. .data = & (const snd_usb_midi_endpoint_info_t) {
  1100. .out_cables = 0x000f,
  1101. .in_cables = 0x0003
  1102. }
  1103. }
  1104. },
  1105. {
  1106. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1107. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1108. .vendor_name = "M-Audio",
  1109. .product_name = "Quattro",
  1110. .ifnum = QUIRK_ANY_INTERFACE,
  1111. .type = QUIRK_COMPOSITE,
  1112. .data = & (const snd_usb_audio_quirk_t[]) {
  1113. /*
  1114. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1115. * and share endpoints with the other interfaces.
  1116. * Ignore them. The other interfaces can do 24 bits,
  1117. * but captured samples are big-endian (see usbaudio.c).
  1118. */
  1119. {
  1120. .ifnum = 0,
  1121. .type = QUIRK_IGNORE_INTERFACE
  1122. },
  1123. {
  1124. .ifnum = 1,
  1125. .type = QUIRK_IGNORE_INTERFACE
  1126. },
  1127. {
  1128. .ifnum = 2,
  1129. .type = QUIRK_IGNORE_INTERFACE
  1130. },
  1131. {
  1132. .ifnum = 3,
  1133. .type = QUIRK_IGNORE_INTERFACE
  1134. },
  1135. {
  1136. .ifnum = 4,
  1137. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1138. },
  1139. {
  1140. .ifnum = 5,
  1141. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1142. },
  1143. {
  1144. .ifnum = 6,
  1145. .type = QUIRK_IGNORE_INTERFACE
  1146. },
  1147. {
  1148. .ifnum = 7,
  1149. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1150. },
  1151. {
  1152. .ifnum = 8,
  1153. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1154. },
  1155. {
  1156. .ifnum = 9,
  1157. .type = QUIRK_MIDI_MIDIMAN,
  1158. .data = & (const snd_usb_midi_endpoint_info_t) {
  1159. .out_cables = 0x0001,
  1160. .in_cables = 0x0001
  1161. }
  1162. },
  1163. {
  1164. .ifnum = -1
  1165. }
  1166. }
  1167. }
  1168. },
  1169. {
  1170. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1171. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1172. .vendor_name = "M-Audio",
  1173. .product_name = "AudioPhile",
  1174. .ifnum = 6,
  1175. .type = QUIRK_MIDI_MIDIMAN,
  1176. .data = & (const snd_usb_midi_endpoint_info_t) {
  1177. .out_cables = 0x0001,
  1178. .in_cables = 0x0001
  1179. }
  1180. }
  1181. },
  1182. {
  1183. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1184. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1185. .vendor_name = "M-Audio",
  1186. .product_name = "Ozone",
  1187. .ifnum = 3,
  1188. .type = QUIRK_MIDI_MIDIMAN,
  1189. .data = & (const snd_usb_midi_endpoint_info_t) {
  1190. .out_cables = 0x0001,
  1191. .in_cables = 0x0001
  1192. }
  1193. }
  1194. },
  1195. {
  1196. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1197. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1198. .vendor_name = "M-Audio",
  1199. .product_name = "OmniStudio",
  1200. .ifnum = QUIRK_ANY_INTERFACE,
  1201. .type = QUIRK_COMPOSITE,
  1202. .data = & (const snd_usb_audio_quirk_t[]) {
  1203. {
  1204. .ifnum = 0,
  1205. .type = QUIRK_IGNORE_INTERFACE
  1206. },
  1207. {
  1208. .ifnum = 1,
  1209. .type = QUIRK_IGNORE_INTERFACE
  1210. },
  1211. {
  1212. .ifnum = 2,
  1213. .type = QUIRK_IGNORE_INTERFACE
  1214. },
  1215. {
  1216. .ifnum = 3,
  1217. .type = QUIRK_IGNORE_INTERFACE
  1218. },
  1219. {
  1220. .ifnum = 4,
  1221. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1222. },
  1223. {
  1224. .ifnum = 5,
  1225. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1226. },
  1227. {
  1228. .ifnum = 6,
  1229. .type = QUIRK_IGNORE_INTERFACE
  1230. },
  1231. {
  1232. .ifnum = 7,
  1233. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1234. },
  1235. {
  1236. .ifnum = 8,
  1237. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1238. },
  1239. {
  1240. .ifnum = 9,
  1241. .type = QUIRK_MIDI_MIDIMAN,
  1242. .data = & (const snd_usb_midi_endpoint_info_t) {
  1243. .out_cables = 0x0001,
  1244. .in_cables = 0x0001
  1245. }
  1246. },
  1247. {
  1248. .ifnum = -1
  1249. }
  1250. }
  1251. }
  1252. },
  1253. /* Mark of the Unicorn devices */
  1254. {
  1255. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  1256. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1257. USB_DEVICE_ID_MATCH_PRODUCT |
  1258. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  1259. .idVendor = 0x07fd,
  1260. .idProduct = 0x0001,
  1261. .bDeviceSubClass = 2,
  1262. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1263. .vendor_name = "MOTU",
  1264. .product_name = "Fastlane",
  1265. .ifnum = QUIRK_ANY_INTERFACE,
  1266. .type = QUIRK_COMPOSITE,
  1267. .data = & (const snd_usb_audio_quirk_t[]) {
  1268. {
  1269. .ifnum = 0,
  1270. .type = QUIRK_MIDI_RAW
  1271. },
  1272. {
  1273. .ifnum = 1,
  1274. .type = QUIRK_IGNORE_INTERFACE
  1275. },
  1276. {
  1277. .ifnum = -1
  1278. }
  1279. }
  1280. }
  1281. },
  1282. {
  1283. /* Creative Sound Blaster MP3+ */
  1284. USB_DEVICE(0x041e, 0x3010),
  1285. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1286. .vendor_name = "Creative Labs",
  1287. .product_name = "Sound Blaster MP3+",
  1288. .ifnum = QUIRK_NO_INTERFACE
  1289. }
  1290. },
  1291. /* Emagic devices */
  1292. {
  1293. USB_DEVICE(0x086a, 0x0001),
  1294. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1295. .vendor_name = "Emagic",
  1296. /* .product_name = "Unitor8", */
  1297. .ifnum = 2,
  1298. .type = QUIRK_MIDI_EMAGIC,
  1299. .data = & (const snd_usb_midi_endpoint_info_t) {
  1300. .out_cables = 0x80ff,
  1301. .in_cables = 0x80ff
  1302. }
  1303. }
  1304. },
  1305. {
  1306. USB_DEVICE(0x086a, 0x0002),
  1307. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1308. .vendor_name = "Emagic",
  1309. /* .product_name = "AMT8", */
  1310. .ifnum = 2,
  1311. .type = QUIRK_MIDI_EMAGIC,
  1312. .data = & (const snd_usb_midi_endpoint_info_t) {
  1313. .out_cables = 0x80ff,
  1314. .in_cables = 0x80ff
  1315. }
  1316. }
  1317. },
  1318. {
  1319. USB_DEVICE(0x086a, 0x0003),
  1320. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1321. .vendor_name = "Emagic",
  1322. /* .product_name = "MT4", */
  1323. .ifnum = 2,
  1324. .type = QUIRK_MIDI_EMAGIC,
  1325. .data = & (const snd_usb_midi_endpoint_info_t) {
  1326. .out_cables = 0x800f,
  1327. .in_cables = 0x8003
  1328. }
  1329. }
  1330. },
  1331. {
  1332. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  1333. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1334. .vendor_name = "Terratec",
  1335. .product_name = "PHASE 26",
  1336. .ifnum = 3,
  1337. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1338. }
  1339. },
  1340. /* Novation EMS devices */
  1341. {
  1342. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  1343. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1344. .vendor_name = "Novation",
  1345. .product_name = "ReMOTE Audio/XStation",
  1346. .ifnum = 4,
  1347. .type = QUIRK_MIDI_NOVATION
  1348. }
  1349. },
  1350. {
  1351. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  1352. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1353. .vendor_name = "Novation",
  1354. .product_name = "Speedio",
  1355. .ifnum = 3,
  1356. .type = QUIRK_MIDI_NOVATION
  1357. }
  1358. },
  1359. {
  1360. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  1361. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1362. .vendor_name = "Novation",
  1363. .product_name = "ReMOTE25",
  1364. .ifnum = 0,
  1365. .type = QUIRK_MIDI_NOVATION
  1366. }
  1367. },
  1368. {
  1369. USB_DEVICE(0x4752, 0x0011),
  1370. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1371. .vendor_name = "Miditech",
  1372. .product_name = "Midistart-2",
  1373. .ifnum = 0,
  1374. .type = QUIRK_MIDI_MIDITECH
  1375. }
  1376. },
  1377. {
  1378. USB_DEVICE(0x7104, 0x2202),
  1379. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1380. .vendor_name = "Miditech",
  1381. .product_name = "MidiStudio-2",
  1382. .ifnum = 0,
  1383. .type = QUIRK_MIDI_MIDITECH
  1384. }
  1385. },
  1386. {
  1387. /*
  1388. * Some USB MIDI devices don't have an audio control interface,
  1389. * so we have to grab MIDI streaming interfaces here.
  1390. */
  1391. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  1392. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  1393. .bInterfaceClass = USB_CLASS_AUDIO,
  1394. .bInterfaceSubClass = USB_SUBCLASS_MIDI_STREAMING,
  1395. .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
  1396. .ifnum = QUIRK_ANY_INTERFACE,
  1397. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1398. }
  1399. },
  1400. #undef USB_DEVICE_VENDOR_SPEC