quirks-table.h 106 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * ALSA USB Audio Driver
  4. *
  5. * Copyright (c) 2002 by Takashi Iwai <[email protected]>,
  6. * Clemens Ladisch <[email protected]>
  7. */
  8. /*
  9. * The contents of this file are part of the driver's id_table.
  10. *
  11. * In a perfect world, this file would be empty.
  12. */
  13. /*
  14. * Use this for devices where other interfaces are standard compliant,
  15. * to prevent the quirk being applied to those interfaces. (To work with
  16. * hotplugging, bDeviceClass must be set to USB_CLASS_PER_INTERFACE.)
  17. */
  18. #define USB_DEVICE_VENDOR_SPEC(vend, prod) \
  19. .match_flags = USB_DEVICE_ID_MATCH_VENDOR | \
  20. USB_DEVICE_ID_MATCH_PRODUCT | \
  21. USB_DEVICE_ID_MATCH_INT_CLASS, \
  22. .idVendor = vend, \
  23. .idProduct = prod, \
  24. .bInterfaceClass = USB_CLASS_VENDOR_SPEC
  25. /* A standard entry matching with vid/pid and the audio class/subclass */
  26. #define USB_AUDIO_DEVICE(vend, prod) \
  27. .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
  28. USB_DEVICE_ID_MATCH_INT_CLASS | \
  29. USB_DEVICE_ID_MATCH_INT_SUBCLASS, \
  30. .idVendor = vend, \
  31. .idProduct = prod, \
  32. .bInterfaceClass = USB_CLASS_AUDIO, \
  33. .bInterfaceSubClass = USB_SUBCLASS_AUDIOCONTROL
  34. /* FTDI devices */
  35. {
  36. USB_DEVICE(0x0403, 0xb8d8),
  37. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  38. /* .vendor_name = "STARR LABS", */
  39. /* .product_name = "Starr Labs MIDI USB device", */
  40. .ifnum = 0,
  41. .type = QUIRK_MIDI_FTDI
  42. }
  43. },
  44. {
  45. /* Creative BT-D1 */
  46. USB_DEVICE(0x041e, 0x0005),
  47. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  48. .ifnum = 1,
  49. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  50. .data = &(const struct audioformat) {
  51. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  52. .channels = 2,
  53. .iface = 1,
  54. .altsetting = 1,
  55. .altset_idx = 1,
  56. .endpoint = 0x03,
  57. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  58. .attributes = 0,
  59. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  60. .rate_min = 48000,
  61. .rate_max = 48000,
  62. }
  63. }
  64. },
  65. /* E-Mu 0202 USB */
  66. { USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f02) },
  67. /* E-Mu 0404 USB */
  68. { USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f04) },
  69. /* E-Mu Tracker Pre */
  70. { USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f0a) },
  71. /* E-Mu 0204 USB */
  72. { USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f19) },
  73. /* Ktmicro Usb_audio device */
  74. { USB_DEVICE_VENDOR_SPEC(0x31b2, 0x0011) },
  75. /*
  76. * Creative Technology, Ltd Live! Cam Sync HD [VF0770]
  77. * The device advertises 8 formats, but only a rate of 48kHz is honored by the
  78. * hardware and 24 bits give chopped audio, so only report the one working
  79. * combination.
  80. */
  81. {
  82. USB_AUDIO_DEVICE(0x041e, 0x4095),
  83. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  84. .ifnum = QUIRK_ANY_INTERFACE,
  85. .type = QUIRK_COMPOSITE,
  86. .data = &(const struct snd_usb_audio_quirk[]) {
  87. {
  88. .ifnum = 2,
  89. .type = QUIRK_AUDIO_STANDARD_MIXER,
  90. },
  91. {
  92. .ifnum = 3,
  93. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  94. .data = &(const struct audioformat) {
  95. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  96. .channels = 2,
  97. .fmt_bits = 16,
  98. .iface = 3,
  99. .altsetting = 4,
  100. .altset_idx = 4,
  101. .endpoint = 0x82,
  102. .ep_attr = 0x05,
  103. .rates = SNDRV_PCM_RATE_48000,
  104. .rate_min = 48000,
  105. .rate_max = 48000,
  106. .nr_rates = 1,
  107. .rate_table = (unsigned int[]) { 48000 },
  108. },
  109. },
  110. {
  111. .ifnum = -1
  112. },
  113. },
  114. },
  115. },
  116. /*
  117. * HP Wireless Audio
  118. * When not ignored, causes instability issues for some users, forcing them to
  119. * skip the entire module.
  120. */
  121. {
  122. USB_DEVICE(0x0424, 0xb832),
  123. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  124. .vendor_name = "Standard Microsystems Corp.",
  125. .product_name = "HP Wireless Audio",
  126. .ifnum = QUIRK_ANY_INTERFACE,
  127. .type = QUIRK_COMPOSITE,
  128. .data = (const struct snd_usb_audio_quirk[]) {
  129. /* Mixer */
  130. {
  131. .ifnum = 0,
  132. .type = QUIRK_IGNORE_INTERFACE,
  133. },
  134. /* Playback */
  135. {
  136. .ifnum = 1,
  137. .type = QUIRK_IGNORE_INTERFACE,
  138. },
  139. /* Capture */
  140. {
  141. .ifnum = 2,
  142. .type = QUIRK_IGNORE_INTERFACE,
  143. },
  144. /* HID Device, .ifnum = 3 */
  145. {
  146. .ifnum = -1,
  147. }
  148. }
  149. }
  150. },
  151. /*
  152. * Logitech QuickCam: bDeviceClass is vendor-specific, so generic interface
  153. * class matches do not take effect without an explicit ID match.
  154. */
  155. { USB_AUDIO_DEVICE(0x046d, 0x0850) },
  156. { USB_AUDIO_DEVICE(0x046d, 0x08ae) },
  157. { USB_AUDIO_DEVICE(0x046d, 0x08c6) },
  158. { USB_AUDIO_DEVICE(0x046d, 0x08f0) },
  159. { USB_AUDIO_DEVICE(0x046d, 0x08f5) },
  160. { USB_AUDIO_DEVICE(0x046d, 0x08f6) },
  161. { USB_AUDIO_DEVICE(0x046d, 0x0990) },
  162. /*
  163. * Yamaha devices
  164. */
  165. #define YAMAHA_DEVICE(id, name) { \
  166. USB_DEVICE(0x0499, id), \
  167. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  168. .vendor_name = "Yamaha", \
  169. .product_name = name, \
  170. .ifnum = QUIRK_ANY_INTERFACE, \
  171. .type = QUIRK_MIDI_YAMAHA \
  172. } \
  173. }
  174. #define YAMAHA_INTERFACE(id, intf, name) { \
  175. USB_DEVICE_VENDOR_SPEC(0x0499, id), \
  176. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) { \
  177. .vendor_name = "Yamaha", \
  178. .product_name = name, \
  179. .ifnum = intf, \
  180. .type = QUIRK_MIDI_YAMAHA \
  181. } \
  182. }
  183. YAMAHA_DEVICE(0x1000, "UX256"),
  184. YAMAHA_DEVICE(0x1001, "MU1000"),
  185. YAMAHA_DEVICE(0x1002, "MU2000"),
  186. YAMAHA_DEVICE(0x1003, "MU500"),
  187. YAMAHA_INTERFACE(0x1004, 3, "UW500"),
  188. YAMAHA_DEVICE(0x1005, "MOTIF6"),
  189. YAMAHA_DEVICE(0x1006, "MOTIF7"),
  190. YAMAHA_DEVICE(0x1007, "MOTIF8"),
  191. YAMAHA_DEVICE(0x1008, "UX96"),
  192. YAMAHA_DEVICE(0x1009, "UX16"),
  193. YAMAHA_INTERFACE(0x100a, 3, "EOS BX"),
  194. YAMAHA_DEVICE(0x100c, "UC-MX"),
  195. YAMAHA_DEVICE(0x100d, "UC-KX"),
  196. YAMAHA_DEVICE(0x100e, "S08"),
  197. YAMAHA_DEVICE(0x100f, "CLP-150"),
  198. YAMAHA_DEVICE(0x1010, "CLP-170"),
  199. YAMAHA_DEVICE(0x1011, "P-250"),
  200. YAMAHA_DEVICE(0x1012, "TYROS"),
  201. YAMAHA_DEVICE(0x1013, "PF-500"),
  202. YAMAHA_DEVICE(0x1014, "S90"),
  203. YAMAHA_DEVICE(0x1015, "MOTIF-R"),
  204. YAMAHA_DEVICE(0x1016, "MDP-5"),
  205. YAMAHA_DEVICE(0x1017, "CVP-204"),
  206. YAMAHA_DEVICE(0x1018, "CVP-206"),
  207. YAMAHA_DEVICE(0x1019, "CVP-208"),
  208. YAMAHA_DEVICE(0x101a, "CVP-210"),
  209. YAMAHA_DEVICE(0x101b, "PSR-1100"),
  210. YAMAHA_DEVICE(0x101c, "PSR-2100"),
  211. YAMAHA_DEVICE(0x101d, "CLP-175"),
  212. YAMAHA_DEVICE(0x101e, "PSR-K1"),
  213. YAMAHA_DEVICE(0x101f, "EZ-J24"),
  214. YAMAHA_DEVICE(0x1020, "EZ-250i"),
  215. YAMAHA_DEVICE(0x1021, "MOTIF ES 6"),
  216. YAMAHA_DEVICE(0x1022, "MOTIF ES 7"),
  217. YAMAHA_DEVICE(0x1023, "MOTIF ES 8"),
  218. YAMAHA_DEVICE(0x1024, "CVP-301"),
  219. YAMAHA_DEVICE(0x1025, "CVP-303"),
  220. YAMAHA_DEVICE(0x1026, "CVP-305"),
  221. YAMAHA_DEVICE(0x1027, "CVP-307"),
  222. YAMAHA_DEVICE(0x1028, "CVP-309"),
  223. YAMAHA_DEVICE(0x1029, "CVP-309GP"),
  224. YAMAHA_DEVICE(0x102a, "PSR-1500"),
  225. YAMAHA_DEVICE(0x102b, "PSR-3000"),
  226. YAMAHA_DEVICE(0x102e, "ELS-01/01C"),
  227. YAMAHA_DEVICE(0x1030, "PSR-295/293"),
  228. YAMAHA_DEVICE(0x1031, "DGX-205/203"),
  229. YAMAHA_DEVICE(0x1032, "DGX-305"),
  230. YAMAHA_DEVICE(0x1033, "DGX-505"),
  231. YAMAHA_DEVICE(0x1034, NULL),
  232. YAMAHA_DEVICE(0x1035, NULL),
  233. YAMAHA_DEVICE(0x1036, NULL),
  234. YAMAHA_DEVICE(0x1037, NULL),
  235. YAMAHA_DEVICE(0x1038, NULL),
  236. YAMAHA_DEVICE(0x1039, NULL),
  237. YAMAHA_DEVICE(0x103a, NULL),
  238. YAMAHA_DEVICE(0x103b, NULL),
  239. YAMAHA_DEVICE(0x103c, NULL),
  240. YAMAHA_DEVICE(0x103d, NULL),
  241. YAMAHA_DEVICE(0x103e, NULL),
  242. YAMAHA_DEVICE(0x103f, NULL),
  243. YAMAHA_DEVICE(0x1040, NULL),
  244. YAMAHA_DEVICE(0x1041, NULL),
  245. YAMAHA_DEVICE(0x1042, NULL),
  246. YAMAHA_DEVICE(0x1043, NULL),
  247. YAMAHA_DEVICE(0x1044, NULL),
  248. YAMAHA_DEVICE(0x1045, NULL),
  249. YAMAHA_INTERFACE(0x104e, 0, NULL),
  250. YAMAHA_DEVICE(0x104f, NULL),
  251. YAMAHA_DEVICE(0x1050, NULL),
  252. YAMAHA_DEVICE(0x1051, NULL),
  253. YAMAHA_DEVICE(0x1052, NULL),
  254. YAMAHA_INTERFACE(0x1053, 0, NULL),
  255. YAMAHA_INTERFACE(0x1054, 0, NULL),
  256. YAMAHA_DEVICE(0x1055, NULL),
  257. YAMAHA_DEVICE(0x1056, NULL),
  258. YAMAHA_DEVICE(0x1057, NULL),
  259. YAMAHA_DEVICE(0x1058, NULL),
  260. YAMAHA_DEVICE(0x1059, NULL),
  261. YAMAHA_DEVICE(0x105a, NULL),
  262. YAMAHA_DEVICE(0x105b, NULL),
  263. YAMAHA_DEVICE(0x105c, NULL),
  264. YAMAHA_DEVICE(0x105d, NULL),
  265. {
  266. USB_DEVICE(0x0499, 0x1503),
  267. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  268. /* .vendor_name = "Yamaha", */
  269. /* .product_name = "MOX6/MOX8", */
  270. .ifnum = QUIRK_ANY_INTERFACE,
  271. .type = QUIRK_COMPOSITE,
  272. .data = (const struct snd_usb_audio_quirk[]) {
  273. {
  274. .ifnum = 1,
  275. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  276. },
  277. {
  278. .ifnum = 2,
  279. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  280. },
  281. {
  282. .ifnum = 3,
  283. .type = QUIRK_MIDI_YAMAHA
  284. },
  285. {
  286. .ifnum = -1
  287. }
  288. }
  289. }
  290. },
  291. {
  292. USB_DEVICE(0x0499, 0x1507),
  293. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  294. /* .vendor_name = "Yamaha", */
  295. /* .product_name = "THR10", */
  296. .ifnum = QUIRK_ANY_INTERFACE,
  297. .type = QUIRK_COMPOSITE,
  298. .data = (const struct snd_usb_audio_quirk[]) {
  299. {
  300. .ifnum = 1,
  301. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  302. },
  303. {
  304. .ifnum = 2,
  305. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  306. },
  307. {
  308. .ifnum = 3,
  309. .type = QUIRK_MIDI_YAMAHA
  310. },
  311. {
  312. .ifnum = -1
  313. }
  314. }
  315. }
  316. },
  317. {
  318. USB_DEVICE(0x0499, 0x1509),
  319. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  320. /* .vendor_name = "Yamaha", */
  321. /* .product_name = "Steinberg UR22", */
  322. .ifnum = QUIRK_ANY_INTERFACE,
  323. .type = QUIRK_COMPOSITE,
  324. .data = (const struct snd_usb_audio_quirk[]) {
  325. {
  326. .ifnum = 1,
  327. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  328. },
  329. {
  330. .ifnum = 2,
  331. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  332. },
  333. {
  334. .ifnum = 3,
  335. .type = QUIRK_MIDI_YAMAHA
  336. },
  337. {
  338. .ifnum = 4,
  339. .type = QUIRK_IGNORE_INTERFACE
  340. },
  341. {
  342. .ifnum = -1
  343. }
  344. }
  345. }
  346. },
  347. {
  348. USB_DEVICE(0x0499, 0x150a),
  349. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  350. /* .vendor_name = "Yamaha", */
  351. /* .product_name = "THR5A", */
  352. .ifnum = QUIRK_ANY_INTERFACE,
  353. .type = QUIRK_COMPOSITE,
  354. .data = (const struct snd_usb_audio_quirk[]) {
  355. {
  356. .ifnum = 1,
  357. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  358. },
  359. {
  360. .ifnum = 2,
  361. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  362. },
  363. {
  364. .ifnum = 3,
  365. .type = QUIRK_MIDI_YAMAHA
  366. },
  367. {
  368. .ifnum = -1
  369. }
  370. }
  371. }
  372. },
  373. {
  374. USB_DEVICE(0x0499, 0x150c),
  375. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  376. /* .vendor_name = "Yamaha", */
  377. /* .product_name = "THR10C", */
  378. .ifnum = QUIRK_ANY_INTERFACE,
  379. .type = QUIRK_COMPOSITE,
  380. .data = (const struct snd_usb_audio_quirk[]) {
  381. {
  382. .ifnum = 1,
  383. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  384. },
  385. {
  386. .ifnum = 2,
  387. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  388. },
  389. {
  390. .ifnum = 3,
  391. .type = QUIRK_MIDI_YAMAHA
  392. },
  393. {
  394. .ifnum = -1
  395. }
  396. }
  397. }
  398. },
  399. YAMAHA_DEVICE(0x2000, "DGP-7"),
  400. YAMAHA_DEVICE(0x2001, "DGP-5"),
  401. YAMAHA_DEVICE(0x2002, NULL),
  402. YAMAHA_DEVICE(0x2003, NULL),
  403. YAMAHA_DEVICE(0x5000, "CS1D"),
  404. YAMAHA_DEVICE(0x5001, "DSP1D"),
  405. YAMAHA_DEVICE(0x5002, "DME32"),
  406. YAMAHA_DEVICE(0x5003, "DM2000"),
  407. YAMAHA_DEVICE(0x5004, "02R96"),
  408. YAMAHA_DEVICE(0x5005, "ACU16-C"),
  409. YAMAHA_DEVICE(0x5006, "NHB32-C"),
  410. YAMAHA_DEVICE(0x5007, "DM1000"),
  411. YAMAHA_DEVICE(0x5008, "01V96"),
  412. YAMAHA_DEVICE(0x5009, "SPX2000"),
  413. YAMAHA_DEVICE(0x500a, "PM5D"),
  414. YAMAHA_DEVICE(0x500b, "DME64N"),
  415. YAMAHA_DEVICE(0x500c, "DME24N"),
  416. YAMAHA_DEVICE(0x500d, NULL),
  417. YAMAHA_DEVICE(0x500e, NULL),
  418. YAMAHA_DEVICE(0x500f, NULL),
  419. YAMAHA_DEVICE(0x7000, "DTX"),
  420. YAMAHA_DEVICE(0x7010, "UB99"),
  421. #undef YAMAHA_DEVICE
  422. #undef YAMAHA_INTERFACE
  423. /* this catches most recent vendor-specific Yamaha devices */
  424. {
  425. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  426. USB_DEVICE_ID_MATCH_INT_CLASS,
  427. .idVendor = 0x0499,
  428. .bInterfaceClass = USB_CLASS_VENDOR_SPEC,
  429. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  430. .ifnum = QUIRK_ANY_INTERFACE,
  431. .type = QUIRK_AUTODETECT
  432. }
  433. },
  434. /*
  435. * Roland/RolandED/Edirol/BOSS devices
  436. */
  437. {
  438. USB_DEVICE(0x0582, 0x0000),
  439. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  440. .vendor_name = "Roland",
  441. .product_name = "UA-100",
  442. .ifnum = QUIRK_ANY_INTERFACE,
  443. .type = QUIRK_COMPOSITE,
  444. .data = (const struct snd_usb_audio_quirk[]) {
  445. {
  446. .ifnum = 0,
  447. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  448. .data = & (const struct audioformat) {
  449. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  450. .channels = 4,
  451. .iface = 0,
  452. .altsetting = 1,
  453. .altset_idx = 1,
  454. .attributes = 0,
  455. .endpoint = 0x01,
  456. .ep_attr = 0x09,
  457. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  458. .rate_min = 44100,
  459. .rate_max = 44100,
  460. }
  461. },
  462. {
  463. .ifnum = 1,
  464. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  465. .data = & (const struct audioformat) {
  466. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  467. .channels = 2,
  468. .iface = 1,
  469. .altsetting = 1,
  470. .altset_idx = 1,
  471. .attributes = UAC_EP_CS_ATTR_FILL_MAX,
  472. .endpoint = 0x81,
  473. .ep_attr = 0x05,
  474. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  475. .rate_min = 44100,
  476. .rate_max = 44100,
  477. }
  478. },
  479. {
  480. .ifnum = 2,
  481. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  482. .data = & (const struct snd_usb_midi_endpoint_info) {
  483. .out_cables = 0x0007,
  484. .in_cables = 0x0007
  485. }
  486. },
  487. {
  488. .ifnum = -1
  489. }
  490. }
  491. }
  492. },
  493. {
  494. USB_DEVICE(0x0582, 0x0002),
  495. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  496. .vendor_name = "EDIROL",
  497. .product_name = "UM-4",
  498. .ifnum = QUIRK_ANY_INTERFACE,
  499. .type = QUIRK_COMPOSITE,
  500. .data = (const struct snd_usb_audio_quirk[]) {
  501. {
  502. .ifnum = 0,
  503. .type = QUIRK_IGNORE_INTERFACE
  504. },
  505. {
  506. .ifnum = 1,
  507. .type = QUIRK_IGNORE_INTERFACE
  508. },
  509. {
  510. .ifnum = 2,
  511. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  512. .data = & (const struct snd_usb_midi_endpoint_info) {
  513. .out_cables = 0x000f,
  514. .in_cables = 0x000f
  515. }
  516. },
  517. {
  518. .ifnum = -1
  519. }
  520. }
  521. }
  522. },
  523. {
  524. USB_DEVICE(0x0582, 0x0003),
  525. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  526. .vendor_name = "Roland",
  527. .product_name = "SC-8850",
  528. .ifnum = QUIRK_ANY_INTERFACE,
  529. .type = QUIRK_COMPOSITE,
  530. .data = (const struct snd_usb_audio_quirk[]) {
  531. {
  532. .ifnum = 0,
  533. .type = QUIRK_IGNORE_INTERFACE
  534. },
  535. {
  536. .ifnum = 1,
  537. .type = QUIRK_IGNORE_INTERFACE
  538. },
  539. {
  540. .ifnum = 2,
  541. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  542. .data = & (const struct snd_usb_midi_endpoint_info) {
  543. .out_cables = 0x003f,
  544. .in_cables = 0x003f
  545. }
  546. },
  547. {
  548. .ifnum = -1
  549. }
  550. }
  551. }
  552. },
  553. {
  554. USB_DEVICE(0x0582, 0x0004),
  555. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  556. .vendor_name = "Roland",
  557. .product_name = "U-8",
  558. .ifnum = QUIRK_ANY_INTERFACE,
  559. .type = QUIRK_COMPOSITE,
  560. .data = (const struct snd_usb_audio_quirk[]) {
  561. {
  562. .ifnum = 0,
  563. .type = QUIRK_IGNORE_INTERFACE
  564. },
  565. {
  566. .ifnum = 1,
  567. .type = QUIRK_IGNORE_INTERFACE
  568. },
  569. {
  570. .ifnum = 2,
  571. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  572. .data = & (const struct snd_usb_midi_endpoint_info) {
  573. .out_cables = 0x0005,
  574. .in_cables = 0x0005
  575. }
  576. },
  577. {
  578. .ifnum = -1
  579. }
  580. }
  581. }
  582. },
  583. {
  584. /* Has ID 0x0099 when not in "Advanced Driver" mode.
  585. * The UM-2EX has only one input, but we cannot detect this. */
  586. USB_DEVICE(0x0582, 0x0005),
  587. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  588. .vendor_name = "EDIROL",
  589. .product_name = "UM-2",
  590. .ifnum = QUIRK_ANY_INTERFACE,
  591. .type = QUIRK_COMPOSITE,
  592. .data = (const struct snd_usb_audio_quirk[]) {
  593. {
  594. .ifnum = 0,
  595. .type = QUIRK_IGNORE_INTERFACE
  596. },
  597. {
  598. .ifnum = 1,
  599. .type = QUIRK_IGNORE_INTERFACE
  600. },
  601. {
  602. .ifnum = 2,
  603. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  604. .data = & (const struct snd_usb_midi_endpoint_info) {
  605. .out_cables = 0x0003,
  606. .in_cables = 0x0003
  607. }
  608. },
  609. {
  610. .ifnum = -1
  611. }
  612. }
  613. }
  614. },
  615. {
  616. USB_DEVICE(0x0582, 0x0007),
  617. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  618. .vendor_name = "Roland",
  619. .product_name = "SC-8820",
  620. .ifnum = QUIRK_ANY_INTERFACE,
  621. .type = QUIRK_COMPOSITE,
  622. .data = (const struct snd_usb_audio_quirk[]) {
  623. {
  624. .ifnum = 0,
  625. .type = QUIRK_IGNORE_INTERFACE
  626. },
  627. {
  628. .ifnum = 1,
  629. .type = QUIRK_IGNORE_INTERFACE
  630. },
  631. {
  632. .ifnum = 2,
  633. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  634. .data = & (const struct snd_usb_midi_endpoint_info) {
  635. .out_cables = 0x0013,
  636. .in_cables = 0x0013
  637. }
  638. },
  639. {
  640. .ifnum = -1
  641. }
  642. }
  643. }
  644. },
  645. {
  646. USB_DEVICE(0x0582, 0x0008),
  647. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  648. .vendor_name = "Roland",
  649. .product_name = "PC-300",
  650. .ifnum = QUIRK_ANY_INTERFACE,
  651. .type = QUIRK_COMPOSITE,
  652. .data = (const struct snd_usb_audio_quirk[]) {
  653. {
  654. .ifnum = 0,
  655. .type = QUIRK_IGNORE_INTERFACE
  656. },
  657. {
  658. .ifnum = 1,
  659. .type = QUIRK_IGNORE_INTERFACE
  660. },
  661. {
  662. .ifnum = 2,
  663. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  664. .data = & (const struct snd_usb_midi_endpoint_info) {
  665. .out_cables = 0x0001,
  666. .in_cables = 0x0001
  667. }
  668. },
  669. {
  670. .ifnum = -1
  671. }
  672. }
  673. }
  674. },
  675. {
  676. /* has ID 0x009d when not in "Advanced Driver" mode */
  677. USB_DEVICE(0x0582, 0x0009),
  678. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  679. .vendor_name = "EDIROL",
  680. .product_name = "UM-1",
  681. .ifnum = QUIRK_ANY_INTERFACE,
  682. .type = QUIRK_COMPOSITE,
  683. .data = (const struct snd_usb_audio_quirk[]) {
  684. {
  685. .ifnum = 0,
  686. .type = QUIRK_IGNORE_INTERFACE
  687. },
  688. {
  689. .ifnum = 1,
  690. .type = QUIRK_IGNORE_INTERFACE
  691. },
  692. {
  693. .ifnum = 2,
  694. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  695. .data = & (const struct snd_usb_midi_endpoint_info) {
  696. .out_cables = 0x0001,
  697. .in_cables = 0x0001
  698. }
  699. },
  700. {
  701. .ifnum = -1
  702. }
  703. }
  704. }
  705. },
  706. {
  707. USB_DEVICE(0x0582, 0x000b),
  708. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  709. .vendor_name = "Roland",
  710. .product_name = "SK-500",
  711. .ifnum = QUIRK_ANY_INTERFACE,
  712. .type = QUIRK_COMPOSITE,
  713. .data = (const struct snd_usb_audio_quirk[]) {
  714. {
  715. .ifnum = 0,
  716. .type = QUIRK_IGNORE_INTERFACE
  717. },
  718. {
  719. .ifnum = 1,
  720. .type = QUIRK_IGNORE_INTERFACE
  721. },
  722. {
  723. .ifnum = 2,
  724. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  725. .data = & (const struct snd_usb_midi_endpoint_info) {
  726. .out_cables = 0x0013,
  727. .in_cables = 0x0013
  728. }
  729. },
  730. {
  731. .ifnum = -1
  732. }
  733. }
  734. }
  735. },
  736. {
  737. /* thanks to Emiliano Grilli <[email protected]>
  738. * for helping researching this data */
  739. USB_DEVICE(0x0582, 0x000c),
  740. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  741. .vendor_name = "Roland",
  742. .product_name = "SC-D70",
  743. .ifnum = QUIRK_ANY_INTERFACE,
  744. .type = QUIRK_COMPOSITE,
  745. .data = (const struct snd_usb_audio_quirk[]) {
  746. {
  747. .ifnum = 0,
  748. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  749. },
  750. {
  751. .ifnum = 1,
  752. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  753. },
  754. {
  755. .ifnum = 2,
  756. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  757. .data = & (const struct snd_usb_midi_endpoint_info) {
  758. .out_cables = 0x0007,
  759. .in_cables = 0x0007
  760. }
  761. },
  762. {
  763. .ifnum = -1
  764. }
  765. }
  766. }
  767. },
  768. { /*
  769. * This quirk is for the "Advanced Driver" mode of the Edirol UA-5.
  770. * If the advanced mode switch at the back of the unit is off, the
  771. * UA-5 has ID 0x0582/0x0011 and is standard compliant (no quirks),
  772. * but offers only 16-bit PCM.
  773. * In advanced mode, the UA-5 will output S24_3LE samples (two
  774. * channels) at the rate indicated on the front switch, including
  775. * the 96kHz sample rate.
  776. */
  777. USB_DEVICE(0x0582, 0x0010),
  778. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  779. .vendor_name = "EDIROL",
  780. .product_name = "UA-5",
  781. .ifnum = QUIRK_ANY_INTERFACE,
  782. .type = QUIRK_COMPOSITE,
  783. .data = (const struct snd_usb_audio_quirk[]) {
  784. {
  785. .ifnum = 1,
  786. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  787. },
  788. {
  789. .ifnum = 2,
  790. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  791. },
  792. {
  793. .ifnum = -1
  794. }
  795. }
  796. }
  797. },
  798. {
  799. /* has ID 0x0013 when not in "Advanced Driver" mode */
  800. USB_DEVICE(0x0582, 0x0012),
  801. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  802. .vendor_name = "Roland",
  803. .product_name = "XV-5050",
  804. .ifnum = 0,
  805. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  806. .data = & (const struct snd_usb_midi_endpoint_info) {
  807. .out_cables = 0x0001,
  808. .in_cables = 0x0001
  809. }
  810. }
  811. },
  812. {
  813. /* has ID 0x0015 when not in "Advanced Driver" mode */
  814. USB_DEVICE(0x0582, 0x0014),
  815. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  816. .vendor_name = "EDIROL",
  817. .product_name = "UM-880",
  818. .ifnum = 0,
  819. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  820. .data = & (const struct snd_usb_midi_endpoint_info) {
  821. .out_cables = 0x01ff,
  822. .in_cables = 0x01ff
  823. }
  824. }
  825. },
  826. {
  827. /* has ID 0x0017 when not in "Advanced Driver" mode */
  828. USB_DEVICE(0x0582, 0x0016),
  829. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  830. .vendor_name = "EDIROL",
  831. .product_name = "SD-90",
  832. .ifnum = QUIRK_ANY_INTERFACE,
  833. .type = QUIRK_COMPOSITE,
  834. .data = (const struct snd_usb_audio_quirk[]) {
  835. {
  836. .ifnum = 0,
  837. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  838. },
  839. {
  840. .ifnum = 1,
  841. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  842. },
  843. {
  844. .ifnum = 2,
  845. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  846. .data = & (const struct snd_usb_midi_endpoint_info) {
  847. .out_cables = 0x000f,
  848. .in_cables = 0x000f
  849. }
  850. },
  851. {
  852. .ifnum = -1
  853. }
  854. }
  855. }
  856. },
  857. {
  858. /* has ID 0x001c when not in "Advanced Driver" mode */
  859. USB_DEVICE(0x0582, 0x001b),
  860. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  861. .vendor_name = "Roland",
  862. .product_name = "MMP-2",
  863. .ifnum = QUIRK_ANY_INTERFACE,
  864. .type = QUIRK_COMPOSITE,
  865. .data = (const struct snd_usb_audio_quirk[]) {
  866. {
  867. .ifnum = 0,
  868. .type = QUIRK_IGNORE_INTERFACE
  869. },
  870. {
  871. .ifnum = 1,
  872. .type = QUIRK_IGNORE_INTERFACE
  873. },
  874. {
  875. .ifnum = 2,
  876. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  877. .data = & (const struct snd_usb_midi_endpoint_info) {
  878. .out_cables = 0x0001,
  879. .in_cables = 0x0001
  880. }
  881. },
  882. {
  883. .ifnum = -1
  884. }
  885. }
  886. }
  887. },
  888. {
  889. /* has ID 0x001e when not in "Advanced Driver" mode */
  890. USB_DEVICE(0x0582, 0x001d),
  891. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  892. .vendor_name = "Roland",
  893. .product_name = "V-SYNTH",
  894. .ifnum = 0,
  895. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  896. .data = & (const struct snd_usb_midi_endpoint_info) {
  897. .out_cables = 0x0001,
  898. .in_cables = 0x0001
  899. }
  900. }
  901. },
  902. {
  903. /* has ID 0x0024 when not in "Advanced Driver" mode */
  904. USB_DEVICE(0x0582, 0x0023),
  905. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  906. .vendor_name = "EDIROL",
  907. .product_name = "UM-550",
  908. .ifnum = 0,
  909. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  910. .data = & (const struct snd_usb_midi_endpoint_info) {
  911. .out_cables = 0x003f,
  912. .in_cables = 0x003f
  913. }
  914. }
  915. },
  916. {
  917. /*
  918. * This quirk is for the "Advanced Driver" mode. If off, the UA-20
  919. * has ID 0x0026 and is standard compliant, but has only 16-bit PCM
  920. * and no MIDI.
  921. */
  922. USB_DEVICE(0x0582, 0x0025),
  923. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  924. .vendor_name = "EDIROL",
  925. .product_name = "UA-20",
  926. .ifnum = QUIRK_ANY_INTERFACE,
  927. .type = QUIRK_COMPOSITE,
  928. .data = (const struct snd_usb_audio_quirk[]) {
  929. {
  930. .ifnum = 0,
  931. .type = QUIRK_IGNORE_INTERFACE
  932. },
  933. {
  934. .ifnum = 1,
  935. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  936. .data = & (const struct audioformat) {
  937. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  938. .channels = 2,
  939. .iface = 1,
  940. .altsetting = 1,
  941. .altset_idx = 1,
  942. .attributes = 0,
  943. .endpoint = 0x01,
  944. .ep_attr = 0x01,
  945. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  946. .rate_min = 44100,
  947. .rate_max = 44100,
  948. }
  949. },
  950. {
  951. .ifnum = 2,
  952. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  953. .data = & (const struct audioformat) {
  954. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  955. .channels = 2,
  956. .iface = 2,
  957. .altsetting = 1,
  958. .altset_idx = 1,
  959. .attributes = 0,
  960. .endpoint = 0x82,
  961. .ep_attr = 0x01,
  962. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  963. .rate_min = 44100,
  964. .rate_max = 44100,
  965. }
  966. },
  967. {
  968. .ifnum = 3,
  969. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  970. .data = & (const struct snd_usb_midi_endpoint_info) {
  971. .out_cables = 0x0001,
  972. .in_cables = 0x0001
  973. }
  974. },
  975. {
  976. .ifnum = -1
  977. }
  978. }
  979. }
  980. },
  981. {
  982. /* has ID 0x0028 when not in "Advanced Driver" mode */
  983. USB_DEVICE(0x0582, 0x0027),
  984. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  985. .vendor_name = "EDIROL",
  986. .product_name = "SD-20",
  987. .ifnum = 0,
  988. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  989. .data = & (const struct snd_usb_midi_endpoint_info) {
  990. .out_cables = 0x0003,
  991. .in_cables = 0x0007
  992. }
  993. }
  994. },
  995. {
  996. /* has ID 0x002a when not in "Advanced Driver" mode */
  997. USB_DEVICE(0x0582, 0x0029),
  998. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  999. .vendor_name = "EDIROL",
  1000. .product_name = "SD-80",
  1001. .ifnum = 0,
  1002. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1003. .data = & (const struct snd_usb_midi_endpoint_info) {
  1004. .out_cables = 0x000f,
  1005. .in_cables = 0x000f
  1006. }
  1007. }
  1008. },
  1009. { /*
  1010. * This quirk is for the "Advanced" modes of the Edirol UA-700.
  1011. * If the sample format switch is not in an advanced setting, the
  1012. * UA-700 has ID 0x0582/0x002c and is standard compliant (no quirks),
  1013. * but offers only 16-bit PCM and no MIDI.
  1014. */
  1015. USB_DEVICE_VENDOR_SPEC(0x0582, 0x002b),
  1016. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1017. .vendor_name = "EDIROL",
  1018. .product_name = "UA-700",
  1019. .ifnum = QUIRK_ANY_INTERFACE,
  1020. .type = QUIRK_COMPOSITE,
  1021. .data = (const struct snd_usb_audio_quirk[]) {
  1022. {
  1023. .ifnum = 1,
  1024. .type = QUIRK_AUDIO_EDIROL_UAXX
  1025. },
  1026. {
  1027. .ifnum = 2,
  1028. .type = QUIRK_AUDIO_EDIROL_UAXX
  1029. },
  1030. {
  1031. .ifnum = 3,
  1032. .type = QUIRK_AUDIO_EDIROL_UAXX
  1033. },
  1034. {
  1035. .ifnum = -1
  1036. }
  1037. }
  1038. }
  1039. },
  1040. {
  1041. /* has ID 0x002e when not in "Advanced Driver" mode */
  1042. USB_DEVICE(0x0582, 0x002d),
  1043. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1044. .vendor_name = "Roland",
  1045. .product_name = "XV-2020",
  1046. .ifnum = 0,
  1047. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1048. .data = & (const struct snd_usb_midi_endpoint_info) {
  1049. .out_cables = 0x0001,
  1050. .in_cables = 0x0001
  1051. }
  1052. }
  1053. },
  1054. {
  1055. /* has ID 0x0030 when not in "Advanced Driver" mode */
  1056. USB_DEVICE(0x0582, 0x002f),
  1057. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1058. .vendor_name = "Roland",
  1059. .product_name = "VariOS",
  1060. .ifnum = 0,
  1061. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1062. .data = & (const struct snd_usb_midi_endpoint_info) {
  1063. .out_cables = 0x0007,
  1064. .in_cables = 0x0007
  1065. }
  1066. }
  1067. },
  1068. {
  1069. /* has ID 0x0034 when not in "Advanced Driver" mode */
  1070. USB_DEVICE(0x0582, 0x0033),
  1071. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1072. .vendor_name = "EDIROL",
  1073. .product_name = "PCR",
  1074. .ifnum = 0,
  1075. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1076. .data = & (const struct snd_usb_midi_endpoint_info) {
  1077. .out_cables = 0x0003,
  1078. .in_cables = 0x0007
  1079. }
  1080. }
  1081. },
  1082. {
  1083. /*
  1084. * Has ID 0x0038 when not in "Advanced Driver" mode;
  1085. * later revisions use IDs 0x0054 and 0x00a2.
  1086. */
  1087. USB_DEVICE(0x0582, 0x0037),
  1088. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1089. .vendor_name = "Roland",
  1090. .product_name = "Digital Piano",
  1091. .ifnum = 0,
  1092. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1093. .data = & (const struct snd_usb_midi_endpoint_info) {
  1094. .out_cables = 0x0001,
  1095. .in_cables = 0x0001
  1096. }
  1097. }
  1098. },
  1099. {
  1100. /*
  1101. * This quirk is for the "Advanced Driver" mode. If off, the GS-10
  1102. * has ID 0x003c and is standard compliant, but has only 16-bit PCM
  1103. * and no MIDI.
  1104. */
  1105. USB_DEVICE_VENDOR_SPEC(0x0582, 0x003b),
  1106. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1107. .vendor_name = "BOSS",
  1108. .product_name = "GS-10",
  1109. .ifnum = QUIRK_ANY_INTERFACE,
  1110. .type = QUIRK_COMPOSITE,
  1111. .data = & (const struct snd_usb_audio_quirk[]) {
  1112. {
  1113. .ifnum = 1,
  1114. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1115. },
  1116. {
  1117. .ifnum = 2,
  1118. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1119. },
  1120. {
  1121. .ifnum = 3,
  1122. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1123. },
  1124. {
  1125. .ifnum = -1
  1126. }
  1127. }
  1128. }
  1129. },
  1130. {
  1131. /* has ID 0x0041 when not in "Advanced Driver" mode */
  1132. USB_DEVICE(0x0582, 0x0040),
  1133. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1134. .vendor_name = "Roland",
  1135. .product_name = "GI-20",
  1136. .ifnum = 0,
  1137. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1138. .data = & (const struct snd_usb_midi_endpoint_info) {
  1139. .out_cables = 0x0001,
  1140. .in_cables = 0x0001
  1141. }
  1142. }
  1143. },
  1144. {
  1145. /* has ID 0x0043 when not in "Advanced Driver" mode */
  1146. USB_DEVICE(0x0582, 0x0042),
  1147. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1148. .vendor_name = "Roland",
  1149. .product_name = "RS-70",
  1150. .ifnum = 0,
  1151. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1152. .data = & (const struct snd_usb_midi_endpoint_info) {
  1153. .out_cables = 0x0001,
  1154. .in_cables = 0x0001
  1155. }
  1156. }
  1157. },
  1158. {
  1159. /* has ID 0x0049 when not in "Advanced Driver" mode */
  1160. USB_DEVICE(0x0582, 0x0047),
  1161. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1162. /* .vendor_name = "EDIROL", */
  1163. /* .product_name = "UR-80", */
  1164. .ifnum = QUIRK_ANY_INTERFACE,
  1165. .type = QUIRK_COMPOSITE,
  1166. .data = (const struct snd_usb_audio_quirk[]) {
  1167. /* in the 96 kHz modes, only interface 1 is there */
  1168. {
  1169. .ifnum = 1,
  1170. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1171. },
  1172. {
  1173. .ifnum = 2,
  1174. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1175. },
  1176. {
  1177. .ifnum = -1
  1178. }
  1179. }
  1180. }
  1181. },
  1182. {
  1183. /* has ID 0x004a when not in "Advanced Driver" mode */
  1184. USB_DEVICE(0x0582, 0x0048),
  1185. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1186. /* .vendor_name = "EDIROL", */
  1187. /* .product_name = "UR-80", */
  1188. .ifnum = 0,
  1189. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1190. .data = & (const struct snd_usb_midi_endpoint_info) {
  1191. .out_cables = 0x0003,
  1192. .in_cables = 0x0007
  1193. }
  1194. }
  1195. },
  1196. {
  1197. /* has ID 0x004e when not in "Advanced Driver" mode */
  1198. USB_DEVICE(0x0582, 0x004c),
  1199. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1200. .vendor_name = "EDIROL",
  1201. .product_name = "PCR-A",
  1202. .ifnum = QUIRK_ANY_INTERFACE,
  1203. .type = QUIRK_COMPOSITE,
  1204. .data = (const struct snd_usb_audio_quirk[]) {
  1205. {
  1206. .ifnum = 1,
  1207. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1208. },
  1209. {
  1210. .ifnum = 2,
  1211. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1212. },
  1213. {
  1214. .ifnum = -1
  1215. }
  1216. }
  1217. }
  1218. },
  1219. {
  1220. /* has ID 0x004f when not in "Advanced Driver" mode */
  1221. USB_DEVICE(0x0582, 0x004d),
  1222. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1223. .vendor_name = "EDIROL",
  1224. .product_name = "PCR-A",
  1225. .ifnum = 0,
  1226. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1227. .data = & (const struct snd_usb_midi_endpoint_info) {
  1228. .out_cables = 0x0003,
  1229. .in_cables = 0x0007
  1230. }
  1231. }
  1232. },
  1233. {
  1234. /*
  1235. * This quirk is for the "Advanced Driver" mode. If off, the UA-3FX
  1236. * is standard compliant, but has only 16-bit PCM.
  1237. */
  1238. USB_DEVICE(0x0582, 0x0050),
  1239. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1240. .vendor_name = "EDIROL",
  1241. .product_name = "UA-3FX",
  1242. .ifnum = QUIRK_ANY_INTERFACE,
  1243. .type = QUIRK_COMPOSITE,
  1244. .data = (const struct snd_usb_audio_quirk[]) {
  1245. {
  1246. .ifnum = 1,
  1247. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1248. },
  1249. {
  1250. .ifnum = 2,
  1251. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1252. },
  1253. {
  1254. .ifnum = -1
  1255. }
  1256. }
  1257. }
  1258. },
  1259. {
  1260. USB_DEVICE(0x0582, 0x0052),
  1261. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1262. .vendor_name = "EDIROL",
  1263. .product_name = "UM-1SX",
  1264. .ifnum = 0,
  1265. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1266. }
  1267. },
  1268. {
  1269. USB_DEVICE(0x0582, 0x0060),
  1270. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1271. .vendor_name = "Roland",
  1272. .product_name = "EXR Series",
  1273. .ifnum = 0,
  1274. .type = QUIRK_MIDI_STANDARD_INTERFACE
  1275. }
  1276. },
  1277. {
  1278. /* has ID 0x0066 when not in "Advanced Driver" mode */
  1279. USB_DEVICE(0x0582, 0x0064),
  1280. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1281. /* .vendor_name = "EDIROL", */
  1282. /* .product_name = "PCR-1", */
  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 0x0067 when not in "Advanced Driver" mode */
  1302. USB_DEVICE(0x0582, 0x0065),
  1303. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1304. /* .vendor_name = "EDIROL", */
  1305. /* .product_name = "PCR-1", */
  1306. .ifnum = 0,
  1307. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1308. .data = & (const struct snd_usb_midi_endpoint_info) {
  1309. .out_cables = 0x0001,
  1310. .in_cables = 0x0003
  1311. }
  1312. }
  1313. },
  1314. {
  1315. /* has ID 0x006e when not in "Advanced Driver" mode */
  1316. USB_DEVICE(0x0582, 0x006d),
  1317. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1318. .vendor_name = "Roland",
  1319. .product_name = "FANTOM-X",
  1320. .ifnum = 0,
  1321. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1322. .data = & (const struct snd_usb_midi_endpoint_info) {
  1323. .out_cables = 0x0001,
  1324. .in_cables = 0x0001
  1325. }
  1326. }
  1327. },
  1328. { /*
  1329. * This quirk is for the "Advanced" modes of the Edirol UA-25.
  1330. * If the switch is not in an advanced setting, the UA-25 has
  1331. * ID 0x0582/0x0073 and is standard compliant (no quirks), but
  1332. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1333. */
  1334. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0074),
  1335. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1336. .vendor_name = "EDIROL",
  1337. .product_name = "UA-25",
  1338. .ifnum = QUIRK_ANY_INTERFACE,
  1339. .type = QUIRK_COMPOSITE,
  1340. .data = (const struct snd_usb_audio_quirk[]) {
  1341. {
  1342. .ifnum = 0,
  1343. .type = QUIRK_AUDIO_EDIROL_UAXX
  1344. },
  1345. {
  1346. .ifnum = 1,
  1347. .type = QUIRK_AUDIO_EDIROL_UAXX
  1348. },
  1349. {
  1350. .ifnum = 2,
  1351. .type = QUIRK_AUDIO_EDIROL_UAXX
  1352. },
  1353. {
  1354. .ifnum = -1
  1355. }
  1356. }
  1357. }
  1358. },
  1359. {
  1360. /* has ID 0x0076 when not in "Advanced Driver" mode */
  1361. USB_DEVICE(0x0582, 0x0075),
  1362. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1363. .vendor_name = "BOSS",
  1364. .product_name = "DR-880",
  1365. .ifnum = 0,
  1366. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1367. .data = & (const struct snd_usb_midi_endpoint_info) {
  1368. .out_cables = 0x0001,
  1369. .in_cables = 0x0001
  1370. }
  1371. }
  1372. },
  1373. {
  1374. /* has ID 0x007b when not in "Advanced Driver" mode */
  1375. USB_DEVICE_VENDOR_SPEC(0x0582, 0x007a),
  1376. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1377. .vendor_name = "Roland",
  1378. /* "RD" or "RD-700SX"? */
  1379. .ifnum = 0,
  1380. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1381. .data = & (const struct snd_usb_midi_endpoint_info) {
  1382. .out_cables = 0x0003,
  1383. .in_cables = 0x0003
  1384. }
  1385. }
  1386. },
  1387. {
  1388. /* has ID 0x0081 when not in "Advanced Driver" mode */
  1389. USB_DEVICE(0x0582, 0x0080),
  1390. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1391. .vendor_name = "Roland",
  1392. .product_name = "G-70",
  1393. .ifnum = 0,
  1394. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1395. .data = & (const struct snd_usb_midi_endpoint_info) {
  1396. .out_cables = 0x0001,
  1397. .in_cables = 0x0001
  1398. }
  1399. }
  1400. },
  1401. {
  1402. /* has ID 0x008c when not in "Advanced Driver" mode */
  1403. USB_DEVICE(0x0582, 0x008b),
  1404. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1405. .vendor_name = "EDIROL",
  1406. .product_name = "PC-50",
  1407. .ifnum = 0,
  1408. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1409. .data = & (const struct snd_usb_midi_endpoint_info) {
  1410. .out_cables = 0x0001,
  1411. .in_cables = 0x0001
  1412. }
  1413. }
  1414. },
  1415. {
  1416. /*
  1417. * This quirk is for the "Advanced Driver" mode. If off, the UA-4FX
  1418. * is standard compliant, but has only 16-bit PCM and no MIDI.
  1419. */
  1420. USB_DEVICE(0x0582, 0x00a3),
  1421. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1422. .vendor_name = "EDIROL",
  1423. .product_name = "UA-4FX",
  1424. .ifnum = QUIRK_ANY_INTERFACE,
  1425. .type = QUIRK_COMPOSITE,
  1426. .data = (const struct snd_usb_audio_quirk[]) {
  1427. {
  1428. .ifnum = 0,
  1429. .type = QUIRK_AUDIO_EDIROL_UAXX
  1430. },
  1431. {
  1432. .ifnum = 1,
  1433. .type = QUIRK_AUDIO_EDIROL_UAXX
  1434. },
  1435. {
  1436. .ifnum = 2,
  1437. .type = QUIRK_AUDIO_EDIROL_UAXX
  1438. },
  1439. {
  1440. .ifnum = -1
  1441. }
  1442. }
  1443. }
  1444. },
  1445. {
  1446. /* Edirol M-16DX */
  1447. USB_DEVICE(0x0582, 0x00c4),
  1448. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1449. .ifnum = QUIRK_ANY_INTERFACE,
  1450. .type = QUIRK_COMPOSITE,
  1451. .data = (const struct snd_usb_audio_quirk[]) {
  1452. {
  1453. .ifnum = 0,
  1454. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1455. },
  1456. {
  1457. .ifnum = 1,
  1458. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1459. },
  1460. {
  1461. .ifnum = 2,
  1462. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1463. .data = & (const struct snd_usb_midi_endpoint_info) {
  1464. .out_cables = 0x0001,
  1465. .in_cables = 0x0001
  1466. }
  1467. },
  1468. {
  1469. .ifnum = -1
  1470. }
  1471. }
  1472. }
  1473. },
  1474. {
  1475. /* Advanced modes of the Edirol UA-25EX.
  1476. * For the standard mode, UA-25EX has ID 0582:00e7, which
  1477. * offers only 16-bit PCM at 44.1 kHz and no MIDI.
  1478. */
  1479. USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
  1480. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1481. .vendor_name = "EDIROL",
  1482. .product_name = "UA-25EX",
  1483. .ifnum = QUIRK_ANY_INTERFACE,
  1484. .type = QUIRK_COMPOSITE,
  1485. .data = (const struct snd_usb_audio_quirk[]) {
  1486. {
  1487. .ifnum = 0,
  1488. .type = QUIRK_AUDIO_EDIROL_UAXX
  1489. },
  1490. {
  1491. .ifnum = 1,
  1492. .type = QUIRK_AUDIO_EDIROL_UAXX
  1493. },
  1494. {
  1495. .ifnum = 2,
  1496. .type = QUIRK_AUDIO_EDIROL_UAXX
  1497. },
  1498. {
  1499. .ifnum = -1
  1500. }
  1501. }
  1502. }
  1503. },
  1504. {
  1505. /* Edirol UM-3G */
  1506. USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
  1507. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1508. .ifnum = 0,
  1509. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1510. .data = & (const struct snd_usb_midi_endpoint_info) {
  1511. .out_cables = 0x0007,
  1512. .in_cables = 0x0007
  1513. }
  1514. }
  1515. },
  1516. {
  1517. /* BOSS ME-25 */
  1518. USB_DEVICE(0x0582, 0x0113),
  1519. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1520. .ifnum = QUIRK_ANY_INTERFACE,
  1521. .type = QUIRK_COMPOSITE,
  1522. .data = (const struct snd_usb_audio_quirk[]) {
  1523. {
  1524. .ifnum = 0,
  1525. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1526. },
  1527. {
  1528. .ifnum = 1,
  1529. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1530. },
  1531. {
  1532. .ifnum = 2,
  1533. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1534. .data = & (const struct snd_usb_midi_endpoint_info) {
  1535. .out_cables = 0x0001,
  1536. .in_cables = 0x0001
  1537. }
  1538. },
  1539. {
  1540. .ifnum = -1
  1541. }
  1542. }
  1543. }
  1544. },
  1545. {
  1546. /* only 44.1 kHz works at the moment */
  1547. USB_DEVICE(0x0582, 0x0120),
  1548. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1549. /* .vendor_name = "Roland", */
  1550. /* .product_name = "OCTO-CAPTURE", */
  1551. .ifnum = QUIRK_ANY_INTERFACE,
  1552. .type = QUIRK_COMPOSITE,
  1553. .data = (const struct snd_usb_audio_quirk[]) {
  1554. {
  1555. .ifnum = 0,
  1556. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1557. .data = & (const struct audioformat) {
  1558. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1559. .channels = 10,
  1560. .iface = 0,
  1561. .altsetting = 1,
  1562. .altset_idx = 1,
  1563. .endpoint = 0x05,
  1564. .ep_attr = 0x05,
  1565. .rates = SNDRV_PCM_RATE_44100,
  1566. .rate_min = 44100,
  1567. .rate_max = 44100,
  1568. .nr_rates = 1,
  1569. .rate_table = (unsigned int[]) { 44100 }
  1570. }
  1571. },
  1572. {
  1573. .ifnum = 1,
  1574. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1575. .data = & (const struct audioformat) {
  1576. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1577. .channels = 12,
  1578. .iface = 1,
  1579. .altsetting = 1,
  1580. .altset_idx = 1,
  1581. .endpoint = 0x85,
  1582. .ep_attr = 0x25,
  1583. .rates = SNDRV_PCM_RATE_44100,
  1584. .rate_min = 44100,
  1585. .rate_max = 44100,
  1586. .nr_rates = 1,
  1587. .rate_table = (unsigned int[]) { 44100 }
  1588. }
  1589. },
  1590. {
  1591. .ifnum = 2,
  1592. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1593. .data = & (const struct snd_usb_midi_endpoint_info) {
  1594. .out_cables = 0x0001,
  1595. .in_cables = 0x0001
  1596. }
  1597. },
  1598. {
  1599. .ifnum = 3,
  1600. .type = QUIRK_IGNORE_INTERFACE
  1601. },
  1602. {
  1603. .ifnum = 4,
  1604. .type = QUIRK_IGNORE_INTERFACE
  1605. },
  1606. {
  1607. .ifnum = -1
  1608. }
  1609. }
  1610. }
  1611. },
  1612. {
  1613. /* only 44.1 kHz works at the moment */
  1614. USB_DEVICE(0x0582, 0x012f),
  1615. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1616. /* .vendor_name = "Roland", */
  1617. /* .product_name = "QUAD-CAPTURE", */
  1618. .ifnum = QUIRK_ANY_INTERFACE,
  1619. .type = QUIRK_COMPOSITE,
  1620. .data = (const struct snd_usb_audio_quirk[]) {
  1621. {
  1622. .ifnum = 0,
  1623. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1624. .data = & (const struct audioformat) {
  1625. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1626. .channels = 4,
  1627. .iface = 0,
  1628. .altsetting = 1,
  1629. .altset_idx = 1,
  1630. .endpoint = 0x05,
  1631. .ep_attr = 0x05,
  1632. .rates = SNDRV_PCM_RATE_44100,
  1633. .rate_min = 44100,
  1634. .rate_max = 44100,
  1635. .nr_rates = 1,
  1636. .rate_table = (unsigned int[]) { 44100 }
  1637. }
  1638. },
  1639. {
  1640. .ifnum = 1,
  1641. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  1642. .data = & (const struct audioformat) {
  1643. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  1644. .channels = 6,
  1645. .iface = 1,
  1646. .altsetting = 1,
  1647. .altset_idx = 1,
  1648. .endpoint = 0x85,
  1649. .ep_attr = 0x25,
  1650. .rates = SNDRV_PCM_RATE_44100,
  1651. .rate_min = 44100,
  1652. .rate_max = 44100,
  1653. .nr_rates = 1,
  1654. .rate_table = (unsigned int[]) { 44100 }
  1655. }
  1656. },
  1657. {
  1658. .ifnum = 2,
  1659. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1660. .data = & (const struct snd_usb_midi_endpoint_info) {
  1661. .out_cables = 0x0001,
  1662. .in_cables = 0x0001
  1663. }
  1664. },
  1665. {
  1666. .ifnum = 3,
  1667. .type = QUIRK_IGNORE_INTERFACE
  1668. },
  1669. {
  1670. .ifnum = 4,
  1671. .type = QUIRK_IGNORE_INTERFACE
  1672. },
  1673. {
  1674. .ifnum = -1
  1675. }
  1676. }
  1677. }
  1678. },
  1679. {
  1680. USB_DEVICE(0x0582, 0x0159),
  1681. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1682. /* .vendor_name = "Roland", */
  1683. /* .product_name = "UA-22", */
  1684. .ifnum = QUIRK_ANY_INTERFACE,
  1685. .type = QUIRK_COMPOSITE,
  1686. .data = (const struct snd_usb_audio_quirk[]) {
  1687. {
  1688. .ifnum = 0,
  1689. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1690. },
  1691. {
  1692. .ifnum = 1,
  1693. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1694. },
  1695. {
  1696. .ifnum = 2,
  1697. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1698. .data = & (const struct snd_usb_midi_endpoint_info) {
  1699. .out_cables = 0x0001,
  1700. .in_cables = 0x0001
  1701. }
  1702. },
  1703. {
  1704. .ifnum = -1
  1705. }
  1706. }
  1707. }
  1708. },
  1709. /* UA101 and co are supported by another driver */
  1710. {
  1711. USB_DEVICE(0x0582, 0x0044), /* UA-1000 high speed */
  1712. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1713. .ifnum = QUIRK_NODEV_INTERFACE
  1714. },
  1715. },
  1716. {
  1717. USB_DEVICE(0x0582, 0x007d), /* UA-101 high speed */
  1718. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1719. .ifnum = QUIRK_NODEV_INTERFACE
  1720. },
  1721. },
  1722. {
  1723. USB_DEVICE(0x0582, 0x008d), /* UA-101 full speed */
  1724. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1725. .ifnum = QUIRK_NODEV_INTERFACE
  1726. },
  1727. },
  1728. /* this catches most recent vendor-specific Roland devices */
  1729. {
  1730. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  1731. USB_DEVICE_ID_MATCH_INT_CLASS,
  1732. .idVendor = 0x0582,
  1733. .bInterfaceClass = USB_CLASS_VENDOR_SPEC,
  1734. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  1735. .ifnum = QUIRK_ANY_INTERFACE,
  1736. .type = QUIRK_AUTODETECT
  1737. }
  1738. },
  1739. /* Guillemot devices */
  1740. {
  1741. /*
  1742. * This is for the "Windows Edition" where the external MIDI ports are
  1743. * the only MIDI ports; the control data is reported through HID
  1744. * interfaces. The "Macintosh Edition" has ID 0xd002 and uses standard
  1745. * compliant USB MIDI ports for external MIDI and controls.
  1746. */
  1747. USB_DEVICE_VENDOR_SPEC(0x06f8, 0xb000),
  1748. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1749. .vendor_name = "Hercules",
  1750. .product_name = "DJ Console (WE)",
  1751. .ifnum = 4,
  1752. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  1753. .data = & (const struct snd_usb_midi_endpoint_info) {
  1754. .out_cables = 0x0001,
  1755. .in_cables = 0x0001
  1756. }
  1757. }
  1758. },
  1759. /* Midiman/M-Audio devices */
  1760. {
  1761. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1002),
  1762. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1763. .vendor_name = "M-Audio",
  1764. .product_name = "MidiSport 2x2",
  1765. .ifnum = QUIRK_ANY_INTERFACE,
  1766. .type = QUIRK_MIDI_MIDIMAN,
  1767. .data = & (const struct snd_usb_midi_endpoint_info) {
  1768. .out_cables = 0x0003,
  1769. .in_cables = 0x0003
  1770. }
  1771. }
  1772. },
  1773. {
  1774. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1011),
  1775. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1776. .vendor_name = "M-Audio",
  1777. .product_name = "MidiSport 1x1",
  1778. .ifnum = QUIRK_ANY_INTERFACE,
  1779. .type = QUIRK_MIDI_MIDIMAN,
  1780. .data = & (const struct snd_usb_midi_endpoint_info) {
  1781. .out_cables = 0x0001,
  1782. .in_cables = 0x0001
  1783. }
  1784. }
  1785. },
  1786. {
  1787. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1015),
  1788. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1789. .vendor_name = "M-Audio",
  1790. .product_name = "Keystation",
  1791. .ifnum = QUIRK_ANY_INTERFACE,
  1792. .type = QUIRK_MIDI_MIDIMAN,
  1793. .data = & (const struct snd_usb_midi_endpoint_info) {
  1794. .out_cables = 0x0001,
  1795. .in_cables = 0x0001
  1796. }
  1797. }
  1798. },
  1799. {
  1800. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1021),
  1801. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1802. .vendor_name = "M-Audio",
  1803. .product_name = "MidiSport 4x4",
  1804. .ifnum = QUIRK_ANY_INTERFACE,
  1805. .type = QUIRK_MIDI_MIDIMAN,
  1806. .data = & (const struct snd_usb_midi_endpoint_info) {
  1807. .out_cables = 0x000f,
  1808. .in_cables = 0x000f
  1809. }
  1810. }
  1811. },
  1812. {
  1813. /*
  1814. * For hardware revision 1.05; in the later revisions (1.10 and
  1815. * 1.21), 0x1031 is the ID for the device without firmware.
  1816. * Thanks to Olaf Giesbrecht <[email protected]>
  1817. */
  1818. USB_DEVICE_VER(0x0763, 0x1031, 0x0100, 0x0109),
  1819. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1820. .vendor_name = "M-Audio",
  1821. .product_name = "MidiSport 8x8",
  1822. .ifnum = QUIRK_ANY_INTERFACE,
  1823. .type = QUIRK_MIDI_MIDIMAN,
  1824. .data = & (const struct snd_usb_midi_endpoint_info) {
  1825. .out_cables = 0x01ff,
  1826. .in_cables = 0x01ff
  1827. }
  1828. }
  1829. },
  1830. {
  1831. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1033),
  1832. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1833. .vendor_name = "M-Audio",
  1834. .product_name = "MidiSport 8x8",
  1835. .ifnum = QUIRK_ANY_INTERFACE,
  1836. .type = QUIRK_MIDI_MIDIMAN,
  1837. .data = & (const struct snd_usb_midi_endpoint_info) {
  1838. .out_cables = 0x01ff,
  1839. .in_cables = 0x01ff
  1840. }
  1841. }
  1842. },
  1843. {
  1844. USB_DEVICE_VENDOR_SPEC(0x0763, 0x1041),
  1845. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1846. .vendor_name = "M-Audio",
  1847. .product_name = "MidiSport 2x4",
  1848. .ifnum = QUIRK_ANY_INTERFACE,
  1849. .type = QUIRK_MIDI_MIDIMAN,
  1850. .data = & (const struct snd_usb_midi_endpoint_info) {
  1851. .out_cables = 0x000f,
  1852. .in_cables = 0x0003
  1853. }
  1854. }
  1855. },
  1856. {
  1857. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2001),
  1858. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1859. .vendor_name = "M-Audio",
  1860. .product_name = "Quattro",
  1861. .ifnum = QUIRK_ANY_INTERFACE,
  1862. .type = QUIRK_COMPOSITE,
  1863. .data = & (const struct snd_usb_audio_quirk[]) {
  1864. /*
  1865. * Interfaces 0-2 are "Windows-compatible", 16-bit only,
  1866. * and share endpoints with the other interfaces.
  1867. * Ignore them. The other interfaces can do 24 bits,
  1868. * but captured samples are big-endian (see usbaudio.c).
  1869. */
  1870. {
  1871. .ifnum = 0,
  1872. .type = QUIRK_IGNORE_INTERFACE
  1873. },
  1874. {
  1875. .ifnum = 1,
  1876. .type = QUIRK_IGNORE_INTERFACE
  1877. },
  1878. {
  1879. .ifnum = 2,
  1880. .type = QUIRK_IGNORE_INTERFACE
  1881. },
  1882. {
  1883. .ifnum = 3,
  1884. .type = QUIRK_IGNORE_INTERFACE
  1885. },
  1886. {
  1887. .ifnum = 4,
  1888. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1889. },
  1890. {
  1891. .ifnum = 5,
  1892. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1893. },
  1894. {
  1895. .ifnum = 6,
  1896. .type = QUIRK_IGNORE_INTERFACE
  1897. },
  1898. {
  1899. .ifnum = 7,
  1900. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1901. },
  1902. {
  1903. .ifnum = 8,
  1904. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1905. },
  1906. {
  1907. .ifnum = 9,
  1908. .type = QUIRK_MIDI_MIDIMAN,
  1909. .data = & (const struct snd_usb_midi_endpoint_info) {
  1910. .out_cables = 0x0001,
  1911. .in_cables = 0x0001
  1912. }
  1913. },
  1914. {
  1915. .ifnum = -1
  1916. }
  1917. }
  1918. }
  1919. },
  1920. {
  1921. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2003),
  1922. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1923. .vendor_name = "M-Audio",
  1924. .product_name = "AudioPhile",
  1925. .ifnum = 6,
  1926. .type = QUIRK_MIDI_MIDIMAN,
  1927. .data = & (const struct snd_usb_midi_endpoint_info) {
  1928. .out_cables = 0x0001,
  1929. .in_cables = 0x0001
  1930. }
  1931. }
  1932. },
  1933. {
  1934. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2008),
  1935. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1936. .vendor_name = "M-Audio",
  1937. .product_name = "Ozone",
  1938. .ifnum = 3,
  1939. .type = QUIRK_MIDI_MIDIMAN,
  1940. .data = & (const struct snd_usb_midi_endpoint_info) {
  1941. .out_cables = 0x0001,
  1942. .in_cables = 0x0001
  1943. }
  1944. }
  1945. },
  1946. {
  1947. USB_DEVICE_VENDOR_SPEC(0x0763, 0x200d),
  1948. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  1949. .vendor_name = "M-Audio",
  1950. .product_name = "OmniStudio",
  1951. .ifnum = QUIRK_ANY_INTERFACE,
  1952. .type = QUIRK_COMPOSITE,
  1953. .data = & (const struct snd_usb_audio_quirk[]) {
  1954. {
  1955. .ifnum = 0,
  1956. .type = QUIRK_IGNORE_INTERFACE
  1957. },
  1958. {
  1959. .ifnum = 1,
  1960. .type = QUIRK_IGNORE_INTERFACE
  1961. },
  1962. {
  1963. .ifnum = 2,
  1964. .type = QUIRK_IGNORE_INTERFACE
  1965. },
  1966. {
  1967. .ifnum = 3,
  1968. .type = QUIRK_IGNORE_INTERFACE
  1969. },
  1970. {
  1971. .ifnum = 4,
  1972. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1973. },
  1974. {
  1975. .ifnum = 5,
  1976. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1977. },
  1978. {
  1979. .ifnum = 6,
  1980. .type = QUIRK_IGNORE_INTERFACE
  1981. },
  1982. {
  1983. .ifnum = 7,
  1984. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1985. },
  1986. {
  1987. .ifnum = 8,
  1988. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  1989. },
  1990. {
  1991. .ifnum = 9,
  1992. .type = QUIRK_MIDI_MIDIMAN,
  1993. .data = & (const struct snd_usb_midi_endpoint_info) {
  1994. .out_cables = 0x0001,
  1995. .in_cables = 0x0001
  1996. }
  1997. },
  1998. {
  1999. .ifnum = -1
  2000. }
  2001. }
  2002. }
  2003. },
  2004. {
  2005. USB_DEVICE(0x0763, 0x2019),
  2006. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2007. /* .vendor_name = "M-Audio", */
  2008. /* .product_name = "Ozone Academic", */
  2009. .ifnum = QUIRK_ANY_INTERFACE,
  2010. .type = QUIRK_COMPOSITE,
  2011. .data = & (const struct snd_usb_audio_quirk[]) {
  2012. {
  2013. .ifnum = 0,
  2014. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2015. },
  2016. {
  2017. .ifnum = 1,
  2018. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2019. },
  2020. {
  2021. .ifnum = 2,
  2022. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2023. },
  2024. {
  2025. .ifnum = 3,
  2026. .type = QUIRK_MIDI_MIDIMAN,
  2027. .data = & (const struct snd_usb_midi_endpoint_info) {
  2028. .out_cables = 0x0001,
  2029. .in_cables = 0x0001
  2030. }
  2031. },
  2032. {
  2033. .ifnum = -1
  2034. }
  2035. }
  2036. }
  2037. },
  2038. {
  2039. /* M-Audio Micro */
  2040. USB_DEVICE_VENDOR_SPEC(0x0763, 0x201a),
  2041. },
  2042. {
  2043. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2030),
  2044. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2045. /* .vendor_name = "M-Audio", */
  2046. /* .product_name = "Fast Track C400", */
  2047. .ifnum = QUIRK_ANY_INTERFACE,
  2048. .type = QUIRK_COMPOSITE,
  2049. .data = &(const struct snd_usb_audio_quirk[]) {
  2050. {
  2051. .ifnum = 1,
  2052. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2053. },
  2054. /* Playback */
  2055. {
  2056. .ifnum = 2,
  2057. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2058. .data = &(const struct audioformat) {
  2059. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2060. .channels = 6,
  2061. .iface = 2,
  2062. .altsetting = 1,
  2063. .altset_idx = 1,
  2064. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2065. .endpoint = 0x01,
  2066. .ep_attr = 0x09,
  2067. .rates = SNDRV_PCM_RATE_44100 |
  2068. SNDRV_PCM_RATE_48000 |
  2069. SNDRV_PCM_RATE_88200 |
  2070. SNDRV_PCM_RATE_96000,
  2071. .rate_min = 44100,
  2072. .rate_max = 96000,
  2073. .nr_rates = 4,
  2074. .rate_table = (unsigned int[]) {
  2075. 44100, 48000, 88200, 96000
  2076. },
  2077. .clock = 0x80,
  2078. }
  2079. },
  2080. /* Capture */
  2081. {
  2082. .ifnum = 3,
  2083. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2084. .data = &(const struct audioformat) {
  2085. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2086. .channels = 4,
  2087. .iface = 3,
  2088. .altsetting = 1,
  2089. .altset_idx = 1,
  2090. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2091. .endpoint = 0x81,
  2092. .ep_attr = 0x05,
  2093. .rates = SNDRV_PCM_RATE_44100 |
  2094. SNDRV_PCM_RATE_48000 |
  2095. SNDRV_PCM_RATE_88200 |
  2096. SNDRV_PCM_RATE_96000,
  2097. .rate_min = 44100,
  2098. .rate_max = 96000,
  2099. .nr_rates = 4,
  2100. .rate_table = (unsigned int[]) {
  2101. 44100, 48000, 88200, 96000
  2102. },
  2103. .clock = 0x80,
  2104. }
  2105. },
  2106. /* MIDI */
  2107. {
  2108. .ifnum = -1 /* Interface = 4 */
  2109. }
  2110. }
  2111. }
  2112. },
  2113. {
  2114. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2031),
  2115. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2116. /* .vendor_name = "M-Audio", */
  2117. /* .product_name = "Fast Track C600", */
  2118. .ifnum = QUIRK_ANY_INTERFACE,
  2119. .type = QUIRK_COMPOSITE,
  2120. .data = &(const struct snd_usb_audio_quirk[]) {
  2121. {
  2122. .ifnum = 1,
  2123. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2124. },
  2125. /* Playback */
  2126. {
  2127. .ifnum = 2,
  2128. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2129. .data = &(const struct audioformat) {
  2130. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2131. .channels = 8,
  2132. .iface = 2,
  2133. .altsetting = 1,
  2134. .altset_idx = 1,
  2135. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2136. .endpoint = 0x01,
  2137. .ep_attr = 0x09,
  2138. .rates = SNDRV_PCM_RATE_44100 |
  2139. SNDRV_PCM_RATE_48000 |
  2140. SNDRV_PCM_RATE_88200 |
  2141. SNDRV_PCM_RATE_96000,
  2142. .rate_min = 44100,
  2143. .rate_max = 96000,
  2144. .nr_rates = 4,
  2145. .rate_table = (unsigned int[]) {
  2146. 44100, 48000, 88200, 96000
  2147. },
  2148. .clock = 0x80,
  2149. }
  2150. },
  2151. /* Capture */
  2152. {
  2153. .ifnum = 3,
  2154. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2155. .data = &(const struct audioformat) {
  2156. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2157. .channels = 6,
  2158. .iface = 3,
  2159. .altsetting = 1,
  2160. .altset_idx = 1,
  2161. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2162. .endpoint = 0x81,
  2163. .ep_attr = 0x05,
  2164. .rates = SNDRV_PCM_RATE_44100 |
  2165. SNDRV_PCM_RATE_48000 |
  2166. SNDRV_PCM_RATE_88200 |
  2167. SNDRV_PCM_RATE_96000,
  2168. .rate_min = 44100,
  2169. .rate_max = 96000,
  2170. .nr_rates = 4,
  2171. .rate_table = (unsigned int[]) {
  2172. 44100, 48000, 88200, 96000
  2173. },
  2174. .clock = 0x80,
  2175. }
  2176. },
  2177. /* MIDI */
  2178. {
  2179. .ifnum = -1 /* Interface = 4 */
  2180. }
  2181. }
  2182. }
  2183. },
  2184. {
  2185. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2080),
  2186. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2187. /* .vendor_name = "M-Audio", */
  2188. /* .product_name = "Fast Track Ultra", */
  2189. .ifnum = QUIRK_ANY_INTERFACE,
  2190. .type = QUIRK_COMPOSITE,
  2191. .data = & (const struct snd_usb_audio_quirk[]) {
  2192. {
  2193. .ifnum = 0,
  2194. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2195. },
  2196. {
  2197. .ifnum = 1,
  2198. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2199. .data = & (const struct audioformat) {
  2200. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2201. .channels = 8,
  2202. .iface = 1,
  2203. .altsetting = 1,
  2204. .altset_idx = 1,
  2205. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2206. .endpoint = 0x01,
  2207. .ep_attr = 0x09,
  2208. .rates = SNDRV_PCM_RATE_44100 |
  2209. SNDRV_PCM_RATE_48000 |
  2210. SNDRV_PCM_RATE_88200 |
  2211. SNDRV_PCM_RATE_96000,
  2212. .rate_min = 44100,
  2213. .rate_max = 96000,
  2214. .nr_rates = 4,
  2215. .rate_table = (unsigned int[]) {
  2216. 44100, 48000, 88200, 96000
  2217. }
  2218. }
  2219. },
  2220. {
  2221. .ifnum = 2,
  2222. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2223. .data = & (const struct audioformat) {
  2224. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2225. .channels = 8,
  2226. .iface = 2,
  2227. .altsetting = 1,
  2228. .altset_idx = 1,
  2229. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2230. .endpoint = 0x81,
  2231. .ep_attr = 0x05,
  2232. .rates = SNDRV_PCM_RATE_44100 |
  2233. SNDRV_PCM_RATE_48000 |
  2234. SNDRV_PCM_RATE_88200 |
  2235. SNDRV_PCM_RATE_96000,
  2236. .rate_min = 44100,
  2237. .rate_max = 96000,
  2238. .nr_rates = 4,
  2239. .rate_table = (unsigned int[]) {
  2240. 44100, 48000, 88200, 96000
  2241. }
  2242. }
  2243. },
  2244. /* interface 3 (MIDI) is standard compliant */
  2245. {
  2246. .ifnum = -1
  2247. }
  2248. }
  2249. }
  2250. },
  2251. {
  2252. USB_DEVICE_VENDOR_SPEC(0x0763, 0x2081),
  2253. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2254. /* .vendor_name = "M-Audio", */
  2255. /* .product_name = "Fast Track Ultra 8R", */
  2256. .ifnum = QUIRK_ANY_INTERFACE,
  2257. .type = QUIRK_COMPOSITE,
  2258. .data = & (const struct snd_usb_audio_quirk[]) {
  2259. {
  2260. .ifnum = 0,
  2261. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2262. },
  2263. {
  2264. .ifnum = 1,
  2265. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2266. .data = & (const struct audioformat) {
  2267. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2268. .channels = 8,
  2269. .iface = 1,
  2270. .altsetting = 1,
  2271. .altset_idx = 1,
  2272. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2273. .endpoint = 0x01,
  2274. .ep_attr = 0x09,
  2275. .rates = SNDRV_PCM_RATE_44100 |
  2276. SNDRV_PCM_RATE_48000 |
  2277. SNDRV_PCM_RATE_88200 |
  2278. SNDRV_PCM_RATE_96000,
  2279. .rate_min = 44100,
  2280. .rate_max = 96000,
  2281. .nr_rates = 4,
  2282. .rate_table = (unsigned int[]) {
  2283. 44100, 48000, 88200, 96000
  2284. }
  2285. }
  2286. },
  2287. {
  2288. .ifnum = 2,
  2289. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2290. .data = & (const struct audioformat) {
  2291. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2292. .channels = 8,
  2293. .iface = 2,
  2294. .altsetting = 1,
  2295. .altset_idx = 1,
  2296. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2297. .endpoint = 0x81,
  2298. .ep_attr = 0x05,
  2299. .rates = SNDRV_PCM_RATE_44100 |
  2300. SNDRV_PCM_RATE_48000 |
  2301. SNDRV_PCM_RATE_88200 |
  2302. SNDRV_PCM_RATE_96000,
  2303. .rate_min = 44100,
  2304. .rate_max = 96000,
  2305. .nr_rates = 4,
  2306. .rate_table = (unsigned int[]) {
  2307. 44100, 48000, 88200, 96000
  2308. }
  2309. }
  2310. },
  2311. /* interface 3 (MIDI) is standard compliant */
  2312. {
  2313. .ifnum = -1
  2314. }
  2315. }
  2316. }
  2317. },
  2318. /* Casio devices */
  2319. {
  2320. USB_DEVICE(0x07cf, 0x6801),
  2321. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2322. .vendor_name = "Casio",
  2323. .product_name = "PL-40R",
  2324. .ifnum = 0,
  2325. .type = QUIRK_MIDI_YAMAHA
  2326. }
  2327. },
  2328. {
  2329. /* this ID is used by several devices without a product ID */
  2330. USB_DEVICE(0x07cf, 0x6802),
  2331. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2332. .vendor_name = "Casio",
  2333. .product_name = "Keyboard",
  2334. .ifnum = 0,
  2335. .type = QUIRK_MIDI_YAMAHA
  2336. }
  2337. },
  2338. /* Mark of the Unicorn devices */
  2339. {
  2340. /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
  2341. .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
  2342. USB_DEVICE_ID_MATCH_PRODUCT |
  2343. USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
  2344. .idVendor = 0x07fd,
  2345. .idProduct = 0x0001,
  2346. .bDeviceSubClass = 2,
  2347. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2348. .vendor_name = "MOTU",
  2349. .product_name = "Fastlane",
  2350. .ifnum = QUIRK_ANY_INTERFACE,
  2351. .type = QUIRK_COMPOSITE,
  2352. .data = & (const struct snd_usb_audio_quirk[]) {
  2353. {
  2354. .ifnum = 0,
  2355. .type = QUIRK_MIDI_RAW_BYTES
  2356. },
  2357. {
  2358. .ifnum = 1,
  2359. .type = QUIRK_IGNORE_INTERFACE
  2360. },
  2361. {
  2362. .ifnum = -1
  2363. }
  2364. }
  2365. }
  2366. },
  2367. /* Emagic devices */
  2368. {
  2369. USB_DEVICE(0x086a, 0x0001),
  2370. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2371. .vendor_name = "Emagic",
  2372. .product_name = "Unitor8",
  2373. .ifnum = 2,
  2374. .type = QUIRK_MIDI_EMAGIC,
  2375. .data = & (const struct snd_usb_midi_endpoint_info) {
  2376. .out_cables = 0x80ff,
  2377. .in_cables = 0x80ff
  2378. }
  2379. }
  2380. },
  2381. {
  2382. USB_DEVICE(0x086a, 0x0002),
  2383. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2384. .vendor_name = "Emagic",
  2385. /* .product_name = "AMT8", */
  2386. .ifnum = 2,
  2387. .type = QUIRK_MIDI_EMAGIC,
  2388. .data = & (const struct snd_usb_midi_endpoint_info) {
  2389. .out_cables = 0x80ff,
  2390. .in_cables = 0x80ff
  2391. }
  2392. }
  2393. },
  2394. {
  2395. USB_DEVICE(0x086a, 0x0003),
  2396. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2397. .vendor_name = "Emagic",
  2398. /* .product_name = "MT4", */
  2399. .ifnum = 2,
  2400. .type = QUIRK_MIDI_EMAGIC,
  2401. .data = & (const struct snd_usb_midi_endpoint_info) {
  2402. .out_cables = 0x800f,
  2403. .in_cables = 0x8003
  2404. }
  2405. }
  2406. },
  2407. /* KORG devices */
  2408. {
  2409. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0200),
  2410. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2411. .vendor_name = "KORG, Inc.",
  2412. /* .product_name = "PANDORA PX5D", */
  2413. .ifnum = 3,
  2414. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2415. }
  2416. },
  2417. {
  2418. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0201),
  2419. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2420. .vendor_name = "KORG, Inc.",
  2421. /* .product_name = "ToneLab ST", */
  2422. .ifnum = 3,
  2423. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2424. }
  2425. },
  2426. {
  2427. USB_DEVICE_VENDOR_SPEC(0x0944, 0x0204),
  2428. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2429. .vendor_name = "KORG, Inc.",
  2430. /* .product_name = "ToneLab EX", */
  2431. .ifnum = 3,
  2432. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  2433. }
  2434. },
  2435. /* AKAI devices */
  2436. {
  2437. USB_DEVICE(0x09e8, 0x0062),
  2438. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2439. .vendor_name = "AKAI",
  2440. .product_name = "MPD16",
  2441. .ifnum = 0,
  2442. .type = QUIRK_MIDI_AKAI,
  2443. }
  2444. },
  2445. {
  2446. /* Akai MPC Element */
  2447. USB_DEVICE(0x09e8, 0x0021),
  2448. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2449. .ifnum = QUIRK_ANY_INTERFACE,
  2450. .type = QUIRK_COMPOSITE,
  2451. .data = & (const struct snd_usb_audio_quirk[]) {
  2452. {
  2453. .ifnum = 0,
  2454. .type = QUIRK_IGNORE_INTERFACE
  2455. },
  2456. {
  2457. .ifnum = 1,
  2458. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2459. },
  2460. {
  2461. .ifnum = -1
  2462. }
  2463. }
  2464. }
  2465. },
  2466. /* Steinberg devices */
  2467. {
  2468. /* Steinberg MI2 */
  2469. USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x2040),
  2470. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2471. .ifnum = QUIRK_ANY_INTERFACE,
  2472. .type = QUIRK_COMPOSITE,
  2473. .data = & (const struct snd_usb_audio_quirk[]) {
  2474. {
  2475. .ifnum = 0,
  2476. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2477. },
  2478. {
  2479. .ifnum = 1,
  2480. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2481. },
  2482. {
  2483. .ifnum = 2,
  2484. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2485. },
  2486. {
  2487. .ifnum = 3,
  2488. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2489. .data = &(const struct snd_usb_midi_endpoint_info) {
  2490. .out_cables = 0x0001,
  2491. .in_cables = 0x0001
  2492. }
  2493. },
  2494. {
  2495. .ifnum = -1
  2496. }
  2497. }
  2498. }
  2499. },
  2500. {
  2501. /* Steinberg MI4 */
  2502. USB_DEVICE_VENDOR_SPEC(0x0a4e, 0x4040),
  2503. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2504. .ifnum = QUIRK_ANY_INTERFACE,
  2505. .type = QUIRK_COMPOSITE,
  2506. .data = & (const struct snd_usb_audio_quirk[]) {
  2507. {
  2508. .ifnum = 0,
  2509. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2510. },
  2511. {
  2512. .ifnum = 1,
  2513. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2514. },
  2515. {
  2516. .ifnum = 2,
  2517. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  2518. },
  2519. {
  2520. .ifnum = 3,
  2521. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2522. .data = &(const struct snd_usb_midi_endpoint_info) {
  2523. .out_cables = 0x0001,
  2524. .in_cables = 0x0001
  2525. }
  2526. },
  2527. {
  2528. .ifnum = -1
  2529. }
  2530. }
  2531. }
  2532. },
  2533. /* TerraTec devices */
  2534. {
  2535. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),
  2536. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2537. .vendor_name = "TerraTec",
  2538. .product_name = "PHASE 26",
  2539. .ifnum = 3,
  2540. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2541. }
  2542. },
  2543. {
  2544. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0013),
  2545. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2546. .vendor_name = "TerraTec",
  2547. .product_name = "PHASE 26",
  2548. .ifnum = 3,
  2549. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2550. }
  2551. },
  2552. {
  2553. USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0014),
  2554. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2555. .vendor_name = "TerraTec",
  2556. .product_name = "PHASE 26",
  2557. .ifnum = 3,
  2558. .type = QUIRK_MIDI_STANDARD_INTERFACE
  2559. }
  2560. },
  2561. {
  2562. USB_DEVICE(0x0ccd, 0x0035),
  2563. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2564. .vendor_name = "Miditech",
  2565. .product_name = "Play'n Roll",
  2566. .ifnum = 0,
  2567. .type = QUIRK_MIDI_CME
  2568. }
  2569. },
  2570. /* Novation EMS devices */
  2571. {
  2572. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0001),
  2573. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2574. .vendor_name = "Novation",
  2575. .product_name = "ReMOTE Audio/XStation",
  2576. .ifnum = 4,
  2577. .type = QUIRK_MIDI_NOVATION
  2578. }
  2579. },
  2580. {
  2581. USB_DEVICE_VENDOR_SPEC(0x1235, 0x0002),
  2582. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2583. .vendor_name = "Novation",
  2584. .product_name = "Speedio",
  2585. .ifnum = 3,
  2586. .type = QUIRK_MIDI_NOVATION
  2587. }
  2588. },
  2589. {
  2590. USB_DEVICE(0x1235, 0x000a),
  2591. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2592. /* .vendor_name = "Novation", */
  2593. /* .product_name = "Nocturn", */
  2594. .ifnum = 0,
  2595. .type = QUIRK_MIDI_RAW_BYTES
  2596. }
  2597. },
  2598. {
  2599. USB_DEVICE(0x1235, 0x000e),
  2600. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2601. /* .vendor_name = "Novation", */
  2602. /* .product_name = "Launchpad", */
  2603. .ifnum = 0,
  2604. .type = QUIRK_MIDI_RAW_BYTES
  2605. }
  2606. },
  2607. {
  2608. USB_DEVICE(0x1235, 0x0010),
  2609. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2610. .vendor_name = "Focusrite",
  2611. .product_name = "Saffire 6 USB",
  2612. .ifnum = QUIRK_ANY_INTERFACE,
  2613. .type = QUIRK_COMPOSITE,
  2614. .data = (const struct snd_usb_audio_quirk[]) {
  2615. {
  2616. .ifnum = 0,
  2617. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2618. },
  2619. {
  2620. .ifnum = 0,
  2621. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2622. .data = &(const struct audioformat) {
  2623. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2624. .channels = 4,
  2625. .iface = 0,
  2626. .altsetting = 1,
  2627. .altset_idx = 1,
  2628. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2629. .endpoint = 0x01,
  2630. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2631. .datainterval = 1,
  2632. .maxpacksize = 0x024c,
  2633. .rates = SNDRV_PCM_RATE_44100 |
  2634. SNDRV_PCM_RATE_48000,
  2635. .rate_min = 44100,
  2636. .rate_max = 48000,
  2637. .nr_rates = 2,
  2638. .rate_table = (unsigned int[]) {
  2639. 44100, 48000
  2640. },
  2641. .sync_ep = 0x82,
  2642. .sync_iface = 0,
  2643. .sync_altsetting = 1,
  2644. .sync_ep_idx = 1,
  2645. .implicit_fb = 1,
  2646. }
  2647. },
  2648. {
  2649. .ifnum = 0,
  2650. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2651. .data = &(const struct audioformat) {
  2652. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2653. .channels = 2,
  2654. .iface = 0,
  2655. .altsetting = 1,
  2656. .altset_idx = 1,
  2657. .attributes = 0,
  2658. .endpoint = 0x82,
  2659. .ep_idx = 1,
  2660. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2661. .datainterval = 1,
  2662. .maxpacksize = 0x0126,
  2663. .rates = SNDRV_PCM_RATE_44100 |
  2664. SNDRV_PCM_RATE_48000,
  2665. .rate_min = 44100,
  2666. .rate_max = 48000,
  2667. .nr_rates = 2,
  2668. .rate_table = (unsigned int[]) {
  2669. 44100, 48000
  2670. }
  2671. }
  2672. },
  2673. {
  2674. .ifnum = 1,
  2675. .type = QUIRK_MIDI_RAW_BYTES
  2676. },
  2677. {
  2678. .ifnum = -1
  2679. }
  2680. }
  2681. }
  2682. },
  2683. {
  2684. USB_DEVICE(0x1235, 0x0018),
  2685. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2686. .vendor_name = "Novation",
  2687. .product_name = "Twitch",
  2688. .ifnum = QUIRK_ANY_INTERFACE,
  2689. .type = QUIRK_COMPOSITE,
  2690. .data = (const struct snd_usb_audio_quirk[]) {
  2691. {
  2692. .ifnum = 0,
  2693. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2694. .data = & (const struct audioformat) {
  2695. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2696. .channels = 4,
  2697. .iface = 0,
  2698. .altsetting = 1,
  2699. .altset_idx = 1,
  2700. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2701. .endpoint = 0x01,
  2702. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  2703. .rates = SNDRV_PCM_RATE_44100 |
  2704. SNDRV_PCM_RATE_48000,
  2705. .rate_min = 44100,
  2706. .rate_max = 48000,
  2707. .nr_rates = 2,
  2708. .rate_table = (unsigned int[]) {
  2709. 44100, 48000
  2710. }
  2711. }
  2712. },
  2713. {
  2714. .ifnum = 1,
  2715. .type = QUIRK_MIDI_RAW_BYTES
  2716. },
  2717. {
  2718. .ifnum = -1
  2719. }
  2720. }
  2721. }
  2722. },
  2723. {
  2724. USB_DEVICE_VENDOR_SPEC(0x1235, 0x4661),
  2725. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2726. .vendor_name = "Novation",
  2727. .product_name = "ReMOTE25",
  2728. .ifnum = 0,
  2729. .type = QUIRK_MIDI_NOVATION
  2730. }
  2731. },
  2732. /* Access Music devices */
  2733. {
  2734. /* VirusTI Desktop */
  2735. USB_DEVICE_VENDOR_SPEC(0x133e, 0x0815),
  2736. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2737. .ifnum = QUIRK_ANY_INTERFACE,
  2738. .type = QUIRK_COMPOSITE,
  2739. .data = &(const struct snd_usb_audio_quirk[]) {
  2740. {
  2741. .ifnum = 3,
  2742. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  2743. .data = &(const struct snd_usb_midi_endpoint_info) {
  2744. .out_cables = 0x0003,
  2745. .in_cables = 0x0003
  2746. }
  2747. },
  2748. {
  2749. .ifnum = 4,
  2750. .type = QUIRK_IGNORE_INTERFACE
  2751. },
  2752. {
  2753. .ifnum = -1
  2754. }
  2755. }
  2756. }
  2757. },
  2758. /* Native Instruments MK2 series */
  2759. {
  2760. /* Komplete Audio 6 */
  2761. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2762. .idVendor = 0x17cc,
  2763. .idProduct = 0x1000,
  2764. },
  2765. {
  2766. /* Traktor Audio 6 */
  2767. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2768. .idVendor = 0x17cc,
  2769. .idProduct = 0x1010,
  2770. },
  2771. {
  2772. /* Traktor Audio 10 */
  2773. .match_flags = USB_DEVICE_ID_MATCH_DEVICE,
  2774. .idVendor = 0x17cc,
  2775. .idProduct = 0x1020,
  2776. },
  2777. /* QinHeng devices */
  2778. {
  2779. USB_DEVICE(0x1a86, 0x752d),
  2780. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2781. .vendor_name = "QinHeng",
  2782. .product_name = "CH345",
  2783. .ifnum = 1,
  2784. .type = QUIRK_MIDI_CH345
  2785. }
  2786. },
  2787. /* KeithMcMillen Stringport */
  2788. { USB_DEVICE(0x1f38, 0x0001) }, /* FIXME: should be more restrictive matching */
  2789. /* Miditech devices */
  2790. {
  2791. USB_DEVICE(0x4752, 0x0011),
  2792. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2793. .vendor_name = "Miditech",
  2794. .product_name = "Midistart-2",
  2795. .ifnum = 0,
  2796. .type = QUIRK_MIDI_CME
  2797. }
  2798. },
  2799. /* Central Music devices */
  2800. {
  2801. /* this ID used by both Miditech MidiStudio-2 and CME UF-x */
  2802. USB_DEVICE(0x7104, 0x2202),
  2803. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  2804. .ifnum = 0,
  2805. .type = QUIRK_MIDI_CME
  2806. }
  2807. },
  2808. /* Digidesign Mbox */
  2809. {
  2810. /* Thanks to Clemens Ladisch <[email protected]> */
  2811. USB_DEVICE(0x0dba, 0x1000),
  2812. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2813. .vendor_name = "Digidesign",
  2814. .product_name = "MBox",
  2815. .ifnum = QUIRK_ANY_INTERFACE,
  2816. .type = QUIRK_COMPOSITE,
  2817. .data = (const struct snd_usb_audio_quirk[]){
  2818. {
  2819. .ifnum = 0,
  2820. .type = QUIRK_AUDIO_STANDARD_MIXER,
  2821. },
  2822. {
  2823. .ifnum = 1,
  2824. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2825. .data = &(const struct audioformat) {
  2826. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2827. .channels = 2,
  2828. .iface = 1,
  2829. .altsetting = 1,
  2830. .altset_idx = 1,
  2831. .attributes = 0x4,
  2832. .endpoint = 0x02,
  2833. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  2834. USB_ENDPOINT_SYNC_SYNC,
  2835. .maxpacksize = 0x130,
  2836. .rates = SNDRV_PCM_RATE_48000,
  2837. .rate_min = 48000,
  2838. .rate_max = 48000,
  2839. .nr_rates = 1,
  2840. .rate_table = (unsigned int[]) {
  2841. 48000
  2842. }
  2843. }
  2844. },
  2845. {
  2846. .ifnum = 1,
  2847. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2848. .data = &(const struct audioformat) {
  2849. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2850. .channels = 2,
  2851. .iface = 1,
  2852. .altsetting = 1,
  2853. .altset_idx = 1,
  2854. .attributes = 0x4,
  2855. .endpoint = 0x81,
  2856. .ep_idx = 1,
  2857. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  2858. USB_ENDPOINT_SYNC_ASYNC,
  2859. .maxpacksize = 0x130,
  2860. .rates = SNDRV_PCM_RATE_48000,
  2861. .rate_min = 48000,
  2862. .rate_max = 48000,
  2863. .nr_rates = 1,
  2864. .rate_table = (unsigned int[]) {
  2865. 48000
  2866. }
  2867. }
  2868. },
  2869. {
  2870. .ifnum = -1
  2871. }
  2872. }
  2873. }
  2874. },
  2875. /* DIGIDESIGN MBOX 2 */
  2876. {
  2877. USB_DEVICE(0x0dba, 0x3000),
  2878. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2879. .vendor_name = "Digidesign",
  2880. .product_name = "Mbox 2",
  2881. .ifnum = QUIRK_ANY_INTERFACE,
  2882. .type = QUIRK_COMPOSITE,
  2883. .data = (const struct snd_usb_audio_quirk[]) {
  2884. {
  2885. .ifnum = 0,
  2886. .type = QUIRK_IGNORE_INTERFACE
  2887. },
  2888. {
  2889. .ifnum = 1,
  2890. .type = QUIRK_IGNORE_INTERFACE
  2891. },
  2892. {
  2893. .ifnum = 2,
  2894. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2895. .data = &(const struct audioformat) {
  2896. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2897. .channels = 2,
  2898. .iface = 2,
  2899. .altsetting = 2,
  2900. .altset_idx = 1,
  2901. .attributes = 0x00,
  2902. .endpoint = 0x03,
  2903. .ep_attr = USB_ENDPOINT_SYNC_ASYNC,
  2904. .rates = SNDRV_PCM_RATE_48000,
  2905. .rate_min = 48000,
  2906. .rate_max = 48000,
  2907. .nr_rates = 1,
  2908. .rate_table = (unsigned int[]) {
  2909. 48000
  2910. }
  2911. }
  2912. },
  2913. {
  2914. .ifnum = 3,
  2915. .type = QUIRK_IGNORE_INTERFACE
  2916. },
  2917. {
  2918. .ifnum = 4,
  2919. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2920. .data = &(const struct audioformat) {
  2921. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  2922. .channels = 2,
  2923. .iface = 4,
  2924. .altsetting = 2,
  2925. .altset_idx = 1,
  2926. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  2927. .endpoint = 0x85,
  2928. .ep_attr = USB_ENDPOINT_SYNC_SYNC,
  2929. .rates = SNDRV_PCM_RATE_48000,
  2930. .rate_min = 48000,
  2931. .rate_max = 48000,
  2932. .nr_rates = 1,
  2933. .rate_table = (unsigned int[]) {
  2934. 48000
  2935. }
  2936. }
  2937. },
  2938. {
  2939. .ifnum = 5,
  2940. .type = QUIRK_IGNORE_INTERFACE
  2941. },
  2942. {
  2943. .ifnum = 6,
  2944. .type = QUIRK_MIDI_MIDIMAN,
  2945. .data = &(const struct snd_usb_midi_endpoint_info) {
  2946. .out_ep = 0x02,
  2947. .out_cables = 0x0001,
  2948. .in_ep = 0x81,
  2949. .in_interval = 0x01,
  2950. .in_cables = 0x0001
  2951. }
  2952. },
  2953. {
  2954. .ifnum = -1
  2955. }
  2956. }
  2957. }
  2958. },
  2959. /* DIGIDESIGN MBOX 3 */
  2960. {
  2961. USB_DEVICE(0x0dba, 0x5000),
  2962. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  2963. .vendor_name = "Digidesign",
  2964. .product_name = "Mbox 3",
  2965. .ifnum = QUIRK_ANY_INTERFACE,
  2966. .type = QUIRK_COMPOSITE,
  2967. .data = (const struct snd_usb_audio_quirk[]) {
  2968. {
  2969. .ifnum = 0,
  2970. .type = QUIRK_IGNORE_INTERFACE
  2971. },
  2972. {
  2973. .ifnum = 1,
  2974. .type = QUIRK_IGNORE_INTERFACE
  2975. },
  2976. {
  2977. .ifnum = 2,
  2978. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  2979. .data = &(const struct audioformat) {
  2980. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  2981. .channels = 4,
  2982. .iface = 2,
  2983. .altsetting = 1,
  2984. .altset_idx = 1,
  2985. .attributes = 0x00,
  2986. .endpoint = 0x01,
  2987. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  2988. USB_ENDPOINT_SYNC_ASYNC,
  2989. .rates = SNDRV_PCM_RATE_48000,
  2990. .rate_min = 48000,
  2991. .rate_max = 48000,
  2992. .nr_rates = 1,
  2993. .rate_table = (unsigned int[]) {
  2994. 48000
  2995. }
  2996. }
  2997. },
  2998. {
  2999. .ifnum = 3,
  3000. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3001. .data = &(const struct audioformat) {
  3002. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3003. .channels = 4,
  3004. .iface = 3,
  3005. .altsetting = 1,
  3006. .altset_idx = 1,
  3007. .endpoint = 0x81,
  3008. .attributes = 0x00,
  3009. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  3010. USB_ENDPOINT_SYNC_ASYNC,
  3011. .maxpacksize = 0x009c,
  3012. .rates = SNDRV_PCM_RATE_48000,
  3013. .rate_min = 48000,
  3014. .rate_max = 48000,
  3015. .nr_rates = 1,
  3016. .rate_table = (unsigned int[]) {
  3017. 48000
  3018. }
  3019. }
  3020. },
  3021. {
  3022. .ifnum = 4,
  3023. .type = QUIRK_MIDI_FIXED_ENDPOINT,
  3024. .data = &(const struct snd_usb_midi_endpoint_info) {
  3025. .out_cables = 0x0001,
  3026. .in_cables = 0x0001
  3027. }
  3028. },
  3029. {
  3030. .ifnum = -1
  3031. }
  3032. }
  3033. }
  3034. },
  3035. {
  3036. /* Tascam US122 MKII - playback-only support */
  3037. USB_DEVICE_VENDOR_SPEC(0x0644, 0x8021),
  3038. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3039. .vendor_name = "TASCAM",
  3040. .product_name = "US122 MKII",
  3041. .ifnum = QUIRK_ANY_INTERFACE,
  3042. .type = QUIRK_COMPOSITE,
  3043. .data = (const struct snd_usb_audio_quirk[]) {
  3044. {
  3045. .ifnum = 0,
  3046. .type = QUIRK_IGNORE_INTERFACE
  3047. },
  3048. {
  3049. .ifnum = 1,
  3050. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3051. .data = &(const struct audioformat) {
  3052. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3053. .channels = 2,
  3054. .iface = 1,
  3055. .altsetting = 1,
  3056. .altset_idx = 1,
  3057. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3058. .endpoint = 0x02,
  3059. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  3060. .rates = SNDRV_PCM_RATE_44100 |
  3061. SNDRV_PCM_RATE_48000 |
  3062. SNDRV_PCM_RATE_88200 |
  3063. SNDRV_PCM_RATE_96000,
  3064. .rate_min = 44100,
  3065. .rate_max = 96000,
  3066. .nr_rates = 4,
  3067. .rate_table = (unsigned int[]) {
  3068. 44100, 48000, 88200, 96000
  3069. }
  3070. }
  3071. },
  3072. {
  3073. .ifnum = -1
  3074. }
  3075. }
  3076. }
  3077. },
  3078. /* Denon DN-X1600 */
  3079. {
  3080. USB_AUDIO_DEVICE(0x154e, 0x500e),
  3081. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3082. .vendor_name = "Denon",
  3083. .product_name = "DN-X1600",
  3084. .ifnum = QUIRK_ANY_INTERFACE,
  3085. .type = QUIRK_COMPOSITE,
  3086. .data = (const struct snd_usb_audio_quirk[]){
  3087. {
  3088. .ifnum = 0,
  3089. .type = QUIRK_IGNORE_INTERFACE,
  3090. },
  3091. {
  3092. .ifnum = 1,
  3093. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3094. .data = &(const struct audioformat) {
  3095. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3096. .channels = 8,
  3097. .iface = 1,
  3098. .altsetting = 1,
  3099. .altset_idx = 1,
  3100. .attributes = 0x0,
  3101. .endpoint = 0x01,
  3102. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  3103. USB_ENDPOINT_SYNC_ADAPTIVE,
  3104. .maxpacksize = 0x138,
  3105. .rates = SNDRV_PCM_RATE_48000,
  3106. .rate_min = 48000,
  3107. .rate_max = 48000,
  3108. .nr_rates = 1,
  3109. .rate_table = (unsigned int[]) {
  3110. 48000
  3111. }
  3112. }
  3113. },
  3114. {
  3115. .ifnum = 2,
  3116. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3117. .data = &(const struct audioformat) {
  3118. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3119. .channels = 8,
  3120. .iface = 2,
  3121. .altsetting = 1,
  3122. .altset_idx = 1,
  3123. .attributes = 0x0,
  3124. .endpoint = 0x85,
  3125. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  3126. USB_ENDPOINT_SYNC_ADAPTIVE,
  3127. .maxpacksize = 0x138,
  3128. .rates = SNDRV_PCM_RATE_48000,
  3129. .rate_min = 48000,
  3130. .rate_max = 48000,
  3131. .nr_rates = 1,
  3132. .rate_table = (unsigned int[]) {
  3133. 48000
  3134. }
  3135. }
  3136. },
  3137. {
  3138. .ifnum = 4,
  3139. .type = QUIRK_MIDI_STANDARD_INTERFACE,
  3140. },
  3141. {
  3142. .ifnum = -1
  3143. }
  3144. }
  3145. }
  3146. },
  3147. /* Microsoft XboxLive Headset/Xbox Communicator */
  3148. {
  3149. USB_DEVICE(0x045e, 0x0283),
  3150. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  3151. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3152. .vendor_name = "Microsoft",
  3153. .product_name = "XboxLive Headset/Xbox Communicator",
  3154. .ifnum = QUIRK_ANY_INTERFACE,
  3155. .type = QUIRK_COMPOSITE,
  3156. .data = &(const struct snd_usb_audio_quirk[]) {
  3157. {
  3158. /* playback */
  3159. .ifnum = 0,
  3160. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3161. .data = &(const struct audioformat) {
  3162. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3163. .channels = 1,
  3164. .iface = 0,
  3165. .altsetting = 0,
  3166. .altset_idx = 0,
  3167. .attributes = 0,
  3168. .endpoint = 0x04,
  3169. .ep_attr = 0x05,
  3170. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3171. .rate_min = 22050,
  3172. .rate_max = 22050
  3173. }
  3174. },
  3175. {
  3176. /* capture */
  3177. .ifnum = 1,
  3178. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3179. .data = &(const struct audioformat) {
  3180. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3181. .channels = 1,
  3182. .iface = 1,
  3183. .altsetting = 0,
  3184. .altset_idx = 0,
  3185. .attributes = 0,
  3186. .endpoint = 0x85,
  3187. .ep_attr = 0x05,
  3188. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3189. .rate_min = 16000,
  3190. .rate_max = 16000
  3191. }
  3192. },
  3193. {
  3194. .ifnum = -1
  3195. }
  3196. }
  3197. }
  3198. },
  3199. /* Reloop Play */
  3200. {
  3201. USB_DEVICE(0x200c, 0x100b),
  3202. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  3203. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3204. .ifnum = QUIRK_ANY_INTERFACE,
  3205. .type = QUIRK_COMPOSITE,
  3206. .data = &(const struct snd_usb_audio_quirk[]) {
  3207. {
  3208. .ifnum = 0,
  3209. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3210. },
  3211. {
  3212. .ifnum = 1,
  3213. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3214. .data = &(const struct audioformat) {
  3215. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3216. .channels = 4,
  3217. .iface = 1,
  3218. .altsetting = 1,
  3219. .altset_idx = 1,
  3220. .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
  3221. .endpoint = 0x01,
  3222. .ep_attr = USB_ENDPOINT_SYNC_ADAPTIVE,
  3223. .rates = SNDRV_PCM_RATE_44100 |
  3224. SNDRV_PCM_RATE_48000,
  3225. .rate_min = 44100,
  3226. .rate_max = 48000,
  3227. .nr_rates = 2,
  3228. .rate_table = (unsigned int[]) {
  3229. 44100, 48000
  3230. }
  3231. }
  3232. },
  3233. {
  3234. .ifnum = -1
  3235. }
  3236. }
  3237. }
  3238. },
  3239. {
  3240. /*
  3241. * ZOOM R16/24 in audio interface mode.
  3242. * Playback requires an extra four byte LE length indicator
  3243. * at the start of each isochronous packet. This quirk is
  3244. * enabled in create_standard_audio_quirk().
  3245. */
  3246. USB_DEVICE(0x1686, 0x00dd),
  3247. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  3248. .ifnum = QUIRK_ANY_INTERFACE,
  3249. .type = QUIRK_COMPOSITE,
  3250. .data = (const struct snd_usb_audio_quirk[]) {
  3251. {
  3252. /* Playback */
  3253. .ifnum = 1,
  3254. .type = QUIRK_AUDIO_STANDARD_INTERFACE,
  3255. },
  3256. {
  3257. /* Capture */
  3258. .ifnum = 2,
  3259. .type = QUIRK_AUDIO_STANDARD_INTERFACE,
  3260. },
  3261. {
  3262. /* Midi */
  3263. .ifnum = 3,
  3264. .type = QUIRK_MIDI_STANDARD_INTERFACE
  3265. },
  3266. {
  3267. .ifnum = -1
  3268. },
  3269. }
  3270. }
  3271. },
  3272. {
  3273. /*
  3274. * Some USB MIDI devices don't have an audio control interface,
  3275. * so we have to grab MIDI streaming interfaces here.
  3276. */
  3277. .match_flags = USB_DEVICE_ID_MATCH_INT_CLASS |
  3278. USB_DEVICE_ID_MATCH_INT_SUBCLASS,
  3279. .bInterfaceClass = USB_CLASS_AUDIO,
  3280. .bInterfaceSubClass = USB_SUBCLASS_MIDISTREAMING,
  3281. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  3282. .ifnum = QUIRK_ANY_INTERFACE,
  3283. .type = QUIRK_MIDI_STANDARD_INTERFACE
  3284. }
  3285. },
  3286. /* Rane SL-1 */
  3287. {
  3288. USB_DEVICE(0x13e5, 0x0001),
  3289. .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
  3290. .ifnum = QUIRK_ANY_INTERFACE,
  3291. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  3292. }
  3293. },
  3294. /* disabled due to regression for other devices;
  3295. * see https://bugzilla.kernel.org/show_bug.cgi?id=199905
  3296. */
  3297. #if 0
  3298. {
  3299. /*
  3300. * Nura's first gen headphones use Cambridge Silicon Radio's vendor
  3301. * ID, but it looks like the product ID actually is only for Nura.
  3302. * The capture interface does not work at all (even on Windows),
  3303. * and only the 48 kHz sample rate works for the playback interface.
  3304. */
  3305. USB_DEVICE(0x0a12, 0x1243),
  3306. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3307. .ifnum = QUIRK_ANY_INTERFACE,
  3308. .type = QUIRK_COMPOSITE,
  3309. .data = (const struct snd_usb_audio_quirk[]) {
  3310. {
  3311. .ifnum = 0,
  3312. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3313. },
  3314. /* Capture */
  3315. {
  3316. .ifnum = 1,
  3317. .type = QUIRK_IGNORE_INTERFACE,
  3318. },
  3319. /* Playback */
  3320. {
  3321. .ifnum = 2,
  3322. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3323. .data = &(const struct audioformat) {
  3324. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3325. .channels = 2,
  3326. .iface = 2,
  3327. .altsetting = 1,
  3328. .altset_idx = 1,
  3329. .attributes = UAC_EP_CS_ATTR_FILL_MAX |
  3330. UAC_EP_CS_ATTR_SAMPLE_RATE,
  3331. .endpoint = 0x03,
  3332. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  3333. .rates = SNDRV_PCM_RATE_48000,
  3334. .rate_min = 48000,
  3335. .rate_max = 48000,
  3336. .nr_rates = 1,
  3337. .rate_table = (unsigned int[]) {
  3338. 48000
  3339. }
  3340. }
  3341. },
  3342. {
  3343. .ifnum = -1
  3344. },
  3345. }
  3346. }
  3347. },
  3348. #endif /* disabled */
  3349. {
  3350. /*
  3351. * Bower's & Wilkins PX headphones only support the 48 kHz sample rate
  3352. * even though it advertises more. The capture interface doesn't work
  3353. * even on windows.
  3354. */
  3355. USB_DEVICE(0x19b5, 0x0021),
  3356. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3357. .ifnum = QUIRK_ANY_INTERFACE,
  3358. .type = QUIRK_COMPOSITE,
  3359. .data = (const struct snd_usb_audio_quirk[]) {
  3360. {
  3361. .ifnum = 0,
  3362. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3363. },
  3364. /* Playback */
  3365. {
  3366. .ifnum = 1,
  3367. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3368. .data = &(const struct audioformat) {
  3369. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3370. .channels = 2,
  3371. .iface = 1,
  3372. .altsetting = 1,
  3373. .altset_idx = 1,
  3374. .attributes = UAC_EP_CS_ATTR_FILL_MAX |
  3375. UAC_EP_CS_ATTR_SAMPLE_RATE,
  3376. .endpoint = 0x03,
  3377. .ep_attr = USB_ENDPOINT_XFER_ISOC,
  3378. .rates = SNDRV_PCM_RATE_48000,
  3379. .rate_min = 48000,
  3380. .rate_max = 48000,
  3381. .nr_rates = 1,
  3382. .rate_table = (unsigned int[]) {
  3383. 48000
  3384. }
  3385. }
  3386. },
  3387. {
  3388. .ifnum = -1
  3389. },
  3390. }
  3391. }
  3392. },
  3393. /* MOTU Microbook II */
  3394. {
  3395. USB_DEVICE_VENDOR_SPEC(0x07fd, 0x0004),
  3396. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3397. .vendor_name = "MOTU",
  3398. .product_name = "MicroBookII",
  3399. .ifnum = QUIRK_ANY_INTERFACE,
  3400. .type = QUIRK_COMPOSITE,
  3401. .data = (const struct snd_usb_audio_quirk[]) {
  3402. {
  3403. .ifnum = 0,
  3404. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3405. },
  3406. {
  3407. .ifnum = 0,
  3408. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3409. .data = &(const struct audioformat) {
  3410. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  3411. .channels = 6,
  3412. .iface = 0,
  3413. .altsetting = 1,
  3414. .altset_idx = 1,
  3415. .attributes = 0,
  3416. .endpoint = 0x84,
  3417. .rates = SNDRV_PCM_RATE_96000,
  3418. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  3419. USB_ENDPOINT_SYNC_ASYNC,
  3420. .rate_min = 96000,
  3421. .rate_max = 96000,
  3422. .nr_rates = 1,
  3423. .maxpacksize = 0x00d8,
  3424. .rate_table = (unsigned int[]) {
  3425. 96000
  3426. }
  3427. }
  3428. },
  3429. {
  3430. .ifnum = 0,
  3431. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3432. .data = &(const struct audioformat) {
  3433. .formats = SNDRV_PCM_FMTBIT_S24_3BE,
  3434. .channels = 8,
  3435. .iface = 0,
  3436. .altsetting = 1,
  3437. .altset_idx = 1,
  3438. .attributes = 0,
  3439. .endpoint = 0x03,
  3440. .ep_idx = 1,
  3441. .rates = SNDRV_PCM_RATE_96000,
  3442. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  3443. USB_ENDPOINT_SYNC_ASYNC,
  3444. .rate_min = 96000,
  3445. .rate_max = 96000,
  3446. .nr_rates = 1,
  3447. .maxpacksize = 0x0120,
  3448. .rate_table = (unsigned int[]) {
  3449. 96000
  3450. }
  3451. }
  3452. },
  3453. {
  3454. .ifnum = -1
  3455. }
  3456. }
  3457. }
  3458. },
  3459. {
  3460. /*
  3461. * PIONEER DJ DDJ-SX3
  3462. * PCM is 12 channels out, 10 channels in @ 44.1 fixed
  3463. * interface 0, vendor class alt setting 1 for endpoints 5 and 0x86
  3464. * The feedback for the output is the input.
  3465. */
  3466. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0023),
  3467. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3468. .ifnum = QUIRK_ANY_INTERFACE,
  3469. .type = QUIRK_COMPOSITE,
  3470. .data = (const struct snd_usb_audio_quirk[]) {
  3471. {
  3472. .ifnum = 0,
  3473. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3474. .data = &(const struct audioformat) {
  3475. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  3476. .channels = 12,
  3477. .iface = 0,
  3478. .altsetting = 1,
  3479. .altset_idx = 1,
  3480. .endpoint = 0x05,
  3481. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3482. USB_ENDPOINT_SYNC_ASYNC,
  3483. .rates = SNDRV_PCM_RATE_44100,
  3484. .rate_min = 44100,
  3485. .rate_max = 44100,
  3486. .nr_rates = 1,
  3487. .rate_table = (unsigned int[]) { 44100 }
  3488. }
  3489. },
  3490. {
  3491. .ifnum = 0,
  3492. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3493. .data = &(const struct audioformat) {
  3494. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  3495. .channels = 10,
  3496. .iface = 0,
  3497. .altsetting = 1,
  3498. .altset_idx = 1,
  3499. .endpoint = 0x86,
  3500. .ep_idx = 1,
  3501. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3502. USB_ENDPOINT_SYNC_ASYNC|
  3503. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  3504. .rates = SNDRV_PCM_RATE_44100,
  3505. .rate_min = 44100,
  3506. .rate_max = 44100,
  3507. .nr_rates = 1,
  3508. .rate_table = (unsigned int[]) { 44100 }
  3509. }
  3510. },
  3511. {
  3512. .ifnum = -1
  3513. }
  3514. }
  3515. }
  3516. },
  3517. {
  3518. /*
  3519. * Pioneer DJ DJM-250MK2
  3520. * PCM is 8 channels out @ 48 fixed (endpoint 0x01)
  3521. * and 8 channels in @ 48 fixed (endpoint 0x82).
  3522. *
  3523. * Both playback and recording is working, even simultaneously.
  3524. *
  3525. * Playback channels could be mapped to:
  3526. * - CH1
  3527. * - CH2
  3528. * - AUX
  3529. *
  3530. * Recording channels could be mapped to:
  3531. * - Post CH1 Fader
  3532. * - Post CH2 Fader
  3533. * - Cross Fader A
  3534. * - Cross Fader B
  3535. * - MIC
  3536. * - AUX
  3537. * - REC OUT
  3538. *
  3539. * There is remaining problem with recording directly from PHONO/LINE.
  3540. * If we map a channel to:
  3541. * - CH1 Control Tone PHONO
  3542. * - CH1 Control Tone LINE
  3543. * - CH2 Control Tone PHONO
  3544. * - CH2 Control Tone LINE
  3545. * it is silent.
  3546. * There is no signal even on other operating systems with official drivers.
  3547. * The signal appears only when a supported application is started.
  3548. * This needs to be investigated yet...
  3549. * (there is quite a lot communication on the USB in both directions)
  3550. *
  3551. * In current version this mixer could be used for playback
  3552. * and for recording from vinyls (through Post CH* Fader)
  3553. * but not for DVS (Digital Vinyl Systems) like in Mixxx.
  3554. */
  3555. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0017),
  3556. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3557. .ifnum = QUIRK_ANY_INTERFACE,
  3558. .type = QUIRK_COMPOSITE,
  3559. .data = (const struct snd_usb_audio_quirk[]) {
  3560. {
  3561. .ifnum = 0,
  3562. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3563. .data = &(const struct audioformat) {
  3564. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3565. .channels = 8, // outputs
  3566. .iface = 0,
  3567. .altsetting = 1,
  3568. .altset_idx = 1,
  3569. .endpoint = 0x01,
  3570. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3571. USB_ENDPOINT_SYNC_ASYNC,
  3572. .rates = SNDRV_PCM_RATE_48000,
  3573. .rate_min = 48000,
  3574. .rate_max = 48000,
  3575. .nr_rates = 1,
  3576. .rate_table = (unsigned int[]) { 48000 }
  3577. }
  3578. },
  3579. {
  3580. .ifnum = 0,
  3581. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3582. .data = &(const struct audioformat) {
  3583. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3584. .channels = 8, // inputs
  3585. .iface = 0,
  3586. .altsetting = 1,
  3587. .altset_idx = 1,
  3588. .endpoint = 0x82,
  3589. .ep_idx = 1,
  3590. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3591. USB_ENDPOINT_SYNC_ASYNC|
  3592. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  3593. .rates = SNDRV_PCM_RATE_48000,
  3594. .rate_min = 48000,
  3595. .rate_max = 48000,
  3596. .nr_rates = 1,
  3597. .rate_table = (unsigned int[]) { 48000 }
  3598. }
  3599. },
  3600. {
  3601. .ifnum = -1
  3602. }
  3603. }
  3604. }
  3605. },
  3606. {
  3607. /*
  3608. * PIONEER DJ DDJ-RB
  3609. * PCM is 4 channels out, 2 dummy channels in @ 44.1 fixed
  3610. * The feedback for the output is the dummy input.
  3611. */
  3612. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000e),
  3613. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3614. .ifnum = QUIRK_ANY_INTERFACE,
  3615. .type = QUIRK_COMPOSITE,
  3616. .data = (const struct snd_usb_audio_quirk[]) {
  3617. {
  3618. .ifnum = 0,
  3619. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3620. .data = &(const struct audioformat) {
  3621. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3622. .channels = 4,
  3623. .iface = 0,
  3624. .altsetting = 1,
  3625. .altset_idx = 1,
  3626. .endpoint = 0x01,
  3627. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3628. USB_ENDPOINT_SYNC_ASYNC,
  3629. .rates = SNDRV_PCM_RATE_44100,
  3630. .rate_min = 44100,
  3631. .rate_max = 44100,
  3632. .nr_rates = 1,
  3633. .rate_table = (unsigned int[]) { 44100 }
  3634. }
  3635. },
  3636. {
  3637. .ifnum = 0,
  3638. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3639. .data = &(const struct audioformat) {
  3640. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3641. .channels = 2,
  3642. .iface = 0,
  3643. .altsetting = 1,
  3644. .altset_idx = 1,
  3645. .endpoint = 0x82,
  3646. .ep_idx = 1,
  3647. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3648. USB_ENDPOINT_SYNC_ASYNC|
  3649. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  3650. .rates = SNDRV_PCM_RATE_44100,
  3651. .rate_min = 44100,
  3652. .rate_max = 44100,
  3653. .nr_rates = 1,
  3654. .rate_table = (unsigned int[]) { 44100 }
  3655. }
  3656. },
  3657. {
  3658. .ifnum = -1
  3659. }
  3660. }
  3661. }
  3662. },
  3663. {
  3664. /*
  3665. * PIONEER DJ DDJ-RR
  3666. * PCM is 6 channels out & 4 channels in @ 44.1 fixed
  3667. */
  3668. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000d),
  3669. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3670. .ifnum = QUIRK_ANY_INTERFACE,
  3671. .type = QUIRK_COMPOSITE,
  3672. .data = (const struct snd_usb_audio_quirk[]) {
  3673. {
  3674. .ifnum = 0,
  3675. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3676. .data = &(const struct audioformat) {
  3677. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3678. .channels = 6, //Master, Headphones & Booth
  3679. .iface = 0,
  3680. .altsetting = 1,
  3681. .altset_idx = 1,
  3682. .endpoint = 0x01,
  3683. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3684. USB_ENDPOINT_SYNC_ASYNC,
  3685. .rates = SNDRV_PCM_RATE_44100,
  3686. .rate_min = 44100,
  3687. .rate_max = 44100,
  3688. .nr_rates = 1,
  3689. .rate_table = (unsigned int[]) { 44100 }
  3690. }
  3691. },
  3692. {
  3693. .ifnum = 0,
  3694. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3695. .data = &(const struct audioformat) {
  3696. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3697. .channels = 4, //2x RCA inputs (CH1 & CH2)
  3698. .iface = 0,
  3699. .altsetting = 1,
  3700. .altset_idx = 1,
  3701. .endpoint = 0x82,
  3702. .ep_idx = 1,
  3703. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3704. USB_ENDPOINT_SYNC_ASYNC|
  3705. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  3706. .rates = SNDRV_PCM_RATE_44100,
  3707. .rate_min = 44100,
  3708. .rate_max = 44100,
  3709. .nr_rates = 1,
  3710. .rate_table = (unsigned int[]) { 44100 }
  3711. }
  3712. },
  3713. {
  3714. .ifnum = -1
  3715. }
  3716. }
  3717. }
  3718. },
  3719. {
  3720. /*
  3721. * PIONEER DJ DDJ-SR2
  3722. * PCM is 4 channels out, 6 channels in @ 44.1 fixed
  3723. * The Feedback for the output is the input
  3724. */
  3725. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x001e),
  3726. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3727. .ifnum = QUIRK_ANY_INTERFACE,
  3728. .type = QUIRK_COMPOSITE,
  3729. .data = (const struct snd_usb_audio_quirk[]) {
  3730. {
  3731. .ifnum = 0,
  3732. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3733. .data = &(const struct audioformat) {
  3734. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3735. .channels = 4,
  3736. .iface = 0,
  3737. .altsetting = 1,
  3738. .altset_idx = 1,
  3739. .endpoint = 0x01,
  3740. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3741. USB_ENDPOINT_SYNC_ASYNC,
  3742. .rates = SNDRV_PCM_RATE_44100,
  3743. .rate_min = 44100,
  3744. .rate_max = 44100,
  3745. .nr_rates = 1,
  3746. .rate_table = (unsigned int[]) { 44100 }
  3747. }
  3748. },
  3749. {
  3750. .ifnum = 0,
  3751. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3752. .data = &(const struct audioformat) {
  3753. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3754. .channels = 6,
  3755. .iface = 0,
  3756. .altsetting = 1,
  3757. .altset_idx = 1,
  3758. .endpoint = 0x82,
  3759. .ep_idx = 1,
  3760. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3761. USB_ENDPOINT_SYNC_ASYNC|
  3762. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  3763. .rates = SNDRV_PCM_RATE_44100,
  3764. .rate_min = 44100,
  3765. .rate_max = 44100,
  3766. .nr_rates = 1,
  3767. .rate_table = (unsigned int[]) { 44100 }
  3768. }
  3769. },
  3770. {
  3771. .ifnum = -1
  3772. }
  3773. }
  3774. }
  3775. },
  3776. {
  3777. /*
  3778. * Pioneer DJ DJM-900NXS2
  3779. * 10 channels playback & 12 channels capture @ 44.1/48/96kHz S24LE
  3780. */
  3781. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x000a),
  3782. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3783. .ifnum = QUIRK_ANY_INTERFACE,
  3784. .type = QUIRK_COMPOSITE,
  3785. .data = (const struct snd_usb_audio_quirk[]) {
  3786. {
  3787. .ifnum = 0,
  3788. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3789. .data = &(const struct audioformat) {
  3790. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3791. .channels = 10,
  3792. .iface = 0,
  3793. .altsetting = 1,
  3794. .altset_idx = 1,
  3795. .endpoint = 0x01,
  3796. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3797. USB_ENDPOINT_SYNC_ASYNC,
  3798. .rates = SNDRV_PCM_RATE_44100|
  3799. SNDRV_PCM_RATE_48000|
  3800. SNDRV_PCM_RATE_96000,
  3801. .rate_min = 44100,
  3802. .rate_max = 96000,
  3803. .nr_rates = 3,
  3804. .rate_table = (unsigned int[]) {
  3805. 44100, 48000, 96000
  3806. }
  3807. }
  3808. },
  3809. {
  3810. .ifnum = 0,
  3811. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3812. .data = &(const struct audioformat) {
  3813. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3814. .channels = 12,
  3815. .iface = 0,
  3816. .altsetting = 1,
  3817. .altset_idx = 1,
  3818. .endpoint = 0x82,
  3819. .ep_idx = 1,
  3820. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3821. USB_ENDPOINT_SYNC_ASYNC|
  3822. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  3823. .rates = SNDRV_PCM_RATE_44100|
  3824. SNDRV_PCM_RATE_48000|
  3825. SNDRV_PCM_RATE_96000,
  3826. .rate_min = 44100,
  3827. .rate_max = 96000,
  3828. .nr_rates = 3,
  3829. .rate_table = (unsigned int[]) {
  3830. 44100, 48000, 96000
  3831. }
  3832. }
  3833. },
  3834. {
  3835. .ifnum = -1
  3836. }
  3837. }
  3838. }
  3839. },
  3840. {
  3841. /*
  3842. * PIONEER DJ DDJ-800
  3843. * PCM is 6 channels out, 6 channels in @ 44.1 fixed
  3844. * The Feedback for the output is the input
  3845. */
  3846. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0029),
  3847. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3848. .ifnum = QUIRK_ANY_INTERFACE,
  3849. .type = QUIRK_COMPOSITE,
  3850. .data = (const struct snd_usb_audio_quirk[]) {
  3851. {
  3852. .ifnum = 0,
  3853. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3854. .data = &(const struct audioformat) {
  3855. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3856. .channels = 6,
  3857. .iface = 0,
  3858. .altsetting = 1,
  3859. .altset_idx = 1,
  3860. .endpoint = 0x01,
  3861. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3862. USB_ENDPOINT_SYNC_ASYNC,
  3863. .rates = SNDRV_PCM_RATE_44100,
  3864. .rate_min = 44100,
  3865. .rate_max = 44100,
  3866. .nr_rates = 1,
  3867. .rate_table = (unsigned int[]) { 44100 }
  3868. }
  3869. },
  3870. {
  3871. .ifnum = 0,
  3872. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3873. .data = &(const struct audioformat) {
  3874. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  3875. .channels = 6,
  3876. .iface = 0,
  3877. .altsetting = 1,
  3878. .altset_idx = 1,
  3879. .endpoint = 0x82,
  3880. .ep_idx = 1,
  3881. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  3882. USB_ENDPOINT_SYNC_ASYNC|
  3883. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  3884. .rates = SNDRV_PCM_RATE_44100,
  3885. .rate_min = 44100,
  3886. .rate_max = 44100,
  3887. .nr_rates = 1,
  3888. .rate_table = (unsigned int[]) { 44100 }
  3889. }
  3890. },
  3891. {
  3892. .ifnum = -1
  3893. }
  3894. }
  3895. }
  3896. },
  3897. /*
  3898. * MacroSilicon MS2100/MS2106 based AV capture cards
  3899. *
  3900. * These claim 96kHz 1ch in the descriptors, but are actually 48kHz 2ch.
  3901. * They also need QUIRK_FLAG_ALIGN_TRANSFER, which makes one wonder if
  3902. * they pretend to be 96kHz mono as a workaround for stereo being broken
  3903. * by that...
  3904. *
  3905. * They also have an issue with initial stream alignment that causes the
  3906. * channels to be swapped and out of phase, which is dealt with in quirks.c.
  3907. */
  3908. {
  3909. USB_AUDIO_DEVICE(0x534d, 0x0021),
  3910. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3911. .vendor_name = "MacroSilicon",
  3912. .product_name = "MS210x",
  3913. .ifnum = QUIRK_ANY_INTERFACE,
  3914. .type = QUIRK_COMPOSITE,
  3915. .data = &(const struct snd_usb_audio_quirk[]) {
  3916. {
  3917. .ifnum = 2,
  3918. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3919. },
  3920. {
  3921. .ifnum = 3,
  3922. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3923. .data = &(const struct audioformat) {
  3924. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3925. .channels = 2,
  3926. .iface = 3,
  3927. .altsetting = 1,
  3928. .altset_idx = 1,
  3929. .attributes = 0,
  3930. .endpoint = 0x82,
  3931. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  3932. USB_ENDPOINT_SYNC_ASYNC,
  3933. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3934. .rate_min = 48000,
  3935. .rate_max = 48000,
  3936. }
  3937. },
  3938. {
  3939. .ifnum = -1
  3940. }
  3941. }
  3942. }
  3943. },
  3944. /*
  3945. * MacroSilicon MS2109 based HDMI capture cards
  3946. *
  3947. * These claim 96kHz 1ch in the descriptors, but are actually 48kHz 2ch.
  3948. * They also need QUIRK_FLAG_ALIGN_TRANSFER, which makes one wonder if
  3949. * they pretend to be 96kHz mono as a workaround for stereo being broken
  3950. * by that...
  3951. *
  3952. * They also have an issue with initial stream alignment that causes the
  3953. * channels to be swapped and out of phase, which is dealt with in quirks.c.
  3954. */
  3955. {
  3956. USB_AUDIO_DEVICE(0x534d, 0x2109),
  3957. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3958. .vendor_name = "MacroSilicon",
  3959. .product_name = "MS2109",
  3960. .ifnum = QUIRK_ANY_INTERFACE,
  3961. .type = QUIRK_COMPOSITE,
  3962. .data = &(const struct snd_usb_audio_quirk[]) {
  3963. {
  3964. .ifnum = 2,
  3965. .type = QUIRK_AUDIO_STANDARD_MIXER,
  3966. },
  3967. {
  3968. .ifnum = 3,
  3969. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  3970. .data = &(const struct audioformat) {
  3971. .formats = SNDRV_PCM_FMTBIT_S16_LE,
  3972. .channels = 2,
  3973. .iface = 3,
  3974. .altsetting = 1,
  3975. .altset_idx = 1,
  3976. .attributes = 0,
  3977. .endpoint = 0x82,
  3978. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  3979. USB_ENDPOINT_SYNC_ASYNC,
  3980. .rates = SNDRV_PCM_RATE_CONTINUOUS,
  3981. .rate_min = 48000,
  3982. .rate_max = 48000,
  3983. }
  3984. },
  3985. {
  3986. .ifnum = -1
  3987. }
  3988. }
  3989. }
  3990. },
  3991. {
  3992. /*
  3993. * Pioneer DJ DJM-750
  3994. * 8 channels playback & 8 channels capture @ 44.1/48/96kHz S24LE
  3995. */
  3996. USB_DEVICE_VENDOR_SPEC(0x08e4, 0x017f),
  3997. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  3998. .ifnum = QUIRK_ANY_INTERFACE,
  3999. .type = QUIRK_COMPOSITE,
  4000. .data = (const struct snd_usb_audio_quirk[]) {
  4001. {
  4002. .ifnum = 0,
  4003. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4004. .data = &(const struct audioformat) {
  4005. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  4006. .channels = 8,
  4007. .iface = 0,
  4008. .altsetting = 1,
  4009. .altset_idx = 1,
  4010. .endpoint = 0x05,
  4011. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  4012. USB_ENDPOINT_SYNC_ASYNC,
  4013. .rates = SNDRV_PCM_RATE_44100|
  4014. SNDRV_PCM_RATE_48000|
  4015. SNDRV_PCM_RATE_96000,
  4016. .rate_min = 44100,
  4017. .rate_max = 96000,
  4018. .nr_rates = 3,
  4019. .rate_table = (unsigned int[]) { 44100, 48000, 96000 }
  4020. }
  4021. },
  4022. {
  4023. .ifnum = 0,
  4024. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4025. .data = &(const struct audioformat) {
  4026. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  4027. .channels = 8,
  4028. .iface = 0,
  4029. .altsetting = 1,
  4030. .altset_idx = 1,
  4031. .endpoint = 0x86,
  4032. .ep_idx = 1,
  4033. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  4034. USB_ENDPOINT_SYNC_ASYNC|
  4035. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  4036. .rates = SNDRV_PCM_RATE_44100|
  4037. SNDRV_PCM_RATE_48000|
  4038. SNDRV_PCM_RATE_96000,
  4039. .rate_min = 44100,
  4040. .rate_max = 96000,
  4041. .nr_rates = 3,
  4042. .rate_table = (unsigned int[]) { 44100, 48000, 96000 }
  4043. }
  4044. },
  4045. {
  4046. .ifnum = -1
  4047. }
  4048. }
  4049. }
  4050. },
  4051. {
  4052. /*
  4053. * Pioneer DJ DJM-750MK2
  4054. * 10 channels playback & 12 channels capture @ 48kHz S24LE
  4055. */
  4056. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x001b),
  4057. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  4058. .ifnum = QUIRK_ANY_INTERFACE,
  4059. .type = QUIRK_COMPOSITE,
  4060. .data = (const struct snd_usb_audio_quirk[]) {
  4061. {
  4062. .ifnum = 0,
  4063. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4064. .data = &(const struct audioformat) {
  4065. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  4066. .channels = 10,
  4067. .iface = 0,
  4068. .altsetting = 1,
  4069. .altset_idx = 1,
  4070. .endpoint = 0x01,
  4071. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  4072. USB_ENDPOINT_SYNC_ASYNC,
  4073. .rates = SNDRV_PCM_RATE_48000,
  4074. .rate_min = 48000,
  4075. .rate_max = 48000,
  4076. .nr_rates = 1,
  4077. .rate_table = (unsigned int[]) {
  4078. 48000
  4079. }
  4080. }
  4081. },
  4082. {
  4083. .ifnum = 0,
  4084. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4085. .data = &(const struct audioformat) {
  4086. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  4087. .channels = 12,
  4088. .iface = 0,
  4089. .altsetting = 1,
  4090. .altset_idx = 1,
  4091. .endpoint = 0x82,
  4092. .ep_idx = 1,
  4093. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  4094. USB_ENDPOINT_SYNC_ASYNC|
  4095. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  4096. .rates = SNDRV_PCM_RATE_48000,
  4097. .rate_min = 48000,
  4098. .rate_max = 48000,
  4099. .nr_rates = 1,
  4100. .rate_table = (unsigned int[]) { 48000 }
  4101. }
  4102. },
  4103. {
  4104. .ifnum = -1
  4105. }
  4106. }
  4107. }
  4108. },
  4109. {
  4110. /*
  4111. * Pioneer DJ DJM-850
  4112. * 8 channels playback and 8 channels capture @ 44.1/48/96kHz S24LE
  4113. * Playback on EP 0x05
  4114. * Capture on EP 0x86
  4115. */
  4116. USB_DEVICE_VENDOR_SPEC(0x08e4, 0x0163),
  4117. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  4118. .ifnum = QUIRK_ANY_INTERFACE,
  4119. .type = QUIRK_COMPOSITE,
  4120. .data = (const struct snd_usb_audio_quirk[]) {
  4121. {
  4122. .ifnum = 0,
  4123. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4124. .data = &(const struct audioformat) {
  4125. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  4126. .channels = 8,
  4127. .iface = 0,
  4128. .altsetting = 1,
  4129. .altset_idx = 1,
  4130. .endpoint = 0x05,
  4131. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  4132. USB_ENDPOINT_SYNC_ASYNC|
  4133. USB_ENDPOINT_USAGE_DATA,
  4134. .rates = SNDRV_PCM_RATE_44100|
  4135. SNDRV_PCM_RATE_48000|
  4136. SNDRV_PCM_RATE_96000,
  4137. .rate_min = 44100,
  4138. .rate_max = 96000,
  4139. .nr_rates = 3,
  4140. .rate_table = (unsigned int[]) { 44100, 48000, 96000 }
  4141. }
  4142. },
  4143. {
  4144. .ifnum = 0,
  4145. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4146. .data = &(const struct audioformat) {
  4147. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  4148. .channels = 8,
  4149. .iface = 0,
  4150. .altsetting = 1,
  4151. .altset_idx = 1,
  4152. .endpoint = 0x86,
  4153. .ep_idx = 1,
  4154. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  4155. USB_ENDPOINT_SYNC_ASYNC|
  4156. USB_ENDPOINT_USAGE_DATA,
  4157. .rates = SNDRV_PCM_RATE_44100|
  4158. SNDRV_PCM_RATE_48000|
  4159. SNDRV_PCM_RATE_96000,
  4160. .rate_min = 44100,
  4161. .rate_max = 96000,
  4162. .nr_rates = 3,
  4163. .rate_table = (unsigned int[]) { 44100, 48000, 96000 }
  4164. }
  4165. },
  4166. {
  4167. .ifnum = -1
  4168. }
  4169. }
  4170. }
  4171. },
  4172. {
  4173. /*
  4174. * Pioneer DJ DJM-450
  4175. * PCM is 8 channels out @ 48 fixed (endpoint 0x01)
  4176. * and 8 channels in @ 48 fixed (endpoint 0x82).
  4177. */
  4178. USB_DEVICE_VENDOR_SPEC(0x2b73, 0x0013),
  4179. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  4180. .ifnum = QUIRK_ANY_INTERFACE,
  4181. .type = QUIRK_COMPOSITE,
  4182. .data = (const struct snd_usb_audio_quirk[]) {
  4183. {
  4184. .ifnum = 0,
  4185. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4186. .data = &(const struct audioformat) {
  4187. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  4188. .channels = 8, // outputs
  4189. .iface = 0,
  4190. .altsetting = 1,
  4191. .altset_idx = 1,
  4192. .endpoint = 0x01,
  4193. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  4194. USB_ENDPOINT_SYNC_ASYNC,
  4195. .rates = SNDRV_PCM_RATE_48000,
  4196. .rate_min = 48000,
  4197. .rate_max = 48000,
  4198. .nr_rates = 1,
  4199. .rate_table = (unsigned int[]) { 48000 }
  4200. }
  4201. },
  4202. {
  4203. .ifnum = 0,
  4204. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4205. .data = &(const struct audioformat) {
  4206. .formats = SNDRV_PCM_FMTBIT_S24_3LE,
  4207. .channels = 8, // inputs
  4208. .iface = 0,
  4209. .altsetting = 1,
  4210. .altset_idx = 1,
  4211. .endpoint = 0x82,
  4212. .ep_idx = 1,
  4213. .ep_attr = USB_ENDPOINT_XFER_ISOC|
  4214. USB_ENDPOINT_SYNC_ASYNC|
  4215. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  4216. .rates = SNDRV_PCM_RATE_48000,
  4217. .rate_min = 48000,
  4218. .rate_max = 48000,
  4219. .nr_rates = 1,
  4220. .rate_table = (unsigned int[]) { 48000 }
  4221. }
  4222. },
  4223. {
  4224. .ifnum = -1
  4225. }
  4226. }
  4227. }
  4228. },
  4229. {
  4230. /*
  4231. * Sennheiser GSP670
  4232. * Change order of interfaces loaded
  4233. */
  4234. USB_DEVICE(0x1395, 0x0300),
  4235. .bInterfaceClass = USB_CLASS_PER_INTERFACE,
  4236. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  4237. .ifnum = QUIRK_ANY_INTERFACE,
  4238. .type = QUIRK_COMPOSITE,
  4239. .data = &(const struct snd_usb_audio_quirk[]) {
  4240. // Communication
  4241. {
  4242. .ifnum = 3,
  4243. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  4244. },
  4245. // Recording
  4246. {
  4247. .ifnum = 4,
  4248. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  4249. },
  4250. // Main
  4251. {
  4252. .ifnum = 1,
  4253. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  4254. },
  4255. {
  4256. .ifnum = -1
  4257. }
  4258. }
  4259. }
  4260. },
  4261. {
  4262. /*
  4263. * Fiero SC-01 (firmware v1.0.0 @ 48 kHz)
  4264. */
  4265. USB_DEVICE(0x2b53, 0x0023),
  4266. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  4267. .vendor_name = "Fiero",
  4268. .product_name = "SC-01",
  4269. .ifnum = QUIRK_ANY_INTERFACE,
  4270. .type = QUIRK_COMPOSITE,
  4271. .data = &(const struct snd_usb_audio_quirk[]) {
  4272. {
  4273. .ifnum = 0,
  4274. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  4275. },
  4276. /* Playback */
  4277. {
  4278. .ifnum = 1,
  4279. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4280. .data = &(const struct audioformat) {
  4281. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  4282. .channels = 2,
  4283. .fmt_bits = 24,
  4284. .iface = 1,
  4285. .altsetting = 1,
  4286. .altset_idx = 1,
  4287. .endpoint = 0x01,
  4288. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  4289. USB_ENDPOINT_SYNC_ASYNC,
  4290. .rates = SNDRV_PCM_RATE_48000,
  4291. .rate_min = 48000,
  4292. .rate_max = 48000,
  4293. .nr_rates = 1,
  4294. .rate_table = (unsigned int[]) { 48000 },
  4295. .clock = 0x29
  4296. }
  4297. },
  4298. /* Capture */
  4299. {
  4300. .ifnum = 2,
  4301. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4302. .data = &(const struct audioformat) {
  4303. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  4304. .channels = 2,
  4305. .fmt_bits = 24,
  4306. .iface = 2,
  4307. .altsetting = 1,
  4308. .altset_idx = 1,
  4309. .endpoint = 0x82,
  4310. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  4311. USB_ENDPOINT_SYNC_ASYNC |
  4312. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  4313. .rates = SNDRV_PCM_RATE_48000,
  4314. .rate_min = 48000,
  4315. .rate_max = 48000,
  4316. .nr_rates = 1,
  4317. .rate_table = (unsigned int[]) { 48000 },
  4318. .clock = 0x29
  4319. }
  4320. },
  4321. {
  4322. .ifnum = -1
  4323. }
  4324. }
  4325. }
  4326. },
  4327. {
  4328. /*
  4329. * Fiero SC-01 (firmware v1.0.0 @ 96 kHz)
  4330. */
  4331. USB_DEVICE(0x2b53, 0x0024),
  4332. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  4333. .vendor_name = "Fiero",
  4334. .product_name = "SC-01",
  4335. .ifnum = QUIRK_ANY_INTERFACE,
  4336. .type = QUIRK_COMPOSITE,
  4337. .data = &(const struct snd_usb_audio_quirk[]) {
  4338. {
  4339. .ifnum = 0,
  4340. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  4341. },
  4342. /* Playback */
  4343. {
  4344. .ifnum = 1,
  4345. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4346. .data = &(const struct audioformat) {
  4347. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  4348. .channels = 2,
  4349. .fmt_bits = 24,
  4350. .iface = 1,
  4351. .altsetting = 1,
  4352. .altset_idx = 1,
  4353. .endpoint = 0x01,
  4354. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  4355. USB_ENDPOINT_SYNC_ASYNC,
  4356. .rates = SNDRV_PCM_RATE_96000,
  4357. .rate_min = 96000,
  4358. .rate_max = 96000,
  4359. .nr_rates = 1,
  4360. .rate_table = (unsigned int[]) { 96000 },
  4361. .clock = 0x29
  4362. }
  4363. },
  4364. /* Capture */
  4365. {
  4366. .ifnum = 2,
  4367. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4368. .data = &(const struct audioformat) {
  4369. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  4370. .channels = 2,
  4371. .fmt_bits = 24,
  4372. .iface = 2,
  4373. .altsetting = 1,
  4374. .altset_idx = 1,
  4375. .endpoint = 0x82,
  4376. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  4377. USB_ENDPOINT_SYNC_ASYNC |
  4378. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  4379. .rates = SNDRV_PCM_RATE_96000,
  4380. .rate_min = 96000,
  4381. .rate_max = 96000,
  4382. .nr_rates = 1,
  4383. .rate_table = (unsigned int[]) { 96000 },
  4384. .clock = 0x29
  4385. }
  4386. },
  4387. {
  4388. .ifnum = -1
  4389. }
  4390. }
  4391. }
  4392. },
  4393. {
  4394. /*
  4395. * Fiero SC-01 (firmware v1.1.0)
  4396. */
  4397. USB_DEVICE(0x2b53, 0x0031),
  4398. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  4399. .vendor_name = "Fiero",
  4400. .product_name = "SC-01",
  4401. .ifnum = QUIRK_ANY_INTERFACE,
  4402. .type = QUIRK_COMPOSITE,
  4403. .data = &(const struct snd_usb_audio_quirk[]) {
  4404. {
  4405. .ifnum = 0,
  4406. .type = QUIRK_AUDIO_STANDARD_INTERFACE
  4407. },
  4408. /* Playback */
  4409. {
  4410. .ifnum = 1,
  4411. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4412. .data = &(const struct audioformat) {
  4413. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  4414. .channels = 2,
  4415. .fmt_bits = 24,
  4416. .iface = 1,
  4417. .altsetting = 1,
  4418. .altset_idx = 1,
  4419. .endpoint = 0x01,
  4420. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  4421. USB_ENDPOINT_SYNC_ASYNC,
  4422. .rates = SNDRV_PCM_RATE_48000 |
  4423. SNDRV_PCM_RATE_96000,
  4424. .rate_min = 48000,
  4425. .rate_max = 96000,
  4426. .nr_rates = 2,
  4427. .rate_table = (unsigned int[]) { 48000, 96000 },
  4428. .clock = 0x29
  4429. }
  4430. },
  4431. /* Capture */
  4432. {
  4433. .ifnum = 2,
  4434. .type = QUIRK_AUDIO_FIXED_ENDPOINT,
  4435. .data = &(const struct audioformat) {
  4436. .formats = SNDRV_PCM_FMTBIT_S32_LE,
  4437. .channels = 2,
  4438. .fmt_bits = 24,
  4439. .iface = 2,
  4440. .altsetting = 1,
  4441. .altset_idx = 1,
  4442. .endpoint = 0x82,
  4443. .ep_attr = USB_ENDPOINT_XFER_ISOC |
  4444. USB_ENDPOINT_SYNC_ASYNC |
  4445. USB_ENDPOINT_USAGE_IMPLICIT_FB,
  4446. .rates = SNDRV_PCM_RATE_48000 |
  4447. SNDRV_PCM_RATE_96000,
  4448. .rate_min = 48000,
  4449. .rate_max = 96000,
  4450. .nr_rates = 2,
  4451. .rate_table = (unsigned int[]) { 48000, 96000 },
  4452. .clock = 0x29
  4453. }
  4454. },
  4455. {
  4456. .ifnum = -1
  4457. }
  4458. }
  4459. }
  4460. },
  4461. {
  4462. /* Advanced modes of the Mythware XA001AU.
  4463. * For the standard mode, Mythware XA001AU has ID ffad:a001
  4464. */
  4465. USB_DEVICE_VENDOR_SPEC(0xffad, 0xa001),
  4466. .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
  4467. .vendor_name = "Mythware",
  4468. .product_name = "XA001AU",
  4469. .ifnum = QUIRK_ANY_INTERFACE,
  4470. .type = QUIRK_COMPOSITE,
  4471. .data = (const struct snd_usb_audio_quirk[]) {
  4472. {
  4473. .ifnum = 0,
  4474. .type = QUIRK_IGNORE_INTERFACE,
  4475. },
  4476. {
  4477. .ifnum = 1,
  4478. .type = QUIRK_AUDIO_STANDARD_INTERFACE,
  4479. },
  4480. {
  4481. .ifnum = 2,
  4482. .type = QUIRK_AUDIO_STANDARD_INTERFACE,
  4483. },
  4484. {
  4485. .ifnum = -1
  4486. }
  4487. }
  4488. }
  4489. },
  4490. #undef USB_DEVICE_VENDOR_SPEC
  4491. #undef USB_AUDIO_DEVICE