quirks-table.h 66 KB

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