quirks-table.h 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509
  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. /* Creative/Toshiba Multimedia Center SB-0500 */
  40. {
  41. USB_DEVICE(0x041e, 0x3048),
  42. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  43. .vendor_name = "Toshiba",
  44. .product_name = "SB-0500",
  45. .ifnum = QUIRK_NO_INTERFACE
  46. }
  47. },
  48. /* Creative/E-Mu devices */
  49. {
  50. USB_DEVICE(0x041e, 0x3010),
  51. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  52. .vendor_name = "Creative Labs",
  53. .product_name = "Sound Blaster MP3+",
  54. .ifnum = QUIRK_NO_INTERFACE
  55. }
  56. },
  57. {
  58. /* E-Mu 0202 USB */
  59. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  60. .idVendor = 0x041e,
  61. .idProduct = 0x3f02,
  62. .bInterfaceClass = USB_CLASS_AUDIO,
  63. },
  64. {
  65. /* E-Mu 0404 USB */
  66. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  67. .idVendor = 0x041e,
  68. .idProduct = 0x3f04,
  69. .bInterfaceClass = USB_CLASS_AUDIO,
  70. },
  71. {
  72. /* E-Mu Tracker Pre */
  73. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  74. .idVendor = 0x041e,
  75. .idProduct = 0x3f0a,
  76. .bInterfaceClass = USB_CLASS_AUDIO,
  77. },
  78. /*
  79. * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
  80. * class matches do not take effect without an explicit ID match.
  81. */
  82. {
  83. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  84. USB_DEVICE_ID_MATCH_INT_CLASS |
  85. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  86. .idVendor = 0x046d,
  87. .idProduct = 0x0850,
  88. .bInterfaceClass = USB_CLASS_AUDIO,
  89. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  90. },
  91. {
  92. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  93. USB_DEVICE_ID_MATCH_INT_CLASS |
  94. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  95. .idVendor = 0x046d,
  96. .idProduct = 0x08ae,
  97. .bInterfaceClass = USB_CLASS_AUDIO,
  98. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  99. },
  100. {
  101. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  102. USB_DEVICE_ID_MATCH_INT_CLASS |
  103. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  104. .idVendor = 0x046d,
  105. .idProduct = 0x08c6,
  106. .bInterfaceClass = USB_CLASS_AUDIO,
  107. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  108. },
  109. {
  110. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  111. USB_DEVICE_ID_MATCH_INT_CLASS |
  112. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  113. .idVendor = 0x046d,
  114. .idProduct = 0x08f0,
  115. .bInterfaceClass = USB_CLASS_AUDIO,
  116. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  117. },
  118. {
  119. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  120. USB_DEVICE_ID_MATCH_INT_CLASS |
  121. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  122. .idVendor = 0x046d,
  123. .idProduct = 0x08f5,
  124. .bInterfaceClass = USB_CLASS_AUDIO,
  125. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  126. },
  127. {
  128. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  129. USB_DEVICE_ID_MATCH_INT_CLASS |
  130. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  131. .idVendor = 0x046d,
  132. .idProduct = 0x08f6,
  133. .bInterfaceClass = USB_CLASS_AUDIO,
  134. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  135. },
  136. {
  137. USB_DEVICE(0x046d, 0x0990),
  138. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  139. .vendor_name = "Logitech, Inc.",
  140. .product_name = "QuickCam Pro 9000",
  141. .ifnum = QUIRK_NO_INTERFACE
  142. }
  143. },
  144. /*
  145. * Yamaha devices
  146. */
  147. #define YAMAHA_DEVICE(id, name) { \
  148. USB_DEVICE(0x0499, id), \
  149. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  150. .vendor_name = "Yamaha", \
  151. .product_name = name, \
  152. .ifnum = QUIRK_ANY_INTERFACE, \
  153. .type = QUIRK_MIDI_YAMAHA \
  154. } \
  155. }
  156. #define YAMAHA_INTERFACE(id, intf, name) { \
  157. USB_DEVICE_VENDOR_SPEC(0x0499, id), \
  158. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  159. .vendor_name = "Yamaha", \
  160. .product_name = name, \
  161. .ifnum = intf, \
  162. .type = QUIRK_MIDI_YAMAHA \
  163. } \
  164. }
  165. YAMAHA_DEVICE(0x1000, "UX256"),
  166. YAMAHA_DEVICE(0x1001, "MU1000"),
  167. YAMAHA_DEVICE(0x1002, "MU2000"),
  168. YAMAHA_DEVICE(0x1003, "MU500"),
  169. YAMAHA_INTERFACE(0x1004, 3, "UW500"),
  170. YAMAHA_DEVICE(0x1005, "MOTIF6"),
  171. YAMAHA_DEVICE(0x1006, "MOTIF7"),
  172. YAMAHA_DEVICE(0x1007, "MOTIF8"),
  173. YAMAHA_DEVICE(0x1008, "UX96"),
  174. YAMAHA_DEVICE(0x1009, "UX16"),
  175. YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
  176. YAMAHA_DEVICE(0x100c, "UC-MX"),
  177. YAMAHA_DEVICE(0x100d, "UC-KX"),
  178. YAMAHA_DEVICE(0x100e, "S08"),
  179. YAMAHA_DEVICE(0x100f, "CLP-150"),
  180. YAMAHA_DEVICE(0x1010, "CLP-170"),
  181. YAMAHA_DEVICE(0x1011, "P-250"),
  182. YAMAHA_DEVICE(0x1012, "TYROS"),
  183. YAMAHA_DEVICE(0x1013, "PF-500"),
  184. YAMAHA_DEVICE(0x1014, "S90"),
  185. YAMAHA_DEVICE(0x1015, "MOTIF-R"),
  186. YAMAHA_DEVICE(0x1016, "MDP-5"),
  187. YAMAHA_DEVICE(0x1017, "CVP-204"),
  188. YAMAHA_DEVICE(0x1018, "CVP-206"),
  189. YAMAHA_DEVICE(0x1019, "CVP-208"),
  190. YAMAHA_DEVICE(0x101a, "CVP-210"),
  191. YAMAHA_DEVICE(0x101b, "PSR-1100"),
  192. YAMAHA_DEVICE(0x101c, "PSR-2100"),
  193. YAMAHA_DEVICE(0x101d, "CLP-175"),
  194. YAMAHA_DEVICE(0x101e, "PSR-K1"),
  195. YAMAHA_DEVICE(0x101f, "EZ-J24"),
  196. YAMAHA_DEVICE(0x1020, "EZ-250i"),
  197. YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
  198. YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
  199. YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
  200. YAMAHA_DEVICE(0x1024, "CVP-301"),
  201. YAMAHA_DEVICE(0x1025, "CVP-303"),
  202. YAMAHA_DEVICE(0x1026, "CVP-305"),
  203. YAMAHA_DEVICE(0x1027, "CVP-307"),
  204. YAMAHA_DEVICE(0x1028, "CVP-309"),
  205. YAMAHA_DEVICE(0x1029, "CVP-309GP"),
  206. YAMAHA_DEVICE(0x102a, "PSR-1500"),
  207. YAMAHA_DEVICE(0x102b, "PSR-3000"),
  208. YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
  209. YAMAHA_DEVICE(0x1030, "PSR-295/293"),
  210. YAMAHA_DEVICE(0x1031, "DGX-205/203"),
  211. YAMAHA_DEVICE(0x1032, "DGX-305"),
  212. YAMAHA_DEVICE(0x1033, "DGX-505"),
  213. YAMAHA_DEVICE(0x1034, NULL),
  214. YAMAHA_DEVICE(0x1035, NULL),
  215. YAMAHA_DEVICE(0x1036, NULL),
  216. YAMAHA_DEVICE(0x1037, NULL),
  217. YAMAHA_DEVICE(0x1038, NULL),
  218. YAMAHA_DEVICE(0x1039, NULL),
  219. YAMAHA_DEVICE(0x103a, NULL),
  220. YAMAHA_DEVICE(0x103b, NULL),
  221. YAMAHA_DEVICE(0x103c, NULL),
  222. YAMAHA_DEVICE(0x103d, NULL),
  223. YAMAHA_DEVICE(0x103e, NULL),
  224. YAMAHA_DEVICE(0x103f, NULL),
  225. YAMAHA_DEVICE(0x1040, NULL),
  226. YAMAHA_DEVICE(0x1041, NULL),
  227. YAMAHA_DEVICE(0x1042, NULL),
  228. YAMAHA_DEVICE(0x1043, NULL),
  229. YAMAHA_DEVICE(0x1044, NULL),
  230. YAMAHA_DEVICE(0x1045, NULL),
  231. YAMAHA_INTERFACE(0x104e, 0, NULL),
  232. YAMAHA_DEVICE(0x104f, NULL),
  233. YAMAHA_DEVICE(0x1050, NULL),
  234. YAMAHA_DEVICE(0x1051, NULL),
  235. YAMAHA_DEVICE(0x1052, NULL),
  236. YAMAHA_INTERFACE(0x1053, 0, NULL),
  237. YAMAHA_INTERFACE(0x1054, 0, NULL),
  238. YAMAHA_DEVICE(0x1055, NULL),
  239. YAMAHA_DEVICE(0x1056, NULL),
  240. YAMAHA_DEVICE(0x1057, NULL),
  241. YAMAHA_DEVICE(0x1058, NULL),
  242. YAMAHA_DEVICE(0x1059, NULL),
  243. YAMAHA_DEVICE(0x105a, NULL),
  244. YAMAHA_DEVICE(0x105b, NULL),
  245. YAMAHA_DEVICE(0x105c, NULL),
  246. YAMAHA_DEVICE(0x105d, NULL),
  247. YAMAHA_DEVICE(0x2000, "DGP-7"),
  248. YAMAHA_DEVICE(0x2001, "DGP-5"),
  249. YAMAHA_DEVICE(0x2002, NULL),
  250. YAMAHA_DEVICE(0x2003, NULL),
  251. YAMAHA_DEVICE(0x5000, "CS1D"),
  252. YAMAHA_DEVICE(0x5001, "DSP1D"),
  253. YAMAHA_DEVICE(0x5002, "DME32"),
  254. YAMAHA_DEVICE(0x5003, "DM2000"),
  255. YAMAHA_DEVICE(0x5004, "02R96"),
  256. YAMAHA_DEVICE(0x5005, "ACU16-C"),
  257. YAMAHA_DEVICE(0x5006, "NHB32-C"),
  258. YAMAHA_DEVICE(0x5007, "DM1000"),
  259. YAMAHA_DEVICE(0x5008, "01V96"),
  260. YAMAHA_DEVICE(0x5009, "SPX2000"),
  261. YAMAHA_DEVICE(0x500a, "PM5D"),
  262. YAMAHA_DEVICE(0x500b, "DME64N"),
  263. YAMAHA_DEVICE(0x500c, "DME24N"),
  264. YAMAHA_DEVICE(0x500d, NULL),
  265. YAMAHA_DEVICE(0x500e, NULL),
  266. YAMAHA_DEVICE(0x500f, NULL),
  267. YAMAHA_DEVICE(0x7000, "DTX"),
  268. YAMAHA_DEVICE(0x7010, "UB99"),
  269. #undef YAMAHA_DEVICE
  270. #undef YAMAHA_INTERFACE
  271. /*
  272. * Roland/RolandED/Edirol/BOSS devices
  273. */
  274. {
  275. USB_DEVICE(0x0582, 0x0000),
  276. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  277. .vendor_name = "Roland",
  278. .product_name = "UA-100",
  279. .ifnum = QUIRK_ANY_INTERFACE,
  280. .type = QUIRK_COMPOSITE,
  281. .data = (const struct snd_usb_audio_quirk[]) {
  282. {
  283. .ifnum = 0,
  284. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  285. .data = & (const struct audioformat) {
  286. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  287. .channels = 4,
  288. .iface = 0,
  289. .altsetting = 1,
  290. .altset_idx = 1,
  291. .attributes = 0,
  292. .endpoint = 0x01,
  293. .ep_attr = 0x09,
  294. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  295. .rate_min = 44100,
  296. .rate_max = 44100,
  297. }
  298. },
  299. {
  300. .ifnum = 1,
  301. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  302. .data = & (const struct audioformat) {
  303. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  304. .channels = 2,
  305. .iface = 1,
  306. .altsetting = 1,
  307. .altset_idx = 1,
  308. .attributes = UAC_EP_CS_ATTR_FILL_MAX,
  309. .endpoint = 0x81,
  310. .ep_attr = 0x05,
  311. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  312. .rate_min = 44100,
  313. .rate_max = 44100,
  314. }
  315. },
  316. {
  317. .ifnum = 2,
  318. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  319. .data = & (const struct snd_usb_midi_endpoint_info) {
  320. .out_cables = 0x0007,
  321. .in_cables = 0x0007
  322. }
  323. },
  324. {
  325. .ifnum = -1
  326. }
  327. }
  328. }
  329. },
  330. {
  331. USB_DEVICE(0x0582, 0x0002),
  332. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  333. .vendor_name = "EDIROL",
  334. .product_name = "UM-4",
  335. .ifnum = QUIRK_ANY_INTERFACE,
  336. .type = QUIRK_COMPOSITE,
  337. .data = (const struct snd_usb_audio_quirk[]) {
  338. {
  339. .ifnum = 0,
  340. .type = QUIRK_IGNORE_INTERFACE
  341. },
  342. {
  343. .ifnum = 1,
  344. .type = QUIRK_IGNORE_INTERFACE
  345. },
  346. {
  347. .ifnum = 2,
  348. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  349. .data = & (const struct snd_usb_midi_endpoint_info) {
  350. .out_cables = 0x000f,
  351. .in_cables = 0x000f
  352. }
  353. },
  354. {
  355. .ifnum = -1
  356. }
  357. }
  358. }
  359. },
  360. {
  361. USB_DEVICE(0x0582, 0x0003),
  362. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  363. .vendor_name = "Roland",
  364. .product_name = "SC-8850",
  365. .ifnum = QUIRK_ANY_INTERFACE,
  366. .type = QUIRK_COMPOSITE,
  367. .data = (const struct snd_usb_audio_quirk[]) {
  368. {
  369. .ifnum = 0,
  370. .type = QUIRK_IGNORE_INTERFACE
  371. },
  372. {
  373. .ifnum = 1,
  374. .type = QUIRK_IGNORE_INTERFACE
  375. },
  376. {
  377. .ifnum = 2,
  378. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  379. .data = & (const struct snd_usb_midi_endpoint_info) {
  380. .out_cables = 0x003f,
  381. .in_cables = 0x003f
  382. }
  383. },
  384. {
  385. .ifnum = -1
  386. }
  387. }
  388. }
  389. },
  390. {
  391. USB_DEVICE(0x0582, 0x0004),
  392. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  393. .vendor_name = "Roland",
  394. .product_name = "U-8",
  395. .ifnum = QUIRK_ANY_INTERFACE,
  396. .type = QUIRK_COMPOSITE,
  397. .data = (const struct snd_usb_audio_quirk[]) {
  398. {
  399. .ifnum = 0,
  400. .type = QUIRK_IGNORE_INTERFACE
  401. },
  402. {
  403. .ifnum = 1,
  404. .type = QUIRK_IGNORE_INTERFACE
  405. },
  406. {
  407. .ifnum = 2,
  408. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  409. .data = & (const struct snd_usb_midi_endpoint_info) {
  410. .out_cables = 0x0005,
  411. .in_cables = 0x0005
  412. }
  413. },
  414. {
  415. .ifnum = -1
  416. }
  417. }
  418. }
  419. },
  420. {
  421. /* Has ID 0x0099 when not in "Advanced Driver" mode.
  422. * The UM-2EX has only one input, but we cannot detect this. */
  423. USB_DEVICE(0x0582, 0x0005),
  424. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  425. .vendor_name = "EDIROL",
  426. .product_name = "UM-2",
  427. .ifnum = QUIRK_ANY_INTERFACE,
  428. .type = QUIRK_COMPOSITE,
  429. .data = (const struct snd_usb_audio_quirk[]) {
  430. {
  431. .ifnum = 0,
  432. .type = QUIRK_IGNORE_INTERFACE
  433. },
  434. {
  435. .ifnum = 1,
  436. .type = QUIRK_IGNORE_INTERFACE
  437. },
  438. {
  439. .ifnum = 2,
  440. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  441. .data = & (const struct snd_usb_midi_endpoint_info) {
  442. .out_cables = 0x0003,
  443. .in_cables = 0x0003
  444. }
  445. },
  446. {
  447. .ifnum = -1
  448. }
  449. }
  450. }
  451. },
  452. {
  453. USB_DEVICE(0x0582, 0x0007),
  454. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  455. .vendor_name = "Roland",
  456. .product_name = "SC-8820",
  457. .ifnum = QUIRK_ANY_INTERFACE,
  458. .type = QUIRK_COMPOSITE,
  459. .data = (const struct snd_usb_audio_quirk[]) {
  460. {
  461. .ifnum = 0,
  462. .type = QUIRK_IGNORE_INTERFACE
  463. },
  464. {
  465. .ifnum = 1,
  466. .type = QUIRK_IGNORE_INTERFACE
  467. },
  468. {
  469. .ifnum = 2,
  470. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  471. .data = & (const struct snd_usb_midi_endpoint_info) {
  472. .out_cables = 0x0013,
  473. .in_cables = 0x0013
  474. }
  475. },
  476. {
  477. .ifnum = -1
  478. }
  479. }
  480. }
  481. },
  482. {
  483. USB_DEVICE(0x0582, 0x0008),
  484. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  485. .vendor_name = "Roland",
  486. .product_name = "PC-300",
  487. .ifnum = QUIRK_ANY_INTERFACE,
  488. .type = QUIRK_COMPOSITE,
  489. .data = (const struct snd_usb_audio_quirk[]) {
  490. {
  491. .ifnum = 0,
  492. .type = QUIRK_IGNORE_INTERFACE
  493. },
  494. {
  495. .ifnum = 1,
  496. .type = QUIRK_IGNORE_INTERFACE
  497. },
  498. {
  499. .ifnum = 2,
  500. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  501. .data = & (const struct snd_usb_midi_endpoint_info) {
  502. .out_cables = 0x0001,
  503. .in_cables = 0x0001
  504. }
  505. },
  506. {
  507. .ifnum = -1
  508. }
  509. }
  510. }
  511. },
  512. {
  513. /* has ID 0x009d when not in "Advanced Driver" mode */
  514. USB_DEVICE(0x0582, 0x0009),
  515. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  516. .vendor_name = "EDIROL",
  517. .product_name = "UM-1",
  518. .ifnum = QUIRK_ANY_INTERFACE,
  519. .type = QUIRK_COMPOSITE,
  520. .data = (const struct snd_usb_audio_quirk[]) {
  521. {
  522. .ifnum = 0,
  523. .type = QUIRK_IGNORE_INTERFACE
  524. },
  525. {
  526. .ifnum = 1,
  527. .type = QUIRK_IGNORE_INTERFACE
  528. },
  529. {
  530. .ifnum = 2,
  531. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  532. .data = & (const struct snd_usb_midi_endpoint_info) {
  533. .out_cables = 0x0001,
  534. .in_cables = 0x0001
  535. }
  536. },
  537. {
  538. .ifnum = -1
  539. }
  540. }
  541. }
  542. },
  543. {
  544. USB_DEVICE(0x0582, 0x000b),
  545. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  546. .vendor_name = "Roland",
  547. .product_name = "SK-500",
  548. .ifnum = QUIRK_ANY_INTERFACE,
  549. .type = QUIRK_COMPOSITE,
  550. .data = (const struct snd_usb_audio_quirk[]) {
  551. {
  552. .ifnum = 0,
  553. .type = QUIRK_IGNORE_INTERFACE
  554. },
  555. {
  556. .ifnum = 1,
  557. .type = QUIRK_IGNORE_INTERFACE
  558. },
  559. {
  560. .ifnum = 2,
  561. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  562. .data = & (const struct snd_usb_midi_endpoint_info) {
  563. .out_cables = 0x0013,
  564. .in_cables = 0x0013
  565. }
  566. },
  567. {
  568. .ifnum = -1
  569. }
  570. }
  571. }
  572. },
  573. {
  574. /* thanks to Emiliano Grilli <emillo@libero.it>
  575. * for helping researching this data */
  576. USB_DEVICE(0x0582, 0x000c),
  577. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  578. .vendor_name = "Roland",
  579. .product_name = "SC-D70",
  580. .ifnum = QUIRK_ANY_INTERFACE,
  581. .type = QUIRK_COMPOSITE,
  582. .data = (const struct snd_usb_audio_quirk[]) {
  583. {
  584. .ifnum = 0,
  585. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  586. .data = & (const struct audioformat) {
  587. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  588. .channels = 2,
  589. .iface = 0,
  590. .altsetting = 1,
  591. .altset_idx = 1,
  592. .attributes = 0,
  593. .endpoint = 0x01,
  594. .ep_attr = 0x01,
  595. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  596. .rate_min = 44100,
  597. .rate_max = 44100,
  598. }
  599. },
  600. {
  601. .ifnum = 1,
  602. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  603. .data = & (const struct audioformat) {
  604. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  605. .channels = 2,
  606. .iface = 1,
  607. .altsetting = 1,
  608. .altset_idx = 1,
  609. .attributes = 0,
  610. .endpoint = 0x81,
  611. .ep_attr = 0x01,
  612. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  613. .rate_min = 44100,
  614. .rate_max = 44100,
  615. }
  616. },
  617. {
  618. .ifnum = 2,
  619. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  620. .data = & (const struct snd_usb_midi_endpoint_info) {
  621. .out_cables = 0x0007,
  622. .in_cables = 0x0007
  623. }
  624. },
  625. {
  626. .ifnum = -1
  627. }
  628. }
  629. }
  630. },
  631. { /*
  632. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  633. * If the advanced mode switch at the back of the unit is off, the
  634. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  635. * but offers only 16-bit PCM.
  636. * In advanced mode, the UA-5 will output S24_3LE samples (two
  637. * channels) at the rate indicated on the front switch, including
  638. * the 96kHz sample rate.
  639. */
  640. USB_DEVICE(0x0582, 0x0010),
  641. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  642. .vendor_name = "EDIROL",
  643. .product_name = "UA-5",
  644. .ifnum = QUIRK_ANY_INTERFACE,
  645. .type = QUIRK_COMPOSITE,
  646. .data = (const struct snd_usb_audio_quirk[]) {
  647. {
  648. .ifnum = 1,
  649. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  650. },
  651. {
  652. .ifnum = 2,
  653. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  654. },
  655. {
  656. .ifnum = -1
  657. }
  658. }
  659. }
  660. },
  661. {
  662. /* has ID 0x0013 when not in "Advanced Driver" mode */
  663. USB_DEVICE(0x0582, 0x0012),
  664. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  665. .vendor_name = "Roland",
  666. .product_name = "XV-5050",
  667. .ifnum = 0,
  668. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  669. .data = & (const struct snd_usb_midi_endpoint_info) {
  670. .out_cables = 0x0001,
  671. .in_cables = 0x0001
  672. }
  673. }
  674. },
  675. {
  676. /* has ID 0x0015 when not in "Advanced Driver" mode */
  677. USB_DEVICE(0x0582, 0x0014),
  678. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  679. .vendor_name = "EDIROL",
  680. .product_name = "UM-880",
  681. .ifnum = 0,
  682. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  683. .data = & (const struct snd_usb_midi_endpoint_info) {
  684. .out_cables = 0x01ff,
  685. .in_cables = 0x01ff
  686. }
  687. }
  688. },
  689. {
  690. /* has ID 0x0017 when not in "Advanced Driver" mode */
  691. USB_DEVICE(0x0582, 0x0016),
  692. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  693. .vendor_name = "EDIROL",
  694. .product_name = "SD-90",
  695. .ifnum = QUIRK_ANY_INTERFACE,
  696. .type = QUIRK_COMPOSITE,
  697. .data = (const struct snd_usb_audio_quirk[]) {
  698. {
  699. .ifnum = 0,
  700. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  701. },
  702. {
  703. .ifnum = 1,
  704. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  705. },
  706. {
  707. .ifnum = 2,
  708. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  709. .data = & (const struct snd_usb_midi_endpoint_info) {
  710. .out_cables = 0x000f,
  711. .in_cables = 0x000f
  712. }
  713. },
  714. {
  715. .ifnum = -1
  716. }
  717. }
  718. }
  719. },
  720. {
  721. /* has ID 0x001c when not in "Advanced Driver" mode */
  722. USB_DEVICE(0x0582, 0x001b),
  723. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  724. .vendor_name = "Roland",
  725. .product_name = "MMP-2",
  726. .ifnum = QUIRK_ANY_INTERFACE,
  727. .type = QUIRK_COMPOSITE,
  728. .data = (const struct snd_usb_audio_quirk[]) {
  729. {
  730. .ifnum = 0,
  731. .type = QUIRK_IGNORE_INTERFACE
  732. },
  733. {
  734. .ifnum = 1,
  735. .type = QUIRK_IGNORE_INTERFACE
  736. },
  737. {
  738. .ifnum = 2,
  739. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  740. .data = & (const struct snd_usb_midi_endpoint_info) {
  741. .out_cables = 0x0001,
  742. .in_cables = 0x0001
  743. }
  744. },
  745. {
  746. .ifnum = -1
  747. }
  748. }
  749. }
  750. },
  751. {
  752. /* has ID 0x001e when not in "Advanced Driver" mode */
  753. USB_DEVICE(0x0582, 0x001d),
  754. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  755. .vendor_name = "Roland",
  756. .product_name = "V-SYNTH",
  757. .ifnum = 0,
  758. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  759. .data = & (const struct snd_usb_midi_endpoint_info) {
  760. .out_cables = 0x0001,
  761. .in_cables = 0x0001
  762. }
  763. }
  764. },
  765. {
  766. /* has ID 0x0024 when not in "Advanced Driver" mode */
  767. USB_DEVICE(0x0582, 0x0023),
  768. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  769. .vendor_name = "EDIROL",
  770. .product_name = "UM-550",
  771. .ifnum = 0,
  772. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  773. .data = & (const struct snd_usb_midi_endpoint_info) {
  774. .out_cables = 0x003f,
  775. .in_cables = 0x003f
  776. }
  777. }
  778. },
  779. {
  780. /*
  781. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  782. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  783. * and no MIDI.
  784. */
  785. USB_DEVICE(0x0582, 0x0025),
  786. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  787. .vendor_name = "EDIROL",
  788. .product_name = "UA-20",
  789. .ifnum = QUIRK_ANY_INTERFACE,
  790. .type = QUIRK_COMPOSITE,
  791. .data = (const struct snd_usb_audio_quirk[]) {
  792. {
  793. .ifnum = 0,
  794. .type = QUIRK_IGNORE_INTERFACE
  795. },
  796. {
  797. .ifnum = 1,
  798. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  799. .data = & (const struct audioformat) {
  800. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  801. .channels = 2,
  802. .iface = 1,
  803. .altsetting = 1,
  804. .altset_idx = 1,
  805. .attributes = 0,
  806. .endpoint = 0x01,
  807. .ep_attr = 0x01,
  808. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  809. .rate_min = 44100,
  810. .rate_max = 44100,
  811. }
  812. },
  813. {
  814. .ifnum = 2,
  815. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  816. .data = & (const struct audioformat) {
  817. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  818. .channels = 2,
  819. .iface = 2,
  820. .altsetting = 1,
  821. .altset_idx = 1,
  822. .attributes = 0,
  823. .endpoint = 0x82,
  824. .ep_attr = 0x01,
  825. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  826. .rate_min = 44100,
  827. .rate_max = 44100,
  828. }
  829. },
  830. {
  831. .ifnum = 3,
  832. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  833. .data = & (const struct snd_usb_midi_endpoint_info) {
  834. .out_cables = 0x0001,
  835. .in_cables = 0x0001
  836. }
  837. },
  838. {
  839. .ifnum = -1
  840. }
  841. }
  842. }
  843. },
  844. {
  845. /* has ID 0x0028 when not in "Advanced Driver" mode */
  846. USB_DEVICE(0x0582, 0x0027),
  847. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  848. .vendor_name = "EDIROL",
  849. .product_name = "SD-20",
  850. .ifnum = 0,
  851. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  852. .data = & (const struct snd_usb_midi_endpoint_info) {
  853. .out_cables = 0x0003,
  854. .in_cables = 0x0007
  855. }
  856. }
  857. },
  858. {
  859. /* has ID 0x002a when not in "Advanced Driver" mode */
  860. USB_DEVICE(0x0582, 0x0029),
  861. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  862. .vendor_name = "EDIROL",
  863. .product_name = "SD-80",
  864. .ifnum = 0,
  865. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  866. .data = & (const struct snd_usb_midi_endpoint_info) {
  867. .out_cables = 0x000f,
  868. .in_cables = 0x000f
  869. }
  870. }
  871. },
  872. { /*
  873. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  874. * If the sample format switch is not in an advanced setting, the
  875. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  876. * but offers only 16-bit PCM and no MIDI.
  877. */
  878. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  879. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  880. .vendor_name = "EDIROL",
  881. .product_name = "UA-700",
  882. .ifnum = QUIRK_ANY_INTERFACE,
  883. .type = QUIRK_COMPOSITE,
  884. .data = (const struct snd_usb_audio_quirk[]) {
  885. {
  886. .ifnum = 1,
  887. .type = QUIRK_AUDIO_EDIROL_UAXX
  888. },
  889. {
  890. .ifnum = 2,
  891. .type = QUIRK_AUDIO_EDIROL_UAXX
  892. },
  893. {
  894. .ifnum = 3,
  895. .type = QUIRK_AUDIO_EDIROL_UAXX
  896. },
  897. {
  898. .ifnum = -1
  899. }
  900. }
  901. }
  902. },
  903. {
  904. /* has ID 0x002e when not in "Advanced Driver" mode */
  905. USB_DEVICE(0x0582, 0x002d),
  906. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  907. .vendor_name = "Roland",
  908. .product_name = "XV-2020",
  909. .ifnum = 0,
  910. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  911. .data = & (const struct snd_usb_midi_endpoint_info) {
  912. .out_cables = 0x0001,
  913. .in_cables = 0x0001
  914. }
  915. }
  916. },
  917. {
  918. /* has ID 0x0030 when not in "Advanced Driver" mode */
  919. USB_DEVICE(0x0582, 0x002f),
  920. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  921. .vendor_name = "Roland",
  922. .product_name = "VariOS",
  923. .ifnum = 0,
  924. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  925. .data = & (const struct snd_usb_midi_endpoint_info) {
  926. .out_cables = 0x0007,
  927. .in_cables = 0x0007
  928. }
  929. }
  930. },
  931. {
  932. /* has ID 0x0034 when not in "Advanced Driver" mode */
  933. USB_DEVICE(0x0582, 0x0033),
  934. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  935. .vendor_name = "EDIROL",
  936. .product_name = "PCR",
  937. .ifnum = 0,
  938. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  939. .data = & (const struct snd_usb_midi_endpoint_info) {
  940. .out_cables = 0x0003,
  941. .in_cables = 0x0007
  942. }
  943. }
  944. },
  945. /* TODO: add Roland M-1000 support */
  946. {
  947. /*
  948. * Has ID 0x0038 when not in "Advanced Driver" mode;
  949. * later revisions use IDs 0x0054 and 0x00a2.
  950. */
  951. USB_DEVICE(0x0582, 0x0037),
  952. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  953. .vendor_name = "Roland",
  954. .product_name = "Digital Piano",
  955. .ifnum = 0,
  956. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  957. .data = & (const struct snd_usb_midi_endpoint_info) {
  958. .out_cables = 0x0001,
  959. .in_cables = 0x0001
  960. }
  961. }
  962. },
  963. {
  964. /*
  965. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  966. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  967. * and no MIDI.
  968. */
  969. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  970. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  971. .vendor_name = "BOSS",
  972. .product_name = "GS-10",
  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 = 3,
  986. .type = QUIRK_MIDI_STANDARD_INTERFACE
  987. },
  988. {
  989. .ifnum = -1
  990. }
  991. }
  992. }
  993. },
  994. {
  995. /* has ID 0x0041 when not in "Advanced Driver" mode */
  996. USB_DEVICE(0x0582, 0x0040),
  997. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  998. .vendor_name = "Roland",
  999. .product_name = "GI-20",
  1000. .ifnum = 0,
  1001. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1002. .data = & (const struct snd_usb_midi_endpoint_info) {
  1003. .out_cables = 0x0001,
  1004. .in_cables = 0x0001
  1005. }
  1006. }
  1007. },
  1008. {
  1009. /* has ID 0x0043 when not in "Advanced Driver" mode */
  1010. USB_DEVICE(0x0582, 0x0042),
  1011. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1012. .vendor_name = "Roland",
  1013. .product_name = "RS-70",
  1014. .ifnum = 0,
  1015. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1016. .data = & (const struct snd_usb_midi_endpoint_info) {
  1017. .out_cables = 0x0001,
  1018. .in_cables = 0x0001
  1019. }
  1020. }
  1021. },
  1022. {
  1023. /* has ID 0x0049 when not in "Advanced Driver" mode */
  1024. USB_DEVICE(0x0582, 0x0047),
  1025. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1026. /* .vendor_name = "EDIROL", */
  1027. /* .product_name = "UR-80", */
  1028. .ifnum = QUIRK_ANY_INTERFACE,
  1029. .type = QUIRK_COMPOSITE,
  1030. .data = (const struct snd_usb_audio_quirk[]) {
  1031. /* in the 96 kHz modes, only interface 1 is there */
  1032. {
  1033. .ifnum = 1,
  1034. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1035. },
  1036. {
  1037. .ifnum = 2,
  1038. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1039. },
  1040. {
  1041. .ifnum = -1
  1042. }
  1043. }
  1044. }
  1045. },
  1046. {
  1047. /* has ID 0x004a when not in "Advanced Driver" mode */
  1048. USB_DEVICE(0x0582, 0x0048),
  1049. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1050. /* .vendor_name = "EDIROL", */
  1051. /* .product_name = "UR-80", */
  1052. .ifnum = 0,
  1053. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1054. .data = & (const struct snd_usb_midi_endpoint_info) {
  1055. .out_cables = 0x0003,
  1056. .in_cables = 0x0007
  1057. }
  1058. }
  1059. },
  1060. /* TODO: add Edirol M-100FX support */
  1061. {
  1062. /* has ID 0x004e when not in "Advanced Driver" mode */
  1063. USB_DEVICE(0x0582, 0x004c),
  1064. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1065. .vendor_name = "EDIROL",
  1066. .product_name = "PCR-A",
  1067. .ifnum = QUIRK_ANY_INTERFACE,
  1068. .type = QUIRK_COMPOSITE,
  1069. .data = (const struct snd_usb_audio_quirk[]) {
  1070. {
  1071. .ifnum = 1,
  1072. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1073. },
  1074. {
  1075. .ifnum = 2,
  1076. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1077. },
  1078. {
  1079. .ifnum = -1
  1080. }
  1081. }
  1082. }
  1083. },
  1084. {
  1085. /* has ID 0x004f when not in "Advanced Driver" mode */
  1086. USB_DEVICE(0x0582, 0x004d),
  1087. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1088. .vendor_name = "EDIROL",
  1089. .product_name = "PCR-A",
  1090. .ifnum = 0,
  1091. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1092. .data = & (const struct snd_usb_midi_endpoint_info) {
  1093. .out_cables = 0x0003,
  1094. .in_cables = 0x0007
  1095. }
  1096. }
  1097. },
  1098. {
  1099. /*
  1100. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  1101. * is standard compliant, but has only 16-bit PCM.
  1102. */
  1103. USB_DEVICE(0x0582, 0x0050),
  1104. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1105. .vendor_name = "EDIROL",
  1106. .product_name = "UA-3FX",
  1107. .ifnum = QUIRK_ANY_INTERFACE,
  1108. .type = QUIRK_COMPOSITE,
  1109. .data = (const struct snd_usb_audio_quirk[]) {
  1110. {
  1111. .ifnum = 1,
  1112. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1113. },
  1114. {
  1115. .ifnum = 2,
  1116. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1117. },
  1118. {
  1119. .ifnum = -1
  1120. }
  1121. }
  1122. }
  1123. },
  1124. {
  1125. USB_DEVICE(0x0582, 0x0052),
  1126. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1127. .vendor_name = "EDIROL",
  1128. .product_name = "UM-1SX",
  1129. .ifnum = 0,
  1130. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1131. }
  1132. },
  1133. {
  1134. USB_DEVICE(0x0582, 0x0060),
  1135. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1136. .vendor_name = "Roland",
  1137. .product_name = "EXR Series",
  1138. .ifnum = 0,
  1139. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1140. }
  1141. },
  1142. {
  1143. /* has ID 0x0066 when not in "Advanced Driver" mode */
  1144. USB_DEVICE(0x0582, 0x0064),
  1145. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1146. /* .vendor_name = "EDIROL", */
  1147. /* .product_name = "PCR-1", */
  1148. .ifnum = QUIRK_ANY_INTERFACE,
  1149. .type = QUIRK_COMPOSITE,
  1150. .data = (const struct snd_usb_audio_quirk[]) {
  1151. {
  1152. .ifnum = 1,
  1153. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1154. },
  1155. {
  1156. .ifnum = 2,
  1157. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1158. },
  1159. {
  1160. .ifnum = -1
  1161. }
  1162. }
  1163. }
  1164. },
  1165. {
  1166. /* has ID 0x0067 when not in "Advanced Driver" mode */
  1167. USB_DEVICE(0x0582, 0x0065),
  1168. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1169. /* .vendor_name = "EDIROL", */
  1170. /* .product_name = "PCR-1", */
  1171. .ifnum = 0,
  1172. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1173. .data = & (const struct snd_usb_midi_endpoint_info) {
  1174. .out_cables = 0x0001,
  1175. .in_cables = 0x0003
  1176. }
  1177. }
  1178. },
  1179. {
  1180. /* has ID 0x006b when not in "Advanced Driver" mode */
  1181. USB_DEVICE_VENDOR_SPEC(0x0582, 0x006a),
  1182. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1183. .vendor_name = "Roland",
  1184. .product_name = "SP-606",
  1185. .ifnum = 3,
  1186. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1187. .data = & (const struct snd_usb_midi_endpoint_info) {
  1188. .out_cables = 0x0001,
  1189. .in_cables = 0x0001
  1190. }
  1191. }
  1192. },
  1193. {
  1194. /* has ID 0x006e when not in "Advanced Driver" mode */
  1195. USB_DEVICE(0x0582, 0x006d),
  1196. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1197. .vendor_name = "Roland",
  1198. .product_name = "FANTOM-X",
  1199. .ifnum = 0,
  1200. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1201. .data = & (const struct snd_usb_midi_endpoint_info) {
  1202. .out_cables = 0x0001,
  1203. .in_cables = 0x0001
  1204. }
  1205. }
  1206. },
  1207. { /*
  1208. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  1209. * If the switch is not in an advanced setting, the UA-25 has
  1210. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  1211. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1212. */
  1213. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  1214. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1215. .vendor_name = "EDIROL",
  1216. .product_name = "UA-25",
  1217. .ifnum = QUIRK_ANY_INTERFACE,
  1218. .type = QUIRK_COMPOSITE,
  1219. .data = (const struct snd_usb_audio_quirk[]) {
  1220. {
  1221. .ifnum = 0,
  1222. .type = QUIRK_AUDIO_EDIROL_UAXX
  1223. },
  1224. {
  1225. .ifnum = 1,
  1226. .type = QUIRK_AUDIO_EDIROL_UAXX
  1227. },
  1228. {
  1229. .ifnum = 2,
  1230. .type = QUIRK_AUDIO_EDIROL_UAXX
  1231. },
  1232. {
  1233. .ifnum = -1
  1234. }
  1235. }
  1236. }
  1237. },
  1238. {
  1239. /* has ID 0x0076 when not in "Advanced Driver" mode */
  1240. USB_DEVICE(0x0582, 0x0075),
  1241. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1242. .vendor_name = "BOSS",
  1243. .product_name = "DR-880",
  1244. .ifnum = 0,
  1245. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1246. .data = & (const struct snd_usb_midi_endpoint_info) {
  1247. .out_cables = 0x0001,
  1248. .in_cables = 0x0001
  1249. }
  1250. }
  1251. },
  1252. {
  1253. /* has ID 0x007b when not in "Advanced Driver" mode */
  1254. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1255. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1256. .vendor_name = "Roland",
  1257. /* "RD" or "RD-700SX"? */
  1258. .ifnum = 0,
  1259. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1260. .data = & (const struct snd_usb_midi_endpoint_info) {
  1261. .out_cables = 0x0003,
  1262. .in_cables = 0x0003
  1263. }
  1264. }
  1265. },
  1266. {
  1267. /* has ID 0x0081 when not in "Advanced Driver" mode */
  1268. USB_DEVICE(0x0582, 0x0080),
  1269. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1270. .vendor_name = "Roland",
  1271. .product_name = "G-70",
  1272. .ifnum = 0,
  1273. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1274. .data = & (const struct snd_usb_midi_endpoint_info) {
  1275. .out_cables = 0x0001,
  1276. .in_cables = 0x0001
  1277. }
  1278. }
  1279. },
  1280. /* TODO: add Roland V-SYNTH XT support */
  1281. /* TODO: add BOSS GT-PRO support */
  1282. {
  1283. /* has ID 0x008c when not in "Advanced Driver" mode */
  1284. USB_DEVICE(0x0582, 0x008b),
  1285. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1286. .vendor_name = "EDIROL",
  1287. .product_name = "PC-50",
  1288. .ifnum = 0,
  1289. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1290. .data = & (const struct snd_usb_midi_endpoint_info) {
  1291. .out_cables = 0x0001,
  1292. .in_cables = 0x0001
  1293. }
  1294. }
  1295. },
  1296. /* TODO: add Edirol PC-80 support */
  1297. {
  1298. USB_DEVICE(0x0582, 0x0096),
  1299. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1300. .vendor_name = "EDIROL",
  1301. .product_name = "UA-1EX",
  1302. .ifnum = QUIRK_ANY_INTERFACE,
  1303. .type = QUIRK_COMPOSITE,
  1304. .data = (const struct snd_usb_audio_quirk[]) {
  1305. {
  1306. .ifnum = 0,
  1307. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1308. },
  1309. {
  1310. .ifnum = 1,
  1311. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1312. },
  1313. {
  1314. .ifnum = -1
  1315. }
  1316. }
  1317. }
  1318. },
  1319. {
  1320. USB_DEVICE(0x0582, 0x009a),
  1321. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1322. .vendor_name = "EDIROL",
  1323. .product_name = "UM-3EX",
  1324. .ifnum = 0,
  1325. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1326. .data = & (const struct snd_usb_midi_endpoint_info) {
  1327. .out_cables = 0x000f,
  1328. .in_cables = 0x000f
  1329. }
  1330. }
  1331. },
  1332. {
  1333. /*
  1334. * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
  1335. * is standard compliant, but has only 16-bit PCM and no MIDI.
  1336. */
  1337. USB_DEVICE(0x0582, 0x00a3),
  1338. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1339. .vendor_name = "EDIROL",
  1340. .product_name = "UA-4FX",
  1341. .ifnum = QUIRK_ANY_INTERFACE,
  1342. .type = QUIRK_COMPOSITE,
  1343. .data = (const struct snd_usb_audio_quirk[]) {
  1344. {
  1345. .ifnum = 0,
  1346. .type = QUIRK_AUDIO_EDIROL_UAXX
  1347. },
  1348. {
  1349. .ifnum = 1,
  1350. .type = QUIRK_AUDIO_EDIROL_UAXX
  1351. },
  1352. {
  1353. .ifnum = 2,
  1354. .type = QUIRK_AUDIO_EDIROL_UAXX
  1355. },
  1356. {
  1357. .ifnum = -1
  1358. }
  1359. }
  1360. }
  1361. },
  1362. /* TODO: add Edirol MD-P1 support */
  1363. {
  1364. USB_DEVICE(0x582, 0x00a6),
  1365. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1366. .vendor_name = "Roland",
  1367. .product_name = "Juno-G",
  1368. .ifnum = 0,
  1369. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1370. .data = & (const struct snd_usb_midi_endpoint_info) {
  1371. .out_cables = 0x0001,
  1372. .in_cables = 0x0001
  1373. }
  1374. }
  1375. },
  1376. {
  1377. /* Roland SH-201 */
  1378. USB_DEVICE(0x0582, 0x00ad),
  1379. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1380. .vendor_name = "Roland",
  1381. .product_name = "SH-201",
  1382. .ifnum = QUIRK_ANY_INTERFACE,
  1383. .type = QUIRK_COMPOSITE,
  1384. .data = (const struct snd_usb_audio_quirk[]) {
  1385. {
  1386. .ifnum = 0,
  1387. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1388. },
  1389. {
  1390. .ifnum = 1,
  1391. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1392. },
  1393. {
  1394. .ifnum = 2,
  1395. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1396. .data = & (const struct snd_usb_midi_endpoint_info) {
  1397. .out_cables = 0x0001,
  1398. .in_cables = 0x0001
  1399. }
  1400. },
  1401. {
  1402. .ifnum = -1
  1403. }
  1404. }
  1405. }
  1406. },
  1407. {
  1408. /* Roland SonicCell */
  1409. USB_DEVICE(0x0582, 0x00c2),
  1410. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1411. .vendor_name = "Roland",
  1412. .product_name = "SonicCell",
  1413. .ifnum = QUIRK_ANY_INTERFACE,
  1414. .type = QUIRK_COMPOSITE,
  1415. .data = (const struct snd_usb_audio_quirk[]) {
  1416. {
  1417. .ifnum = 0,
  1418. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1419. },
  1420. {
  1421. .ifnum = 1,
  1422. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1423. },
  1424. {
  1425. .ifnum = 2,
  1426. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1427. .data = & (const struct snd_usb_midi_endpoint_info) {
  1428. .out_cables = 0x0001,
  1429. .in_cables = 0x0001
  1430. }
  1431. },
  1432. {
  1433. .ifnum = -1
  1434. }
  1435. }
  1436. }
  1437. },
  1438. {
  1439. /* Edirol M-16DX */
  1440. /* FIXME: This quirk gives a good-working capture stream but the
  1441. * playback seems problematic because of lacking of sync
  1442. * with capture stream. It needs to sync with the capture
  1443. * clock. As now, you'll get frequent sound distortions
  1444. * via the playback.
  1445. */
  1446. USB_DEVICE(0x0582, 0x00c4),
  1447. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1448. .ifnum = QUIRK_ANY_INTERFACE,
  1449. .type = QUIRK_COMPOSITE,
  1450. .data = (const struct snd_usb_audio_quirk[]) {
  1451. {
  1452. .ifnum = 0,
  1453. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1454. },
  1455. {
  1456. .ifnum = 1,
  1457. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1458. },
  1459. {
  1460. .ifnum = 2,
  1461. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1462. .data = & (const struct snd_usb_midi_endpoint_info) {
  1463. .out_cables = 0x0001,
  1464. .in_cables = 0x0001
  1465. }
  1466. },
  1467. {
  1468. .ifnum = -1
  1469. }
  1470. }
  1471. }
  1472. },
  1473. {
  1474. /* BOSS GT-10 */
  1475. USB_DEVICE(0x0582, 0x00da),
  1476. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1477. .ifnum = QUIRK_ANY_INTERFACE,
  1478. .type = QUIRK_COMPOSITE,
  1479. .data = (const struct snd_usb_audio_quirk[]) {
  1480. {
  1481. .ifnum = 0,
  1482. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1483. },
  1484. {
  1485. .ifnum = 1,
  1486. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1487. },
  1488. {
  1489. .ifnum = 2,
  1490. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1491. .data = & (const struct snd_usb_midi_endpoint_info) {
  1492. .out_cables = 0x0001,
  1493. .in_cables = 0x0001
  1494. }
  1495. },
  1496. {
  1497. .ifnum = -1
  1498. }
  1499. }
  1500. }
  1501. },
  1502. {
  1503. /* Advanced modes of the Edirol UA-25EX.
  1504. * For the standard mode, UA-25EX has ID 0582:00e7, which
  1505. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1506. */
  1507. USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
  1508. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1509. .vendor_name = "EDIROL",
  1510. .product_name = "UA-25EX",
  1511. .ifnum = QUIRK_ANY_INTERFACE,
  1512. .type = QUIRK_COMPOSITE,
  1513. .data = (const struct snd_usb_audio_quirk[]) {
  1514. {
  1515. .ifnum = 0,
  1516. .type = QUIRK_AUDIO_EDIROL_UAXX
  1517. },
  1518. {
  1519. .ifnum = 1,
  1520. .type = QUIRK_AUDIO_EDIROL_UAXX
  1521. },
  1522. {
  1523. .ifnum = 2,
  1524. .type = QUIRK_AUDIO_EDIROL_UAXX
  1525. },
  1526. {
  1527. .ifnum = -1
  1528. }
  1529. }
  1530. }
  1531. },
  1532. {
  1533. /* has ID 0x00ea when not in Advanced Driver mode */
  1534. USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e9),
  1535. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1536. /* .vendor_name = "Roland", */
  1537. /* .product_name = "UA-1G", */
  1538. .ifnum = QUIRK_ANY_INTERFACE,
  1539. .type = QUIRK_COMPOSITE,
  1540. .data = (const struct snd_usb_audio_quirk[]) {
  1541. {
  1542. .ifnum = 0,
  1543. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1544. },
  1545. {
  1546. .ifnum = 1,
  1547. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1548. },
  1549. {
  1550. .ifnum = -1
  1551. }
  1552. }
  1553. }
  1554. },
  1555. {
  1556. /* has ID 0x0110 when not in Advanced Driver mode */
  1557. USB_DEVICE_VENDOR_SPEC(0x0582, 0x010f),
  1558. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1559. /* .vendor_name = "Roland", */
  1560. /* .product_name = "A-PRO", */
  1561. .ifnum = 1,
  1562. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1563. .data = & (const struct snd_usb_midi_endpoint_info) {
  1564. .out_cables = 0x0003,
  1565. .in_cables = 0x0007
  1566. }
  1567. }
  1568. },
  1569. {
  1570. USB_DEVICE(0x0582, 0x0113),
  1571. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1572. /* .vendor_name = "BOSS", */
  1573. /* .product_name = "ME-25", */
  1574. .ifnum = QUIRK_ANY_INTERFACE,
  1575. .type = QUIRK_COMPOSITE,
  1576. .data = (const struct snd_usb_audio_quirk[]) {
  1577. {
  1578. .ifnum = 0,
  1579. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1580. },
  1581. {
  1582. .ifnum = 1,
  1583. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1584. },
  1585. {
  1586. .ifnum = 2,
  1587. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1588. .data = & (const struct snd_usb_midi_endpoint_info) {
  1589. .out_cables = 0x0001,
  1590. .in_cables = 0x0001
  1591. }
  1592. },
  1593. {
  1594. .ifnum = -1
  1595. }
  1596. }
  1597. }
  1598. },
  1599. /* Guillemot devices */
  1600. {
  1601. /*
  1602. * This is for the "Windows Edition" where the external MIDI ports are
  1603. * the only MIDI ports; the control data is reported through HID
  1604. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1605. * compliant USB MIDI ports for external MIDI and controls.
  1606. */
  1607. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1608. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1609. .vendor_name = "Hercules",
  1610. .product_name = "DJ Console (WE)",
  1611. .ifnum = 4,
  1612. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1613. .data = & (const struct snd_usb_midi_endpoint_info) {
  1614. .out_cables = 0x0001,
  1615. .in_cables = 0x0001
  1616. }
  1617. }
  1618. },
  1619. /* Midiman/M-Audio devices */
  1620. {
  1621. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1622. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1623. .vendor_name = "M-Audio",
  1624. .product_name = "MidiSport 2x2",
  1625. .ifnum = QUIRK_ANY_INTERFACE,
  1626. .type = QUIRK_MIDI_MIDIMAN,
  1627. .data = & (const struct snd_usb_midi_endpoint_info) {
  1628. .out_cables = 0x0003,
  1629. .in_cables = 0x0003
  1630. }
  1631. }
  1632. },
  1633. {
  1634. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1635. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1636. .vendor_name = "M-Audio",
  1637. .product_name = "MidiSport 1x1",
  1638. .ifnum = QUIRK_ANY_INTERFACE,
  1639. .type = QUIRK_MIDI_MIDIMAN,
  1640. .data = & (const struct snd_usb_midi_endpoint_info) {
  1641. .out_cables = 0x0001,
  1642. .in_cables = 0x0001
  1643. }
  1644. }
  1645. },
  1646. {
  1647. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1648. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1649. .vendor_name = "M-Audio",
  1650. .product_name = "Keystation",
  1651. .ifnum = QUIRK_ANY_INTERFACE,
  1652. .type = QUIRK_MIDI_MIDIMAN,
  1653. .data = & (const struct snd_usb_midi_endpoint_info) {
  1654. .out_cables = 0x0001,
  1655. .in_cables = 0x0001
  1656. }
  1657. }
  1658. },
  1659. {
  1660. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1661. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1662. .vendor_name = "M-Audio",
  1663. .product_name = "MidiSport 4x4",
  1664. .ifnum = QUIRK_ANY_INTERFACE,
  1665. .type = QUIRK_MIDI_MIDIMAN,
  1666. .data = & (const struct snd_usb_midi_endpoint_info) {
  1667. .out_cables = 0x000f,
  1668. .in_cables = 0x000f
  1669. }
  1670. }
  1671. },
  1672. {
  1673. /*
  1674. * For hardware revision 1.05; in the later revisions (1.10 and
  1675. * 1.21), 0x1031 is the ID for the device without firmware.
  1676. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1677. */
  1678. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1679. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1680. .vendor_name = "M-Audio",
  1681. .product_name = "MidiSport 8x8",
  1682. .ifnum = QUIRK_ANY_INTERFACE,
  1683. .type = QUIRK_MIDI_MIDIMAN,
  1684. .data = & (const struct snd_usb_midi_endpoint_info) {
  1685. .out_cables = 0x01ff,
  1686. .in_cables = 0x01ff
  1687. }
  1688. }
  1689. },
  1690. {
  1691. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1692. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1693. .vendor_name = "M-Audio",
  1694. .product_name = "MidiSport 8x8",
  1695. .ifnum = QUIRK_ANY_INTERFACE,
  1696. .type = QUIRK_MIDI_MIDIMAN,
  1697. .data = & (const struct snd_usb_midi_endpoint_info) {
  1698. .out_cables = 0x01ff,
  1699. .in_cables = 0x01ff
  1700. }
  1701. }
  1702. },
  1703. {
  1704. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1705. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1706. .vendor_name = "M-Audio",
  1707. .product_name = "MidiSport 2x4",
  1708. .ifnum = QUIRK_ANY_INTERFACE,
  1709. .type = QUIRK_MIDI_MIDIMAN,
  1710. .data = & (const struct snd_usb_midi_endpoint_info) {
  1711. .out_cables = 0x000f,
  1712. .in_cables = 0x0003
  1713. }
  1714. }
  1715. },
  1716. {
  1717. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1718. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1719. .vendor_name = "M-Audio",
  1720. .product_name = "Quattro",
  1721. .ifnum = QUIRK_ANY_INTERFACE,
  1722. .type = QUIRK_COMPOSITE,
  1723. .data = & (const struct snd_usb_audio_quirk[]) {
  1724. /*
  1725. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1726. * and share endpoints with the other interfaces.
  1727. * Ignore them. The other interfaces can do 24 bits,
  1728. * but captured samples are big-endian (see usbaudio.c).
  1729. */
  1730. {
  1731. .ifnum = 0,
  1732. .type = QUIRK_IGNORE_INTERFACE
  1733. },
  1734. {
  1735. .ifnum = 1,
  1736. .type = QUIRK_IGNORE_INTERFACE
  1737. },
  1738. {
  1739. .ifnum = 2,
  1740. .type = QUIRK_IGNORE_INTERFACE
  1741. },
  1742. {
  1743. .ifnum = 3,
  1744. .type = QUIRK_IGNORE_INTERFACE
  1745. },
  1746. {
  1747. .ifnum = 4,
  1748. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1749. },
  1750. {
  1751. .ifnum = 5,
  1752. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1753. },
  1754. {
  1755. .ifnum = 6,
  1756. .type = QUIRK_IGNORE_INTERFACE
  1757. },
  1758. {
  1759. .ifnum = 7,
  1760. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1761. },
  1762. {
  1763. .ifnum = 8,
  1764. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1765. },
  1766. {
  1767. .ifnum = 9,
  1768. .type = QUIRK_MIDI_MIDIMAN,
  1769. .data = & (const struct snd_usb_midi_endpoint_info) {
  1770. .out_cables = 0x0001,
  1771. .in_cables = 0x0001
  1772. }
  1773. },
  1774. {
  1775. .ifnum = -1
  1776. }
  1777. }
  1778. }
  1779. },
  1780. {
  1781. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1782. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1783. .vendor_name = "M-Audio",
  1784. .product_name = "AudioPhile",
  1785. .ifnum = 6,
  1786. .type = QUIRK_MIDI_MIDIMAN,
  1787. .data = & (const struct snd_usb_midi_endpoint_info) {
  1788. .out_cables = 0x0001,
  1789. .in_cables = 0x0001
  1790. }
  1791. }
  1792. },
  1793. {
  1794. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1795. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1796. .vendor_name = "M-Audio",
  1797. .product_name = "Ozone",
  1798. .ifnum = 3,
  1799. .type = QUIRK_MIDI_MIDIMAN,
  1800. .data = & (const struct snd_usb_midi_endpoint_info) {
  1801. .out_cables = 0x0001,
  1802. .in_cables = 0x0001
  1803. }
  1804. }
  1805. },
  1806. {
  1807. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1808. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1809. .vendor_name = "M-Audio",
  1810. .product_name = "OmniStudio",
  1811. .ifnum = QUIRK_ANY_INTERFACE,
  1812. .type = QUIRK_COMPOSITE,
  1813. .data = & (const struct snd_usb_audio_quirk[]) {
  1814. {
  1815. .ifnum = 0,
  1816. .type = QUIRK_IGNORE_INTERFACE
  1817. },
  1818. {
  1819. .ifnum = 1,
  1820. .type = QUIRK_IGNORE_INTERFACE
  1821. },
  1822. {
  1823. .ifnum = 2,
  1824. .type = QUIRK_IGNORE_INTERFACE
  1825. },
  1826. {
  1827. .ifnum = 3,
  1828. .type = QUIRK_IGNORE_INTERFACE
  1829. },
  1830. {
  1831. .ifnum = 4,
  1832. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1833. },
  1834. {
  1835. .ifnum = 5,
  1836. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1837. },
  1838. {
  1839. .ifnum = 6,
  1840. .type = QUIRK_IGNORE_INTERFACE
  1841. },
  1842. {
  1843. .ifnum = 7,
  1844. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1845. },
  1846. {
  1847. .ifnum = 8,
  1848. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1849. },
  1850. {
  1851. .ifnum = 9,
  1852. .type = QUIRK_MIDI_MIDIMAN,
  1853. .data = & (const struct snd_usb_midi_endpoint_info) {
  1854. .out_cables = 0x0001,
  1855. .in_cables = 0x0001
  1856. }
  1857. },
  1858. {
  1859. .ifnum = -1
  1860. }
  1861. }
  1862. }
  1863. },
  1864. {
  1865. USB_DEVICE(0x0763, 0x2019),
  1866. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1867. /* .vendor_name = "M-Audio", */
  1868. /* .product_name = "Ozone Academic", */
  1869. .ifnum = QUIRK_ANY_INTERFACE,
  1870. .type = QUIRK_COMPOSITE,
  1871. .data = & (const struct snd_usb_audio_quirk[]) {
  1872. {
  1873. .ifnum = 0,
  1874. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1875. },
  1876. {
  1877. .ifnum = 1,
  1878. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1879. },
  1880. {
  1881. .ifnum = 2,
  1882. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1883. },
  1884. {
  1885. .ifnum = 3,
  1886. .type = QUIRK_MIDI_MIDIMAN,
  1887. .data = & (const struct snd_usb_midi_endpoint_info) {
  1888. .out_cables = 0x0001,
  1889. .in_cables = 0x0001
  1890. }
  1891. },
  1892. {
  1893. .ifnum = -1
  1894. }
  1895. }
  1896. }
  1897. },
  1898. {
  1899. USB_DEVICE(0x0763, 0x2080),
  1900. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1901. /* .vendor_name = "M-Audio", */
  1902. /* .product_name = "Fast Track Ultra", */
  1903. .ifnum = QUIRK_ANY_INTERFACE,
  1904. .type = QUIRK_COMPOSITE,
  1905. .data = & (const struct snd_usb_audio_quirk[]) {
  1906. {
  1907. .ifnum = 0,
  1908. .type = QUIRK_IGNORE_INTERFACE
  1909. },
  1910. {
  1911. .ifnum = 1,
  1912. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1913. .data = & (const struct audioformat) {
  1914. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1915. .channels = 8,
  1916. .iface = 1,
  1917. .altsetting = 1,
  1918. .altset_idx = 1,
  1919. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1920. .endpoint = 0x01,
  1921. .ep_attr = 0x09,
  1922. .rates = SNDRV_PCM_RATE_44100 |
  1923. SNDRV_PCM_RATE_48000 |
  1924. SNDRV_PCM_RATE_88200 |
  1925. SNDRV_PCM_RATE_96000,
  1926. .rate_min = 44100,
  1927. .rate_max = 96000,
  1928. .nr_rates = 4,
  1929. .rate_table = (unsigned int[]) {
  1930. 44100, 48000, 88200, 96000
  1931. }
  1932. }
  1933. },
  1934. {
  1935. .ifnum = 2,
  1936. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1937. .data = & (const struct audioformat) {
  1938. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1939. .channels = 8,
  1940. .iface = 2,
  1941. .altsetting = 1,
  1942. .altset_idx = 1,
  1943. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1944. .endpoint = 0x81,
  1945. .ep_attr = 0x05,
  1946. .rates = SNDRV_PCM_RATE_44100 |
  1947. SNDRV_PCM_RATE_48000 |
  1948. SNDRV_PCM_RATE_88200 |
  1949. SNDRV_PCM_RATE_96000,
  1950. .rate_min = 44100,
  1951. .rate_max = 96000,
  1952. .nr_rates = 4,
  1953. .rate_table = (unsigned int[]) {
  1954. 44100, 48000, 88200, 96000
  1955. }
  1956. }
  1957. },
  1958. /* interface 3 (MIDI) is standard compliant */
  1959. {
  1960. .ifnum = -1
  1961. }
  1962. }
  1963. }
  1964. },
  1965. {
  1966. USB_DEVICE(0x0763, 0x2081),
  1967. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1968. /* .vendor_name = "M-Audio", */
  1969. /* .product_name = "Fast Track Ultra 8R", */
  1970. .ifnum = QUIRK_ANY_INTERFACE,
  1971. .type = QUIRK_COMPOSITE,
  1972. .data = & (const struct snd_usb_audio_quirk[]) {
  1973. {
  1974. .ifnum = 0,
  1975. .type = QUIRK_IGNORE_INTERFACE
  1976. },
  1977. {
  1978. .ifnum = 1,
  1979. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1980. .data = & (const struct audioformat) {
  1981. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1982. .channels = 8,
  1983. .iface = 1,
  1984. .altsetting = 1,
  1985. .altset_idx = 1,
  1986. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  1987. .endpoint = 0x01,
  1988. .ep_attr = 0x09,
  1989. .rates = SNDRV_PCM_RATE_44100 |
  1990. SNDRV_PCM_RATE_48000 |
  1991. SNDRV_PCM_RATE_88200 |
  1992. SNDRV_PCM_RATE_96000,
  1993. .rate_min = 44100,
  1994. .rate_max = 96000,
  1995. .nr_rates = 4,
  1996. .rate_table = (unsigned int[]) {
  1997. 44100, 48000, 88200, 96000
  1998. }
  1999. }
  2000. },
  2001. {
  2002. .ifnum = 2,
  2003. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2004. .data = & (const struct audioformat) {
  2005. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2006. .channels = 8,
  2007. .iface = 2,
  2008. .altsetting = 1,
  2009. .altset_idx = 1,
  2010. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2011. .endpoint = 0x81,
  2012. .ep_attr = 0x05,
  2013. .rates = SNDRV_PCM_RATE_44100 |
  2014. SNDRV_PCM_RATE_48000 |
  2015. SNDRV_PCM_RATE_88200 |
  2016. SNDRV_PCM_RATE_96000,
  2017. .rate_min = 44100,
  2018. .rate_max = 96000,
  2019. .nr_rates = 4,
  2020. .rate_table = (unsigned int[]) {
  2021. 44100, 48000, 88200, 96000
  2022. }
  2023. }
  2024. },
  2025. /* interface 3 (MIDI) is standard compliant */
  2026. {
  2027. .ifnum = -1
  2028. }
  2029. }
  2030. }
  2031. },
  2032. /* Casio devices */
  2033. {
  2034. USB_DEVICE(0x07cf, 0x6801),
  2035. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2036. .vendor_name = "Casio",
  2037. .product_name = "PL-40R",
  2038. .ifnum = 0,
  2039. .type = QUIRK_MIDI_YAMAHA
  2040. }
  2041. },
  2042. {
  2043. /* this ID is used by several devices without a product ID */
  2044. USB_DEVICE(0x07cf, 0x6802),
  2045. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2046. .vendor_name = "Casio",
  2047. .product_name = "Keyboard",
  2048. .ifnum = 0,
  2049. .type = QUIRK_MIDI_YAMAHA
  2050. }
  2051. },
  2052. /* Mark of the Unicorn devices */
  2053. {
  2054. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  2055. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  2056. USB_DEVICE_ID_MATCH_PRODUCT |
  2057. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  2058. .idVendor = 0x07fd,
  2059. .idProduct = 0x0001,
  2060. .bDeviceSubClass = 2,
  2061. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2062. .vendor_name = "MOTU",
  2063. .product_name = "Fastlane",
  2064. .ifnum = QUIRK_ANY_INTERFACE,
  2065. .type = QUIRK_COMPOSITE,
  2066. .data = & (const struct snd_usb_audio_quirk[]) {
  2067. {
  2068. .ifnum = 0,
  2069. .type = QUIRK_MIDI_RAW_BYTES
  2070. },
  2071. {
  2072. .ifnum = 1,
  2073. .type = QUIRK_IGNORE_INTERFACE
  2074. },
  2075. {
  2076. .ifnum = -1
  2077. }
  2078. }
  2079. }
  2080. },
  2081. /* Emagic devices */
  2082. {
  2083. USB_DEVICE(0x086a, 0x0001),
  2084. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2085. .vendor_name = "Emagic",
  2086. /* .product_name = "Unitor8", */
  2087. .ifnum = 2,
  2088. .type = QUIRK_MIDI_EMAGIC,
  2089. .data = & (const struct snd_usb_midi_endpoint_info) {
  2090. .out_cables = 0x80ff,
  2091. .in_cables = 0x80ff
  2092. }
  2093. }
  2094. },
  2095. {
  2096. USB_DEVICE(0x086a, 0x0002),
  2097. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2098. .vendor_name = "Emagic",
  2099. /* .product_name = "AMT8", */
  2100. .ifnum = 2,
  2101. .type = QUIRK_MIDI_EMAGIC,
  2102. .data = & (const struct snd_usb_midi_endpoint_info) {
  2103. .out_cables = 0x80ff,
  2104. .in_cables = 0x80ff
  2105. }
  2106. }
  2107. },
  2108. {
  2109. USB_DEVICE(0x086a, 0x0003),
  2110. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2111. .vendor_name = "Emagic",
  2112. /* .product_name = "MT4", */
  2113. .ifnum = 2,
  2114. .type = QUIRK_MIDI_EMAGIC,
  2115. .data = & (const struct snd_usb_midi_endpoint_info) {
  2116. .out_cables = 0x800f,
  2117. .in_cables = 0x8003
  2118. }
  2119. }
  2120. },
  2121. /* AKAI devices */
  2122. {
  2123. USB_DEVICE(0x09e8, 0x0062),
  2124. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2125. .vendor_name = "AKAI",
  2126. .product_name = "MPD16",
  2127. .ifnum = 0,
  2128. .type = QUIRK_MIDI_AKAI,
  2129. }
  2130. },
  2131. /* TerraTec devices */
  2132. {
  2133. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  2134. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2135. .vendor_name = "TerraTec",
  2136. .product_name = "PHASE 26",
  2137. .ifnum = 3,
  2138. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2139. }
  2140. },
  2141. {
  2142. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  2143. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2144. .vendor_name = "TerraTec",
  2145. .product_name = "PHASE 26",
  2146. .ifnum = 3,
  2147. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2148. }
  2149. },
  2150. {
  2151. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  2152. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2153. .vendor_name = "TerraTec",
  2154. .product_name = "PHASE 26",
  2155. .ifnum = 3,
  2156. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2157. }
  2158. },
  2159. {
  2160. USB_DEVICE(0x0ccd, 0x0028),
  2161. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2162. .vendor_name = "TerraTec",
  2163. .product_name = "Aureon5.1MkII",
  2164. .ifnum = QUIRK_NO_INTERFACE
  2165. }
  2166. },
  2167. {
  2168. USB_DEVICE(0x0ccd, 0x0035),
  2169. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2170. .vendor_name = "Miditech",
  2171. .product_name = "Play'n Roll",
  2172. .ifnum = 0,
  2173. .type = QUIRK_MIDI_CME
  2174. }
  2175. },
  2176. /* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
  2177. {
  2178. USB_DEVICE(0x103d, 0x0100),
  2179. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2180. .vendor_name = "Stanton",
  2181. .product_name = "ScratchAmp",
  2182. .ifnum = QUIRK_NO_INTERFACE
  2183. }
  2184. },
  2185. {
  2186. USB_DEVICE(0x103d, 0x0101),
  2187. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2188. .vendor_name = "Stanton",
  2189. .product_name = "ScratchAmp",
  2190. .ifnum = QUIRK_NO_INTERFACE
  2191. }
  2192. },
  2193. /* Novation EMS devices */
  2194. {
  2195. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  2196. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2197. .vendor_name = "Novation",
  2198. .product_name = "ReMOTE Audio/XStation",
  2199. .ifnum = 4,
  2200. .type = QUIRK_MIDI_NOVATION
  2201. }
  2202. },
  2203. {
  2204. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  2205. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2206. .vendor_name = "Novation",
  2207. .product_name = "Speedio",
  2208. .ifnum = 3,
  2209. .type = QUIRK_MIDI_NOVATION
  2210. }
  2211. },
  2212. {
  2213. USB_DEVICE(0x1235, 0x000e),
  2214. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2215. /* .vendor_name = "Novation", */
  2216. /* .product_name = "Launchpad", */
  2217. .ifnum = 0,
  2218. .type = QUIRK_MIDI_RAW_BYTES
  2219. }
  2220. },
  2221. {
  2222. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  2223. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2224. .vendor_name = "Novation",
  2225. .product_name = "ReMOTE25",
  2226. .ifnum = 0,
  2227. .type = QUIRK_MIDI_NOVATION
  2228. }
  2229. },
  2230. /* Access Music devices */
  2231. {
  2232. /* VirusTI Desktop */
  2233. USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
  2234. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2235. .ifnum = QUIRK_ANY_INTERFACE,
  2236. .type = QUIRK_COMPOSITE,
  2237. .data = &(const struct snd_usb_audio_quirk[]) {
  2238. {
  2239. .ifnum = 3,
  2240. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2241. .data = &(const struct snd_usb_midi_endpoint_info) {
  2242. .out_cables = 0x0003,
  2243. .in_cables = 0x0003
  2244. }
  2245. },
  2246. {
  2247. .ifnum = 4,
  2248. .type = QUIRK_IGNORE_INTERFACE
  2249. },
  2250. {
  2251. .ifnum = -1
  2252. }
  2253. }
  2254. }
  2255. },
  2256. /* */
  2257. {
  2258. /* aka. Serato Scratch Live DJ Box */
  2259. USB_DEVICE(0x13e5, 0x0001),
  2260. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2261. .vendor_name = "Rane",
  2262. .product_name = "SL-1",
  2263. .ifnum = QUIRK_NO_INTERFACE
  2264. }
  2265. },
  2266. /* Native Instruments MK2 series */
  2267. {
  2268. /* Traktor Audio 6 */
  2269. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2270. .idVendor = 0x17cc,
  2271. .idProduct = 0x1010,
  2272. },
  2273. {
  2274. /* Traktor Audio 10 */
  2275. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2276. .idVendor = 0x17cc,
  2277. .idProduct = 0x1020,
  2278. },
  2279. /* Miditech devices */
  2280. {
  2281. USB_DEVICE(0x4752, 0x0011),
  2282. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2283. .vendor_name = "Miditech",
  2284. .product_name = "Midistart-2",
  2285. .ifnum = 0,
  2286. .type = QUIRK_MIDI_CME
  2287. }
  2288. },
  2289. /* Central Music devices */
  2290. {
  2291. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  2292. USB_DEVICE(0x7104, 0x2202),
  2293. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2294. .ifnum = 0,
  2295. .type = QUIRK_MIDI_CME
  2296. }
  2297. },
  2298. /* Hauppauge HVR-950Q and HVR-850 */
  2299. {
  2300. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7200),
  2301. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2302. USB_DEVICE_ID_MATCH_INT_CLASS |
  2303. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2304. .bInterfaceClass = USB_CLASS_AUDIO,
  2305. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2306. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2307. .vendor_name = "Hauppauge",
  2308. .product_name = "HVR-950Q",
  2309. .ifnum = QUIRK_ANY_INTERFACE,
  2310. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2311. }
  2312. },
  2313. {
  2314. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7240),
  2315. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2316. USB_DEVICE_ID_MATCH_INT_CLASS |
  2317. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2318. .bInterfaceClass = USB_CLASS_AUDIO,
  2319. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2320. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2321. .vendor_name = "Hauppauge",
  2322. .product_name = "HVR-850",
  2323. .ifnum = QUIRK_ANY_INTERFACE,
  2324. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2325. }
  2326. },
  2327. {
  2328. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7210),
  2329. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2330. USB_DEVICE_ID_MATCH_INT_CLASS |
  2331. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2332. .bInterfaceClass = USB_CLASS_AUDIO,
  2333. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2334. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2335. .vendor_name = "Hauppauge",
  2336. .product_name = "HVR-950Q",
  2337. .ifnum = QUIRK_ANY_INTERFACE,
  2338. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2339. }
  2340. },
  2341. {
  2342. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7217),
  2343. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2344. USB_DEVICE_ID_MATCH_INT_CLASS |
  2345. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2346. .bInterfaceClass = USB_CLASS_AUDIO,
  2347. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2348. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2349. .vendor_name = "Hauppauge",
  2350. .product_name = "HVR-950Q",
  2351. .ifnum = QUIRK_ANY_INTERFACE,
  2352. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2353. }
  2354. },
  2355. {
  2356. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721b),
  2357. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2358. USB_DEVICE_ID_MATCH_INT_CLASS |
  2359. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2360. .bInterfaceClass = USB_CLASS_AUDIO,
  2361. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2362. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2363. .vendor_name = "Hauppauge",
  2364. .product_name = "HVR-950Q",
  2365. .ifnum = QUIRK_ANY_INTERFACE,
  2366. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2367. }
  2368. },
  2369. {
  2370. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721e),
  2371. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2372. USB_DEVICE_ID_MATCH_INT_CLASS |
  2373. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2374. .bInterfaceClass = USB_CLASS_AUDIO,
  2375. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2376. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2377. .vendor_name = "Hauppauge",
  2378. .product_name = "HVR-950Q",
  2379. .ifnum = QUIRK_ANY_INTERFACE,
  2380. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2381. }
  2382. },
  2383. {
  2384. USB_DEVICE_VENDOR_SPEC(0x2040, 0x721f),
  2385. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2386. USB_DEVICE_ID_MATCH_INT_CLASS |
  2387. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2388. .bInterfaceClass = USB_CLASS_AUDIO,
  2389. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2390. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2391. .vendor_name = "Hauppauge",
  2392. .product_name = "HVR-950Q",
  2393. .ifnum = QUIRK_ANY_INTERFACE,
  2394. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2395. }
  2396. },
  2397. {
  2398. USB_DEVICE_VENDOR_SPEC(0x2040, 0x7280),
  2399. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2400. USB_DEVICE_ID_MATCH_INT_CLASS |
  2401. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2402. .bInterfaceClass = USB_CLASS_AUDIO,
  2403. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2404. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2405. .vendor_name = "Hauppauge",
  2406. .product_name = "HVR-950Q",
  2407. .ifnum = QUIRK_ANY_INTERFACE,
  2408. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2409. }
  2410. },
  2411. {
  2412. USB_DEVICE_VENDOR_SPEC(0x0fd9, 0x0008),
  2413. .match_flags = USB_DEVICE_ID_MATCH_DEVICE |
  2414. USB_DEVICE_ID_MATCH_INT_CLASS |
  2415. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2416. .bInterfaceClass = USB_CLASS_AUDIO,
  2417. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL,
  2418. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2419. .vendor_name = "Hauppauge",
  2420. .product_name = "HVR-950Q",
  2421. .ifnum = QUIRK_ANY_INTERFACE,
  2422. .type = QUIRK_AUDIO_ALIGN_TRANSFER,
  2423. }
  2424. },
  2425. /* Digidesign Mbox */
  2426. {
  2427. /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
  2428. USB_DEVICE(0x0dba, 0x1000),
  2429. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2430. .vendor_name = "Digidesign",
  2431. .product_name = "MBox",
  2432. .ifnum = QUIRK_ANY_INTERFACE,
  2433. .type = QUIRK_COMPOSITE,
  2434. .data = (const struct snd_usb_audio_quirk[]){
  2435. {
  2436. .ifnum = 0,
  2437. .type = QUIRK_IGNORE_INTERFACE,
  2438. },
  2439. {
  2440. .ifnum = 1,
  2441. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2442. .data = &(const struct audioformat) {
  2443. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2444. .channels = 2,
  2445. .iface = 1,
  2446. .altsetting = 1,
  2447. .altset_idx = 1,
  2448. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2449. .endpoint = 0x02,
  2450. .ep_attr = 0x01,
  2451. .maxpacksize = 0x130,
  2452. .rates = SNDRV_PCM_RATE_44100 |
  2453. SNDRV_PCM_RATE_48000,
  2454. .rate_min = 44100,
  2455. .rate_max = 48000,
  2456. .nr_rates = 2,
  2457. .rate_table = (unsigned int[]) {
  2458. 44100, 48000
  2459. }
  2460. }
  2461. },
  2462. {
  2463. .ifnum = -1
  2464. }
  2465. }
  2466. }
  2467. },
  2468. {
  2469. /*
  2470. * Some USB MIDI devices don't have an audio control interface,
  2471. * so we have to grab MIDI streaming interfaces here.
  2472. */
  2473. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  2474. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  2475. .bInterfaceClass = USB_CLASS_AUDIO,
  2476. .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
  2477. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2478. .ifnum = QUIRK_ANY_INTERFACE,
  2479. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2480. }
  2481. },
  2482. #undef USB_DEVICE_VENDOR_SPEC