quirks-table.h 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155
  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_FIXED_ENDPOINT,
  810. .data = & (const struct audioformat) {
  811. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  812. .channels = 2,
  813. .iface = 0,
  814. .altsetting = 1,
  815. .altset_idx = 1,
  816. .attributes = 0,
  817. .endpoint = 0x01,
  818. .ep_attr = 0x01,
  819. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  820. .rate_min = 44100,
  821. .rate_max = 44100,
  822. }
  823. },
  824. {
  825. .ifnum = 1,
  826. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  827. .data = & (const struct audioformat) {
  828. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  829. .channels = 2,
  830. .iface = 1,
  831. .altsetting = 1,
  832. .altset_idx = 1,
  833. .attributes = 0,
  834. .endpoint = 0x81,
  835. .ep_attr = 0x01,
  836. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  837. .rate_min = 44100,
  838. .rate_max = 44100,
  839. }
  840. },
  841. {
  842. .ifnum = 2,
  843. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  844. .data = & (const struct snd_usb_midi_endpoint_info) {
  845. .out_cables = 0x0007,
  846. .in_cables = 0x0007
  847. }
  848. },
  849. {
  850. .ifnum = -1
  851. }
  852. }
  853. }
  854. },
  855. { /*
  856. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  857. * If the advanced mode switch at the back of the unit is off, the
  858. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  859. * but offers only 16-bit PCM.
  860. * In advanced mode, the UA-5 will output S24_3LE samples (two
  861. * channels) at the rate indicated on the front switch, including
  862. * the 96kHz sample rate.
  863. */
  864. USB_DEVICE(0x0582, 0x0010),
  865. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  866. .vendor_name = "EDIROL",
  867. .product_name = "UA-5",
  868. .ifnum = QUIRK_ANY_INTERFACE,
  869. .type = QUIRK_COMPOSITE,
  870. .data = (const struct snd_usb_audio_quirk[]) {
  871. {
  872. .ifnum = 1,
  873. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  874. },
  875. {
  876. .ifnum = 2,
  877. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  878. },
  879. {
  880. .ifnum = -1
  881. }
  882. }
  883. }
  884. },
  885. {
  886. /* has ID 0x0013 when not in "Advanced Driver" mode */
  887. USB_DEVICE(0x0582, 0x0012),
  888. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  889. .vendor_name = "Roland",
  890. .product_name = "XV-5050",
  891. .ifnum = 0,
  892. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  893. .data = & (const struct snd_usb_midi_endpoint_info) {
  894. .out_cables = 0x0001,
  895. .in_cables = 0x0001
  896. }
  897. }
  898. },
  899. {
  900. /* has ID 0x0015 when not in "Advanced Driver" mode */
  901. USB_DEVICE(0x0582, 0x0014),
  902. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  903. .vendor_name = "EDIROL",
  904. .product_name = "UM-880",
  905. .ifnum = 0,
  906. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  907. .data = & (const struct snd_usb_midi_endpoint_info) {
  908. .out_cables = 0x01ff,
  909. .in_cables = 0x01ff
  910. }
  911. }
  912. },
  913. {
  914. /* has ID 0x0017 when not in "Advanced Driver" mode */
  915. USB_DEVICE(0x0582, 0x0016),
  916. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  917. .vendor_name = "EDIROL",
  918. .product_name = "SD-90",
  919. .ifnum = QUIRK_ANY_INTERFACE,
  920. .type = QUIRK_COMPOSITE,
  921. .data = (const struct snd_usb_audio_quirk[]) {
  922. {
  923. .ifnum = 0,
  924. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  925. },
  926. {
  927. .ifnum = 1,
  928. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  929. },
  930. {
  931. .ifnum = 2,
  932. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  933. .data = & (const struct snd_usb_midi_endpoint_info) {
  934. .out_cables = 0x000f,
  935. .in_cables = 0x000f
  936. }
  937. },
  938. {
  939. .ifnum = -1
  940. }
  941. }
  942. }
  943. },
  944. {
  945. /* has ID 0x001c when not in "Advanced Driver" mode */
  946. USB_DEVICE(0x0582, 0x001b),
  947. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  948. .vendor_name = "Roland",
  949. .product_name = "MMP-2",
  950. .ifnum = QUIRK_ANY_INTERFACE,
  951. .type = QUIRK_COMPOSITE,
  952. .data = (const struct snd_usb_audio_quirk[]) {
  953. {
  954. .ifnum = 0,
  955. .type = QUIRK_IGNORE_INTERFACE
  956. },
  957. {
  958. .ifnum = 1,
  959. .type = QUIRK_IGNORE_INTERFACE
  960. },
  961. {
  962. .ifnum = 2,
  963. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  964. .data = & (const struct snd_usb_midi_endpoint_info) {
  965. .out_cables = 0x0001,
  966. .in_cables = 0x0001
  967. }
  968. },
  969. {
  970. .ifnum = -1
  971. }
  972. }
  973. }
  974. },
  975. {
  976. /* has ID 0x001e when not in "Advanced Driver" mode */
  977. USB_DEVICE(0x0582, 0x001d),
  978. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  979. .vendor_name = "Roland",
  980. .product_name = "V-SYNTH",
  981. .ifnum = 0,
  982. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  983. .data = & (const struct snd_usb_midi_endpoint_info) {
  984. .out_cables = 0x0001,
  985. .in_cables = 0x0001
  986. }
  987. }
  988. },
  989. {
  990. /* has ID 0x0024 when not in "Advanced Driver" mode */
  991. USB_DEVICE(0x0582, 0x0023),
  992. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  993. .vendor_name = "EDIROL",
  994. .product_name = "UM-550",
  995. .ifnum = 0,
  996. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  997. .data = & (const struct snd_usb_midi_endpoint_info) {
  998. .out_cables = 0x003f,
  999. .in_cables = 0x003f
  1000. }
  1001. }
  1002. },
  1003. {
  1004. /*
  1005. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  1006. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  1007. * and no MIDI.
  1008. */
  1009. USB_DEVICE(0x0582, 0x0025),
  1010. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1011. .vendor_name = "EDIROL",
  1012. .product_name = "UA-20",
  1013. .ifnum = QUIRK_ANY_INTERFACE,
  1014. .type = QUIRK_COMPOSITE,
  1015. .data = (const struct snd_usb_audio_quirk[]) {
  1016. {
  1017. .ifnum = 0,
  1018. .type = QUIRK_IGNORE_INTERFACE
  1019. },
  1020. {
  1021. .ifnum = 1,
  1022. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1023. .data = & (const struct audioformat) {
  1024. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1025. .channels = 2,
  1026. .iface = 1,
  1027. .altsetting = 1,
  1028. .altset_idx = 1,
  1029. .attributes = 0,
  1030. .endpoint = 0x01,
  1031. .ep_attr = 0x01,
  1032. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  1033. .rate_min = 44100,
  1034. .rate_max = 44100,
  1035. }
  1036. },
  1037. {
  1038. .ifnum = 2,
  1039. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1040. .data = & (const struct audioformat) {
  1041. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  1042. .channels = 2,
  1043. .iface = 2,
  1044. .altsetting = 1,
  1045. .altset_idx = 1,
  1046. .attributes = 0,
  1047. .endpoint = 0x82,
  1048. .ep_attr = 0x01,
  1049. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  1050. .rate_min = 44100,
  1051. .rate_max = 44100,
  1052. }
  1053. },
  1054. {
  1055. .ifnum = 3,
  1056. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1057. .data = & (const struct snd_usb_midi_endpoint_info) {
  1058. .out_cables = 0x0001,
  1059. .in_cables = 0x0001
  1060. }
  1061. },
  1062. {
  1063. .ifnum = -1
  1064. }
  1065. }
  1066. }
  1067. },
  1068. {
  1069. /* has ID 0x0028 when not in "Advanced Driver" mode */
  1070. USB_DEVICE(0x0582, 0x0027),
  1071. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1072. .vendor_name = "EDIROL",
  1073. .product_name = "SD-20",
  1074. .ifnum = 0,
  1075. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1076. .data = & (const struct snd_usb_midi_endpoint_info) {
  1077. .out_cables = 0x0003,
  1078. .in_cables = 0x0007
  1079. }
  1080. }
  1081. },
  1082. {
  1083. /* has ID 0x002a when not in "Advanced Driver" mode */
  1084. USB_DEVICE(0x0582, 0x0029),
  1085. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1086. .vendor_name = "EDIROL",
  1087. .product_name = "SD-80",
  1088. .ifnum = 0,
  1089. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1090. .data = & (const struct snd_usb_midi_endpoint_info) {
  1091. .out_cables = 0x000f,
  1092. .in_cables = 0x000f
  1093. }
  1094. }
  1095. },
  1096. { /*
  1097. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  1098. * If the sample format switch is not in an advanced setting, the
  1099. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  1100. * but offers only 16-bit PCM and no MIDI.
  1101. */
  1102. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  1103. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1104. .vendor_name = "EDIROL",
  1105. .product_name = "UA-700",
  1106. .ifnum = QUIRK_ANY_INTERFACE,
  1107. .type = QUIRK_COMPOSITE,
  1108. .data = (const struct snd_usb_audio_quirk[]) {
  1109. {
  1110. .ifnum = 1,
  1111. .type = QUIRK_AUDIO_EDIROL_UAXX
  1112. },
  1113. {
  1114. .ifnum = 2,
  1115. .type = QUIRK_AUDIO_EDIROL_UAXX
  1116. },
  1117. {
  1118. .ifnum = 3,
  1119. .type = QUIRK_AUDIO_EDIROL_UAXX
  1120. },
  1121. {
  1122. .ifnum = -1
  1123. }
  1124. }
  1125. }
  1126. },
  1127. {
  1128. /* has ID 0x002e when not in "Advanced Driver" mode */
  1129. USB_DEVICE(0x0582, 0x002d),
  1130. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1131. .vendor_name = "Roland",
  1132. .product_name = "XV-2020",
  1133. .ifnum = 0,
  1134. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1135. .data = & (const struct snd_usb_midi_endpoint_info) {
  1136. .out_cables = 0x0001,
  1137. .in_cables = 0x0001
  1138. }
  1139. }
  1140. },
  1141. {
  1142. /* has ID 0x0030 when not in "Advanced Driver" mode */
  1143. USB_DEVICE(0x0582, 0x002f),
  1144. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1145. .vendor_name = "Roland",
  1146. .product_name = "VariOS",
  1147. .ifnum = 0,
  1148. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1149. .data = & (const struct snd_usb_midi_endpoint_info) {
  1150. .out_cables = 0x0007,
  1151. .in_cables = 0x0007
  1152. }
  1153. }
  1154. },
  1155. {
  1156. /* has ID 0x0034 when not in "Advanced Driver" mode */
  1157. USB_DEVICE(0x0582, 0x0033),
  1158. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1159. .vendor_name = "EDIROL",
  1160. .product_name = "PCR",
  1161. .ifnum = 0,
  1162. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1163. .data = & (const struct snd_usb_midi_endpoint_info) {
  1164. .out_cables = 0x0003,
  1165. .in_cables = 0x0007
  1166. }
  1167. }
  1168. },
  1169. {
  1170. /*
  1171. * Has ID 0x0038 when not in "Advanced Driver" mode;
  1172. * later revisions use IDs 0x0054 and 0x00a2.
  1173. */
  1174. USB_DEVICE(0x0582, 0x0037),
  1175. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1176. .vendor_name = "Roland",
  1177. .product_name = "Digital Piano",
  1178. .ifnum = 0,
  1179. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1180. .data = & (const struct snd_usb_midi_endpoint_info) {
  1181. .out_cables = 0x0001,
  1182. .in_cables = 0x0001
  1183. }
  1184. }
  1185. },
  1186. {
  1187. /*
  1188. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  1189. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  1190. * and no MIDI.
  1191. */
  1192. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  1193. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1194. .vendor_name = "BOSS",
  1195. .product_name = "GS-10",
  1196. .ifnum = QUIRK_ANY_INTERFACE,
  1197. .type = QUIRK_COMPOSITE,
  1198. .data = & (const struct snd_usb_audio_quirk[]) {
  1199. {
  1200. .ifnum = 1,
  1201. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1202. },
  1203. {
  1204. .ifnum = 2,
  1205. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1206. },
  1207. {
  1208. .ifnum = 3,
  1209. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1210. },
  1211. {
  1212. .ifnum = -1
  1213. }
  1214. }
  1215. }
  1216. },
  1217. {
  1218. /* has ID 0x0041 when not in "Advanced Driver" mode */
  1219. USB_DEVICE(0x0582, 0x0040),
  1220. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1221. .vendor_name = "Roland",
  1222. .product_name = "GI-20",
  1223. .ifnum = 0,
  1224. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1225. .data = & (const struct snd_usb_midi_endpoint_info) {
  1226. .out_cables = 0x0001,
  1227. .in_cables = 0x0001
  1228. }
  1229. }
  1230. },
  1231. {
  1232. /* has ID 0x0043 when not in "Advanced Driver" mode */
  1233. USB_DEVICE(0x0582, 0x0042),
  1234. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1235. .vendor_name = "Roland",
  1236. .product_name = "RS-70",
  1237. .ifnum = 0,
  1238. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1239. .data = & (const struct snd_usb_midi_endpoint_info) {
  1240. .out_cables = 0x0001,
  1241. .in_cables = 0x0001
  1242. }
  1243. }
  1244. },
  1245. {
  1246. /* has ID 0x0049 when not in "Advanced Driver" mode */
  1247. USB_DEVICE(0x0582, 0x0047),
  1248. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1249. /* .vendor_name = "EDIROL", */
  1250. /* .product_name = "UR-80", */
  1251. .ifnum = QUIRK_ANY_INTERFACE,
  1252. .type = QUIRK_COMPOSITE,
  1253. .data = (const struct snd_usb_audio_quirk[]) {
  1254. /* in the 96 kHz modes, only interface 1 is there */
  1255. {
  1256. .ifnum = 1,
  1257. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1258. },
  1259. {
  1260. .ifnum = 2,
  1261. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1262. },
  1263. {
  1264. .ifnum = -1
  1265. }
  1266. }
  1267. }
  1268. },
  1269. {
  1270. /* has ID 0x004a when not in "Advanced Driver" mode */
  1271. USB_DEVICE(0x0582, 0x0048),
  1272. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1273. /* .vendor_name = "EDIROL", */
  1274. /* .product_name = "UR-80", */
  1275. .ifnum = 0,
  1276. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1277. .data = & (const struct snd_usb_midi_endpoint_info) {
  1278. .out_cables = 0x0003,
  1279. .in_cables = 0x0007
  1280. }
  1281. }
  1282. },
  1283. {
  1284. /* has ID 0x004e when not in "Advanced Driver" mode */
  1285. USB_DEVICE(0x0582, 0x004c),
  1286. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1287. .vendor_name = "EDIROL",
  1288. .product_name = "PCR-A",
  1289. .ifnum = QUIRK_ANY_INTERFACE,
  1290. .type = QUIRK_COMPOSITE,
  1291. .data = (const struct snd_usb_audio_quirk[]) {
  1292. {
  1293. .ifnum = 1,
  1294. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1295. },
  1296. {
  1297. .ifnum = 2,
  1298. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1299. },
  1300. {
  1301. .ifnum = -1
  1302. }
  1303. }
  1304. }
  1305. },
  1306. {
  1307. /* has ID 0x004f when not in "Advanced Driver" mode */
  1308. USB_DEVICE(0x0582, 0x004d),
  1309. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1310. .vendor_name = "EDIROL",
  1311. .product_name = "PCR-A",
  1312. .ifnum = 0,
  1313. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1314. .data = & (const struct snd_usb_midi_endpoint_info) {
  1315. .out_cables = 0x0003,
  1316. .in_cables = 0x0007
  1317. }
  1318. }
  1319. },
  1320. {
  1321. /*
  1322. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  1323. * is standard compliant, but has only 16-bit PCM.
  1324. */
  1325. USB_DEVICE(0x0582, 0x0050),
  1326. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1327. .vendor_name = "EDIROL",
  1328. .product_name = "UA-3FX",
  1329. .ifnum = QUIRK_ANY_INTERFACE,
  1330. .type = QUIRK_COMPOSITE,
  1331. .data = (const struct snd_usb_audio_quirk[]) {
  1332. {
  1333. .ifnum = 1,
  1334. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1335. },
  1336. {
  1337. .ifnum = 2,
  1338. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1339. },
  1340. {
  1341. .ifnum = -1
  1342. }
  1343. }
  1344. }
  1345. },
  1346. {
  1347. USB_DEVICE(0x0582, 0x0052),
  1348. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1349. .vendor_name = "EDIROL",
  1350. .product_name = "UM-1SX",
  1351. .ifnum = 0,
  1352. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1353. }
  1354. },
  1355. {
  1356. USB_DEVICE(0x0582, 0x0060),
  1357. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1358. .vendor_name = "Roland",
  1359. .product_name = "EXR Series",
  1360. .ifnum = 0,
  1361. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1362. }
  1363. },
  1364. {
  1365. /* has ID 0x0066 when not in "Advanced Driver" mode */
  1366. USB_DEVICE(0x0582, 0x0064),
  1367. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1368. /* .vendor_name = "EDIROL", */
  1369. /* .product_name = "PCR-1", */
  1370. .ifnum = QUIRK_ANY_INTERFACE,
  1371. .type = QUIRK_COMPOSITE,
  1372. .data = (const struct snd_usb_audio_quirk[]) {
  1373. {
  1374. .ifnum = 1,
  1375. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1376. },
  1377. {
  1378. .ifnum = 2,
  1379. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1380. },
  1381. {
  1382. .ifnum = -1
  1383. }
  1384. }
  1385. }
  1386. },
  1387. {
  1388. /* has ID 0x0067 when not in "Advanced Driver" mode */
  1389. USB_DEVICE(0x0582, 0x0065),
  1390. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1391. /* .vendor_name = "EDIROL", */
  1392. /* .product_name = "PCR-1", */
  1393. .ifnum = 0,
  1394. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1395. .data = & (const struct snd_usb_midi_endpoint_info) {
  1396. .out_cables = 0x0001,
  1397. .in_cables = 0x0003
  1398. }
  1399. }
  1400. },
  1401. {
  1402. /* has ID 0x006e when not in "Advanced Driver" mode */
  1403. USB_DEVICE(0x0582, 0x006d),
  1404. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1405. .vendor_name = "Roland",
  1406. .product_name = "FANTOM-X",
  1407. .ifnum = 0,
  1408. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1409. .data = & (const struct snd_usb_midi_endpoint_info) {
  1410. .out_cables = 0x0001,
  1411. .in_cables = 0x0001
  1412. }
  1413. }
  1414. },
  1415. { /*
  1416. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  1417. * If the switch is not in an advanced setting, the UA-25 has
  1418. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  1419. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1420. */
  1421. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  1422. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1423. .vendor_name = "EDIROL",
  1424. .product_name = "UA-25",
  1425. .ifnum = QUIRK_ANY_INTERFACE,
  1426. .type = QUIRK_COMPOSITE,
  1427. .data = (const struct snd_usb_audio_quirk[]) {
  1428. {
  1429. .ifnum = 0,
  1430. .type = QUIRK_AUDIO_EDIROL_UAXX
  1431. },
  1432. {
  1433. .ifnum = 1,
  1434. .type = QUIRK_AUDIO_EDIROL_UAXX
  1435. },
  1436. {
  1437. .ifnum = 2,
  1438. .type = QUIRK_AUDIO_EDIROL_UAXX
  1439. },
  1440. {
  1441. .ifnum = -1
  1442. }
  1443. }
  1444. }
  1445. },
  1446. {
  1447. /* has ID 0x0076 when not in "Advanced Driver" mode */
  1448. USB_DEVICE(0x0582, 0x0075),
  1449. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1450. .vendor_name = "BOSS",
  1451. .product_name = "DR-880",
  1452. .ifnum = 0,
  1453. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1454. .data = & (const struct snd_usb_midi_endpoint_info) {
  1455. .out_cables = 0x0001,
  1456. .in_cables = 0x0001
  1457. }
  1458. }
  1459. },
  1460. {
  1461. /* has ID 0x007b when not in "Advanced Driver" mode */
  1462. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1463. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1464. .vendor_name = "Roland",
  1465. /* "RD" or "RD-700SX"? */
  1466. .ifnum = 0,
  1467. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1468. .data = & (const struct snd_usb_midi_endpoint_info) {
  1469. .out_cables = 0x0003,
  1470. .in_cables = 0x0003
  1471. }
  1472. }
  1473. },
  1474. {
  1475. /* has ID 0x0081 when not in "Advanced Driver" mode */
  1476. USB_DEVICE(0x0582, 0x0080),
  1477. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1478. .vendor_name = "Roland",
  1479. .product_name = "G-70",
  1480. .ifnum = 0,
  1481. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1482. .data = & (const struct snd_usb_midi_endpoint_info) {
  1483. .out_cables = 0x0001,
  1484. .in_cables = 0x0001
  1485. }
  1486. }
  1487. },
  1488. {
  1489. /* has ID 0x008c when not in "Advanced Driver" mode */
  1490. USB_DEVICE(0x0582, 0x008b),
  1491. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1492. .vendor_name = "EDIROL",
  1493. .product_name = "PC-50",
  1494. .ifnum = 0,
  1495. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1496. .data = & (const struct snd_usb_midi_endpoint_info) {
  1497. .out_cables = 0x0001,
  1498. .in_cables = 0x0001
  1499. }
  1500. }
  1501. },
  1502. {
  1503. /*
  1504. * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
  1505. * is standard compliant, but has only 16-bit PCM and no MIDI.
  1506. */
  1507. USB_DEVICE(0x0582, 0x00a3),
  1508. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1509. .vendor_name = "EDIROL",
  1510. .product_name = "UA-4FX",
  1511. .ifnum = QUIRK_ANY_INTERFACE,
  1512. .type = QUIRK_COMPOSITE,
  1513. .data = (const struct snd_usb_audio_quirk[]) {
  1514. {
  1515. .ifnum = 0,
  1516. .type = QUIRK_AUDIO_EDIROL_UAXX
  1517. },
  1518. {
  1519. .ifnum = 1,
  1520. .type = QUIRK_AUDIO_EDIROL_UAXX
  1521. },
  1522. {
  1523. .ifnum = 2,
  1524. .type = QUIRK_AUDIO_EDIROL_UAXX
  1525. },
  1526. {
  1527. .ifnum = -1
  1528. }
  1529. }
  1530. }
  1531. },
  1532. {
  1533. /* Edirol M-16DX */
  1534. USB_DEVICE(0x0582, 0x00c4),
  1535. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1536. .ifnum = QUIRK_ANY_INTERFACE,
  1537. .type = QUIRK_COMPOSITE,
  1538. .data = (const struct snd_usb_audio_quirk[]) {
  1539. {
  1540. .ifnum = 0,
  1541. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1542. },
  1543. {
  1544. .ifnum = 1,
  1545. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1546. },
  1547. {
  1548. .ifnum = 2,
  1549. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1550. .data = & (const struct snd_usb_midi_endpoint_info) {
  1551. .out_cables = 0x0001,
  1552. .in_cables = 0x0001
  1553. }
  1554. },
  1555. {
  1556. .ifnum = -1
  1557. }
  1558. }
  1559. }
  1560. },
  1561. {
  1562. /* Advanced modes of the Edirol UA-25EX.
  1563. * For the standard mode, UA-25EX has ID 0582:00e7, which
  1564. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1565. */
  1566. USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
  1567. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1568. .vendor_name = "EDIROL",
  1569. .product_name = "UA-25EX",
  1570. .ifnum = QUIRK_ANY_INTERFACE,
  1571. .type = QUIRK_COMPOSITE,
  1572. .data = (const struct snd_usb_audio_quirk[]) {
  1573. {
  1574. .ifnum = 0,
  1575. .type = QUIRK_AUDIO_EDIROL_UAXX
  1576. },
  1577. {
  1578. .ifnum = 1,
  1579. .type = QUIRK_AUDIO_EDIROL_UAXX
  1580. },
  1581. {
  1582. .ifnum = 2,
  1583. .type = QUIRK_AUDIO_EDIROL_UAXX
  1584. },
  1585. {
  1586. .ifnum = -1
  1587. }
  1588. }
  1589. }
  1590. },
  1591. {
  1592. /* Edirol UM-3G */
  1593. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
  1594. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1595. .ifnum = 0,
  1596. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1597. .data = & (const struct snd_usb_midi_endpoint_info) {
  1598. .out_cables = 0x0007,
  1599. .in_cables = 0x0007
  1600. }
  1601. }
  1602. },
  1603. {
  1604. /* BOSS ME-25 */
  1605. USB_DEVICE(0x0582, 0x0113),
  1606. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1607. .ifnum = QUIRK_ANY_INTERFACE,
  1608. .type = QUIRK_COMPOSITE,
  1609. .data = (const struct snd_usb_audio_quirk[]) {
  1610. {
  1611. .ifnum = 0,
  1612. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1613. },
  1614. {
  1615. .ifnum = 1,
  1616. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1617. },
  1618. {
  1619. .ifnum = 2,
  1620. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1621. .data = & (const struct snd_usb_midi_endpoint_info) {
  1622. .out_cables = 0x0001,
  1623. .in_cables = 0x0001
  1624. }
  1625. },
  1626. {
  1627. .ifnum = -1
  1628. }
  1629. }
  1630. }
  1631. },
  1632. {
  1633. /* only 44.1 kHz works at the moment */
  1634. USB_DEVICE(0x0582, 0x0120),
  1635. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1636. /* .vendor_name = "Roland", */
  1637. /* .product_name = "OCTO-CAPTURE", */
  1638. .ifnum = QUIRK_ANY_INTERFACE,
  1639. .type = QUIRK_COMPOSITE,
  1640. .data = (const struct snd_usb_audio_quirk[]) {
  1641. {
  1642. .ifnum = 0,
  1643. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1644. .data = & (const struct audioformat) {
  1645. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1646. .channels = 10,
  1647. .iface = 0,
  1648. .altsetting = 1,
  1649. .altset_idx = 1,
  1650. .endpoint = 0x05,
  1651. .ep_attr = 0x05,
  1652. .rates = SNDRV_PCM_RATE_44100,
  1653. .rate_min = 44100,
  1654. .rate_max = 44100,
  1655. .nr_rates = 1,
  1656. .rate_table = (unsigned int[]) { 44100 }
  1657. }
  1658. },
  1659. {
  1660. .ifnum = 1,
  1661. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1662. .data = & (const struct audioformat) {
  1663. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1664. .channels = 12,
  1665. .iface = 1,
  1666. .altsetting = 1,
  1667. .altset_idx = 1,
  1668. .endpoint = 0x85,
  1669. .ep_attr = 0x25,
  1670. .rates = SNDRV_PCM_RATE_44100,
  1671. .rate_min = 44100,
  1672. .rate_max = 44100,
  1673. .nr_rates = 1,
  1674. .rate_table = (unsigned int[]) { 44100 }
  1675. }
  1676. },
  1677. {
  1678. .ifnum = 2,
  1679. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1680. .data = & (const struct snd_usb_midi_endpoint_info) {
  1681. .out_cables = 0x0001,
  1682. .in_cables = 0x0001
  1683. }
  1684. },
  1685. {
  1686. .ifnum = 3,
  1687. .type = QUIRK_IGNORE_INTERFACE
  1688. },
  1689. {
  1690. .ifnum = 4,
  1691. .type = QUIRK_IGNORE_INTERFACE
  1692. },
  1693. {
  1694. .ifnum = -1
  1695. }
  1696. }
  1697. }
  1698. },
  1699. {
  1700. /* only 44.1 kHz works at the moment */
  1701. USB_DEVICE(0x0582, 0x012f),
  1702. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1703. /* .vendor_name = "Roland", */
  1704. /* .product_name = "QUAD-CAPTURE", */
  1705. .ifnum = QUIRK_ANY_INTERFACE,
  1706. .type = QUIRK_COMPOSITE,
  1707. .data = (const struct snd_usb_audio_quirk[]) {
  1708. {
  1709. .ifnum = 0,
  1710. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1711. .data = & (const struct audioformat) {
  1712. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1713. .channels = 4,
  1714. .iface = 0,
  1715. .altsetting = 1,
  1716. .altset_idx = 1,
  1717. .endpoint = 0x05,
  1718. .ep_attr = 0x05,
  1719. .rates = SNDRV_PCM_RATE_44100,
  1720. .rate_min = 44100,
  1721. .rate_max = 44100,
  1722. .nr_rates = 1,
  1723. .rate_table = (unsigned int[]) { 44100 }
  1724. }
  1725. },
  1726. {
  1727. .ifnum = 1,
  1728. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1729. .data = & (const struct audioformat) {
  1730. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1731. .channels = 6,
  1732. .iface = 1,
  1733. .altsetting = 1,
  1734. .altset_idx = 1,
  1735. .endpoint = 0x85,
  1736. .ep_attr = 0x25,
  1737. .rates = SNDRV_PCM_RATE_44100,
  1738. .rate_min = 44100,
  1739. .rate_max = 44100,
  1740. .nr_rates = 1,
  1741. .rate_table = (unsigned int[]) { 44100 }
  1742. }
  1743. },
  1744. {
  1745. .ifnum = 2,
  1746. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1747. .data = & (const struct snd_usb_midi_endpoint_info) {
  1748. .out_cables = 0x0001,
  1749. .in_cables = 0x0001
  1750. }
  1751. },
  1752. {
  1753. .ifnum = 3,
  1754. .type = QUIRK_IGNORE_INTERFACE
  1755. },
  1756. {
  1757. .ifnum = 4,
  1758. .type = QUIRK_IGNORE_INTERFACE
  1759. },
  1760. {
  1761. .ifnum = -1
  1762. }
  1763. }
  1764. }
  1765. },
  1766. /* this catches most recent vendor-specific Roland devices */
  1767. {
  1768. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1769. USB_DEVICE_ID_MATCH_INT_CLASS,
  1770. .idVendor = 0x0582,
  1771. .bInterfaceClass = USB_CLASS_VENDOR_SPEC,
  1772. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  1773. .ifnum = QUIRK_ANY_INTERFACE,
  1774. .type = QUIRK_AUTODETECT
  1775. }
  1776. },
  1777. /* Guillemot devices */
  1778. {
  1779. /*
  1780. * This is for the "Windows Edition" where the external MIDI ports are
  1781. * the only MIDI ports; the control data is reported through HID
  1782. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1783. * compliant USB MIDI ports for external MIDI and controls.
  1784. */
  1785. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1786. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1787. .vendor_name = "Hercules",
  1788. .product_name = "DJ Console (WE)",
  1789. .ifnum = 4,
  1790. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1791. .data = & (const struct snd_usb_midi_endpoint_info) {
  1792. .out_cables = 0x0001,
  1793. .in_cables = 0x0001
  1794. }
  1795. }
  1796. },
  1797. /* Midiman/M-Audio devices */
  1798. {
  1799. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1800. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1801. .vendor_name = "M-Audio",
  1802. .product_name = "MidiSport 2x2",
  1803. .ifnum = QUIRK_ANY_INTERFACE,
  1804. .type = QUIRK_MIDI_MIDIMAN,
  1805. .data = & (const struct snd_usb_midi_endpoint_info) {
  1806. .out_cables = 0x0003,
  1807. .in_cables = 0x0003
  1808. }
  1809. }
  1810. },
  1811. {
  1812. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1813. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1814. .vendor_name = "M-Audio",
  1815. .product_name = "MidiSport 1x1",
  1816. .ifnum = QUIRK_ANY_INTERFACE,
  1817. .type = QUIRK_MIDI_MIDIMAN,
  1818. .data = & (const struct snd_usb_midi_endpoint_info) {
  1819. .out_cables = 0x0001,
  1820. .in_cables = 0x0001
  1821. }
  1822. }
  1823. },
  1824. {
  1825. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1826. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1827. .vendor_name = "M-Audio",
  1828. .product_name = "Keystation",
  1829. .ifnum = QUIRK_ANY_INTERFACE,
  1830. .type = QUIRK_MIDI_MIDIMAN,
  1831. .data = & (const struct snd_usb_midi_endpoint_info) {
  1832. .out_cables = 0x0001,
  1833. .in_cables = 0x0001
  1834. }
  1835. }
  1836. },
  1837. {
  1838. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1839. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1840. .vendor_name = "M-Audio",
  1841. .product_name = "MidiSport 4x4",
  1842. .ifnum = QUIRK_ANY_INTERFACE,
  1843. .type = QUIRK_MIDI_MIDIMAN,
  1844. .data = & (const struct snd_usb_midi_endpoint_info) {
  1845. .out_cables = 0x000f,
  1846. .in_cables = 0x000f
  1847. }
  1848. }
  1849. },
  1850. {
  1851. /*
  1852. * For hardware revision 1.05; in the later revisions (1.10 and
  1853. * 1.21), 0x1031 is the ID for the device without firmware.
  1854. * Thanks to Olaf Giesbrecht <Olaf_Giesbrecht@yahoo.de>
  1855. */
  1856. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1857. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1858. .vendor_name = "M-Audio",
  1859. .product_name = "MidiSport 8x8",
  1860. .ifnum = QUIRK_ANY_INTERFACE,
  1861. .type = QUIRK_MIDI_MIDIMAN,
  1862. .data = & (const struct snd_usb_midi_endpoint_info) {
  1863. .out_cables = 0x01ff,
  1864. .in_cables = 0x01ff
  1865. }
  1866. }
  1867. },
  1868. {
  1869. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1870. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1871. .vendor_name = "M-Audio",
  1872. .product_name = "MidiSport 8x8",
  1873. .ifnum = QUIRK_ANY_INTERFACE,
  1874. .type = QUIRK_MIDI_MIDIMAN,
  1875. .data = & (const struct snd_usb_midi_endpoint_info) {
  1876. .out_cables = 0x01ff,
  1877. .in_cables = 0x01ff
  1878. }
  1879. }
  1880. },
  1881. {
  1882. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1883. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1884. .vendor_name = "M-Audio",
  1885. .product_name = "MidiSport 2x4",
  1886. .ifnum = QUIRK_ANY_INTERFACE,
  1887. .type = QUIRK_MIDI_MIDIMAN,
  1888. .data = & (const struct snd_usb_midi_endpoint_info) {
  1889. .out_cables = 0x000f,
  1890. .in_cables = 0x0003
  1891. }
  1892. }
  1893. },
  1894. {
  1895. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1896. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1897. .vendor_name = "M-Audio",
  1898. .product_name = "Quattro",
  1899. .ifnum = QUIRK_ANY_INTERFACE,
  1900. .type = QUIRK_COMPOSITE,
  1901. .data = & (const struct snd_usb_audio_quirk[]) {
  1902. /*
  1903. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1904. * and share endpoints with the other interfaces.
  1905. * Ignore them. The other interfaces can do 24 bits,
  1906. * but captured samples are big-endian (see usbaudio.c).
  1907. */
  1908. {
  1909. .ifnum = 0,
  1910. .type = QUIRK_IGNORE_INTERFACE
  1911. },
  1912. {
  1913. .ifnum = 1,
  1914. .type = QUIRK_IGNORE_INTERFACE
  1915. },
  1916. {
  1917. .ifnum = 2,
  1918. .type = QUIRK_IGNORE_INTERFACE
  1919. },
  1920. {
  1921. .ifnum = 3,
  1922. .type = QUIRK_IGNORE_INTERFACE
  1923. },
  1924. {
  1925. .ifnum = 4,
  1926. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1927. },
  1928. {
  1929. .ifnum = 5,
  1930. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1931. },
  1932. {
  1933. .ifnum = 6,
  1934. .type = QUIRK_IGNORE_INTERFACE
  1935. },
  1936. {
  1937. .ifnum = 7,
  1938. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1939. },
  1940. {
  1941. .ifnum = 8,
  1942. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1943. },
  1944. {
  1945. .ifnum = 9,
  1946. .type = QUIRK_MIDI_MIDIMAN,
  1947. .data = & (const struct snd_usb_midi_endpoint_info) {
  1948. .out_cables = 0x0001,
  1949. .in_cables = 0x0001
  1950. }
  1951. },
  1952. {
  1953. .ifnum = -1
  1954. }
  1955. }
  1956. }
  1957. },
  1958. {
  1959. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1960. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1961. .vendor_name = "M-Audio",
  1962. .product_name = "AudioPhile",
  1963. .ifnum = 6,
  1964. .type = QUIRK_MIDI_MIDIMAN,
  1965. .data = & (const struct snd_usb_midi_endpoint_info) {
  1966. .out_cables = 0x0001,
  1967. .in_cables = 0x0001
  1968. }
  1969. }
  1970. },
  1971. {
  1972. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1973. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1974. .vendor_name = "M-Audio",
  1975. .product_name = "Ozone",
  1976. .ifnum = 3,
  1977. .type = QUIRK_MIDI_MIDIMAN,
  1978. .data = & (const struct snd_usb_midi_endpoint_info) {
  1979. .out_cables = 0x0001,
  1980. .in_cables = 0x0001
  1981. }
  1982. }
  1983. },
  1984. {
  1985. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1986. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1987. .vendor_name = "M-Audio",
  1988. .product_name = "OmniStudio",
  1989. .ifnum = QUIRK_ANY_INTERFACE,
  1990. .type = QUIRK_COMPOSITE,
  1991. .data = & (const struct snd_usb_audio_quirk[]) {
  1992. {
  1993. .ifnum = 0,
  1994. .type = QUIRK_IGNORE_INTERFACE
  1995. },
  1996. {
  1997. .ifnum = 1,
  1998. .type = QUIRK_IGNORE_INTERFACE
  1999. },
  2000. {
  2001. .ifnum = 2,
  2002. .type = QUIRK_IGNORE_INTERFACE
  2003. },
  2004. {
  2005. .ifnum = 3,
  2006. .type = QUIRK_IGNORE_INTERFACE
  2007. },
  2008. {
  2009. .ifnum = 4,
  2010. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2011. },
  2012. {
  2013. .ifnum = 5,
  2014. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2015. },
  2016. {
  2017. .ifnum = 6,
  2018. .type = QUIRK_IGNORE_INTERFACE
  2019. },
  2020. {
  2021. .ifnum = 7,
  2022. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2023. },
  2024. {
  2025. .ifnum = 8,
  2026. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2027. },
  2028. {
  2029. .ifnum = 9,
  2030. .type = QUIRK_MIDI_MIDIMAN,
  2031. .data = & (const struct snd_usb_midi_endpoint_info) {
  2032. .out_cables = 0x0001,
  2033. .in_cables = 0x0001
  2034. }
  2035. },
  2036. {
  2037. .ifnum = -1
  2038. }
  2039. }
  2040. }
  2041. },
  2042. {
  2043. USB_DEVICE(0x0763, 0x2019),
  2044. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2045. /* .vendor_name = "M-Audio", */
  2046. /* .product_name = "Ozone Academic", */
  2047. .ifnum = QUIRK_ANY_INTERFACE,
  2048. .type = QUIRK_COMPOSITE,
  2049. .data = & (const struct snd_usb_audio_quirk[]) {
  2050. {
  2051. .ifnum = 0,
  2052. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2053. },
  2054. {
  2055. .ifnum = 1,
  2056. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2057. },
  2058. {
  2059. .ifnum = 2,
  2060. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2061. },
  2062. {
  2063. .ifnum = 3,
  2064. .type = QUIRK_MIDI_MIDIMAN,
  2065. .data = & (const struct snd_usb_midi_endpoint_info) {
  2066. .out_cables = 0x0001,
  2067. .in_cables = 0x0001
  2068. }
  2069. },
  2070. {
  2071. .ifnum = -1
  2072. }
  2073. }
  2074. }
  2075. },
  2076. {
  2077. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030),
  2078. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2079. /* .vendor_name = "M-Audio", */
  2080. /* .product_name = "Fast Track C400", */
  2081. .ifnum = QUIRK_ANY_INTERFACE,
  2082. .type = QUIRK_COMPOSITE,
  2083. .data = &(const struct snd_usb_audio_quirk[]) {
  2084. {
  2085. .ifnum = 1,
  2086. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2087. },
  2088. /* Playback */
  2089. {
  2090. .ifnum = 2,
  2091. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2092. .data = &(const struct audioformat) {
  2093. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2094. .channels = 6,
  2095. .iface = 2,
  2096. .altsetting = 1,
  2097. .altset_idx = 1,
  2098. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2099. .endpoint = 0x01,
  2100. .ep_attr = 0x09,
  2101. .rates = SNDRV_PCM_RATE_44100 |
  2102. SNDRV_PCM_RATE_48000 |
  2103. SNDRV_PCM_RATE_88200 |
  2104. SNDRV_PCM_RATE_96000,
  2105. .rate_min = 44100,
  2106. .rate_max = 96000,
  2107. .nr_rates = 4,
  2108. .rate_table = (unsigned int[]) {
  2109. 44100, 48000, 88200, 96000
  2110. },
  2111. .clock = 0x80,
  2112. }
  2113. },
  2114. /* Capture */
  2115. {
  2116. .ifnum = 3,
  2117. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2118. .data = &(const struct audioformat) {
  2119. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2120. .channels = 4,
  2121. .iface = 3,
  2122. .altsetting = 1,
  2123. .altset_idx = 1,
  2124. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2125. .endpoint = 0x81,
  2126. .ep_attr = 0x05,
  2127. .rates = SNDRV_PCM_RATE_44100 |
  2128. SNDRV_PCM_RATE_48000 |
  2129. SNDRV_PCM_RATE_88200 |
  2130. SNDRV_PCM_RATE_96000,
  2131. .rate_min = 44100,
  2132. .rate_max = 96000,
  2133. .nr_rates = 4,
  2134. .rate_table = (unsigned int[]) {
  2135. 44100, 48000, 88200, 96000
  2136. },
  2137. .clock = 0x80,
  2138. }
  2139. },
  2140. /* MIDI */
  2141. {
  2142. .ifnum = -1 /* Interface = 4 */
  2143. }
  2144. }
  2145. }
  2146. },
  2147. {
  2148. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2031),
  2149. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2150. /* .vendor_name = "M-Audio", */
  2151. /* .product_name = "Fast Track C600", */
  2152. .ifnum = QUIRK_ANY_INTERFACE,
  2153. .type = QUIRK_COMPOSITE,
  2154. .data = &(const struct snd_usb_audio_quirk[]) {
  2155. {
  2156. .ifnum = 1,
  2157. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2158. },
  2159. /* Playback */
  2160. {
  2161. .ifnum = 2,
  2162. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2163. .data = &(const struct audioformat) {
  2164. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2165. .channels = 8,
  2166. .iface = 2,
  2167. .altsetting = 1,
  2168. .altset_idx = 1,
  2169. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2170. .endpoint = 0x01,
  2171. .ep_attr = 0x09,
  2172. .rates = SNDRV_PCM_RATE_44100 |
  2173. SNDRV_PCM_RATE_48000 |
  2174. SNDRV_PCM_RATE_88200 |
  2175. SNDRV_PCM_RATE_96000,
  2176. .rate_min = 44100,
  2177. .rate_max = 96000,
  2178. .nr_rates = 4,
  2179. .rate_table = (unsigned int[]) {
  2180. 44100, 48000, 88200, 96000
  2181. },
  2182. .clock = 0x80,
  2183. }
  2184. },
  2185. /* Capture */
  2186. {
  2187. .ifnum = 3,
  2188. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2189. .data = &(const struct audioformat) {
  2190. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2191. .channels = 6,
  2192. .iface = 3,
  2193. .altsetting = 1,
  2194. .altset_idx = 1,
  2195. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2196. .endpoint = 0x81,
  2197. .ep_attr = 0x05,
  2198. .rates = SNDRV_PCM_RATE_44100 |
  2199. SNDRV_PCM_RATE_48000 |
  2200. SNDRV_PCM_RATE_88200 |
  2201. SNDRV_PCM_RATE_96000,
  2202. .rate_min = 44100,
  2203. .rate_max = 96000,
  2204. .nr_rates = 4,
  2205. .rate_table = (unsigned int[]) {
  2206. 44100, 48000, 88200, 96000
  2207. },
  2208. .clock = 0x80,
  2209. }
  2210. },
  2211. /* MIDI */
  2212. {
  2213. .ifnum = -1 /* Interface = 4 */
  2214. }
  2215. }
  2216. }
  2217. },
  2218. {
  2219. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
  2220. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2221. /* .vendor_name = "M-Audio", */
  2222. /* .product_name = "Fast Track Ultra", */
  2223. .ifnum = QUIRK_ANY_INTERFACE,
  2224. .type = QUIRK_COMPOSITE,
  2225. .data = & (const struct snd_usb_audio_quirk[]) {
  2226. {
  2227. .ifnum = 0,
  2228. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2229. },
  2230. {
  2231. .ifnum = 1,
  2232. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2233. .data = & (const struct audioformat) {
  2234. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2235. .channels = 8,
  2236. .iface = 1,
  2237. .altsetting = 1,
  2238. .altset_idx = 1,
  2239. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2240. .endpoint = 0x01,
  2241. .ep_attr = 0x09,
  2242. .rates = SNDRV_PCM_RATE_44100 |
  2243. SNDRV_PCM_RATE_48000 |
  2244. SNDRV_PCM_RATE_88200 |
  2245. SNDRV_PCM_RATE_96000,
  2246. .rate_min = 44100,
  2247. .rate_max = 96000,
  2248. .nr_rates = 4,
  2249. .rate_table = (unsigned int[]) {
  2250. 44100, 48000, 88200, 96000
  2251. }
  2252. }
  2253. },
  2254. {
  2255. .ifnum = 2,
  2256. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2257. .data = & (const struct audioformat) {
  2258. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2259. .channels = 8,
  2260. .iface = 2,
  2261. .altsetting = 1,
  2262. .altset_idx = 1,
  2263. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2264. .endpoint = 0x81,
  2265. .ep_attr = 0x05,
  2266. .rates = SNDRV_PCM_RATE_44100 |
  2267. SNDRV_PCM_RATE_48000 |
  2268. SNDRV_PCM_RATE_88200 |
  2269. SNDRV_PCM_RATE_96000,
  2270. .rate_min = 44100,
  2271. .rate_max = 96000,
  2272. .nr_rates = 4,
  2273. .rate_table = (unsigned int[]) {
  2274. 44100, 48000, 88200, 96000
  2275. }
  2276. }
  2277. },
  2278. /* interface 3 (MIDI) is standard compliant */
  2279. {
  2280. .ifnum = -1
  2281. }
  2282. }
  2283. }
  2284. },
  2285. {
  2286. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
  2287. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2288. /* .vendor_name = "M-Audio", */
  2289. /* .product_name = "Fast Track Ultra 8R", */
  2290. .ifnum = QUIRK_ANY_INTERFACE,
  2291. .type = QUIRK_COMPOSITE,
  2292. .data = & (const struct snd_usb_audio_quirk[]) {
  2293. {
  2294. .ifnum = 0,
  2295. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2296. },
  2297. {
  2298. .ifnum = 1,
  2299. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2300. .data = & (const struct audioformat) {
  2301. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2302. .channels = 8,
  2303. .iface = 1,
  2304. .altsetting = 1,
  2305. .altset_idx = 1,
  2306. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2307. .endpoint = 0x01,
  2308. .ep_attr = 0x09,
  2309. .rates = SNDRV_PCM_RATE_44100 |
  2310. SNDRV_PCM_RATE_48000 |
  2311. SNDRV_PCM_RATE_88200 |
  2312. SNDRV_PCM_RATE_96000,
  2313. .rate_min = 44100,
  2314. .rate_max = 96000,
  2315. .nr_rates = 4,
  2316. .rate_table = (unsigned int[]) {
  2317. 44100, 48000, 88200, 96000
  2318. }
  2319. }
  2320. },
  2321. {
  2322. .ifnum = 2,
  2323. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2324. .data = & (const struct audioformat) {
  2325. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2326. .channels = 8,
  2327. .iface = 2,
  2328. .altsetting = 1,
  2329. .altset_idx = 1,
  2330. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2331. .endpoint = 0x81,
  2332. .ep_attr = 0x05,
  2333. .rates = SNDRV_PCM_RATE_44100 |
  2334. SNDRV_PCM_RATE_48000 |
  2335. SNDRV_PCM_RATE_88200 |
  2336. SNDRV_PCM_RATE_96000,
  2337. .rate_min = 44100,
  2338. .rate_max = 96000,
  2339. .nr_rates = 4,
  2340. .rate_table = (unsigned int[]) {
  2341. 44100, 48000, 88200, 96000
  2342. }
  2343. }
  2344. },
  2345. /* interface 3 (MIDI) is standard compliant */
  2346. {
  2347. .ifnum = -1
  2348. }
  2349. }
  2350. }
  2351. },
  2352. /* Casio devices */
  2353. {
  2354. USB_DEVICE(0x07cf, 0x6801),
  2355. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2356. .vendor_name = "Casio",
  2357. .product_name = "PL-40R",
  2358. .ifnum = 0,
  2359. .type = QUIRK_MIDI_YAMAHA
  2360. }
  2361. },
  2362. {
  2363. /* this ID is used by several devices without a product ID */
  2364. USB_DEVICE(0x07cf, 0x6802),
  2365. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2366. .vendor_name = "Casio",
  2367. .product_name = "Keyboard",
  2368. .ifnum = 0,
  2369. .type = QUIRK_MIDI_YAMAHA
  2370. }
  2371. },
  2372. /* Mark of the Unicorn devices */
  2373. {
  2374. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  2375. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  2376. USB_DEVICE_ID_MATCH_PRODUCT |
  2377. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  2378. .idVendor = 0x07fd,
  2379. .idProduct = 0x0001,
  2380. .bDeviceSubClass = 2,
  2381. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2382. .vendor_name = "MOTU",
  2383. .product_name = "Fastlane",
  2384. .ifnum = QUIRK_ANY_INTERFACE,
  2385. .type = QUIRK_COMPOSITE,
  2386. .data = & (const struct snd_usb_audio_quirk[]) {
  2387. {
  2388. .ifnum = 0,
  2389. .type = QUIRK_MIDI_RAW_BYTES
  2390. },
  2391. {
  2392. .ifnum = 1,
  2393. .type = QUIRK_IGNORE_INTERFACE
  2394. },
  2395. {
  2396. .ifnum = -1
  2397. }
  2398. }
  2399. }
  2400. },
  2401. /* Emagic devices */
  2402. {
  2403. USB_DEVICE(0x086a, 0x0001),
  2404. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2405. .vendor_name = "Emagic",
  2406. /* .product_name = "Unitor8", */
  2407. .ifnum = 2,
  2408. .type = QUIRK_MIDI_EMAGIC,
  2409. .data = & (const struct snd_usb_midi_endpoint_info) {
  2410. .out_cables = 0x80ff,
  2411. .in_cables = 0x80ff
  2412. }
  2413. }
  2414. },
  2415. {
  2416. USB_DEVICE(0x086a, 0x0002),
  2417. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2418. .vendor_name = "Emagic",
  2419. /* .product_name = "AMT8", */
  2420. .ifnum = 2,
  2421. .type = QUIRK_MIDI_EMAGIC,
  2422. .data = & (const struct snd_usb_midi_endpoint_info) {
  2423. .out_cables = 0x80ff,
  2424. .in_cables = 0x80ff
  2425. }
  2426. }
  2427. },
  2428. {
  2429. USB_DEVICE(0x086a, 0x0003),
  2430. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2431. .vendor_name = "Emagic",
  2432. /* .product_name = "MT4", */
  2433. .ifnum = 2,
  2434. .type = QUIRK_MIDI_EMAGIC,
  2435. .data = & (const struct snd_usb_midi_endpoint_info) {
  2436. .out_cables = 0x800f,
  2437. .in_cables = 0x8003
  2438. }
  2439. }
  2440. },
  2441. /* KORG devices */
  2442. {
  2443. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
  2444. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2445. .vendor_name = "KORG, Inc.",
  2446. /* .product_name = "PANDORA PX5D", */
  2447. .ifnum = 3,
  2448. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2449. }
  2450. },
  2451. {
  2452. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
  2453. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2454. .vendor_name = "KORG, Inc.",
  2455. /* .product_name = "ToneLab ST", */
  2456. .ifnum = 3,
  2457. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2458. }
  2459. },
  2460. /* AKAI devices */
  2461. {
  2462. USB_DEVICE(0x09e8, 0x0062),
  2463. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2464. .vendor_name = "AKAI",
  2465. .product_name = "MPD16",
  2466. .ifnum = 0,
  2467. .type = QUIRK_MIDI_AKAI,
  2468. }
  2469. },
  2470. /* TerraTec devices */
  2471. {
  2472. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  2473. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2474. .vendor_name = "TerraTec",
  2475. .product_name = "PHASE 26",
  2476. .ifnum = 3,
  2477. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2478. }
  2479. },
  2480. {
  2481. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  2482. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2483. .vendor_name = "TerraTec",
  2484. .product_name = "PHASE 26",
  2485. .ifnum = 3,
  2486. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2487. }
  2488. },
  2489. {
  2490. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  2491. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2492. .vendor_name = "TerraTec",
  2493. .product_name = "PHASE 26",
  2494. .ifnum = 3,
  2495. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2496. }
  2497. },
  2498. {
  2499. USB_DEVICE(0x0ccd, 0x0028),
  2500. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2501. .vendor_name = "TerraTec",
  2502. .product_name = "Aureon5.1MkII",
  2503. .ifnum = QUIRK_NO_INTERFACE
  2504. }
  2505. },
  2506. {
  2507. USB_DEVICE(0x0ccd, 0x0035),
  2508. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2509. .vendor_name = "Miditech",
  2510. .product_name = "Play'n Roll",
  2511. .ifnum = 0,
  2512. .type = QUIRK_MIDI_CME
  2513. }
  2514. },
  2515. /* Stanton/N2IT Final Scratch v1 device ('Scratchamp') */
  2516. {
  2517. USB_DEVICE(0x103d, 0x0100),
  2518. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2519. .vendor_name = "Stanton",
  2520. .product_name = "ScratchAmp",
  2521. .ifnum = QUIRK_NO_INTERFACE
  2522. }
  2523. },
  2524. {
  2525. USB_DEVICE(0x103d, 0x0101),
  2526. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2527. .vendor_name = "Stanton",
  2528. .product_name = "ScratchAmp",
  2529. .ifnum = QUIRK_NO_INTERFACE
  2530. }
  2531. },
  2532. /* Novation EMS devices */
  2533. {
  2534. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  2535. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2536. .vendor_name = "Novation",
  2537. .product_name = "ReMOTE Audio/XStation",
  2538. .ifnum = 4,
  2539. .type = QUIRK_MIDI_NOVATION
  2540. }
  2541. },
  2542. {
  2543. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  2544. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2545. .vendor_name = "Novation",
  2546. .product_name = "Speedio",
  2547. .ifnum = 3,
  2548. .type = QUIRK_MIDI_NOVATION
  2549. }
  2550. },
  2551. {
  2552. USB_DEVICE(0x1235, 0x000e),
  2553. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2554. /* .vendor_name = "Novation", */
  2555. /* .product_name = "Launchpad", */
  2556. .ifnum = 0,
  2557. .type = QUIRK_MIDI_RAW_BYTES
  2558. }
  2559. },
  2560. {
  2561. USB_DEVICE(0x1235, 0x0010),
  2562. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2563. .vendor_name = "Focusrite",
  2564. .product_name = "Saffire 6 USB",
  2565. .ifnum = QUIRK_ANY_INTERFACE,
  2566. .type = QUIRK_COMPOSITE,
  2567. .data = (const struct snd_usb_audio_quirk[]) {
  2568. {
  2569. .ifnum = 0,
  2570. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2571. .data = &(const struct audioformat) {
  2572. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2573. .channels = 4,
  2574. .iface = 0,
  2575. .altsetting = 1,
  2576. .altset_idx = 1,
  2577. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2578. .endpoint = 0x01,
  2579. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2580. .rates = SNDRV_PCM_RATE_44100 |
  2581. SNDRV_PCM_RATE_48000,
  2582. .rate_min = 44100,
  2583. .rate_max = 48000,
  2584. .nr_rates = 2,
  2585. .rate_table = (unsigned int[]) {
  2586. 44100, 48000
  2587. }
  2588. }
  2589. },
  2590. {
  2591. .ifnum = 1,
  2592. .type = QUIRK_MIDI_RAW_BYTES
  2593. },
  2594. {
  2595. .ifnum = -1
  2596. }
  2597. }
  2598. }
  2599. },
  2600. {
  2601. USB_DEVICE(0x1235, 0x0018),
  2602. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2603. .vendor_name = "Novation",
  2604. .product_name = "Twitch",
  2605. .ifnum = QUIRK_ANY_INTERFACE,
  2606. .type = QUIRK_COMPOSITE,
  2607. .data = (const struct snd_usb_audio_quirk[]) {
  2608. {
  2609. .ifnum = 0,
  2610. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2611. .data = & (const struct audioformat) {
  2612. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2613. .channels = 4,
  2614. .iface = 0,
  2615. .altsetting = 1,
  2616. .altset_idx = 1,
  2617. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2618. .endpoint = 0x01,
  2619. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2620. .rates = SNDRV_PCM_RATE_44100 |
  2621. SNDRV_PCM_RATE_48000,
  2622. .rate_min = 44100,
  2623. .rate_max = 48000,
  2624. .nr_rates = 2,
  2625. .rate_table = (unsigned int[]) {
  2626. 44100, 48000
  2627. }
  2628. }
  2629. },
  2630. {
  2631. .ifnum = 1,
  2632. .type = QUIRK_MIDI_RAW_BYTES
  2633. },
  2634. {
  2635. .ifnum = -1
  2636. }
  2637. }
  2638. }
  2639. },
  2640. {
  2641. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  2642. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2643. .vendor_name = "Novation",
  2644. .product_name = "ReMOTE25",
  2645. .ifnum = 0,
  2646. .type = QUIRK_MIDI_NOVATION
  2647. }
  2648. },
  2649. /* Access Music devices */
  2650. {
  2651. /* VirusTI Desktop */
  2652. USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
  2653. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2654. .ifnum = QUIRK_ANY_INTERFACE,
  2655. .type = QUIRK_COMPOSITE,
  2656. .data = &(const struct snd_usb_audio_quirk[]) {
  2657. {
  2658. .ifnum = 3,
  2659. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2660. .data = &(const struct snd_usb_midi_endpoint_info) {
  2661. .out_cables = 0x0003,
  2662. .in_cables = 0x0003
  2663. }
  2664. },
  2665. {
  2666. .ifnum = 4,
  2667. .type = QUIRK_IGNORE_INTERFACE
  2668. },
  2669. {
  2670. .ifnum = -1
  2671. }
  2672. }
  2673. }
  2674. },
  2675. /* */
  2676. {
  2677. /* aka. Serato Scratch Live DJ Box */
  2678. USB_DEVICE(0x13e5, 0x0001),
  2679. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2680. .vendor_name = "Rane",
  2681. .product_name = "SL-1",
  2682. .ifnum = QUIRK_NO_INTERFACE
  2683. }
  2684. },
  2685. /* Native Instruments MK2 series */
  2686. {
  2687. /* Komplete Audio 6 */
  2688. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2689. .idVendor = 0x17cc,
  2690. .idProduct = 0x1000,
  2691. },
  2692. {
  2693. /* Traktor Audio 6 */
  2694. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2695. .idVendor = 0x17cc,
  2696. .idProduct = 0x1010,
  2697. },
  2698. {
  2699. /* Traktor Audio 10 */
  2700. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2701. .idVendor = 0x17cc,
  2702. .idProduct = 0x1020,
  2703. },
  2704. /* KeithMcMillen Stringport */
  2705. {
  2706. USB_DEVICE(0x1f38, 0x0001),
  2707. .bInterfaceClass = USB_CLASS_AUDIO,
  2708. },
  2709. /* Miditech devices */
  2710. {
  2711. USB_DEVICE(0x4752, 0x0011),
  2712. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2713. .vendor_name = "Miditech",
  2714. .product_name = "Midistart-2",
  2715. .ifnum = 0,
  2716. .type = QUIRK_MIDI_CME
  2717. }
  2718. },
  2719. /* Central Music devices */
  2720. {
  2721. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  2722. USB_DEVICE(0x7104, 0x2202),
  2723. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2724. .ifnum = 0,
  2725. .type = QUIRK_MIDI_CME
  2726. }
  2727. },
  2728. /*
  2729. * Auvitek au0828 devices with audio interface.
  2730. * This should be kept in sync with drivers/media/usb/au0828/au0828-cards.c
  2731. * Please notice that some drivers are DVB only, and don't need to be
  2732. * here. That's the case, for example, of DVICO_FUSIONHDTV7.
  2733. */
  2734. #define AU0828_DEVICE(vid, pid, vname, pname) { \
  2735. USB_DEVICE_VENDOR_SPEC(vid, pid), \
  2736. .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
  2737. USB_DEVICE_ID_MATCH_INT_CLASS | \
  2738. USB_DEVICE_ID_MATCH_INT_SUBCLASS, \
  2739. .bInterfaceClass = USB_CLASS_AUDIO, \
  2740. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL, \
  2741. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { \
  2742. .vendor_name = vname, \
  2743. .product_name = pname, \
  2744. .ifnum = QUIRK_ANY_INTERFACE, \
  2745. .type = QUIRK_AUDIO_ALIGN_TRANSFER, \
  2746. } \
  2747. }
  2748. AU0828_DEVICE(0x2040, 0x7200, "Hauppauge", "HVR-950Q"),
  2749. AU0828_DEVICE(0x2040, 0x7240, "Hauppauge", "HVR-850"),
  2750. AU0828_DEVICE(0x2040, 0x7210, "Hauppauge", "HVR-950Q"),
  2751. AU0828_DEVICE(0x2040, 0x7217, "Hauppauge", "HVR-950Q"),
  2752. AU0828_DEVICE(0x2040, 0x721b, "Hauppauge", "HVR-950Q"),
  2753. AU0828_DEVICE(0x2040, 0x721e, "Hauppauge", "HVR-950Q"),
  2754. AU0828_DEVICE(0x2040, 0x721f, "Hauppauge", "HVR-950Q"),
  2755. AU0828_DEVICE(0x2040, 0x7280, "Hauppauge", "HVR-950Q"),
  2756. AU0828_DEVICE(0x0fd9, 0x0008, "Hauppauge", "HVR-950Q"),
  2757. AU0828_DEVICE(0x2040, 0x7201, "Hauppauge", "HVR-950Q-MXL"),
  2758. AU0828_DEVICE(0x2040, 0x7211, "Hauppauge", "HVR-950Q-MXL"),
  2759. AU0828_DEVICE(0x2040, 0x7281, "Hauppauge", "HVR-950Q-MXL"),
  2760. AU0828_DEVICE(0x05e1, 0x0480, "Hauppauge", "Woodbury"),
  2761. AU0828_DEVICE(0x2040, 0x8200, "Hauppauge", "Woodbury"),
  2762. AU0828_DEVICE(0x2040, 0x7260, "Hauppauge", "HVR-950Q"),
  2763. AU0828_DEVICE(0x2040, 0x7213, "Hauppauge", "HVR-950Q"),
  2764. AU0828_DEVICE(0x2040, 0x7270, "Hauppauge", "HVR-950Q"),
  2765. /* Digidesign Mbox */
  2766. {
  2767. /* Thanks to Clemens Ladisch <clemens@ladisch.de> */
  2768. USB_DEVICE(0x0dba, 0x1000),
  2769. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2770. .vendor_name = "Digidesign",
  2771. .product_name = "MBox",
  2772. .ifnum = QUIRK_ANY_INTERFACE,
  2773. .type = QUIRK_COMPOSITE,
  2774. .data = (const struct snd_usb_audio_quirk[]){
  2775. {
  2776. .ifnum = 0,
  2777. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2778. },
  2779. {
  2780. .ifnum = 1,
  2781. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2782. .data = &(const struct audioformat) {
  2783. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2784. .channels = 2,
  2785. .iface = 1,
  2786. .altsetting = 1,
  2787. .altset_idx = 1,
  2788. .attributes = 0x4,
  2789. .endpoint = 0x02,
  2790. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  2791. USB_ENDPOINT_SYNC_SYNC,
  2792. .maxpacksize = 0x130,
  2793. .rates = SNDRV_PCM_RATE_48000,
  2794. .rate_min = 48000,
  2795. .rate_max = 48000,
  2796. .nr_rates = 1,
  2797. .rate_table = (unsigned int[]) {
  2798. 48000
  2799. }
  2800. }
  2801. },
  2802. {
  2803. .ifnum = 1,
  2804. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2805. .data = &(const struct audioformat) {
  2806. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2807. .channels = 2,
  2808. .iface = 1,
  2809. .altsetting = 1,
  2810. .altset_idx = 1,
  2811. .attributes = 0x4,
  2812. .endpoint = 0x81,
  2813. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  2814. USB_ENDPOINT_SYNC_ASYNC,
  2815. .maxpacksize = 0x130,
  2816. .rates = SNDRV_PCM_RATE_48000,
  2817. .rate_min = 48000,
  2818. .rate_max = 48000,
  2819. .nr_rates = 1,
  2820. .rate_table = (unsigned int[]) {
  2821. 48000
  2822. }
  2823. }
  2824. },
  2825. {
  2826. .ifnum = -1
  2827. }
  2828. }
  2829. }
  2830. },
  2831. /* DIGIDESIGN MBOX 2 */
  2832. {
  2833. USB_DEVICE(0x0dba, 0x3000),
  2834. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2835. .vendor_name = "Digidesign",
  2836. .product_name = "Mbox 2",
  2837. .ifnum = QUIRK_ANY_INTERFACE,
  2838. .type = QUIRK_COMPOSITE,
  2839. .data = (const struct snd_usb_audio_quirk[]) {
  2840. {
  2841. .ifnum = 0,
  2842. .type = QUIRK_IGNORE_INTERFACE
  2843. },
  2844. {
  2845. .ifnum = 1,
  2846. .type = QUIRK_IGNORE_INTERFACE
  2847. },
  2848. {
  2849. .ifnum = 2,
  2850. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2851. .data = &(const struct audioformat) {
  2852. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2853. .channels = 2,
  2854. .iface = 2,
  2855. .altsetting = 2,
  2856. .altset_idx = 1,
  2857. .attributes = 0x00,
  2858. .endpoint = 0x03,
  2859. .ep_attr = USB_ENDPOINT_SYNC_ASYNC,
  2860. .rates = SNDRV_PCM_RATE_48000,
  2861. .rate_min = 48000,
  2862. .rate_max = 48000,
  2863. .nr_rates = 1,
  2864. .rate_table = (unsigned int[]) {
  2865. 48000
  2866. }
  2867. }
  2868. },
  2869. {
  2870. .ifnum = 3,
  2871. .type = QUIRK_IGNORE_INTERFACE
  2872. },
  2873. {
  2874. .ifnum = 4,
  2875. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2876. .data = &(const struct audioformat) {
  2877. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2878. .channels = 2,
  2879. .iface = 4,
  2880. .altsetting = 2,
  2881. .altset_idx = 1,
  2882. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2883. .endpoint = 0x85,
  2884. .ep_attr = USB_ENDPOINT_SYNC_SYNC,
  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 = 5,
  2896. .type = QUIRK_IGNORE_INTERFACE
  2897. },
  2898. {
  2899. .ifnum = 6,
  2900. .type = QUIRK_MIDI_MIDIMAN,
  2901. .data = &(const struct snd_usb_midi_endpoint_info) {
  2902. .out_ep = 0x02,
  2903. .out_cables = 0x0001,
  2904. .in_ep = 0x81,
  2905. .in_interval = 0x01,
  2906. .in_cables = 0x0001
  2907. }
  2908. },
  2909. {
  2910. .ifnum = -1
  2911. }
  2912. }
  2913. }
  2914. },
  2915. {
  2916. /* Tascam US122 MKII - playback-only support */
  2917. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2918. .idVendor = 0x0644,
  2919. .idProduct = 0x8021,
  2920. .bInterfaceClass = USB_CLASS_AUDIO,
  2921. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2922. .vendor_name = "TASCAM",
  2923. .product_name = "US122 MKII",
  2924. .ifnum = QUIRK_ANY_INTERFACE,
  2925. .type = QUIRK_COMPOSITE,
  2926. .data = (const struct snd_usb_audio_quirk[]) {
  2927. {
  2928. .ifnum = 0,
  2929. .type = QUIRK_IGNORE_INTERFACE
  2930. },
  2931. {
  2932. .ifnum = 1,
  2933. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2934. .data = &(const struct audioformat) {
  2935. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2936. .channels = 2,
  2937. .iface = 1,
  2938. .altsetting = 1,
  2939. .altset_idx = 1,
  2940. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2941. .endpoint = 0x02,
  2942. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2943. .rates = SNDRV_PCM_RATE_44100 |
  2944. SNDRV_PCM_RATE_48000 |
  2945. SNDRV_PCM_RATE_88200 |
  2946. SNDRV_PCM_RATE_96000,
  2947. .rate_min = 44100,
  2948. .rate_max = 96000,
  2949. .nr_rates = 4,
  2950. .rate_table = (unsigned int[]) {
  2951. 44100, 48000, 88200, 96000
  2952. }
  2953. }
  2954. },
  2955. {
  2956. .ifnum = -1
  2957. }
  2958. }
  2959. }
  2960. },
  2961. /* Microsoft XboxLive Headset/Xbox Communicator */
  2962. {
  2963. USB_DEVICE(0x045e, 0x0283),
  2964. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  2965. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2966. .vendor_name = "Microsoft",
  2967. .product_name = "XboxLive Headset/Xbox Communicator",
  2968. .ifnum = QUIRK_ANY_INTERFACE,
  2969. .type = QUIRK_COMPOSITE,
  2970. .data = &(const struct snd_usb_audio_quirk[]) {
  2971. {
  2972. /* playback */
  2973. .ifnum = 0,
  2974. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2975. .data = &(const struct audioformat) {
  2976. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2977. .channels = 1,
  2978. .iface = 0,
  2979. .altsetting = 0,
  2980. .altset_idx = 0,
  2981. .attributes = 0,
  2982. .endpoint = 0x04,
  2983. .ep_attr = 0x05,
  2984. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  2985. .rate_min = 22050,
  2986. .rate_max = 22050
  2987. }
  2988. },
  2989. {
  2990. /* capture */
  2991. .ifnum = 1,
  2992. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2993. .data = &(const struct audioformat) {
  2994. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  2995. .channels = 1,
  2996. .iface = 1,
  2997. .altsetting = 0,
  2998. .altset_idx = 0,
  2999. .attributes = 0,
  3000. .endpoint = 0x85,
  3001. .ep_attr = 0x05,
  3002. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3003. .rate_min = 16000,
  3004. .rate_max = 16000
  3005. }
  3006. },
  3007. {
  3008. .ifnum = -1
  3009. }
  3010. }
  3011. }
  3012. },
  3013. /* Reloop Play */
  3014. {
  3015. USB_DEVICE(0x200c, 0x100b),
  3016. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  3017. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3018. .ifnum = QUIRK_ANY_INTERFACE,
  3019. .type = QUIRK_COMPOSITE,
  3020. .data = &(const struct snd_usb_audio_quirk[]) {
  3021. {
  3022. .ifnum = 0,
  3023. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3024. },
  3025. {
  3026. .ifnum = 1,
  3027. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3028. .data = &(const struct audioformat) {
  3029. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3030. .channels = 4,
  3031. .iface = 1,
  3032. .altsetting = 1,
  3033. .altset_idx = 1,
  3034. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3035. .endpoint = 0x01,
  3036. .ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
  3037. .rates = SNDRV_PCM_RATE_44100 |
  3038. SNDRV_PCM_RATE_48000,
  3039. .rate_min = 44100,
  3040. .rate_max = 48000,
  3041. .nr_rates = 2,
  3042. .rate_table = (unsigned int[]) {
  3043. 44100, 48000
  3044. }
  3045. }
  3046. },
  3047. {
  3048. .ifnum = -1
  3049. }
  3050. }
  3051. }
  3052. },
  3053. {
  3054. /*
  3055. * ZOOM R16/24 in audio interface mode.
  3056. * Mixer descriptors are garbage, further quirks will be needed
  3057. * to make any of it functional, thus disabled for now.
  3058. * Playback stream appears to start and run fine but no sound
  3059. * is produced, so also disabled for now.
  3060. */
  3061. USB_DEVICE(0x1686, 0x00dd),
  3062. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  3063. .ifnum = QUIRK_ANY_INTERFACE,
  3064. .type = QUIRK_COMPOSITE,
  3065. .data = (const struct snd_usb_audio_quirk[]) {
  3066. {
  3067. /* Mixer */
  3068. .ifnum = 0,
  3069. .type = QUIRK_IGNORE_INTERFACE,
  3070. },
  3071. {
  3072. /* Playback */
  3073. .ifnum = 1,
  3074. .type = QUIRK_IGNORE_INTERFACE,
  3075. },
  3076. {
  3077. /* Capture */
  3078. .ifnum = 2,
  3079. .type = QUIRK_AUDIO_STANDARD_INTERFACE,
  3080. },
  3081. {
  3082. /* Midi */
  3083. .ifnum = 3,
  3084. .type = QUIRK_MIDI_STANDARD_INTERFACE
  3085. },
  3086. {
  3087. .ifnum = -1
  3088. },
  3089. }
  3090. }
  3091. },
  3092. {
  3093. /*
  3094. * Some USB MIDI devices don't have an audio control interface,
  3095. * so we have to grab MIDI streaming interfaces here.
  3096. */
  3097. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  3098. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  3099. .bInterfaceClass = USB_CLASS_AUDIO,
  3100. .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
  3101. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  3102. .ifnum = QUIRK_ANY_INTERFACE,
  3103. .type = QUIRK_MIDI_STANDARD_INTERFACE
  3104. }
  3105. },
  3106. {
  3107. /*
  3108. * The original product_name is "USB Sound Device", however this name
  3109. * is also used by the CM106 based cards, so make it unique.
  3110. */
  3111. USB_DEVICE(0x0d8c, 0x0103),
  3112. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3113. .product_name = "Audio Advantage MicroII",
  3114. .ifnum = QUIRK_NO_INTERFACE
  3115. }
  3116. },
  3117. #undef USB_DEVICE_VENDOR_SPEC