quirks-table.h 85 KB

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