quirks-table.h 75 KB

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