msm-pcm-routing-v2.c 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static int aanc_level;
  76. static int num_app_cfg_types;
  77. static int msm_ec_ref_port_id;
  78. static int afe_loopback_tx_port_index;
  79. static int afe_loopback_tx_port_id = -1;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* all the FES which can support channel mixer for bidirection */
  84. static struct msm_pcm_channel_mixer
  85. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  86. /* input BE for each FE */
  87. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  88. enum {
  89. MADNONE,
  90. MADAUDIO,
  91. MADBEACON,
  92. MADULTRASOUND,
  93. MADSWAUDIO,
  94. };
  95. #define ADM_LSM_PORT_INDEX 9
  96. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  97. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  98. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  99. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  100. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  101. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  102. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  103. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  104. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  105. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  106. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  107. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  108. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  109. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  110. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  111. #define LSM_FUNCTION_TEXT "LSM Function"
  112. static const char * const lsm_port_text[] = {
  113. "None",
  114. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  115. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  116. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  117. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  118. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  119. };
  120. struct msm_pcm_route_bdai_pp_params {
  121. u16 port_id; /* AFE port ID */
  122. unsigned long pp_params_config;
  123. bool mute_on;
  124. int latency;
  125. };
  126. static struct msm_pcm_route_bdai_pp_params
  127. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  128. {HDMI_RX, 0, 0, 0},
  129. {DISPLAY_PORT_RX, 0, 0, 0},
  130. };
  131. /*
  132. * The be_dai_name_table is passed to HAL so that it can specify the
  133. * BE ID for the BE it wants to enable based on the name. Thus there
  134. * is a matching table and structure in HAL that need to be updated
  135. * if any changes to these are made.
  136. */
  137. struct msm_pcm_route_bdai_name {
  138. unsigned int be_id;
  139. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  140. };
  141. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  142. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  143. int fe_id);
  144. static void msm_routing_load_topology(size_t data_size, void *data);
  145. static void msm_routing_unload_topology(uint32_t topology_id);
  146. static int msm_routing_get_bit_width(unsigned int format)
  147. {
  148. int bit_width;
  149. switch (format) {
  150. case SNDRV_PCM_FORMAT_S32_LE:
  151. bit_width = 32;
  152. break;
  153. case SNDRV_PCM_FORMAT_S24_LE:
  154. case SNDRV_PCM_FORMAT_S24_3LE:
  155. bit_width = 24;
  156. break;
  157. case SNDRV_PCM_FORMAT_S16_LE:
  158. default:
  159. bit_width = 16;
  160. }
  161. return bit_width;
  162. }
  163. static bool msm_is_resample_needed(int input_sr, int output_sr)
  164. {
  165. bool rc = false;
  166. if (input_sr != output_sr)
  167. rc = true;
  168. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  169. (rc ? "oh yes" : "not really"),
  170. input_sr, output_sr);
  171. return rc;
  172. }
  173. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  174. int channels)
  175. {
  176. int rc = 0;
  177. switch (topology) {
  178. case SRS_TRUMEDIA_TOPOLOGY_ID:
  179. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  180. msm_dts_srs_tm_init(port_id, copp_idx);
  181. break;
  182. case DS2_ADM_COPP_TOPOLOGY_ID:
  183. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  184. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  189. __func__, topology, port_id,
  190. is_custom_stereo_on, rc);
  191. break;
  192. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  193. if (is_ds2_on) {
  194. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  195. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. } else {
  201. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  202. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  203. is_custom_stereo_on);
  204. if (rc < 0)
  205. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  206. __func__, topology, port_id, rc);
  207. }
  208. break;
  209. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  210. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  211. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  212. if (rc < 0)
  213. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  214. __func__, topology, port_id, copp_idx, rc);
  215. break;
  216. default:
  217. /* custom topology specific feature param handlers */
  218. break;
  219. }
  220. }
  221. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  222. {
  223. switch (topology) {
  224. case SRS_TRUMEDIA_TOPOLOGY_ID:
  225. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  226. msm_dts_srs_tm_deinit(port_id);
  227. break;
  228. case DS2_ADM_COPP_TOPOLOGY_ID:
  229. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  230. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  231. msm_ds2_dap_deinit(port_id);
  232. break;
  233. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  234. if (is_ds2_on) {
  235. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  236. msm_ds2_dap_deinit(port_id);
  237. } else {
  238. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_dolby_dap_deinit(port_id);
  240. }
  241. break;
  242. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  243. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  244. msm_qti_pp_asphere_deinit(port_id);
  245. break;
  246. default:
  247. /* custom topology specific feature deinit handlers */
  248. break;
  249. }
  250. }
  251. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  252. int path_type, int perf_mode)
  253. {
  254. int itr = 0, rc = 0;
  255. if ((path_type == ADM_PATH_PLAYBACK) &&
  256. (perf_mode == LEGACY_PCM_MODE) &&
  257. is_custom_stereo_on) {
  258. for (itr = 0; itr < payload.num_copps; itr++) {
  259. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  260. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  261. continue;
  262. }
  263. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  264. payload.port_id[itr],
  265. payload.copp_idx[itr],
  266. payload.session_id,
  267. Q14_GAIN_ZERO_POINT_FIVE,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE);
  271. if (rc < 0)
  272. pr_err("%s: err setting custom stereo\n",
  273. __func__);
  274. }
  275. }
  276. }
  277. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  278. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  279. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  280. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  281. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  282. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  283. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  284. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  285. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  286. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  287. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  288. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AFE_PCM_RX},
  290. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AFE_PCM_TX},
  292. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AUXPCM_RX},
  294. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AUXPCM_TX},
  296. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_VOICE_PLAYBACK_TX},
  298. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_VOICE2_PLAYBACK_TX},
  300. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_INCALL_RECORD_RX},
  302. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_INCALL_RECORD_TX},
  304. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  305. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  306. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  307. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  308. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  309. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  310. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  311. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  312. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  313. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  314. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  315. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  316. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  317. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  318. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  319. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  320. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  321. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  322. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  323. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  326. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_QUAT_MI2S_RX},
  328. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_QUAT_MI2S_TX},
  330. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_SEC_MI2S_RX},
  332. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_SEC_MI2S_TX},
  334. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_PRI_MI2S_RX},
  336. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_PRI_MI2S_TX},
  338. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_TERT_MI2S_RX},
  340. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_TERT_MI2S_TX},
  342. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_AUDIO_I2S_RX},
  344. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_SEC_AUXPCM_RX},
  346. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_AUXPCM_TX},
  348. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_PRI_SPDIF_RX},
  350. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_MI2S_RX_SD1},
  352. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_QUIN_MI2S_RX},
  354. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_QUIN_MI2S_TX},
  356. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_SENARY_MI2S_TX},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_0},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_0},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_1},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_1},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_2},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_2},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_3},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_3},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_4},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_4},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_5},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_5},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_6},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_6},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_7},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_7},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_0},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_0},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_1},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_1},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_2},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_2},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_3},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_3},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_4},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_4},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_5},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_5},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_6},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_6},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_7},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_7},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_0},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_0},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_1},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_1},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_2},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_2},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_3},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_3},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_4},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_4},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_5},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_5},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_6},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_6},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_7},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_7},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_0},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_0},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_1},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_1},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_2},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_2},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_3},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_3},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_4},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_4},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_5},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_5},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_6},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_6},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_7},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_7},
  486. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_0},
  488. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_0},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_1},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_1},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_2},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_2},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_3},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_3},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_4},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_4},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_5},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_5},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_6},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_6},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_7},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_7},
  518. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_SEN_TDM_RX_0},
  520. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_SEN_TDM_TX_0},
  522. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_1},
  524. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_1},
  526. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_2},
  528. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_2},
  530. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_3},
  532. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_3},
  534. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_4},
  536. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_4},
  538. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_5},
  540. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_5},
  542. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_6},
  544. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_6},
  546. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_7},
  548. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_7},
  550. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT_BT_A2DP_RX},
  552. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_USB_AUDIO_RX},
  554. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_USB_AUDIO_TX},
  556. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_DISPLAY_PORT},
  558. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_DISPLAY_PORT1},
  560. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_TERT_AUXPCM_RX},
  562. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_TERT_AUXPCM_TX},
  564. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_QUAT_AUXPCM_RX},
  566. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_QUAT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUIN_AUXPCM_RX},
  570. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUIN_AUXPCM_TX},
  572. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_INT0_MI2S_RX},
  574. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_INT0_MI2S_TX},
  576. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT1_MI2S_RX},
  578. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT1_MI2S_TX},
  580. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT2_MI2S_RX},
  582. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT2_MI2S_TX},
  584. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT3_MI2S_RX},
  586. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT3_MI2S_TX},
  588. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT4_MI2S_RX},
  590. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT4_MI2S_TX},
  592. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT5_MI2S_RX},
  594. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT5_MI2S_TX},
  596. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT6_MI2S_RX},
  598. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT6_MI2S_TX},
  600. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_SEN_AUXPCM_RX},
  602. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_SEN_AUXPCM_TX},
  604. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SENARY_MI2S_RX},
  606. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_WSA_CDC_DMA_RX_0},
  608. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_WSA_CDC_DMA_TX_0},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_1},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_1},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_TX_2},
  616. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_VA_CDC_DMA_TX_0},
  618. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_VA_CDC_DMA_TX_1},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_2},
  622. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_RX_CDC_DMA_RX_0},
  624. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TX_CDC_DMA_TX_0},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_1},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_1},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_2},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_2},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_3},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_3},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_4},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_4},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_5},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_5},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_6},
  648. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_RX_CDC_DMA_RX_7},
  650. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_PRI_SPDIF_TX},
  652. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_SEC_SPDIF_RX},
  654. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_SEC_SPDIF_TX},
  656. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  657. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  658. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  659. };
  660. /* Track ASM playback & capture sessions of DAI
  661. * Track LSM listen sessions
  662. */
  663. static struct msm_pcm_routing_fdai_data
  664. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  665. /* MULTIMEDIA1 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA2 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA3 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA4 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA5 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA6 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA7*/
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA8 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA9 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA10 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA11 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA12 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* MULTIMEDIA13 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* MULTIMEDIA14 */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* MULTIMEDIA15 */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* MULTIMEDIA16 */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* MULTIMEDIA17 */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* MULTIMEDIA18 */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* MULTIMEDIA19 */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* MULTIMEDIA20 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* MULTIMEDIA21 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* MULTIMEDIA26 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* MULTIMEDIA27 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* MULTIMEDIA28 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* MULTIMEDIA29 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* MULTIMEDIA30 */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* VOIP */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* AFE_RX */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* AFE_TX */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* VOICE_STUB */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. /* DTMF_RX */
  756. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  757. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  758. /* QCHAT */
  759. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  760. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  761. /* VOLTE_STUB */
  762. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  763. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  764. /* LSM1 */
  765. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  766. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  767. /* LSM2 */
  768. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  769. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  770. /* LSM3 */
  771. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  772. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  773. /* LSM4 */
  774. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  775. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  776. /* LSM5 */
  777. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  778. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  779. /* LSM6 */
  780. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  781. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  782. /* LSM7 */
  783. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  784. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  785. /* LSM8 */
  786. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  787. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  788. /* VOICE2_STUB */
  789. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  790. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  791. /* VOICEMMODE1 */
  792. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  793. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  794. /* VOICEMMODE2 */
  795. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  796. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  797. };
  798. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  799. [MSM_BACKEND_DAI_MAX];
  800. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  801. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  802. static struct msm_pcm_stream_app_type_cfg
  803. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  804. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  805. /* The caller of this should acquire routing lock */
  806. void msm_pcm_routing_get_bedai_info(int be_idx,
  807. struct msm_pcm_routing_bdai_data *be_dai)
  808. {
  809. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  810. memcpy(be_dai, &msm_bedais[be_idx],
  811. sizeof(struct msm_pcm_routing_bdai_data));
  812. }
  813. /* The caller of this should acquire routing lock */
  814. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  815. struct msm_pcm_routing_fdai_data *fe_dai)
  816. {
  817. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  818. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  819. sizeof(struct msm_pcm_routing_fdai_data));
  820. }
  821. void msm_pcm_routing_acquire_lock(void)
  822. {
  823. mutex_lock(&routing_lock);
  824. }
  825. void msm_pcm_routing_release_lock(void)
  826. {
  827. mutex_unlock(&routing_lock);
  828. }
  829. static int msm_pcm_routing_get_app_type_idx(int app_type)
  830. {
  831. int idx;
  832. pr_debug("%s: app_type: %d\n", __func__, app_type);
  833. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  834. if (app_type_cfg[idx].app_type == app_type)
  835. return idx;
  836. }
  837. pr_info("%s: App type not available, fallback to default\n", __func__);
  838. return 0;
  839. }
  840. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  841. {
  842. int idx;
  843. pr_debug("%s: app_type: %d\n", __func__, app_type);
  844. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  845. if (lsm_app_type_cfg[idx].app_type == app_type)
  846. return idx;
  847. }
  848. pr_debug("%s: App type not available, fallback to default\n", __func__);
  849. return 0;
  850. }
  851. static int get_port_id(int port_id)
  852. {
  853. int ret = port_id;
  854. if (port_id == AFE_LOOPBACK_TX) {
  855. /*
  856. * Return afe_loopback_tx_port_id if set. Else return
  857. * msm_ec_ref_port_id to maintain backward compatibility.
  858. */
  859. if (afe_loopback_tx_port_id != -1)
  860. ret = afe_loopback_tx_port_id;
  861. else
  862. ret = msm_ec_ref_port_id;
  863. }
  864. return ret;
  865. }
  866. static bool is_mm_lsm_fe_id(int fe_id)
  867. {
  868. bool rc = true;
  869. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  870. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  871. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  872. rc = false;
  873. }
  874. return rc;
  875. }
  876. /*
  877. * msm_pcm_routing_send_chmix_cfg:
  878. * send the channel mixer command to mix the input channels
  879. * into output channels.
  880. *
  881. * @fe_id: front end id
  882. * @ip_channel_cnt: input channel count
  883. * @op_channel_cnt: output channel count
  884. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  885. * @session_type: indicates session is of type TX or RX
  886. * @stream_type: indicates either Audio or Listen stream type
  887. */
  888. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  889. int op_channel_cnt, int *ch_wght_coeff,
  890. int session_type, int stream_type)
  891. {
  892. int rc = 0, idx = 0;
  893. int be_index = 0, port_id;
  894. unsigned int session_id = 0;
  895. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  896. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  897. stream_type);
  898. if (!is_mm_lsm_fe_id(fe_id)) {
  899. /* bad ID assigned in machine driver */
  900. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  901. return -EINVAL;
  902. }
  903. if (ch_wght_coeff == NULL) {
  904. pr_err("%s: Null channel weightage coefficients passed\n",
  905. __func__);
  906. return -EINVAL;
  907. }
  908. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  909. port_id = msm_bedais[be_index].port_id;
  910. if (!msm_bedais[be_index].active ||
  911. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  912. continue;
  913. session_id = fe_dai_map[fe_id][session_type].strm_id;
  914. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  915. unsigned long copp =
  916. session_copp_map[fe_id][session_type][be_index];
  917. if (!test_bit(idx, &copp))
  918. continue;
  919. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  920. session_id, ip_channel_cnt,
  921. op_channel_cnt, ch_wght_coeff,
  922. session_type, stream_type);
  923. if (rc < 0)
  924. pr_err("%s: err setting channel mix config\n",
  925. __func__);
  926. }
  927. }
  928. return 0;
  929. }
  930. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  931. /**
  932. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  933. * setting before use case start.
  934. *
  935. * @fe_id: frontend idx
  936. * @type: stream direction type
  937. * @params: parameters of channel mixer setting
  938. *
  939. * Return 0 for success
  940. */
  941. int msm_pcm_routing_set_channel_mixer_cfg(
  942. int fe_id, int type,
  943. struct msm_pcm_channel_mixer *params)
  944. {
  945. int i, j = 0;
  946. channel_mixer_v2[fe_id][type].enable = params->enable;
  947. channel_mixer_v2[fe_id][type].rule = params->rule;
  948. channel_mixer_v2[fe_id][type].input_channel =
  949. params->input_channel;
  950. channel_mixer_v2[fe_id][type].output_channel =
  951. params->output_channel;
  952. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  953. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  954. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  955. params->in_ch_map[i];
  956. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  957. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  958. params->out_ch_map[i];
  959. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  960. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  961. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  962. params->channel_weight[i][j];
  963. channel_mixer_v2[fe_id][type].override_in_ch_map =
  964. params->override_in_ch_map;
  965. channel_mixer_v2[fe_id][type].override_out_ch_map =
  966. params->override_out_ch_map;
  967. return 0;
  968. }
  969. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  970. int msm_pcm_routing_reg_stream_app_type_cfg(
  971. int fedai_id, int session_type, int be_id,
  972. struct msm_pcm_stream_app_type_cfg *cfg_data)
  973. {
  974. int ret = 0;
  975. if (cfg_data == NULL) {
  976. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  977. ret = -EINVAL;
  978. goto done;
  979. }
  980. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  981. __func__, fedai_id, session_type, be_id,
  982. cfg_data->app_type, cfg_data->acdb_dev_id,
  983. cfg_data->sample_rate);
  984. if (!is_mm_lsm_fe_id(fedai_id)) {
  985. pr_err("%s: Invalid machine driver ID %d\n",
  986. __func__, fedai_id);
  987. ret = -EINVAL;
  988. goto done;
  989. }
  990. if (session_type != SESSION_TYPE_RX &&
  991. session_type != SESSION_TYPE_TX) {
  992. pr_err("%s: Invalid session type %d\n",
  993. __func__, session_type);
  994. ret = -EINVAL;
  995. goto done;
  996. }
  997. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  998. pr_err("%s: Received out of bounds be_id %d\n",
  999. __func__, be_id);
  1000. ret = -EINVAL;
  1001. goto done;
  1002. }
  1003. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1004. /*
  1005. * Store the BE ID of the configuration information set as the latest so
  1006. * the get mixer control knows what to return.
  1007. */
  1008. last_be_id_configured[fedai_id][session_type] = be_id;
  1009. done:
  1010. return ret;
  1011. }
  1012. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1013. /**
  1014. * msm_pcm_routing_get_stream_app_type_cfg
  1015. *
  1016. * Receives fedai_id, session_type, be_id, and populates app_type,
  1017. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1018. * -EINVAL and does not alter passed values.
  1019. *
  1020. * fedai_id - Passed value, front end ID for which app type config is wanted
  1021. * session_type - Passed value, session type for which app type config
  1022. * is wanted
  1023. * be_id - Returned value, back end device id the app type config data is for
  1024. * cfg_data - Returned value, configuration data used by app type config
  1025. */
  1026. int msm_pcm_routing_get_stream_app_type_cfg(
  1027. int fedai_id, int session_type, int *bedai_id,
  1028. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1029. {
  1030. int be_id;
  1031. int ret = 0;
  1032. if (bedai_id == NULL) {
  1033. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1034. ret = -EINVAL;
  1035. goto done;
  1036. } else if (cfg_data == NULL) {
  1037. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1038. ret = -EINVAL;
  1039. goto done;
  1040. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1041. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1042. ret = -EINVAL;
  1043. goto done;
  1044. } else if (session_type != SESSION_TYPE_RX &&
  1045. session_type != SESSION_TYPE_TX) {
  1046. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1047. ret = -EINVAL;
  1048. goto done;
  1049. }
  1050. be_id = last_be_id_configured[fedai_id][session_type];
  1051. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1052. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1053. ret = -EINVAL;
  1054. goto done;
  1055. }
  1056. *bedai_id = be_id;
  1057. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1058. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1059. __func__, fedai_id, session_type, *bedai_id,
  1060. cfg_data->app_type, cfg_data->acdb_dev_id,
  1061. cfg_data->sample_rate);
  1062. done:
  1063. return ret;
  1064. }
  1065. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1066. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1067. int cal_index)
  1068. {
  1069. struct list_head *ptr, *next;
  1070. struct cal_block_data *cal_block = NULL;
  1071. pr_debug("%s\n", __func__);
  1072. list_for_each_safe(ptr, next,
  1073. &cal_data[cal_index]->cal_blocks) {
  1074. cal_block = list_entry(ptr,
  1075. struct cal_block_data, list);
  1076. if (cal_utils_is_cal_stale(cal_block))
  1077. continue;
  1078. if (((struct audio_cal_info_adm_top *)cal_block
  1079. ->cal_info)->path == path) {
  1080. return cal_block;
  1081. }
  1082. }
  1083. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1084. return NULL;
  1085. }
  1086. static struct cal_block_data *msm_routing_find_topology(int path,
  1087. int app_type,
  1088. int acdb_id,
  1089. int cal_index,
  1090. bool exact)
  1091. {
  1092. struct list_head *ptr, *next;
  1093. struct cal_block_data *cal_block = NULL;
  1094. struct audio_cal_info_adm_top *cal_info;
  1095. pr_debug("%s\n", __func__);
  1096. list_for_each_safe(ptr, next,
  1097. &cal_data[cal_index]->cal_blocks) {
  1098. cal_block = list_entry(ptr,
  1099. struct cal_block_data, list);
  1100. if (cal_utils_is_cal_stale(cal_block))
  1101. continue;
  1102. cal_info = (struct audio_cal_info_adm_top *)
  1103. cal_block->cal_info;
  1104. if ((cal_info->path == path) &&
  1105. (cal_info->app_type == app_type) &&
  1106. (cal_info->acdb_id == acdb_id)) {
  1107. return cal_block;
  1108. }
  1109. }
  1110. pr_debug("%s: Can't find topology for path %d, app %d, "
  1111. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1112. exact ? "fail" : "defaulting to search by path");
  1113. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1114. cal_index);
  1115. }
  1116. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1117. int acdb_dev_id, int idx,
  1118. bool exact)
  1119. {
  1120. int topology = -EINVAL;
  1121. struct cal_block_data *cal_block = NULL;
  1122. mutex_lock(&cal_data[idx]->lock);
  1123. cal_block = msm_routing_find_topology(session_type, app_type,
  1124. acdb_dev_id, idx, exact);
  1125. if (cal_block != NULL) {
  1126. topology = ((struct audio_cal_info_adm_top *)
  1127. cal_block->cal_info)->topology;
  1128. }
  1129. mutex_unlock(&cal_data[idx]->lock);
  1130. return topology;
  1131. }
  1132. /*
  1133. * Retrieving cal_block will mark cal_block as stale.
  1134. * Hence it cannot be reused or resent unless the flag
  1135. * is reset.
  1136. */
  1137. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1138. int be_id)
  1139. {
  1140. int topology = NULL_COPP_TOPOLOGY;
  1141. int app_type = 0, acdb_dev_id = 0;
  1142. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1143. __func__, fedai_id, session_type, be_id);
  1144. if (cal_data == NULL)
  1145. goto done;
  1146. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1147. acdb_dev_id =
  1148. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1149. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1150. topology = msm_routing_find_topology_on_index(session_type,
  1151. app_type,
  1152. acdb_dev_id,
  1153. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1154. true /*exact*/);
  1155. if (topology < 0) {
  1156. pr_debug("%s: Check for compatible topology\n", __func__);
  1157. topology = msm_routing_find_topology_on_index(session_type,
  1158. app_type,
  1159. acdb_dev_id,
  1160. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1161. false /*exact*/);
  1162. if (topology < 0)
  1163. topology = NULL_COPP_TOPOLOGY;
  1164. }
  1165. done:
  1166. pr_debug("%s: Using topology %d\n", __func__, topology);
  1167. return topology;
  1168. }
  1169. static uint8_t is_be_dai_extproc(int be_dai)
  1170. {
  1171. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1172. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1173. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1174. return 1;
  1175. else
  1176. return 0;
  1177. }
  1178. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1179. int path_type, int perf_mode,
  1180. uint32_t passthr_mode)
  1181. {
  1182. int i, port_type, j, num_copps = 0;
  1183. struct route_payload payload;
  1184. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1185. path_type == ADM_PATH_COMPRESSED_RX) ?
  1186. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1187. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1188. if (!is_be_dai_extproc(i) &&
  1189. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1190. (msm_bedais[i].active) &&
  1191. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1192. int port_id = get_port_id(msm_bedais[i].port_id);
  1193. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1194. unsigned long copp =
  1195. session_copp_map[fedai_id][sess_type][i];
  1196. if (test_bit(j, &copp)) {
  1197. payload.port_id[num_copps] = port_id;
  1198. payload.copp_idx[num_copps] = j;
  1199. payload.app_type[num_copps] =
  1200. fe_dai_app_type_cfg
  1201. [fedai_id][sess_type][i]
  1202. .app_type;
  1203. payload.acdb_dev_id[num_copps] =
  1204. fe_dai_app_type_cfg
  1205. [fedai_id][sess_type][i]
  1206. .acdb_dev_id;
  1207. payload.sample_rate[num_copps] =
  1208. fe_dai_app_type_cfg
  1209. [fedai_id][sess_type][i]
  1210. .sample_rate;
  1211. num_copps++;
  1212. }
  1213. }
  1214. }
  1215. }
  1216. if (num_copps) {
  1217. payload.num_copps = num_copps;
  1218. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1219. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1220. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1221. }
  1222. }
  1223. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1224. int stream_type)
  1225. {
  1226. int i, session_type, path_type, port_type;
  1227. u32 mode = 0;
  1228. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1229. /* bad ID assigned in machine driver */
  1230. pr_err("%s: bad MM ID\n", __func__);
  1231. return;
  1232. }
  1233. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1234. session_type = SESSION_TYPE_RX;
  1235. path_type = ADM_PATH_PLAYBACK;
  1236. port_type = MSM_AFE_PORT_TYPE_RX;
  1237. } else {
  1238. session_type = SESSION_TYPE_TX;
  1239. path_type = ADM_PATH_LIVE_REC;
  1240. port_type = MSM_AFE_PORT_TYPE_TX;
  1241. }
  1242. mutex_lock(&routing_lock);
  1243. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1244. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1245. if (!is_be_dai_extproc(i) &&
  1246. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1247. (msm_bedais[i].active) &&
  1248. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1249. mode = afe_get_port_type(msm_bedais[i].port_id);
  1250. adm_connect_afe_port(mode, dspst_id,
  1251. msm_bedais[i].port_id);
  1252. break;
  1253. }
  1254. }
  1255. mutex_unlock(&routing_lock);
  1256. }
  1257. static bool route_check_fe_id_adm_support(int fe_id)
  1258. {
  1259. bool rc = true;
  1260. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1261. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1262. /* fe id is listen while port is set to afe */
  1263. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1264. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1265. __func__, fe_id, lsm_port_index);
  1266. rc = false;
  1267. }
  1268. }
  1269. return rc;
  1270. }
  1271. /*
  1272. * msm_pcm_routing_get_pp_ch_cnt:
  1273. * Read the processed channel count
  1274. *
  1275. * @fe_id: Front end ID
  1276. * @session_type: Inidicates RX or TX session type
  1277. */
  1278. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1279. {
  1280. struct msm_pcm_stream_app_type_cfg cfg_data;
  1281. int be_id = 0, app_type_idx = 0, app_type = 0;
  1282. int ret = -EINVAL;
  1283. memset(&cfg_data, 0, sizeof(cfg_data));
  1284. if (!is_mm_lsm_fe_id(fe_id)) {
  1285. pr_err("%s: bad MM ID\n", __func__);
  1286. return -EINVAL;
  1287. }
  1288. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1289. &be_id, &cfg_data);
  1290. if (ret) {
  1291. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1292. return ret;
  1293. }
  1294. app_type = cfg_data.app_type;
  1295. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1296. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1297. }
  1298. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1299. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1300. int dspst_id, int stream_type,
  1301. uint32_t passthr_mode)
  1302. {
  1303. int i, j, session_type, path_type, port_type, topology;
  1304. int num_copps = 0;
  1305. struct route_payload payload;
  1306. u32 channels, sample_rate;
  1307. u16 bit_width = 16;
  1308. bool is_lsm;
  1309. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1310. __func__, fe_id, perf_mode, dspst_id,
  1311. stream_type, passthr_mode);
  1312. if (!is_mm_lsm_fe_id(fe_id)) {
  1313. /* bad ID assigned in machine driver */
  1314. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1315. return -EINVAL;
  1316. }
  1317. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1318. session_type = SESSION_TYPE_RX;
  1319. if (passthr_mode != LEGACY_PCM)
  1320. path_type = ADM_PATH_COMPRESSED_RX;
  1321. else
  1322. path_type = ADM_PATH_PLAYBACK;
  1323. port_type = MSM_AFE_PORT_TYPE_RX;
  1324. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1325. session_type = SESSION_TYPE_TX;
  1326. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1327. path_type = ADM_PATH_COMPRESSED_TX;
  1328. else
  1329. path_type = ADM_PATH_LIVE_REC;
  1330. port_type = MSM_AFE_PORT_TYPE_TX;
  1331. } else {
  1332. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1333. return -EINVAL;
  1334. }
  1335. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1336. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1337. mutex_lock(&routing_lock);
  1338. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1339. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1340. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1341. if (!route_check_fe_id_adm_support(fe_id)) {
  1342. /* ignore adm open if not supported for fe_id */
  1343. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1344. mutex_unlock(&routing_lock);
  1345. return 0;
  1346. }
  1347. payload.num_copps = 0; /* only RX needs to use payload */
  1348. /* re-enable EQ if active */
  1349. msm_qti_pp_send_eq_values(fe_id);
  1350. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1351. if (!is_be_dai_extproc(i) &&
  1352. (afe_get_port_type(msm_bedais[i].port_id) ==
  1353. port_type) &&
  1354. (msm_bedais[i].active) &&
  1355. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1356. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1357. int port_id = get_port_id(msm_bedais[i].port_id);
  1358. /*
  1359. * check if ADM needs to be configured with different
  1360. * channel mapping than backend
  1361. */
  1362. if (!msm_bedais[i].adm_override_ch)
  1363. channels = msm_bedais[i].channel;
  1364. else
  1365. channels = msm_bedais[i].adm_override_ch;
  1366. bit_width = msm_routing_get_bit_width(
  1367. msm_bedais[i].format);
  1368. app_type =
  1369. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1370. if (app_type && is_lsm) {
  1371. app_type_idx =
  1372. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1373. sample_rate =
  1374. fe_dai_app_type_cfg[fe_id][session_type][i]
  1375. .sample_rate;
  1376. bit_width =
  1377. lsm_app_type_cfg[app_type_idx].bit_width;
  1378. } else if (app_type) {
  1379. app_type_idx =
  1380. msm_pcm_routing_get_app_type_idx(
  1381. app_type);
  1382. sample_rate =
  1383. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1384. bit_width =
  1385. app_type_cfg[app_type_idx].bit_width;
  1386. } else {
  1387. sample_rate = msm_bedais[i].sample_rate;
  1388. }
  1389. acdb_dev_id =
  1390. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1391. topology = msm_routing_get_adm_topology(fe_id,
  1392. session_type,
  1393. i);
  1394. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1395. || (passthr_mode ==
  1396. COMPRESSED_PASSTHROUGH_GEN)
  1397. || (passthr_mode ==
  1398. COMPRESSED_PASSTHROUGH_IEC61937))
  1399. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1400. pr_debug("%s: Before adm open topology %d\n", __func__,
  1401. topology);
  1402. copp_idx =
  1403. adm_open(port_id, path_type, sample_rate,
  1404. channels, topology, perf_mode,
  1405. bit_width, app_type, acdb_dev_id,
  1406. session_type);
  1407. if ((copp_idx < 0) ||
  1408. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1409. pr_err("%s:adm open failed coppid:%d\n",
  1410. __func__, copp_idx);
  1411. mutex_unlock(&routing_lock);
  1412. return -EINVAL;
  1413. }
  1414. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1415. __func__, fe_id, session_type, i);
  1416. set_bit(copp_idx,
  1417. &session_copp_map[fe_id][session_type][i]);
  1418. if (msm_is_resample_needed(
  1419. sample_rate,
  1420. msm_bedais[i].sample_rate))
  1421. adm_copp_mfc_cfg(port_id, copp_idx,
  1422. msm_bedais[i].sample_rate);
  1423. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1424. unsigned long copp =
  1425. session_copp_map[fe_id][session_type][i];
  1426. if (test_bit(j, &copp)) {
  1427. payload.port_id[num_copps] = port_id;
  1428. payload.copp_idx[num_copps] = j;
  1429. payload.app_type[num_copps] =
  1430. fe_dai_app_type_cfg
  1431. [fe_id][session_type][i]
  1432. .app_type;
  1433. payload.acdb_dev_id[num_copps] =
  1434. fe_dai_app_type_cfg
  1435. [fe_id][session_type][i]
  1436. .acdb_dev_id;
  1437. payload.sample_rate[num_copps] =
  1438. fe_dai_app_type_cfg
  1439. [fe_id][session_type][i]
  1440. .sample_rate;
  1441. num_copps++;
  1442. }
  1443. }
  1444. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1445. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1446. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1447. msm_routing_send_device_pp_params(port_id,
  1448. copp_idx, fe_id);
  1449. }
  1450. }
  1451. if (num_copps) {
  1452. payload.num_copps = num_copps;
  1453. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1454. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1455. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1456. }
  1457. mutex_unlock(&routing_lock);
  1458. return 0;
  1459. }
  1460. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1461. {
  1462. u32 session_id;
  1463. switch (val) {
  1464. case MSM_FRONTEND_DAI_QCHAT:
  1465. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1466. break;
  1467. case MSM_FRONTEND_DAI_VOIP:
  1468. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1469. break;
  1470. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1471. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1472. break;
  1473. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1474. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1475. break;
  1476. default:
  1477. session_id = 0;
  1478. }
  1479. pr_debug("%s session_id 0x%x", __func__, session_id);
  1480. return session_id;
  1481. }
  1482. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1483. int dspst_id, int stream_type)
  1484. {
  1485. int copp_idx = 0;
  1486. int sess_type = 0;
  1487. int j = 0, be_id = 0;
  1488. int ret = 0;
  1489. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1490. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1491. return 0;
  1492. }
  1493. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1494. sess_type = SESSION_TYPE_RX;
  1495. else
  1496. sess_type = SESSION_TYPE_TX;
  1497. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1498. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1499. __func__, fe_id, sess_type);
  1500. return 0;
  1501. }
  1502. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1503. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1504. channel_mixer_v2[fe_id][sess_type].input_channel;
  1505. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1506. __func__, sess_type, fe_id,
  1507. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1508. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1509. msm_bedais[be_id].active);
  1510. if ((msm_bedais[be_id].active) &&
  1511. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1512. unsigned long copp =
  1513. session_copp_map[fe_id][sess_type][be_id];
  1514. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1515. if (test_bit(j, &copp)) {
  1516. copp_idx = j;
  1517. break;
  1518. }
  1519. }
  1520. ret = adm_programable_channel_mixer(
  1521. msm_bedais[be_id].port_id,
  1522. copp_idx, dspst_id, sess_type,
  1523. &channel_mixer_v2[fe_id][sess_type], 0);
  1524. }
  1525. return ret;
  1526. }
  1527. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1528. int dspst_id, int stream_type)
  1529. {
  1530. int copp_idx = 0;
  1531. int sess_type = 0;
  1532. int i = 0, j = 0, be_id;
  1533. int ret = 0;
  1534. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1535. dspst_id, stream_type);
  1536. if (ret) {
  1537. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1538. fe_id);
  1539. return ret;
  1540. }
  1541. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1542. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1543. return 0;
  1544. }
  1545. if (!(channel_mixer[fe_id].enable)) {
  1546. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1547. __func__, fe_id);
  1548. return 0;
  1549. }
  1550. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1551. sess_type = SESSION_TYPE_RX;
  1552. else
  1553. sess_type = SESSION_TYPE_TX;
  1554. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1555. ++i) {
  1556. be_id = channel_input[fe_id][i] - 1;
  1557. channel_mixer[fe_id].input_channels[i] =
  1558. msm_bedais[be_id].channel;
  1559. if ((msm_bedais[be_id].active) &&
  1560. test_bit(fe_id,
  1561. &msm_bedais[be_id].fe_sessions[0])) {
  1562. unsigned long copp =
  1563. session_copp_map[fe_id][sess_type][be_id];
  1564. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1565. if (test_bit(j, &copp)) {
  1566. copp_idx = j;
  1567. break;
  1568. }
  1569. }
  1570. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1571. __func__,
  1572. fe_id, be_id, msm_bedais[be_id].channel,
  1573. copp_idx);
  1574. ret = adm_programable_channel_mixer(
  1575. get_port_id(msm_bedais[be_id].port_id),
  1576. copp_idx, dspst_id, sess_type,
  1577. channel_mixer + fe_id, i);
  1578. }
  1579. }
  1580. return ret;
  1581. }
  1582. /**
  1583. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1584. * setting during runtime.
  1585. *
  1586. * @be_id: backend index
  1587. * @session_id: session index
  1588. * @session_type: session type
  1589. * @params: parameters for channel mixer
  1590. *
  1591. * Retuen: 0 for success, else error
  1592. */
  1593. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1594. int session_type,
  1595. struct msm_pcm_channel_mixer *params)
  1596. {
  1597. int rc = 0;
  1598. int port_id, copp_idx = 0;
  1599. be_id--;
  1600. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1601. pr_err("%s: invalid backend id %d\n", __func__,
  1602. be_id);
  1603. return -EINVAL;
  1604. }
  1605. port_id = msm_bedais[be_id].port_id;
  1606. copp_idx = adm_get_default_copp_idx(port_id);
  1607. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1608. __func__, port_id, copp_idx, session_id);
  1609. if ((params->input_channel < 0) ||
  1610. (params->input_channel > ADM_MAX_CHANNELS)) {
  1611. pr_err("%s: invalid input channel %d\n", __func__,
  1612. params->input_channel);
  1613. return -EINVAL;
  1614. }
  1615. if ((params->output_channel < 0) ||
  1616. (params->output_channel > ADM_MAX_CHANNELS)) {
  1617. pr_err("%s: invalid output channel %d\n", __func__,
  1618. params->output_channel);
  1619. return -EINVAL;
  1620. }
  1621. params->input_channels[0] = params->input_channel;
  1622. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1623. __func__, session_type,
  1624. params->override_in_ch_map,
  1625. params->override_out_ch_map,
  1626. msm_bedais[be_id].active);
  1627. rc = adm_programable_channel_mixer(port_id,
  1628. copp_idx,
  1629. session_id,
  1630. session_type,
  1631. params,
  1632. 0);
  1633. if (rc) {
  1634. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1635. rc = -EINVAL;
  1636. }
  1637. return rc;
  1638. }
  1639. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1640. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1641. int dspst_id, int stream_type)
  1642. {
  1643. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1644. struct route_payload payload;
  1645. u32 channels, sample_rate;
  1646. uint16_t bits_per_sample = 16;
  1647. uint32_t passthr_mode = LEGACY_PCM;
  1648. int ret = 0;
  1649. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1650. /* bad ID assigned in machine driver */
  1651. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1652. return -EINVAL;
  1653. }
  1654. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1655. session_type = SESSION_TYPE_RX;
  1656. path_type = ADM_PATH_PLAYBACK;
  1657. port_type = MSM_AFE_PORT_TYPE_RX;
  1658. } else {
  1659. session_type = SESSION_TYPE_TX;
  1660. path_type = ADM_PATH_LIVE_REC;
  1661. port_type = MSM_AFE_PORT_TYPE_TX;
  1662. }
  1663. mutex_lock(&routing_lock);
  1664. payload.num_copps = 0; /* only RX needs to use payload */
  1665. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1666. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1667. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1668. /* re-enable EQ if active */
  1669. msm_qti_pp_send_eq_values(fedai_id);
  1670. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1671. if (!is_be_dai_extproc(i) &&
  1672. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1673. (msm_bedais[i].active) &&
  1674. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1675. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1676. int port_id = get_port_id(msm_bedais[i].port_id);
  1677. /*
  1678. * check if ADM needs to be configured with different
  1679. * channel mapping than backend
  1680. */
  1681. if (!msm_bedais[i].adm_override_ch)
  1682. channels = msm_bedais[i].channel;
  1683. else
  1684. channels = msm_bedais[i].adm_override_ch;
  1685. bits_per_sample = msm_routing_get_bit_width(
  1686. msm_bedais[i].format);
  1687. app_type =
  1688. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1689. if (app_type) {
  1690. app_type_idx =
  1691. msm_pcm_routing_get_app_type_idx(app_type);
  1692. sample_rate =
  1693. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1694. .sample_rate;
  1695. bits_per_sample =
  1696. app_type_cfg[app_type_idx].bit_width;
  1697. } else
  1698. sample_rate = msm_bedais[i].sample_rate;
  1699. acdb_dev_id =
  1700. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1701. .acdb_dev_id;
  1702. topology = msm_routing_get_adm_topology(fedai_id,
  1703. session_type,
  1704. i);
  1705. copp_idx = adm_open(port_id, path_type,
  1706. sample_rate, channels, topology,
  1707. perf_mode, bits_per_sample,
  1708. app_type, acdb_dev_id,
  1709. session_type);
  1710. if ((copp_idx < 0) ||
  1711. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1712. pr_err("%s: adm open failed copp_idx:%d\n",
  1713. __func__, copp_idx);
  1714. mutex_unlock(&routing_lock);
  1715. return -EINVAL;
  1716. }
  1717. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1718. __func__, fedai_id, session_type, i);
  1719. set_bit(copp_idx,
  1720. &session_copp_map[fedai_id][session_type][i]);
  1721. if (msm_is_resample_needed(
  1722. sample_rate,
  1723. msm_bedais[i].sample_rate))
  1724. adm_copp_mfc_cfg(port_id, copp_idx,
  1725. msm_bedais[i].sample_rate);
  1726. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1727. unsigned long copp =
  1728. session_copp_map[fedai_id][session_type][i];
  1729. if (test_bit(j, &copp)) {
  1730. payload.port_id[num_copps] = port_id;
  1731. payload.copp_idx[num_copps] = j;
  1732. payload.app_type[num_copps] =
  1733. fe_dai_app_type_cfg
  1734. [fedai_id][session_type]
  1735. [i].app_type;
  1736. payload.acdb_dev_id[num_copps] =
  1737. fe_dai_app_type_cfg
  1738. [fedai_id][session_type]
  1739. [i].acdb_dev_id;
  1740. payload.sample_rate[num_copps] =
  1741. fe_dai_app_type_cfg
  1742. [fedai_id][session_type]
  1743. [i].sample_rate;
  1744. num_copps++;
  1745. }
  1746. }
  1747. if (perf_mode == LEGACY_PCM_MODE)
  1748. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1749. topology, channels);
  1750. }
  1751. }
  1752. if (num_copps) {
  1753. payload.num_copps = num_copps;
  1754. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1755. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1756. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1757. }
  1758. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1759. dspst_id, stream_type);
  1760. mutex_unlock(&routing_lock);
  1761. return ret;
  1762. }
  1763. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1764. int dspst_id, int stream_type,
  1765. struct msm_pcm_routing_evt event_info)
  1766. {
  1767. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1768. stream_type)) {
  1769. pr_err("%s: failed to reg phy stream\n", __func__);
  1770. return -EINVAL;
  1771. }
  1772. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1773. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1774. else
  1775. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1776. return 0;
  1777. }
  1778. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1779. {
  1780. int i, port_type, session_type, path_type, topology, port_id;
  1781. struct msm_pcm_routing_fdai_data *fdai;
  1782. if (!is_mm_lsm_fe_id(fedai_id)) {
  1783. /* bad ID assigned in machine driver */
  1784. pr_err("%s: bad MM ID\n", __func__);
  1785. return;
  1786. }
  1787. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1788. port_type = MSM_AFE_PORT_TYPE_RX;
  1789. session_type = SESSION_TYPE_RX;
  1790. path_type = ADM_PATH_PLAYBACK;
  1791. } else {
  1792. port_type = MSM_AFE_PORT_TYPE_TX;
  1793. session_type = SESSION_TYPE_TX;
  1794. path_type = ADM_PATH_LIVE_REC;
  1795. }
  1796. mutex_lock(&routing_lock);
  1797. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1798. if (!is_be_dai_extproc(i) &&
  1799. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1800. (msm_bedais[i].active) &&
  1801. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1802. int idx;
  1803. unsigned long copp =
  1804. session_copp_map[fedai_id][session_type][i];
  1805. fdai = &fe_dai_map[fedai_id][session_type];
  1806. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1807. if (test_bit(idx, &copp))
  1808. break;
  1809. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1810. pr_debug("%s: copp idx is invalid, exiting\n",
  1811. __func__);
  1812. continue;
  1813. }
  1814. port_id = get_port_id(msm_bedais[i].port_id);
  1815. topology = adm_get_topology_for_port_copp_idx(
  1816. port_id, idx);
  1817. msm_routing_unload_topology(topology);
  1818. adm_close(port_id, fdai->perf_mode, idx);
  1819. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1820. __func__, copp, fedai_id, session_type, i);
  1821. clear_bit(idx,
  1822. &session_copp_map[fedai_id][session_type][i]);
  1823. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1824. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1825. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1826. (fdai->passthr_mode == LEGACY_PCM))
  1827. msm_pcm_routing_deinit_pp(port_id, topology);
  1828. }
  1829. }
  1830. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1831. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1832. mutex_unlock(&routing_lock);
  1833. }
  1834. /* Check if FE/BE route is set */
  1835. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1836. {
  1837. bool rc = false;
  1838. if (!is_mm_lsm_fe_id(fe_id)) {
  1839. /* recheck FE ID in the mixer control defined in this file */
  1840. pr_err("%s: bad MM ID\n", __func__);
  1841. return rc;
  1842. }
  1843. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1844. rc = true;
  1845. return rc;
  1846. }
  1847. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1848. {
  1849. int session_type, path_type, topology;
  1850. u32 channels, sample_rate;
  1851. uint16_t bits_per_sample = 16;
  1852. struct msm_pcm_routing_fdai_data *fdai;
  1853. uint32_t passthr_mode;
  1854. bool is_lsm;
  1855. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1856. if (!is_mm_lsm_fe_id(val)) {
  1857. /* recheck FE ID in the mixer control defined in this file */
  1858. pr_err("%s: bad MM ID\n", __func__);
  1859. return;
  1860. }
  1861. if (!route_check_fe_id_adm_support(val)) {
  1862. /* ignore adm open if not supported for fe_id */
  1863. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1864. if (set)
  1865. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1866. else
  1867. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1868. return;
  1869. }
  1870. session_type =
  1871. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1872. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1873. fdai = &fe_dai_map[val][session_type];
  1874. passthr_mode = fdai->passthr_mode;
  1875. if (session_type == SESSION_TYPE_RX) {
  1876. if (passthr_mode != LEGACY_PCM)
  1877. path_type = ADM_PATH_COMPRESSED_RX;
  1878. else
  1879. path_type = ADM_PATH_PLAYBACK;
  1880. } else {
  1881. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1882. path_type = ADM_PATH_COMPRESSED_TX;
  1883. else
  1884. path_type = ADM_PATH_LIVE_REC;
  1885. }
  1886. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1887. (val <= MSM_FRONTEND_DAI_LSM8);
  1888. mutex_lock(&routing_lock);
  1889. if (set) {
  1890. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1891. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1892. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1893. voc_start_playback(set, msm_bedais[reg].port_id);
  1894. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1895. if (msm_bedais[reg].active && fdai->strm_id !=
  1896. INVALID_SESSION) {
  1897. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1898. int port_id = get_port_id(msm_bedais[reg].port_id);
  1899. /*
  1900. * check if ADM needs to be configured with different
  1901. * channel mapping than backend
  1902. */
  1903. if (!msm_bedais[reg].adm_override_ch)
  1904. channels = msm_bedais[reg].channel;
  1905. else
  1906. channels = msm_bedais[reg].adm_override_ch;
  1907. if (session_type == SESSION_TYPE_TX &&
  1908. fdai->be_srate &&
  1909. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1910. pr_debug("%s: flush strm %d diff BE rates\n",
  1911. __func__, fdai->strm_id);
  1912. if (fdai->event_info.event_func)
  1913. fdai->event_info.event_func(
  1914. MSM_PCM_RT_EVT_BUF_RECFG,
  1915. fdai->event_info.priv_data);
  1916. fdai->be_srate = 0; /* might not need it */
  1917. }
  1918. bits_per_sample = msm_routing_get_bit_width(
  1919. msm_bedais[reg].format);
  1920. app_type =
  1921. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1922. if (app_type && is_lsm) {
  1923. app_type_idx =
  1924. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1925. sample_rate =
  1926. fe_dai_app_type_cfg[val][session_type][reg]
  1927. .sample_rate;
  1928. bits_per_sample =
  1929. lsm_app_type_cfg[app_type_idx].bit_width;
  1930. } else if (app_type) {
  1931. app_type_idx =
  1932. msm_pcm_routing_get_app_type_idx(app_type);
  1933. sample_rate =
  1934. fe_dai_app_type_cfg[val][session_type][reg]
  1935. .sample_rate;
  1936. bits_per_sample =
  1937. app_type_cfg[app_type_idx].bit_width;
  1938. } else
  1939. sample_rate = msm_bedais[reg].sample_rate;
  1940. topology = msm_routing_get_adm_topology(val,
  1941. session_type,
  1942. reg);
  1943. acdb_dev_id =
  1944. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1945. copp_idx = adm_open(port_id, path_type,
  1946. sample_rate, channels, topology,
  1947. fdai->perf_mode, bits_per_sample,
  1948. app_type, acdb_dev_id,
  1949. session_type);
  1950. if ((copp_idx < 0) ||
  1951. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1952. pr_err("%s: adm open failed\n", __func__);
  1953. mutex_unlock(&routing_lock);
  1954. return;
  1955. }
  1956. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1957. __func__, val, session_type, reg);
  1958. set_bit(copp_idx,
  1959. &session_copp_map[val][session_type][reg]);
  1960. if (msm_is_resample_needed(
  1961. sample_rate,
  1962. msm_bedais[reg].sample_rate))
  1963. adm_copp_mfc_cfg(port_id, copp_idx,
  1964. msm_bedais[reg].sample_rate);
  1965. if (session_type == SESSION_TYPE_RX &&
  1966. fdai->event_info.event_func)
  1967. fdai->event_info.event_func(
  1968. MSM_PCM_RT_EVT_DEVSWITCH,
  1969. fdai->event_info.priv_data);
  1970. msm_pcm_routing_build_matrix(val, session_type,
  1971. path_type,
  1972. fdai->perf_mode,
  1973. passthr_mode);
  1974. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1975. (passthr_mode == LEGACY_PCM))
  1976. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1977. topology, channels);
  1978. }
  1979. } else {
  1980. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1981. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1982. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1983. voc_start_playback(set, msm_bedais[reg].port_id);
  1984. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1985. if (msm_bedais[reg].active && fdai->strm_id !=
  1986. INVALID_SESSION) {
  1987. int idx;
  1988. int port_id;
  1989. unsigned long copp =
  1990. session_copp_map[val][session_type][reg];
  1991. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1992. if (test_bit(idx, &copp))
  1993. break;
  1994. if (idx >= MAX_COPPS_PER_PORT) {
  1995. pr_debug("%s: copp idx is invalid, exiting\n",
  1996. __func__);
  1997. mutex_unlock(&routing_lock);
  1998. return;
  1999. }
  2000. port_id = get_port_id(msm_bedais[reg].port_id);
  2001. topology = adm_get_topology_for_port_copp_idx(port_id,
  2002. idx);
  2003. msm_routing_unload_topology(topology);
  2004. adm_close(port_id, fdai->perf_mode, idx);
  2005. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2006. __func__, copp, val, session_type, reg,
  2007. topology);
  2008. clear_bit(idx,
  2009. &session_copp_map[val][session_type][reg]);
  2010. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2011. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2012. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2013. (passthr_mode == LEGACY_PCM))
  2014. msm_pcm_routing_deinit_pp(port_id, topology);
  2015. msm_pcm_routing_build_matrix(val, session_type,
  2016. path_type,
  2017. fdai->perf_mode,
  2018. passthr_mode);
  2019. }
  2020. }
  2021. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2022. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2023. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2024. mutex_unlock(&routing_lock);
  2025. }
  2026. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2027. struct snd_ctl_elem_value *ucontrol)
  2028. {
  2029. struct soc_mixer_control *mc =
  2030. (struct soc_mixer_control *)kcontrol->private_value;
  2031. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2032. ucontrol->value.integer.value[0] = 1;
  2033. else
  2034. ucontrol->value.integer.value[0] = 0;
  2035. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2036. ucontrol->value.integer.value[0]);
  2037. return 0;
  2038. }
  2039. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2040. struct snd_ctl_elem_value *ucontrol)
  2041. {
  2042. struct snd_soc_dapm_widget *widget =
  2043. snd_soc_dapm_kcontrol_widget(kcontrol);
  2044. struct soc_mixer_control *mc =
  2045. (struct soc_mixer_control *)kcontrol->private_value;
  2046. struct snd_soc_dapm_update *update = NULL;
  2047. if (ucontrol->value.integer.value[0] &&
  2048. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2049. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2050. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2051. update);
  2052. } else if (!ucontrol->value.integer.value[0] &&
  2053. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2054. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2055. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2056. update);
  2057. }
  2058. return 1;
  2059. }
  2060. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2061. struct snd_ctl_elem_value *ucontrol)
  2062. {
  2063. struct soc_mixer_control *mc =
  2064. (struct soc_mixer_control *)kcontrol->private_value;
  2065. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2066. ucontrol->value.integer.value[0] = 1;
  2067. else
  2068. ucontrol->value.integer.value[0] = 0;
  2069. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2070. ucontrol->value.integer.value[0]);
  2071. return 0;
  2072. }
  2073. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2074. struct snd_ctl_elem_value *ucontrol)
  2075. {
  2076. struct snd_soc_dapm_widget *widget =
  2077. snd_soc_dapm_kcontrol_widget(kcontrol);
  2078. struct soc_mixer_control *mc =
  2079. (struct soc_mixer_control *)kcontrol->private_value;
  2080. struct snd_soc_dapm_update *update = NULL;
  2081. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2082. ucontrol->value.integer.value[0]);
  2083. if (ucontrol->value.integer.value[0]) {
  2084. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2085. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2086. snd_soc_dapm_mixer_update_power(widget->dapm,
  2087. kcontrol, 1, update);
  2088. } else if (!ucontrol->value.integer.value[0]) {
  2089. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2090. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2091. snd_soc_dapm_mixer_update_power(widget->dapm,
  2092. kcontrol, 0, update);
  2093. }
  2094. return 1;
  2095. }
  2096. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2097. {
  2098. u32 session_id = 0;
  2099. u16 path_type;
  2100. struct media_format_info voc_be_media_format;
  2101. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2102. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2103. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2104. __func__, val, session_id);
  2105. mutex_lock(&routing_lock);
  2106. if (set)
  2107. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2108. else
  2109. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2110. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2111. afe_get_port_type(msm_bedais[reg].port_id) ==
  2112. MSM_AFE_PORT_TYPE_RX) {
  2113. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2114. __func__, set, msm_bedais[reg].port_id);
  2115. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2116. }
  2117. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2118. MSM_AFE_PORT_TYPE_RX)
  2119. path_type = RX_PATH;
  2120. else
  2121. path_type = TX_PATH;
  2122. if (set) {
  2123. if (msm_bedais[reg].active) {
  2124. voc_set_route_flag(session_id, path_type, 1);
  2125. memset(&voc_be_media_format, 0,
  2126. sizeof(struct media_format_info));
  2127. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2128. voc_be_media_format.num_channels =
  2129. msm_bedais[reg].channel;
  2130. voc_be_media_format.sample_rate =
  2131. msm_bedais[reg].sample_rate;
  2132. voc_be_media_format.bits_per_sample =
  2133. msm_bedais[reg].format;
  2134. /* Defaulting this to 1 for voice call usecases */
  2135. voc_be_media_format.channel_mapping[0] = 1;
  2136. voc_set_device_config(session_id, path_type,
  2137. &voc_be_media_format);
  2138. if (voc_get_route_flag(session_id, TX_PATH) &&
  2139. voc_get_route_flag(session_id, RX_PATH))
  2140. voc_enable_device(session_id);
  2141. } else {
  2142. pr_debug("%s BE is not active\n", __func__);
  2143. }
  2144. } else {
  2145. voc_set_route_flag(session_id, path_type, 0);
  2146. voc_disable_device(session_id);
  2147. }
  2148. mutex_unlock(&routing_lock);
  2149. }
  2150. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2151. struct snd_ctl_elem_value *ucontrol)
  2152. {
  2153. struct soc_mixer_control *mc =
  2154. (struct soc_mixer_control *)kcontrol->private_value;
  2155. mutex_lock(&routing_lock);
  2156. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2157. ucontrol->value.integer.value[0] = 1;
  2158. else
  2159. ucontrol->value.integer.value[0] = 0;
  2160. mutex_unlock(&routing_lock);
  2161. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2162. ucontrol->value.integer.value[0]);
  2163. return 0;
  2164. }
  2165. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2166. struct snd_ctl_elem_value *ucontrol)
  2167. {
  2168. struct snd_soc_dapm_widget *widget =
  2169. snd_soc_dapm_kcontrol_widget(kcontrol);
  2170. struct soc_mixer_control *mc =
  2171. (struct soc_mixer_control *)kcontrol->private_value;
  2172. struct snd_soc_dapm_update *update = NULL;
  2173. if (ucontrol->value.integer.value[0]) {
  2174. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2175. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2176. update);
  2177. } else {
  2178. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2179. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2180. update);
  2181. }
  2182. return 1;
  2183. }
  2184. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2185. struct snd_ctl_elem_value *ucontrol)
  2186. {
  2187. struct soc_mixer_control *mc =
  2188. (struct soc_mixer_control *)kcontrol->private_value;
  2189. mutex_lock(&routing_lock);
  2190. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2191. ucontrol->value.integer.value[0] = 1;
  2192. else
  2193. ucontrol->value.integer.value[0] = 0;
  2194. mutex_unlock(&routing_lock);
  2195. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2196. ucontrol->value.integer.value[0]);
  2197. return 0;
  2198. }
  2199. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2200. struct snd_ctl_elem_value *ucontrol)
  2201. {
  2202. struct snd_soc_dapm_widget *widget =
  2203. snd_soc_dapm_kcontrol_widget(kcontrol);
  2204. struct soc_mixer_control *mc =
  2205. (struct soc_mixer_control *)kcontrol->private_value;
  2206. struct snd_soc_dapm_update *update = NULL;
  2207. if (ucontrol->value.integer.value[0]) {
  2208. mutex_lock(&routing_lock);
  2209. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2210. mutex_unlock(&routing_lock);
  2211. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2212. update);
  2213. } else {
  2214. mutex_lock(&routing_lock);
  2215. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2216. mutex_unlock(&routing_lock);
  2217. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2218. update);
  2219. }
  2220. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2221. ucontrol->value.integer.value[0]);
  2222. return 1;
  2223. }
  2224. /*
  2225. * Return the mapping between port ID and backend ID to enable the AFE callback
  2226. * to determine the acdb_dev_id from the port id
  2227. */
  2228. int msm_pcm_get_be_id_from_port_id(int port_id)
  2229. {
  2230. int i;
  2231. int be_id = -EINVAL;
  2232. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2233. if (msm_bedais[i].port_id == port_id) {
  2234. be_id = i;
  2235. break;
  2236. }
  2237. }
  2238. return be_id;
  2239. }
  2240. /*
  2241. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2242. * correct AFE calibration information by comparing the header information.
  2243. */
  2244. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2245. {
  2246. int acdb_id = -EINVAL;
  2247. int i = 0;
  2248. int session;
  2249. int port_type = afe_get_port_type(port_id);
  2250. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2251. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2252. __func__, port_id, be_id, port_type);
  2253. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2254. session = SESSION_TYPE_TX;
  2255. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2256. session = SESSION_TYPE_RX;
  2257. } else {
  2258. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2259. acdb_id = -EINVAL;
  2260. goto exit;
  2261. }
  2262. if (be_id < 0) {
  2263. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2264. goto exit;
  2265. }
  2266. mutex_lock(&routing_lock);
  2267. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2268. MSM_FRONTEND_DAI_MAX);
  2269. if (i < MSM_FRONTEND_DAI_MAX)
  2270. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2271. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2272. __func__, i, session, be_id, acdb_id);
  2273. mutex_unlock(&routing_lock);
  2274. exit:
  2275. return acdb_id;
  2276. }
  2277. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2278. struct snd_ctl_elem_value *ucontrol)
  2279. {
  2280. ucontrol->value.integer.value[0] = fm_switch_enable;
  2281. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2282. ucontrol->value.integer.value[0]);
  2283. return 0;
  2284. }
  2285. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2286. struct snd_ctl_elem_value *ucontrol)
  2287. {
  2288. struct snd_soc_dapm_widget *widget =
  2289. snd_soc_dapm_kcontrol_widget(kcontrol);
  2290. struct snd_soc_dapm_update *update = NULL;
  2291. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2292. ucontrol->value.integer.value[0]);
  2293. if (ucontrol->value.integer.value[0])
  2294. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2295. update);
  2296. else
  2297. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2298. update);
  2299. fm_switch_enable = ucontrol->value.integer.value[0];
  2300. return 1;
  2301. }
  2302. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2303. struct snd_ctl_elem_value *ucontrol)
  2304. {
  2305. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2306. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2307. ucontrol->value.integer.value[0]);
  2308. return 0;
  2309. }
  2310. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2311. struct snd_ctl_elem_value *ucontrol)
  2312. {
  2313. struct snd_soc_dapm_widget *widget =
  2314. snd_soc_dapm_kcontrol_widget(kcontrol);
  2315. struct snd_soc_dapm_update *update = NULL;
  2316. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2317. ucontrol->value.integer.value[0]);
  2318. if (ucontrol->value.integer.value[0])
  2319. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2320. 1, update);
  2321. else
  2322. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2323. 0, update);
  2324. hfp_switch_enable = ucontrol->value.integer.value[0];
  2325. return 1;
  2326. }
  2327. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2328. struct snd_ctl_elem_value *ucontrol)
  2329. {
  2330. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2331. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2332. ucontrol->value.integer.value[0]);
  2333. return 0;
  2334. }
  2335. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2336. struct snd_ctl_elem_value *ucontrol)
  2337. {
  2338. struct snd_soc_dapm_widget *widget =
  2339. snd_soc_dapm_kcontrol_widget(kcontrol);
  2340. struct snd_soc_dapm_update *update = NULL;
  2341. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2342. ucontrol->value.integer.value[0]);
  2343. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2344. if (a2dp_switch_enable)
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2346. 1, update);
  2347. else
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2349. 0, update);
  2350. return 1;
  2351. }
  2352. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2353. struct snd_ctl_elem_value *ucontrol)
  2354. {
  2355. ucontrol->value.integer.value[0] = sco_switch_enable;
  2356. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2357. ucontrol->value.integer.value[0]);
  2358. return 0;
  2359. }
  2360. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2361. struct snd_ctl_elem_value *ucontrol)
  2362. {
  2363. struct snd_soc_dapm_widget *widget =
  2364. snd_soc_dapm_kcontrol_widget(kcontrol);
  2365. struct snd_soc_dapm_update *update = NULL;
  2366. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2367. ucontrol->value.integer.value[0]);
  2368. sco_switch_enable = ucontrol->value.integer.value[0];
  2369. if (sco_switch_enable)
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2371. 1, update);
  2372. else
  2373. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2374. 0, update);
  2375. return 1;
  2376. }
  2377. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2378. struct snd_ctl_elem_value *ucontrol)
  2379. {
  2380. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2381. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2382. ucontrol->value.integer.value[0]);
  2383. return 0;
  2384. }
  2385. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2386. struct snd_ctl_elem_value *ucontrol)
  2387. {
  2388. struct snd_soc_dapm_widget *widget =
  2389. snd_soc_dapm_kcontrol_widget(kcontrol);
  2390. struct snd_soc_dapm_update *update = NULL;
  2391. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2392. ucontrol->value.integer.value[0]);
  2393. if (ucontrol->value.integer.value[0])
  2394. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2395. update);
  2396. else
  2397. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2398. update);
  2399. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2400. return 1;
  2401. }
  2402. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2403. struct snd_ctl_elem_value *ucontrol)
  2404. {
  2405. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2406. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2407. ucontrol->value.integer.value[0]);
  2408. return 0;
  2409. }
  2410. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2411. struct snd_ctl_elem_value *ucontrol)
  2412. {
  2413. struct snd_soc_dapm_widget *widget =
  2414. snd_soc_dapm_kcontrol_widget(kcontrol);
  2415. struct snd_soc_dapm_update *update = NULL;
  2416. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2417. ucontrol->value.integer.value[0]);
  2418. if (ucontrol->value.integer.value[0])
  2419. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2420. update);
  2421. else
  2422. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2423. update);
  2424. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2425. return 1;
  2426. }
  2427. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2428. struct snd_ctl_elem_value *ucontrol)
  2429. {
  2430. ucontrol->value.integer.value[0] = usb_switch_enable;
  2431. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2432. ucontrol->value.integer.value[0]);
  2433. return 0;
  2434. }
  2435. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2436. struct snd_ctl_elem_value *ucontrol)
  2437. {
  2438. struct snd_soc_dapm_widget *widget =
  2439. snd_soc_dapm_kcontrol_widget(kcontrol);
  2440. struct snd_soc_dapm_update *update = NULL;
  2441. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2442. ucontrol->value.integer.value[0]);
  2443. if (ucontrol->value.integer.value[0])
  2444. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2445. 1, update);
  2446. else
  2447. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2448. 0, update);
  2449. usb_switch_enable = ucontrol->value.integer.value[0];
  2450. return 1;
  2451. }
  2452. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2453. struct snd_ctl_elem_value *ucontrol)
  2454. {
  2455. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2456. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2457. ucontrol->value.integer.value[0]);
  2458. return 0;
  2459. }
  2460. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2461. struct snd_ctl_elem_value *ucontrol)
  2462. {
  2463. struct snd_soc_dapm_widget *widget =
  2464. snd_soc_dapm_kcontrol_widget(kcontrol);
  2465. struct snd_soc_dapm_update *update = NULL;
  2466. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2467. ucontrol->value.integer.value[0]);
  2468. if (ucontrol->value.integer.value[0])
  2469. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2470. update);
  2471. else
  2472. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2473. update);
  2474. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2475. return 1;
  2476. }
  2477. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2478. struct snd_ctl_elem_value *ucontrol)
  2479. {
  2480. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2481. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2482. ucontrol->value.integer.value[0]);
  2483. return 0;
  2484. }
  2485. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2486. struct snd_ctl_elem_value *ucontrol)
  2487. {
  2488. struct snd_soc_dapm_widget *widget =
  2489. snd_soc_dapm_kcontrol_widget(kcontrol);
  2490. struct snd_soc_dapm_update *update = NULL;
  2491. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2492. ucontrol->value.integer.value[0]);
  2493. if (ucontrol->value.integer.value[0])
  2494. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2495. update);
  2496. else
  2497. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2498. update);
  2499. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2500. return 1;
  2501. }
  2502. static int msm_routing_get_tert_mi2s_switch_mixer(
  2503. struct snd_kcontrol *kcontrol,
  2504. struct snd_ctl_elem_value *ucontrol)
  2505. {
  2506. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2507. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2508. ucontrol->value.integer.value[0]);
  2509. return 0;
  2510. }
  2511. static int msm_routing_put_tert_mi2s_switch_mixer(
  2512. struct snd_kcontrol *kcontrol,
  2513. struct snd_ctl_elem_value *ucontrol)
  2514. {
  2515. struct snd_soc_dapm_widget *widget =
  2516. snd_soc_dapm_kcontrol_widget(kcontrol);
  2517. struct snd_soc_dapm_update *update = NULL;
  2518. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2519. ucontrol->value.integer.value[0]);
  2520. if (ucontrol->value.integer.value[0])
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2522. update);
  2523. else
  2524. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2525. update);
  2526. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2527. return 1;
  2528. }
  2529. static int msm_routing_get_quat_mi2s_switch_mixer(
  2530. struct snd_kcontrol *kcontrol,
  2531. struct snd_ctl_elem_value *ucontrol)
  2532. {
  2533. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2534. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2535. ucontrol->value.integer.value[0]);
  2536. return 0;
  2537. }
  2538. static int msm_routing_put_quat_mi2s_switch_mixer(
  2539. struct snd_kcontrol *kcontrol,
  2540. struct snd_ctl_elem_value *ucontrol)
  2541. {
  2542. struct snd_soc_dapm_widget *widget =
  2543. snd_soc_dapm_kcontrol_widget(kcontrol);
  2544. struct snd_soc_dapm_update *update = NULL;
  2545. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2546. ucontrol->value.integer.value[0]);
  2547. if (ucontrol->value.integer.value[0])
  2548. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2549. update);
  2550. else
  2551. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2552. update);
  2553. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2554. return 1;
  2555. }
  2556. static int msm_routing_get_quin_mi2s_switch_mixer(
  2557. struct snd_kcontrol *kcontrol,
  2558. struct snd_ctl_elem_value *ucontrol)
  2559. {
  2560. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2561. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2562. ucontrol->value.integer.value[0]);
  2563. return 0;
  2564. }
  2565. static int msm_routing_put_quin_mi2s_switch_mixer(
  2566. struct snd_kcontrol *kcontrol,
  2567. struct snd_ctl_elem_value *ucontrol)
  2568. {
  2569. struct snd_soc_dapm_widget *widget =
  2570. snd_soc_dapm_kcontrol_widget(kcontrol);
  2571. struct snd_soc_dapm_update *update = NULL;
  2572. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2573. ucontrol->value.integer.value[0]);
  2574. if (ucontrol->value.integer.value[0])
  2575. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2576. update);
  2577. else
  2578. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2579. update);
  2580. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2581. return 1;
  2582. }
  2583. static int msm_routing_get_sen_mi2s_switch_mixer(
  2584. struct snd_kcontrol *kcontrol,
  2585. struct snd_ctl_elem_value *ucontrol)
  2586. {
  2587. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2588. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2589. ucontrol->value.integer.value[0]);
  2590. return 0;
  2591. }
  2592. static int msm_routing_put_sen_mi2s_switch_mixer(
  2593. struct snd_kcontrol *kcontrol,
  2594. struct snd_ctl_elem_value *ucontrol)
  2595. {
  2596. struct snd_soc_dapm_widget *widget =
  2597. snd_soc_dapm_kcontrol_widget(kcontrol);
  2598. struct snd_soc_dapm_update *update = NULL;
  2599. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2600. ucontrol->value.integer.value[0]);
  2601. if (ucontrol->value.integer.value[0])
  2602. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2603. update);
  2604. else
  2605. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2606. update);
  2607. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2608. return 1;
  2609. }
  2610. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2611. struct snd_ctl_elem_value *ucontrol)
  2612. {
  2613. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2614. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2615. ucontrol->value.integer.value[0]);
  2616. return 0;
  2617. }
  2618. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2619. struct snd_ctl_elem_value *ucontrol)
  2620. {
  2621. struct snd_soc_dapm_widget *widget =
  2622. snd_soc_dapm_kcontrol_widget(kcontrol);
  2623. struct snd_soc_dapm_update *update = NULL;
  2624. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2625. ucontrol->value.integer.value[0]);
  2626. if (ucontrol->value.integer.value[0])
  2627. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2628. update);
  2629. else
  2630. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2631. update);
  2632. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2633. return 1;
  2634. }
  2635. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2636. struct snd_ctl_elem_value *ucontrol)
  2637. {
  2638. ucontrol->value.integer.value[0] = lsm_port_index;
  2639. return 0;
  2640. }
  2641. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2642. struct snd_ctl_elem_value *ucontrol)
  2643. {
  2644. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2645. int mux = ucontrol->value.enumerated.item[0];
  2646. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2647. if (mux >= e->items) {
  2648. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2649. return -EINVAL;
  2650. }
  2651. pr_debug("%s: LSM enable %ld\n", __func__,
  2652. ucontrol->value.integer.value[0]);
  2653. switch (ucontrol->value.integer.value[0]) {
  2654. case 1:
  2655. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2656. break;
  2657. case 2:
  2658. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2659. break;
  2660. case 3:
  2661. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2662. break;
  2663. case 4:
  2664. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2665. break;
  2666. case 5:
  2667. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2668. break;
  2669. case 6:
  2670. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2671. break;
  2672. case 7:
  2673. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2674. break;
  2675. case 8:
  2676. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2677. break;
  2678. case 9:
  2679. lsm_port = ADM_LSM_PORT_ID;
  2680. break;
  2681. case 10:
  2682. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2683. break;
  2684. case 11:
  2685. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2686. break;
  2687. case 12:
  2688. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2689. break;
  2690. case 13:
  2691. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2692. break;
  2693. case 14:
  2694. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2695. break;
  2696. case 15:
  2697. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2698. break;
  2699. default:
  2700. pr_err("Default lsm port");
  2701. break;
  2702. }
  2703. set_lsm_port(lsm_port);
  2704. lsm_port_index = ucontrol->value.integer.value[0];
  2705. return 0;
  2706. }
  2707. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2708. struct snd_ctl_elem_value *ucontrol)
  2709. {
  2710. int i;
  2711. u16 port_id;
  2712. enum afe_mad_type mad_type;
  2713. pr_debug("%s: enter\n", __func__);
  2714. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2715. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2716. strlen(lsm_port_text[i])))
  2717. break;
  2718. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2719. pr_warn("%s: Invalid id name %s\n", __func__,
  2720. kcontrol->id.name);
  2721. return -EINVAL;
  2722. }
  2723. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2724. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2725. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2726. strlen(lsm_port_text[7])))
  2727. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2728. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2729. strlen(lsm_port_text[8])))
  2730. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2731. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2732. strlen(lsm_port_text[10])))
  2733. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2734. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2735. strlen(lsm_port_text[13])))
  2736. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2737. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2738. strlen(lsm_port_text[14])))
  2739. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2740. mad_type = afe_port_get_mad_type(port_id);
  2741. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2742. mad_type);
  2743. switch (mad_type) {
  2744. case MAD_HW_NONE:
  2745. ucontrol->value.integer.value[0] = MADNONE;
  2746. break;
  2747. case MAD_HW_AUDIO:
  2748. ucontrol->value.integer.value[0] = MADAUDIO;
  2749. break;
  2750. case MAD_HW_BEACON:
  2751. ucontrol->value.integer.value[0] = MADBEACON;
  2752. break;
  2753. case MAD_HW_ULTRASOUND:
  2754. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2755. break;
  2756. case MAD_SW_AUDIO:
  2757. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2758. break;
  2759. default:
  2760. pr_warn("%s: Unknown\n", __func__);
  2761. return -EINVAL;
  2762. }
  2763. return 0;
  2764. }
  2765. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2766. struct snd_ctl_elem_value *ucontrol)
  2767. {
  2768. int i;
  2769. u16 port_id;
  2770. enum afe_mad_type mad_type;
  2771. pr_debug("%s: enter\n", __func__);
  2772. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2773. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2774. strlen(lsm_port_text[i])))
  2775. break;
  2776. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2777. pr_warn("%s: Invalid id name %s\n", __func__,
  2778. kcontrol->id.name);
  2779. return -EINVAL;
  2780. }
  2781. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2782. switch (ucontrol->value.integer.value[0]) {
  2783. case MADNONE:
  2784. mad_type = MAD_HW_NONE;
  2785. break;
  2786. case MADAUDIO:
  2787. mad_type = MAD_HW_AUDIO;
  2788. break;
  2789. case MADBEACON:
  2790. mad_type = MAD_HW_BEACON;
  2791. break;
  2792. case MADULTRASOUND:
  2793. mad_type = MAD_HW_ULTRASOUND;
  2794. break;
  2795. case MADSWAUDIO:
  2796. mad_type = MAD_SW_AUDIO;
  2797. break;
  2798. default:
  2799. pr_warn("%s: Unknown\n", __func__);
  2800. return -EINVAL;
  2801. }
  2802. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2803. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2804. strlen(lsm_port_text[7])))
  2805. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2806. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2807. strlen(lsm_port_text[8])))
  2808. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2809. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2810. strlen(lsm_port_text[10])))
  2811. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2812. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2813. strlen(lsm_port_text[13])))
  2814. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2815. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2816. strlen(lsm_port_text[14])))
  2817. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2818. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2819. mad_type);
  2820. return afe_port_set_mad_type(port_id, mad_type);
  2821. }
  2822. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2823. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2824. adm_override_chs_text);
  2825. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2826. {
  2827. int backend_id;
  2828. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2829. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2830. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2831. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2832. } else {
  2833. pr_err("%s: unsupported backend id: %s",
  2834. __func__, kcontrol->id.name);
  2835. return -EINVAL;
  2836. }
  2837. return backend_id;
  2838. }
  2839. static int msm_routing_adm_channel_config_get(
  2840. struct snd_kcontrol *kcontrol,
  2841. struct snd_ctl_elem_value *ucontrol)
  2842. {
  2843. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2844. if (backend_id >= 0) {
  2845. mutex_lock(&routing_lock);
  2846. ucontrol->value.integer.value[0] =
  2847. msm_bedais[backend_id].adm_override_ch;
  2848. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2849. ucontrol->value.integer.value[0], backend_id);
  2850. mutex_unlock(&routing_lock);
  2851. }
  2852. return 0;
  2853. }
  2854. static int msm_routing_adm_channel_config_put(
  2855. struct snd_kcontrol *kcontrol,
  2856. struct snd_ctl_elem_value *ucontrol)
  2857. {
  2858. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2859. if (backend_id >= 0) {
  2860. mutex_lock(&routing_lock);
  2861. msm_bedais[backend_id].adm_override_ch =
  2862. ucontrol->value.integer.value[0];
  2863. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2864. __func__, backend_id,
  2865. msm_bedais[backend_id].adm_override_ch);
  2866. mutex_unlock(&routing_lock);
  2867. }
  2868. return 0;
  2869. }
  2870. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2871. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2872. msm_routing_adm_channel_config_get,
  2873. msm_routing_adm_channel_config_put),
  2874. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2875. msm_routing_adm_channel_config_get,
  2876. msm_routing_adm_channel_config_put),
  2877. };
  2878. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2879. struct snd_ctl_elem_value *ucontrol)
  2880. {
  2881. mutex_lock(&routing_lock);
  2882. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2883. mutex_unlock(&routing_lock);
  2884. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2885. ucontrol->value.integer.value[0]);
  2886. return 0;
  2887. };
  2888. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2889. struct snd_ctl_elem_value *ucontrol)
  2890. {
  2891. struct aanc_data aanc_info;
  2892. mutex_lock(&routing_lock);
  2893. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2894. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2895. ucontrol->value.integer.value[0]);
  2896. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2897. if (ucontrol->value.integer.value[0] == 0) {
  2898. aanc_info.aanc_active = false;
  2899. aanc_info.aanc_tx_port = 0;
  2900. aanc_info.aanc_rx_port = 0;
  2901. } else {
  2902. aanc_info.aanc_active = true;
  2903. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2904. aanc_info.aanc_tx_port =
  2905. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2906. }
  2907. afe_set_aanc_info(&aanc_info);
  2908. mutex_unlock(&routing_lock);
  2909. return 0;
  2910. };
  2911. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2912. struct snd_ctl_elem_value *ucontrol)
  2913. {
  2914. int idx = 0, shift = 0;
  2915. struct soc_mixer_control *mc =
  2916. (struct soc_mixer_control *)kcontrol->private_value;
  2917. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2918. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2919. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2920. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2921. return -EINVAL;
  2922. }
  2923. if (test_bit(shift,
  2924. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2925. ucontrol->value.integer.value[0] = 1;
  2926. else
  2927. ucontrol->value.integer.value[0] = 0;
  2928. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2929. ucontrol->value.integer.value[0]);
  2930. return 0;
  2931. }
  2932. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2933. struct snd_ctl_elem_value *ucontrol)
  2934. {
  2935. int idx = 0, shift = 0;
  2936. struct soc_mixer_control *mc =
  2937. (struct soc_mixer_control *)kcontrol->private_value;
  2938. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2939. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2940. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2941. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2942. return -EINVAL;
  2943. }
  2944. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2945. __func__, mc->shift, mc->rshift,
  2946. ucontrol->value.integer.value[0], idx, shift);
  2947. if (ucontrol->value.integer.value[0]) {
  2948. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2949. msm_bedais[mc->rshift].port_id);
  2950. set_bit(shift,
  2951. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2952. } else {
  2953. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2954. msm_bedais[mc->rshift].port_id);
  2955. clear_bit(shift,
  2956. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2957. }
  2958. return 1;
  2959. }
  2960. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2961. struct snd_ctl_elem_value *ucontrol)
  2962. {
  2963. u16 fe_id = 0;
  2964. fe_id = ((struct soc_mixer_control *)
  2965. kcontrol->private_value)->shift;
  2966. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2967. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2968. return -EINVAL;
  2969. }
  2970. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2971. return 0;
  2972. }
  2973. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2974. struct snd_ctl_elem_value *ucontrol)
  2975. {
  2976. u16 fe_id = 0;
  2977. fe_id = ((struct soc_mixer_control *)
  2978. kcontrol->private_value)->shift;
  2979. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2980. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2981. return -EINVAL;
  2982. }
  2983. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2984. return 1;
  2985. }
  2986. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2987. struct snd_ctl_elem_value *ucontrol)
  2988. {
  2989. u16 fe_id = 0;
  2990. fe_id = ((struct soc_multi_mixer_control *)
  2991. kcontrol->private_value)->shift;
  2992. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2993. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2994. return -EINVAL;
  2995. }
  2996. ucontrol->value.integer.value[0] =
  2997. channel_mixer[fe_id].output_channel;
  2998. return 0;
  2999. }
  3000. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3001. struct snd_ctl_elem_value *ucontrol)
  3002. {
  3003. u16 fe_id = 0;
  3004. fe_id = ((struct soc_multi_mixer_control *)
  3005. kcontrol->private_value)->shift;
  3006. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3007. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3008. return -EINVAL;
  3009. }
  3010. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3011. fe_id,
  3012. (unsigned int)(ucontrol->value.integer.value[0]));
  3013. channel_mixer[fe_id].output_channel =
  3014. (unsigned int)(ucontrol->value.integer.value[0]);
  3015. return 1;
  3016. }
  3017. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3018. /* If new backend is added, need update this array */
  3019. static const char *const be_name[] = {
  3020. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3021. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3022. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3023. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3024. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3025. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3026. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3027. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3028. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3029. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3030. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3031. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3032. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3033. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3034. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3035. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3036. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3037. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3038. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3039. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3040. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3041. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3042. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3043. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3044. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3045. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3046. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3047. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3048. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3049. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3050. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3051. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3052. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3053. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3054. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3055. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3056. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3057. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3058. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3059. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3060. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3061. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3062. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3063. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3064. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3065. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3066. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3067. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3068. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3069. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3070. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3071. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3072. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX"
  3073. };
  3074. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3075. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3076. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3077. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3078. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3079. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3080. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3081. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3082. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3083. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3084. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3085. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3086. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3087. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3088. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3089. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3090. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3091. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3092. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3093. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3094. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3095. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3096. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3097. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3098. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3099. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3100. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3101. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3102. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3103. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3104. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3105. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3106. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3107. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3108. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3109. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3110. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3111. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3112. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3113. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3114. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3115. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3116. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3117. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3118. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3119. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3120. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3121. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3122. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3123. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3124. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3126. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3128. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3129. unsigned int channels,
  3130. unsigned int items, const char *const names[])
  3131. {
  3132. if (uinfo->value.enumerated.item >= items)
  3133. uinfo->value.enumerated.item = items - 1;
  3134. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3135. sizeof(uinfo->value.enumerated.name),
  3136. "ALSA: too long item name '%s'\n",
  3137. names[uinfo->value.enumerated.item]);
  3138. strlcpy(uinfo->value.enumerated.name,
  3139. names[uinfo->value.enumerated.item],
  3140. sizeof(uinfo->value.enumerated.name));
  3141. return 0;
  3142. }
  3143. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3144. struct snd_ctl_elem_info *uinfo)
  3145. {
  3146. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3147. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3148. uinfo->count = 1;
  3149. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3150. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3151. return 0;
  3152. }
  3153. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3154. struct snd_ctl_elem_value *ucontrol)
  3155. {
  3156. u16 fe_id = 0;
  3157. fe_id = ((struct soc_enum *)
  3158. kcontrol->private_value)->shift_l;
  3159. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3160. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3161. return -EINVAL;
  3162. }
  3163. pr_debug("%s: FE %d %s\n", __func__,
  3164. fe_id,
  3165. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3166. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3167. return 0;
  3168. }
  3169. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3170. struct snd_ctl_elem_value *ucontrol)
  3171. {
  3172. u16 fe_id = 0;
  3173. fe_id = ((struct soc_enum *)
  3174. kcontrol->private_value)->shift_l;
  3175. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3176. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3177. return -EINVAL;
  3178. }
  3179. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3180. pr_debug("%s: %s FE %d\n", __func__,
  3181. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3182. fe_id);
  3183. return 0;
  3184. }
  3185. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3186. struct snd_ctl_elem_info *uinfo)
  3187. {
  3188. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3189. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3190. uinfo->count = 1;
  3191. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3192. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3193. return 0;
  3194. }
  3195. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3196. struct snd_ctl_elem_value *ucontrol)
  3197. {
  3198. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3199. u16 fe_id = 0, in_ch = 0;
  3200. fe_id = e->shift_l;
  3201. in_ch = e->shift_r;
  3202. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3203. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3204. return -EINVAL;
  3205. }
  3206. if (in_ch >= ADM_MAX_CHANNELS) {
  3207. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3208. return -EINVAL;
  3209. }
  3210. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3211. return 1;
  3212. }
  3213. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3214. struct snd_ctl_elem_value *ucontrol)
  3215. {
  3216. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3217. u16 fe_id = 0, in_ch = 0;
  3218. fe_id = e->shift_l;
  3219. in_ch = e->shift_r;
  3220. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3221. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3222. return -EINVAL;
  3223. }
  3224. if (in_ch >= ADM_MAX_CHANNELS) {
  3225. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3226. return -EINVAL;
  3227. }
  3228. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3229. return 1;
  3230. }
  3231. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3232. struct snd_ctl_elem_info *uinfo)
  3233. {
  3234. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3235. uinfo->count = ADM_MAX_CHANNELS;
  3236. uinfo->value.integer.min = 0;
  3237. uinfo->value.integer.max = WEIGHT_0_DB;
  3238. return 0;
  3239. }
  3240. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3241. struct snd_ctl_elem_value *ucontrol)
  3242. {
  3243. u16 fe_id = 0, out_ch = 0;
  3244. int i, weight;
  3245. fe_id = ((struct soc_multi_mixer_control *)
  3246. kcontrol->private_value)->shift;
  3247. out_ch = ((struct soc_multi_mixer_control *)
  3248. kcontrol->private_value)->rshift;
  3249. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3250. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3251. return -EINVAL;
  3252. }
  3253. if (out_ch >= ADM_MAX_CHANNELS) {
  3254. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3255. return -EINVAL;
  3256. }
  3257. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3258. __func__, fe_id,
  3259. ucontrol->value.integer.value[0],
  3260. ucontrol->value.integer.value[1],
  3261. ucontrol->value.integer.value[2],
  3262. ucontrol->value.integer.value[3],
  3263. ucontrol->value.integer.value[4],
  3264. ucontrol->value.integer.value[5],
  3265. ucontrol->value.integer.value[6],
  3266. ucontrol->value.integer.value[7]);
  3267. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3268. weight = ucontrol->value.integer.value[i];
  3269. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3270. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3271. __func__, fe_id, out_ch, i,
  3272. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3273. }
  3274. return 0;
  3275. }
  3276. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3277. struct snd_ctl_elem_value *ucontrol)
  3278. {
  3279. u16 fe_id = 0, out_ch = 0;
  3280. int i;
  3281. fe_id = ((struct soc_multi_mixer_control *)
  3282. kcontrol->private_value)->shift;
  3283. out_ch = ((struct soc_multi_mixer_control *)
  3284. kcontrol->private_value)->rshift;
  3285. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3286. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3287. return -EINVAL;
  3288. }
  3289. if (out_ch >= ADM_MAX_CHANNELS) {
  3290. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3291. return -EINVAL;
  3292. }
  3293. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3294. ucontrol->value.integer.value[i] =
  3295. channel_mixer[fe_id].channel_weight[out_ch][i];
  3296. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3297. __func__, fe_id,
  3298. ucontrol->value.integer.value[0],
  3299. ucontrol->value.integer.value[1],
  3300. ucontrol->value.integer.value[2],
  3301. ucontrol->value.integer.value[3],
  3302. ucontrol->value.integer.value[4],
  3303. ucontrol->value.integer.value[5],
  3304. ucontrol->value.integer.value[6],
  3305. ucontrol->value.integer.value[7]);
  3306. return 0;
  3307. }
  3308. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3309. struct snd_ctl_elem_info *uinfo)
  3310. {
  3311. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3312. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3313. /* Valid channel map value ranges from 1 to 64 */
  3314. uinfo->value.integer.min = 0;
  3315. uinfo->value.integer.max = 64;
  3316. return 0;
  3317. }
  3318. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3319. struct snd_ctl_elem_value *ucontrol)
  3320. {
  3321. u16 fe_id = 0;
  3322. int i, ch_map;
  3323. fe_id = ((struct soc_multi_mixer_control *)
  3324. kcontrol->private_value)->shift;
  3325. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3326. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3327. return -EINVAL;
  3328. }
  3329. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3330. ch_map = ucontrol->value.integer.value[i];
  3331. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3332. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3333. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3334. }
  3335. /* Make override_out_ch_map false if ch map is reset */
  3336. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3337. channel_mixer[fe_id].override_out_ch_map = false;
  3338. else
  3339. channel_mixer[fe_id].override_out_ch_map = true;
  3340. return 0;
  3341. }
  3342. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3343. struct snd_ctl_elem_value *ucontrol)
  3344. {
  3345. u16 fe_id = 0;
  3346. int i;
  3347. fe_id = ((struct soc_multi_mixer_control *)
  3348. kcontrol->private_value)->shift;
  3349. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3350. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3351. return -EINVAL;
  3352. }
  3353. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3354. ucontrol->value.integer.value[i] =
  3355. channel_mixer[fe_id].out_ch_map[i];
  3356. return 0;
  3357. }
  3358. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3359. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3360. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3361. msm_pcm_get_channel_rule_index,
  3362. msm_pcm_put_channel_rule_index),
  3363. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3364. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3365. msm_pcm_get_channel_rule_index,
  3366. msm_pcm_put_channel_rule_index),
  3367. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3368. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3369. msm_pcm_get_channel_rule_index,
  3370. msm_pcm_put_channel_rule_index),
  3371. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3372. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3373. msm_pcm_get_channel_rule_index,
  3374. msm_pcm_put_channel_rule_index),
  3375. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3376. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3377. msm_pcm_get_channel_rule_index,
  3378. msm_pcm_put_channel_rule_index),
  3379. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3380. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3381. msm_pcm_get_channel_rule_index,
  3382. msm_pcm_put_channel_rule_index),
  3383. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3384. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3385. msm_pcm_get_channel_rule_index,
  3386. msm_pcm_put_channel_rule_index),
  3387. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3388. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3389. msm_pcm_get_channel_rule_index,
  3390. msm_pcm_put_channel_rule_index),
  3391. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3392. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3393. msm_pcm_get_channel_rule_index,
  3394. msm_pcm_put_channel_rule_index),
  3395. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3396. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3397. msm_pcm_get_channel_rule_index,
  3398. msm_pcm_put_channel_rule_index),
  3399. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3400. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3401. msm_pcm_get_channel_rule_index,
  3402. msm_pcm_put_channel_rule_index),
  3403. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3404. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3405. msm_pcm_get_out_chs,
  3406. msm_pcm_put_out_chs),
  3407. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3408. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3409. msm_pcm_get_out_chs,
  3410. msm_pcm_put_out_chs),
  3411. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3412. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3413. msm_pcm_get_out_chs,
  3414. msm_pcm_put_out_chs),
  3415. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3416. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3417. msm_pcm_get_out_chs,
  3418. msm_pcm_put_out_chs),
  3419. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3420. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3421. msm_pcm_get_out_chs,
  3422. msm_pcm_put_out_chs),
  3423. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3424. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3425. msm_pcm_get_out_chs,
  3426. msm_pcm_put_out_chs),
  3427. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3428. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3429. msm_pcm_get_out_chs,
  3430. msm_pcm_put_out_chs),
  3431. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3432. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3433. msm_pcm_get_out_chs,
  3434. msm_pcm_put_out_chs),
  3435. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3436. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3437. msm_pcm_get_out_chs,
  3438. msm_pcm_put_out_chs),
  3439. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3440. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3441. msm_pcm_get_out_chs,
  3442. msm_pcm_put_out_chs),
  3443. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3444. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3445. msm_pcm_get_out_chs,
  3446. msm_pcm_put_out_chs),
  3447. {
  3448. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3449. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3450. .name = "MultiMedia1 Channel Mixer",
  3451. .info = msm_pcm_channel_mixer_info,
  3452. .get = msm_pcm_channel_mixer_get,
  3453. .put = msm_pcm_channel_mixer_put,
  3454. .private_value = (unsigned long)&(mm1_channel_mux)
  3455. },
  3456. {
  3457. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3458. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3459. .name = "MultiMedia2 Channel Mixer",
  3460. .info = msm_pcm_channel_mixer_info,
  3461. .get = msm_pcm_channel_mixer_get,
  3462. .put = msm_pcm_channel_mixer_put,
  3463. .private_value = (unsigned long)&(mm2_channel_mux)
  3464. },
  3465. {
  3466. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3468. .name = "MultiMedia3 Channel Mixer",
  3469. .info = msm_pcm_channel_mixer_info,
  3470. .get = msm_pcm_channel_mixer_get,
  3471. .put = msm_pcm_channel_mixer_put,
  3472. .private_value = (unsigned long)&(mm3_channel_mux)
  3473. },
  3474. {
  3475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3476. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3477. .name = "MultiMedia4 Channel Mixer",
  3478. .info = msm_pcm_channel_mixer_info,
  3479. .get = msm_pcm_channel_mixer_get,
  3480. .put = msm_pcm_channel_mixer_put,
  3481. .private_value = (unsigned long)&(mm4_channel_mux)
  3482. },
  3483. {
  3484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3485. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3486. .name = "MultiMedia18 Channel Mixer",
  3487. .info = msm_pcm_channel_mixer_info,
  3488. .get = msm_pcm_channel_mixer_get,
  3489. .put = msm_pcm_channel_mixer_put,
  3490. .private_value = (unsigned long)&(mm18_channel_mux)
  3491. },
  3492. {
  3493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3494. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3495. .name = "MultiMedia19 Channel Mixer",
  3496. .info = msm_pcm_channel_mixer_info,
  3497. .get = msm_pcm_channel_mixer_get,
  3498. .put = msm_pcm_channel_mixer_put,
  3499. .private_value = (unsigned long)&(mm19_channel_mux)
  3500. },
  3501. {
  3502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3504. .name = "MultiMedia28 Channel Mixer",
  3505. .info = msm_pcm_channel_mixer_info,
  3506. .get = msm_pcm_channel_mixer_get,
  3507. .put = msm_pcm_channel_mixer_put,
  3508. .private_value = (unsigned long)&(mm28_channel_mux)
  3509. },
  3510. {
  3511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3513. .name = "MultiMedia29 Channel Mixer",
  3514. .info = msm_pcm_channel_mixer_info,
  3515. .get = msm_pcm_channel_mixer_get,
  3516. .put = msm_pcm_channel_mixer_put,
  3517. .private_value = (unsigned long)&(mm29_channel_mux)
  3518. },
  3519. {
  3520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3522. .name = "MultiMedia30 Channel Mixer",
  3523. .info = msm_pcm_channel_mixer_info,
  3524. .get = msm_pcm_channel_mixer_get,
  3525. .put = msm_pcm_channel_mixer_put,
  3526. .private_value = (unsigned long)&(mm30_channel_mux)
  3527. },
  3528. {
  3529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3531. .name = "MultiMedia1 Output Channel1",
  3532. .info = msm_pcm_channel_weight_info,
  3533. .get = msm_pcm_channel_weight_get,
  3534. .put = msm_pcm_channel_weight_put,
  3535. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3536. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3537. },
  3538. {
  3539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3541. .name = "MultiMedia1 Output Channel2",
  3542. .info = msm_pcm_channel_weight_info,
  3543. .get = msm_pcm_channel_weight_get,
  3544. .put = msm_pcm_channel_weight_put,
  3545. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3546. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3547. },
  3548. {
  3549. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3550. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3551. .name = "MultiMedia1 Output Channel3",
  3552. .info = msm_pcm_channel_weight_info,
  3553. .get = msm_pcm_channel_weight_get,
  3554. .put = msm_pcm_channel_weight_put,
  3555. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3556. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3557. },
  3558. {
  3559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3561. .name = "MultiMedia1 Output Channel4",
  3562. .info = msm_pcm_channel_weight_info,
  3563. .get = msm_pcm_channel_weight_get,
  3564. .put = msm_pcm_channel_weight_put,
  3565. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3566. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3567. },
  3568. {
  3569. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3571. .name = "MultiMedia1 Output Channel5",
  3572. .info = msm_pcm_channel_weight_info,
  3573. .get = msm_pcm_channel_weight_get,
  3574. .put = msm_pcm_channel_weight_put,
  3575. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3576. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel6",
  3582. .info = msm_pcm_channel_weight_info,
  3583. .get = msm_pcm_channel_weight_get,
  3584. .put = msm_pcm_channel_weight_put,
  3585. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3586. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel7",
  3592. .info = msm_pcm_channel_weight_info,
  3593. .get = msm_pcm_channel_weight_get,
  3594. .put = msm_pcm_channel_weight_put,
  3595. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3596. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel8",
  3602. .info = msm_pcm_channel_weight_info,
  3603. .get = msm_pcm_channel_weight_get,
  3604. .put = msm_pcm_channel_weight_put,
  3605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel9",
  3612. .info = msm_pcm_channel_weight_info,
  3613. .get = msm_pcm_channel_weight_get,
  3614. .put = msm_pcm_channel_weight_put,
  3615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel10",
  3622. .info = msm_pcm_channel_weight_info,
  3623. .get = msm_pcm_channel_weight_get,
  3624. .put = msm_pcm_channel_weight_put,
  3625. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3626. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel11",
  3632. .info = msm_pcm_channel_weight_info,
  3633. .get = msm_pcm_channel_weight_get,
  3634. .put = msm_pcm_channel_weight_put,
  3635. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3636. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel12",
  3642. .info = msm_pcm_channel_weight_info,
  3643. .get = msm_pcm_channel_weight_get,
  3644. .put = msm_pcm_channel_weight_put,
  3645. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3646. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel13",
  3652. .info = msm_pcm_channel_weight_info,
  3653. .get = msm_pcm_channel_weight_get,
  3654. .put = msm_pcm_channel_weight_put,
  3655. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3656. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel14",
  3662. .info = msm_pcm_channel_weight_info,
  3663. .get = msm_pcm_channel_weight_get,
  3664. .put = msm_pcm_channel_weight_put,
  3665. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3666. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia2 Output Channel1",
  3672. .info = msm_pcm_channel_weight_info,
  3673. .get = msm_pcm_channel_weight_get,
  3674. .put = msm_pcm_channel_weight_put,
  3675. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3676. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia2 Output Channel2",
  3682. .info = msm_pcm_channel_weight_info,
  3683. .get = msm_pcm_channel_weight_get,
  3684. .put = msm_pcm_channel_weight_put,
  3685. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3686. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia2 Output Channel3",
  3692. .info = msm_pcm_channel_weight_info,
  3693. .get = msm_pcm_channel_weight_get,
  3694. .put = msm_pcm_channel_weight_put,
  3695. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3696. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia3 Output Channel1",
  3702. .info = msm_pcm_channel_weight_info,
  3703. .get = msm_pcm_channel_weight_get,
  3704. .put = msm_pcm_channel_weight_put,
  3705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3706. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia3 Output Channel2",
  3712. .info = msm_pcm_channel_weight_info,
  3713. .get = msm_pcm_channel_weight_get,
  3714. .put = msm_pcm_channel_weight_put,
  3715. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3716. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia18 Output Channel1",
  3722. .info = msm_pcm_channel_weight_info,
  3723. .get = msm_pcm_channel_weight_get,
  3724. .put = msm_pcm_channel_weight_put,
  3725. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3726. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia18 Output Channel2",
  3732. .info = msm_pcm_channel_weight_info,
  3733. .get = msm_pcm_channel_weight_get,
  3734. .put = msm_pcm_channel_weight_put,
  3735. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3736. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia18 Output Channel3",
  3742. .info = msm_pcm_channel_weight_info,
  3743. .get = msm_pcm_channel_weight_get,
  3744. .put = msm_pcm_channel_weight_put,
  3745. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3746. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia18 Output Channel4",
  3752. .info = msm_pcm_channel_weight_info,
  3753. .get = msm_pcm_channel_weight_get,
  3754. .put = msm_pcm_channel_weight_put,
  3755. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3756. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia18 Output Channel5",
  3762. .info = msm_pcm_channel_weight_info,
  3763. .get = msm_pcm_channel_weight_get,
  3764. .put = msm_pcm_channel_weight_put,
  3765. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3766. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel6",
  3772. .info = msm_pcm_channel_weight_info,
  3773. .get = msm_pcm_channel_weight_get,
  3774. .put = msm_pcm_channel_weight_put,
  3775. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3776. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel7",
  3782. .info = msm_pcm_channel_weight_info,
  3783. .get = msm_pcm_channel_weight_get,
  3784. .put = msm_pcm_channel_weight_put,
  3785. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3786. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel8",
  3792. .info = msm_pcm_channel_weight_info,
  3793. .get = msm_pcm_channel_weight_get,
  3794. .put = msm_pcm_channel_weight_put,
  3795. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3796. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel9",
  3802. .info = msm_pcm_channel_weight_info,
  3803. .get = msm_pcm_channel_weight_get,
  3804. .put = msm_pcm_channel_weight_put,
  3805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel10",
  3812. .info = msm_pcm_channel_weight_info,
  3813. .get = msm_pcm_channel_weight_get,
  3814. .put = msm_pcm_channel_weight_put,
  3815. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3816. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel11",
  3822. .info = msm_pcm_channel_weight_info,
  3823. .get = msm_pcm_channel_weight_get,
  3824. .put = msm_pcm_channel_weight_put,
  3825. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3826. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel12",
  3832. .info = msm_pcm_channel_weight_info,
  3833. .get = msm_pcm_channel_weight_get,
  3834. .put = msm_pcm_channel_weight_put,
  3835. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3836. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel13",
  3842. .info = msm_pcm_channel_weight_info,
  3843. .get = msm_pcm_channel_weight_get,
  3844. .put = msm_pcm_channel_weight_put,
  3845. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3846. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel14",
  3852. .info = msm_pcm_channel_weight_info,
  3853. .get = msm_pcm_channel_weight_get,
  3854. .put = msm_pcm_channel_weight_put,
  3855. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3856. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia19 Output Channel1",
  3862. .info = msm_pcm_channel_weight_info,
  3863. .get = msm_pcm_channel_weight_get,
  3864. .put = msm_pcm_channel_weight_put,
  3865. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3866. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia19 Output Channel2",
  3872. .info = msm_pcm_channel_weight_info,
  3873. .get = msm_pcm_channel_weight_get,
  3874. .put = msm_pcm_channel_weight_put,
  3875. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3876. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia19 Output Channel3",
  3882. .info = msm_pcm_channel_weight_info,
  3883. .get = msm_pcm_channel_weight_get,
  3884. .put = msm_pcm_channel_weight_put,
  3885. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3886. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia19 Output Channel4",
  3892. .info = msm_pcm_channel_weight_info,
  3893. .get = msm_pcm_channel_weight_get,
  3894. .put = msm_pcm_channel_weight_put,
  3895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3896. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia19 Output Channel5",
  3902. .info = msm_pcm_channel_weight_info,
  3903. .get = msm_pcm_channel_weight_get,
  3904. .put = msm_pcm_channel_weight_put,
  3905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3906. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel6",
  3912. .info = msm_pcm_channel_weight_info,
  3913. .get = msm_pcm_channel_weight_get,
  3914. .put = msm_pcm_channel_weight_put,
  3915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3916. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel7",
  3922. .info = msm_pcm_channel_weight_info,
  3923. .get = msm_pcm_channel_weight_get,
  3924. .put = msm_pcm_channel_weight_put,
  3925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3926. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel8",
  3932. .info = msm_pcm_channel_weight_info,
  3933. .get = msm_pcm_channel_weight_get,
  3934. .put = msm_pcm_channel_weight_put,
  3935. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3936. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel9",
  3942. .info = msm_pcm_channel_weight_info,
  3943. .get = msm_pcm_channel_weight_get,
  3944. .put = msm_pcm_channel_weight_put,
  3945. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3946. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel10",
  3952. .info = msm_pcm_channel_weight_info,
  3953. .get = msm_pcm_channel_weight_get,
  3954. .put = msm_pcm_channel_weight_put,
  3955. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3956. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel11",
  3962. .info = msm_pcm_channel_weight_info,
  3963. .get = msm_pcm_channel_weight_get,
  3964. .put = msm_pcm_channel_weight_put,
  3965. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3966. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel12",
  3972. .info = msm_pcm_channel_weight_info,
  3973. .get = msm_pcm_channel_weight_get,
  3974. .put = msm_pcm_channel_weight_put,
  3975. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3976. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel13",
  3982. .info = msm_pcm_channel_weight_info,
  3983. .get = msm_pcm_channel_weight_get,
  3984. .put = msm_pcm_channel_weight_put,
  3985. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3986. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel14",
  3992. .info = msm_pcm_channel_weight_info,
  3993. .get = msm_pcm_channel_weight_get,
  3994. .put = msm_pcm_channel_weight_put,
  3995. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3996. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia28 Output Channel1",
  4002. .info = msm_pcm_channel_weight_info,
  4003. .get = msm_pcm_channel_weight_get,
  4004. .put = msm_pcm_channel_weight_put,
  4005. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4006. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia28 Output Channel2",
  4012. .info = msm_pcm_channel_weight_info,
  4013. .get = msm_pcm_channel_weight_get,
  4014. .put = msm_pcm_channel_weight_put,
  4015. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4016. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia28 Output Channel3",
  4022. .info = msm_pcm_channel_weight_info,
  4023. .get = msm_pcm_channel_weight_get,
  4024. .put = msm_pcm_channel_weight_put,
  4025. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4026. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia28 Output Channel4",
  4032. .info = msm_pcm_channel_weight_info,
  4033. .get = msm_pcm_channel_weight_get,
  4034. .put = msm_pcm_channel_weight_put,
  4035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia28 Output Channel5",
  4042. .info = msm_pcm_channel_weight_info,
  4043. .get = msm_pcm_channel_weight_get,
  4044. .put = msm_pcm_channel_weight_put,
  4045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel6",
  4052. .info = msm_pcm_channel_weight_info,
  4053. .get = msm_pcm_channel_weight_get,
  4054. .put = msm_pcm_channel_weight_put,
  4055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4056. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel7",
  4062. .info = msm_pcm_channel_weight_info,
  4063. .get = msm_pcm_channel_weight_get,
  4064. .put = msm_pcm_channel_weight_put,
  4065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4066. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel8",
  4072. .info = msm_pcm_channel_weight_info,
  4073. .get = msm_pcm_channel_weight_get,
  4074. .put = msm_pcm_channel_weight_put,
  4075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel9",
  4082. .info = msm_pcm_channel_weight_info,
  4083. .get = msm_pcm_channel_weight_get,
  4084. .put = msm_pcm_channel_weight_put,
  4085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel10",
  4092. .info = msm_pcm_channel_weight_info,
  4093. .get = msm_pcm_channel_weight_get,
  4094. .put = msm_pcm_channel_weight_put,
  4095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4096. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel11",
  4102. .info = msm_pcm_channel_weight_info,
  4103. .get = msm_pcm_channel_weight_get,
  4104. .put = msm_pcm_channel_weight_put,
  4105. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4106. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel12",
  4112. .info = msm_pcm_channel_weight_info,
  4113. .get = msm_pcm_channel_weight_get,
  4114. .put = msm_pcm_channel_weight_put,
  4115. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4116. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel13",
  4122. .info = msm_pcm_channel_weight_info,
  4123. .get = msm_pcm_channel_weight_get,
  4124. .put = msm_pcm_channel_weight_put,
  4125. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4126. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel14",
  4132. .info = msm_pcm_channel_weight_info,
  4133. .get = msm_pcm_channel_weight_get,
  4134. .put = msm_pcm_channel_weight_put,
  4135. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4136. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia29 Output Channel1",
  4142. .info = msm_pcm_channel_weight_info,
  4143. .get = msm_pcm_channel_weight_get,
  4144. .put = msm_pcm_channel_weight_put,
  4145. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4146. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia29 Output Channel2",
  4152. .info = msm_pcm_channel_weight_info,
  4153. .get = msm_pcm_channel_weight_get,
  4154. .put = msm_pcm_channel_weight_put,
  4155. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4156. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia29 Output Channel3",
  4162. .info = msm_pcm_channel_weight_info,
  4163. .get = msm_pcm_channel_weight_get,
  4164. .put = msm_pcm_channel_weight_put,
  4165. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4166. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia29 Output Channel4",
  4172. .info = msm_pcm_channel_weight_info,
  4173. .get = msm_pcm_channel_weight_get,
  4174. .put = msm_pcm_channel_weight_put,
  4175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4176. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia29 Output Channel5",
  4182. .info = msm_pcm_channel_weight_info,
  4183. .get = msm_pcm_channel_weight_get,
  4184. .put = msm_pcm_channel_weight_put,
  4185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4186. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel6",
  4192. .info = msm_pcm_channel_weight_info,
  4193. .get = msm_pcm_channel_weight_get,
  4194. .put = msm_pcm_channel_weight_put,
  4195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4196. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel7",
  4202. .info = msm_pcm_channel_weight_info,
  4203. .get = msm_pcm_channel_weight_get,
  4204. .put = msm_pcm_channel_weight_put,
  4205. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4206. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel8",
  4212. .info = msm_pcm_channel_weight_info,
  4213. .get = msm_pcm_channel_weight_get,
  4214. .put = msm_pcm_channel_weight_put,
  4215. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4216. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel9",
  4222. .info = msm_pcm_channel_weight_info,
  4223. .get = msm_pcm_channel_weight_get,
  4224. .put = msm_pcm_channel_weight_put,
  4225. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4226. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel10",
  4232. .info = msm_pcm_channel_weight_info,
  4233. .get = msm_pcm_channel_weight_get,
  4234. .put = msm_pcm_channel_weight_put,
  4235. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4236. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel11",
  4242. .info = msm_pcm_channel_weight_info,
  4243. .get = msm_pcm_channel_weight_get,
  4244. .put = msm_pcm_channel_weight_put,
  4245. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4246. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel12",
  4252. .info = msm_pcm_channel_weight_info,
  4253. .get = msm_pcm_channel_weight_get,
  4254. .put = msm_pcm_channel_weight_put,
  4255. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4256. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel13",
  4262. .info = msm_pcm_channel_weight_info,
  4263. .get = msm_pcm_channel_weight_get,
  4264. .put = msm_pcm_channel_weight_put,
  4265. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4266. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel14",
  4272. .info = msm_pcm_channel_weight_info,
  4273. .get = msm_pcm_channel_weight_get,
  4274. .put = msm_pcm_channel_weight_put,
  4275. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4276. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia30 Output Channel1",
  4282. .info = msm_pcm_channel_weight_info,
  4283. .get = msm_pcm_channel_weight_get,
  4284. .put = msm_pcm_channel_weight_put,
  4285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia30 Output Channel2",
  4292. .info = msm_pcm_channel_weight_info,
  4293. .get = msm_pcm_channel_weight_get,
  4294. .put = msm_pcm_channel_weight_put,
  4295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia30 Output Channel3",
  4302. .info = msm_pcm_channel_weight_info,
  4303. .get = msm_pcm_channel_weight_get,
  4304. .put = msm_pcm_channel_weight_put,
  4305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia30 Output Channel4",
  4312. .info = msm_pcm_channel_weight_info,
  4313. .get = msm_pcm_channel_weight_get,
  4314. .put = msm_pcm_channel_weight_put,
  4315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia30 Output Channel5",
  4322. .info = msm_pcm_channel_weight_info,
  4323. .get = msm_pcm_channel_weight_get,
  4324. .put = msm_pcm_channel_weight_put,
  4325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel6",
  4332. .info = msm_pcm_channel_weight_info,
  4333. .get = msm_pcm_channel_weight_get,
  4334. .put = msm_pcm_channel_weight_put,
  4335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel7",
  4342. .info = msm_pcm_channel_weight_info,
  4343. .get = msm_pcm_channel_weight_get,
  4344. .put = msm_pcm_channel_weight_put,
  4345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel8",
  4352. .info = msm_pcm_channel_weight_info,
  4353. .get = msm_pcm_channel_weight_get,
  4354. .put = msm_pcm_channel_weight_put,
  4355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel9",
  4362. .info = msm_pcm_channel_weight_info,
  4363. .get = msm_pcm_channel_weight_get,
  4364. .put = msm_pcm_channel_weight_put,
  4365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4366. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel10",
  4372. .info = msm_pcm_channel_weight_info,
  4373. .get = msm_pcm_channel_weight_get,
  4374. .put = msm_pcm_channel_weight_put,
  4375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4376. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel11",
  4382. .info = msm_pcm_channel_weight_info,
  4383. .get = msm_pcm_channel_weight_get,
  4384. .put = msm_pcm_channel_weight_put,
  4385. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4386. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel12",
  4392. .info = msm_pcm_channel_weight_info,
  4393. .get = msm_pcm_channel_weight_get,
  4394. .put = msm_pcm_channel_weight_put,
  4395. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4396. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel13",
  4402. .info = msm_pcm_channel_weight_info,
  4403. .get = msm_pcm_channel_weight_get,
  4404. .put = msm_pcm_channel_weight_put,
  4405. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4406. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel14",
  4412. .info = msm_pcm_channel_weight_info,
  4413. .get = msm_pcm_channel_weight_get,
  4414. .put = msm_pcm_channel_weight_put,
  4415. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4416. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia1 Channel1",
  4422. .info = msm_pcm_channel_input_be_info,
  4423. .get = msm_pcm_channel_input_be_get,
  4424. .put = msm_pcm_channel_input_be_put,
  4425. .private_value = (unsigned long)&(mm1_ch1_enum)
  4426. },
  4427. {
  4428. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4429. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4430. .name = "MultiMedia1 Channel2",
  4431. .info = msm_pcm_channel_input_be_info,
  4432. .get = msm_pcm_channel_input_be_get,
  4433. .put = msm_pcm_channel_input_be_put,
  4434. .private_value = (unsigned long)&(mm1_ch2_enum)
  4435. },
  4436. {
  4437. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4438. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4439. .name = "MultiMedia1 Channel3",
  4440. .info = msm_pcm_channel_input_be_info,
  4441. .get = msm_pcm_channel_input_be_get,
  4442. .put = msm_pcm_channel_input_be_put,
  4443. .private_value = (unsigned long)&(mm1_ch3_enum)
  4444. },
  4445. {
  4446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4447. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4448. .name = "MultiMedia1 Channel4",
  4449. .info = msm_pcm_channel_input_be_info,
  4450. .get = msm_pcm_channel_input_be_get,
  4451. .put = msm_pcm_channel_input_be_put,
  4452. .private_value = (unsigned long)&(mm1_ch4_enum)
  4453. },
  4454. {
  4455. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4457. .name = "MultiMedia1 Channel5",
  4458. .info = msm_pcm_channel_input_be_info,
  4459. .get = msm_pcm_channel_input_be_get,
  4460. .put = msm_pcm_channel_input_be_put,
  4461. .private_value = (unsigned long)&(mm1_ch5_enum)
  4462. },
  4463. {
  4464. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4465. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4466. .name = "MultiMedia1 Channel6",
  4467. .info = msm_pcm_channel_input_be_info,
  4468. .get = msm_pcm_channel_input_be_get,
  4469. .put = msm_pcm_channel_input_be_put,
  4470. .private_value = (unsigned long)&(mm1_ch6_enum)
  4471. },
  4472. {
  4473. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4474. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4475. .name = "MultiMedia1 Channel7",
  4476. .info = msm_pcm_channel_input_be_info,
  4477. .get = msm_pcm_channel_input_be_get,
  4478. .put = msm_pcm_channel_input_be_put,
  4479. .private_value = (unsigned long)&(mm1_ch7_enum)
  4480. },
  4481. {
  4482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4484. .name = "MultiMedia1 Channel8",
  4485. .info = msm_pcm_channel_input_be_info,
  4486. .get = msm_pcm_channel_input_be_get,
  4487. .put = msm_pcm_channel_input_be_put,
  4488. .private_value = (unsigned long)&(mm1_ch8_enum)
  4489. },
  4490. {
  4491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4493. .name = "MultiMedia18 Channel1",
  4494. .info = msm_pcm_channel_input_be_info,
  4495. .get = msm_pcm_channel_input_be_get,
  4496. .put = msm_pcm_channel_input_be_put,
  4497. .private_value = (unsigned long)&(mm18_ch1_enum)
  4498. },
  4499. {
  4500. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4501. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4502. .name = "MultiMedia18 Channel2",
  4503. .info = msm_pcm_channel_input_be_info,
  4504. .get = msm_pcm_channel_input_be_get,
  4505. .put = msm_pcm_channel_input_be_put,
  4506. .private_value = (unsigned long)&(mm18_ch2_enum)
  4507. },
  4508. {
  4509. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4510. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4511. .name = "MultiMedia19 Channel1",
  4512. .info = msm_pcm_channel_input_be_info,
  4513. .get = msm_pcm_channel_input_be_get,
  4514. .put = msm_pcm_channel_input_be_put,
  4515. .private_value = (unsigned long)&(mm19_ch1_enum)
  4516. },
  4517. {
  4518. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4519. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4520. .name = "MultiMedia19 Channel2",
  4521. .info = msm_pcm_channel_input_be_info,
  4522. .get = msm_pcm_channel_input_be_get,
  4523. .put = msm_pcm_channel_input_be_put,
  4524. .private_value = (unsigned long)&(mm19_ch2_enum)
  4525. },
  4526. {
  4527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4528. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4529. .name = "MultiMedia28 Channel1",
  4530. .info = msm_pcm_channel_input_be_info,
  4531. .get = msm_pcm_channel_input_be_get,
  4532. .put = msm_pcm_channel_input_be_put,
  4533. .private_value = (unsigned long)&(mm28_ch1_enum)
  4534. },
  4535. {
  4536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4538. .name = "MultiMedia28 Channel2",
  4539. .info = msm_pcm_channel_input_be_info,
  4540. .get = msm_pcm_channel_input_be_get,
  4541. .put = msm_pcm_channel_input_be_put,
  4542. .private_value = (unsigned long)&(mm28_ch2_enum)
  4543. },
  4544. {
  4545. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4546. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4547. .name = "MultiMedia29 Channel1",
  4548. .info = msm_pcm_channel_input_be_info,
  4549. .get = msm_pcm_channel_input_be_get,
  4550. .put = msm_pcm_channel_input_be_put,
  4551. .private_value = (unsigned long)&(mm29_ch1_enum)
  4552. },
  4553. {
  4554. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4555. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4556. .name = "MultiMedia29 Channel2",
  4557. .info = msm_pcm_channel_input_be_info,
  4558. .get = msm_pcm_channel_input_be_get,
  4559. .put = msm_pcm_channel_input_be_put,
  4560. .private_value = (unsigned long)&(mm29_ch2_enum)
  4561. },
  4562. {
  4563. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4564. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4565. .name = "MultiMedia30 Channel1",
  4566. .info = msm_pcm_channel_input_be_info,
  4567. .get = msm_pcm_channel_input_be_get,
  4568. .put = msm_pcm_channel_input_be_put,
  4569. .private_value = (unsigned long)&(mm30_ch1_enum)
  4570. },
  4571. {
  4572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4573. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4574. .name = "MultiMedia30 Channel2",
  4575. .info = msm_pcm_channel_input_be_info,
  4576. .get = msm_pcm_channel_input_be_get,
  4577. .put = msm_pcm_channel_input_be_put,
  4578. .private_value = (unsigned long)&(mm30_ch2_enum)
  4579. },
  4580. {
  4581. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4582. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4583. .name = "MultiMedia1 Output Channel Map",
  4584. .info = msm_pcm_channel_output_map_info,
  4585. .get = msm_pcm_channel_output_map_get,
  4586. .put = msm_pcm_channel_output_map_put,
  4587. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4588. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4589. },
  4590. {
  4591. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4592. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4593. .name = "MultiMedia2 Output Channel Map",
  4594. .info = msm_pcm_channel_output_map_info,
  4595. .get = msm_pcm_channel_output_map_get,
  4596. .put = msm_pcm_channel_output_map_put,
  4597. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4598. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4599. },
  4600. {
  4601. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4602. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4603. .name = "MultiMedia3 Output Channel Map",
  4604. .info = msm_pcm_channel_output_map_info,
  4605. .get = msm_pcm_channel_output_map_get,
  4606. .put = msm_pcm_channel_output_map_put,
  4607. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4608. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4609. },
  4610. {
  4611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4613. .name = "MultiMedia4 Output Channel Map",
  4614. .info = msm_pcm_channel_output_map_info,
  4615. .get = msm_pcm_channel_output_map_get,
  4616. .put = msm_pcm_channel_output_map_put,
  4617. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4618. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4619. },
  4620. {
  4621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4623. .name = "MultiMedia5 Output Channel Map",
  4624. .info = msm_pcm_channel_output_map_info,
  4625. .get = msm_pcm_channel_output_map_get,
  4626. .put = msm_pcm_channel_output_map_put,
  4627. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4628. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia6 Output Channel Map",
  4634. .info = msm_pcm_channel_output_map_info,
  4635. .get = msm_pcm_channel_output_map_get,
  4636. .put = msm_pcm_channel_output_map_put,
  4637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia18 Output Channel Map",
  4644. .info = msm_pcm_channel_output_map_info,
  4645. .get = msm_pcm_channel_output_map_get,
  4646. .put = msm_pcm_channel_output_map_put,
  4647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia19 Output Channel Map",
  4654. .info = msm_pcm_channel_output_map_info,
  4655. .get = msm_pcm_channel_output_map_get,
  4656. .put = msm_pcm_channel_output_map_put,
  4657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia28 Output Channel Map",
  4664. .info = msm_pcm_channel_output_map_info,
  4665. .get = msm_pcm_channel_output_map_get,
  4666. .put = msm_pcm_channel_output_map_put,
  4667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia29 Output Channel Map",
  4674. .info = msm_pcm_channel_output_map_info,
  4675. .get = msm_pcm_channel_output_map_get,
  4676. .put = msm_pcm_channel_output_map_put,
  4677. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4678. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia30 Output Channel Map",
  4684. .info = msm_pcm_channel_output_map_info,
  4685. .get = msm_pcm_channel_output_map_get,
  4686. .put = msm_pcm_channel_output_map_put,
  4687. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4688. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4689. },
  4690. };
  4691. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4692. struct snd_ctl_elem_value *ucontrol)
  4693. {
  4694. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4695. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4696. ucontrol->value.integer.value[0]);
  4697. return 0;
  4698. }
  4699. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4700. struct snd_ctl_elem_value *ucontrol)
  4701. {
  4702. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4703. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4704. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4705. return 0;
  4706. }
  4707. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4708. struct snd_ctl_elem_value *ucontrol)
  4709. {
  4710. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4711. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4712. ucontrol->value.integer.value[0]);
  4713. return 0;
  4714. }
  4715. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4716. struct snd_ctl_elem_value *ucontrol)
  4717. {
  4718. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4719. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4720. __func__, msm_ec_ref_ch_downmixed);
  4721. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4722. return 0;
  4723. }
  4724. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4725. struct snd_ctl_elem_value *ucontrol)
  4726. {
  4727. int i = 0, ret = 0;
  4728. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4729. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4730. kcontrol->private_value)->shift;
  4731. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4732. weights[i] = ucontrol->value.integer.value[i];
  4733. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4734. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4735. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4736. return ret;
  4737. }
  4738. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4739. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4740. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4741. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4742. struct snd_ctl_elem_value *ucontrol)
  4743. {
  4744. switch (msm_ec_ref_bit_format) {
  4745. case SNDRV_PCM_FORMAT_S24_LE:
  4746. ucontrol->value.integer.value[0] = 2;
  4747. break;
  4748. case SNDRV_PCM_FORMAT_S16_LE:
  4749. ucontrol->value.integer.value[0] = 1;
  4750. break;
  4751. default:
  4752. ucontrol->value.integer.value[0] = 0;
  4753. break;
  4754. }
  4755. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4756. __func__, ucontrol->value.integer.value[0]);
  4757. return 0;
  4758. }
  4759. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4760. struct snd_ctl_elem_value *ucontrol)
  4761. {
  4762. u16 bit_width = 0;
  4763. switch (ucontrol->value.integer.value[0]) {
  4764. case 2:
  4765. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4766. break;
  4767. case 1:
  4768. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4769. break;
  4770. default:
  4771. msm_ec_ref_bit_format = 0;
  4772. break;
  4773. }
  4774. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4775. bit_width = 16;
  4776. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4777. bit_width = 24;
  4778. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4779. __func__, msm_ec_ref_bit_format);
  4780. adm_ec_ref_rx_bit_width(bit_width);
  4781. return 0;
  4782. }
  4783. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4784. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4785. struct snd_ctl_elem_value *ucontrol)
  4786. {
  4787. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4788. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4789. __func__, ucontrol->value.integer.value[0]);
  4790. return 0;
  4791. }
  4792. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4793. struct snd_ctl_elem_value *ucontrol)
  4794. {
  4795. switch (ucontrol->value.integer.value[0]) {
  4796. case 0:
  4797. msm_ec_ref_sampling_rate = 0;
  4798. break;
  4799. case 1:
  4800. msm_ec_ref_sampling_rate = 8000;
  4801. break;
  4802. case 2:
  4803. msm_ec_ref_sampling_rate = 16000;
  4804. break;
  4805. case 3:
  4806. msm_ec_ref_sampling_rate = 32000;
  4807. break;
  4808. case 4:
  4809. msm_ec_ref_sampling_rate = 44100;
  4810. break;
  4811. case 5:
  4812. msm_ec_ref_sampling_rate = 48000;
  4813. break;
  4814. case 6:
  4815. msm_ec_ref_sampling_rate = 96000;
  4816. break;
  4817. case 7:
  4818. msm_ec_ref_sampling_rate = 192000;
  4819. break;
  4820. case 8:
  4821. msm_ec_ref_sampling_rate = 384000;
  4822. break;
  4823. default:
  4824. msm_ec_ref_sampling_rate = 48000;
  4825. break;
  4826. }
  4827. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4828. __func__, msm_ec_ref_sampling_rate);
  4829. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4830. return 0;
  4831. }
  4832. static int get_ec_ref_port_id(int value, int *index)
  4833. {
  4834. int port_id;
  4835. switch (value) {
  4836. case 0:
  4837. *index = 0;
  4838. port_id = AFE_PORT_INVALID;
  4839. break;
  4840. case 1:
  4841. *index = 1;
  4842. port_id = SLIMBUS_0_RX;
  4843. break;
  4844. case 2:
  4845. *index = 2;
  4846. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4847. break;
  4848. case 3:
  4849. *index = 3;
  4850. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4851. break;
  4852. case 4:
  4853. *index = 4;
  4854. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4855. break;
  4856. case 5:
  4857. *index = 5;
  4858. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4859. break;
  4860. case 6:
  4861. *index = 6;
  4862. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4863. break;
  4864. case 7:
  4865. *index = 7;
  4866. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4867. break;
  4868. case 9:
  4869. *index = 9;
  4870. port_id = SLIMBUS_5_RX;
  4871. break;
  4872. case 10:
  4873. *index = 10;
  4874. port_id = SLIMBUS_1_TX;
  4875. break;
  4876. case 11:
  4877. *index = 11;
  4878. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4879. break;
  4880. case 12:
  4881. *index = 12;
  4882. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4883. break;
  4884. case 13:
  4885. *index = 13;
  4886. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4887. break;
  4888. case 14:
  4889. *index = 14;
  4890. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4891. break;
  4892. case 15:
  4893. *index = 15;
  4894. port_id = SLIMBUS_6_RX;
  4895. break;
  4896. case 16:
  4897. *index = 16;
  4898. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4899. break;
  4900. case 17:
  4901. *index = 17;
  4902. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4903. break;
  4904. case 18:
  4905. *index = 18;
  4906. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4907. break;
  4908. case 19:
  4909. *index = 19;
  4910. port_id = AFE_PORT_ID_USB_RX;
  4911. break;
  4912. case 20:
  4913. *index = 20;
  4914. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4915. break;
  4916. case 21:
  4917. *index = 21;
  4918. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4919. break;
  4920. case 22:
  4921. *index = 22;
  4922. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4923. break;
  4924. case 23:
  4925. *index = 23;
  4926. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4927. break;
  4928. case 24:
  4929. *index = 24;
  4930. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4931. break;
  4932. case 25:
  4933. *index = 25;
  4934. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4935. break;
  4936. case 26:
  4937. *index = 26;
  4938. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4939. break;
  4940. case 27:
  4941. *index = 27;
  4942. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4943. break;
  4944. case 28:
  4945. *index = 28;
  4946. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4947. break;
  4948. case 29:
  4949. *index = 29;
  4950. port_id = SLIMBUS_7_RX;
  4951. break;
  4952. case 30:
  4953. *index = 30;
  4954. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4955. break;
  4956. case 31:
  4957. *index = 31;
  4958. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4959. break;
  4960. case 32:
  4961. *index = 32;
  4962. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4963. break;
  4964. case 33:
  4965. *index = 33;
  4966. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4967. break;
  4968. case 34:
  4969. *index = 34;
  4970. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  4971. break;
  4972. case 35:
  4973. *index = 35;
  4974. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  4975. break;
  4976. case 36:
  4977. *index = 36;
  4978. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4979. break;
  4980. default:
  4981. *index = 0; /* NONE */
  4982. pr_err("%s: Invalid value %d\n", __func__, value);
  4983. port_id = AFE_PORT_INVALID;
  4984. break;
  4985. }
  4986. return port_id;
  4987. }
  4988. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  4989. struct snd_ctl_elem_value *ucontrol)
  4990. {
  4991. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  4992. mutex_lock(&routing_lock);
  4993. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  4994. mutex_unlock(&routing_lock);
  4995. return 0;
  4996. }
  4997. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  4998. struct snd_ctl_elem_value *ucontrol)
  4999. {
  5000. int value = ucontrol->value.integer.value[0];
  5001. mutex_lock(&routing_lock);
  5002. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5003. &afe_loopback_tx_port_index);
  5004. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5005. __func__, afe_loopback_tx_port_index);
  5006. mutex_unlock(&routing_lock);
  5007. return 0;
  5008. }
  5009. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5010. "32000", "44100", "48000", "96000", "192000", "384000"};
  5011. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5012. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  5013. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  5014. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  5015. };
  5016. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5017. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5018. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5019. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5020. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5021. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5022. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5023. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5024. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5025. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5026. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5027. };
  5028. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5029. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5030. };
  5031. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5032. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5033. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5034. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5035. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5036. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5037. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5038. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5039. msm_route_ec_ref_params_enum[0],
  5040. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5041. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5042. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5043. msm_ec_ref_chmixer_weights_put),
  5044. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5045. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5046. msm_ec_ref_chmixer_weights_put),
  5047. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5048. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5049. msm_ec_ref_chmixer_weights_put),
  5050. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5051. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5052. msm_ec_ref_chmixer_weights_put),
  5053. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5054. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5055. msm_ec_ref_chmixer_weights_put),
  5056. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5057. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5058. msm_ec_ref_chmixer_weights_put),
  5059. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5060. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5061. };
  5062. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5063. struct snd_ctl_elem_value *ucontrol)
  5064. {
  5065. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5066. mutex_lock(&routing_lock);
  5067. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5068. mutex_unlock(&routing_lock);
  5069. return 0;
  5070. }
  5071. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5072. struct snd_ctl_elem_value *ucontrol)
  5073. {
  5074. int value = ucontrol->value.integer.value[0];
  5075. struct snd_soc_dapm_widget *widget =
  5076. snd_soc_dapm_kcontrol_widget(kcontrol);
  5077. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5078. struct snd_soc_dapm_update *update = NULL;
  5079. mutex_lock(&routing_lock);
  5080. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5081. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5082. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5083. __func__, msm_route_ec_ref_rx);
  5084. mutex_unlock(&routing_lock);
  5085. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5086. msm_route_ec_ref_rx, e, update);
  5087. return 0;
  5088. }
  5089. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5090. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5091. msm_route_ec_ref_rx_enum[0],
  5092. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5093. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5094. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5095. msm_route_ec_ref_rx_enum[0],
  5096. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5097. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5098. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5099. msm_route_ec_ref_rx_enum[0],
  5100. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5101. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5102. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5103. msm_route_ec_ref_rx_enum[0],
  5104. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5105. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5106. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5107. msm_route_ec_ref_rx_enum[0],
  5108. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5109. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5110. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5111. msm_route_ec_ref_rx_enum[0],
  5112. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5113. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5114. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5115. msm_route_ec_ref_rx_enum[0],
  5116. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5117. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5118. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5119. msm_route_ec_ref_rx_enum[0],
  5120. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5121. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5122. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5123. msm_route_ec_ref_rx_enum[0],
  5124. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5125. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5126. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5127. msm_route_ec_ref_rx_enum[0],
  5128. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5129. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5130. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5131. msm_route_ec_ref_rx_enum[0],
  5132. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5133. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5134. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5135. msm_route_ec_ref_rx_enum[0],
  5136. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5137. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5138. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5139. msm_route_ec_ref_rx_enum[0],
  5140. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5141. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5142. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5143. msm_route_ec_ref_rx_enum[0],
  5144. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5145. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5146. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5147. msm_route_ec_ref_rx_enum[0],
  5148. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5149. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5150. struct snd_ctl_elem_value *ucontrol)
  5151. {
  5152. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5153. mutex_lock(&routing_lock);
  5154. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5155. mutex_unlock(&routing_lock);
  5156. return 0;
  5157. }
  5158. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5159. struct snd_ctl_elem_value *ucontrol)
  5160. {
  5161. struct snd_soc_dapm_widget *widget =
  5162. snd_soc_dapm_kcontrol_widget(kcontrol);
  5163. int mux = ucontrol->value.enumerated.item[0];
  5164. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5165. int ret = 1;
  5166. bool state = true;
  5167. uint16_t ext_ec_ref_port_id;
  5168. struct snd_soc_dapm_update *update = NULL;
  5169. if (mux >= e->items) {
  5170. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5171. return -EINVAL;
  5172. }
  5173. mutex_lock(&routing_lock);
  5174. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5175. switch (msm_route_ext_ec_ref) {
  5176. case EXT_EC_REF_PRI_MI2S_TX:
  5177. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5178. break;
  5179. case EXT_EC_REF_SEC_MI2S_TX:
  5180. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5181. break;
  5182. case EXT_EC_REF_TERT_MI2S_TX:
  5183. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5184. break;
  5185. case EXT_EC_REF_QUAT_MI2S_TX:
  5186. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5187. break;
  5188. case EXT_EC_REF_QUIN_MI2S_TX:
  5189. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5190. break;
  5191. case EXT_EC_REF_SLIM_1_TX:
  5192. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5193. break;
  5194. case EXT_EC_REF_SEC_TDM_TX:
  5195. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5196. break;
  5197. case EXT_EC_REF_NONE:
  5198. default:
  5199. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5200. state = false;
  5201. break;
  5202. }
  5203. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5204. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5205. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5206. mutex_unlock(&routing_lock);
  5207. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5208. update);
  5209. } else {
  5210. ret = -EINVAL;
  5211. mutex_unlock(&routing_lock);
  5212. }
  5213. return ret;
  5214. }
  5215. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5216. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5217. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5218. "SLIM_1_TX", "SEC_TDM_TX"};
  5219. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5220. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5221. };
  5222. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5223. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5224. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5225. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5226. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5227. MSM_BACKEND_DAI_PRI_I2S_RX,
  5228. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5229. msm_routing_put_audio_mixer),
  5230. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5231. MSM_BACKEND_DAI_PRI_I2S_RX,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5235. MSM_BACKEND_DAI_PRI_I2S_RX,
  5236. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5237. msm_routing_put_audio_mixer),
  5238. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_PRI_I2S_RX,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_PRI_I2S_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_PRI_I2S_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_PRI_I2S_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_PRI_I2S_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_PRI_I2S_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_PRI_I2S_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_PRI_I2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_PRI_I2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_PRI_I2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_PRI_I2S_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_PRI_I2S_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_PRI_I2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. };
  5319. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5320. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_SEC_I2S_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_SEC_I2S_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_SEC_I2S_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_SEC_I2S_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_SEC_I2S_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_SEC_I2S_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_SEC_I2S_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_SEC_I2S_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_SEC_I2S_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_SEC_I2S_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SEC_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SEC_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_SEC_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_SEC_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_SEC_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_SEC_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. };
  5413. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5414. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. };
  5507. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5508. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. };
  5601. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. };
  5671. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5672. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. };
  5765. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5766. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. };
  5859. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_MI2S_RX,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_MI2S_RX,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_MI2S_RX,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_MI2S_RX,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_MI2S_RX,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_MI2S_RX,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_MI2S_RX,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_MI2S_RX,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_MI2S_RX,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_MI2S_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_MI2S_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_MI2S_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_MI2S_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_MI2S_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_MI2S_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_MI2S_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. };
  5953. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5954. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. };
  6047. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6048. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. };
  6141. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6142. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. };
  6231. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6232. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. };
  6317. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6318. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. };
  6323. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6324. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. };
  6417. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6418. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. };
  6511. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6512. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6537. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6538. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6539. msm_routing_put_audio_mixer),
  6540. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. };
  6577. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6578. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. };
  6643. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6644. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_HDMI_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_HDMI_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_HDMI_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_HDMI_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_HDMI_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_HDMI_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_HDMI_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_HDMI_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_HDMI_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_HDMI_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_HDMI_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_HDMI_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_HDMI_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_HDMI_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_HDMI_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_HDMI_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_HDMI_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_HDMI_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_HDMI_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_HDMI_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_HDMI_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_HDMI_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_HDMI_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. };
  6737. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6738. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. };
  6807. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  6808. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. };
  6877. /* incall music delivery mixer */
  6878. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  6879. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. };
  6896. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  6897. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6898. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6900. msm_routing_put_audio_mixer),
  6901. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6902. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6903. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6904. msm_routing_put_audio_mixer),
  6905. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6906. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6908. msm_routing_put_audio_mixer),
  6909. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6910. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  6911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6912. msm_routing_put_audio_mixer),
  6913. };
  6914. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  6915. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. };
  6932. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  6933. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. };
  7002. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. };
  7072. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7073. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. };
  7142. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7143. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. };
  7212. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7213. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7258. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7259. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7260. msm_routing_put_audio_mixer),
  7261. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7262. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7263. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7264. msm_routing_put_audio_mixer),
  7265. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7266. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7267. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7268. msm_routing_put_audio_mixer),
  7269. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7270. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7271. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7272. msm_routing_put_audio_mixer),
  7273. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7274. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7276. msm_routing_put_audio_mixer),
  7277. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7278. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7279. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7280. msm_routing_put_audio_mixer),
  7281. };
  7282. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7283. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7328. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7329. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7330. msm_routing_put_audio_mixer),
  7331. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7332. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7333. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7334. msm_routing_put_audio_mixer),
  7335. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7336. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7337. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7338. msm_routing_put_audio_mixer),
  7339. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7340. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7341. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7342. msm_routing_put_audio_mixer),
  7343. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7344. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7346. msm_routing_put_audio_mixer),
  7347. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7348. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7349. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7350. msm_routing_put_audio_mixer),
  7351. };
  7352. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7353. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7399. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7400. msm_routing_put_audio_mixer),
  7401. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7402. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7403. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7404. msm_routing_put_audio_mixer),
  7405. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7406. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7407. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7408. msm_routing_put_audio_mixer),
  7409. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7410. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7411. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7412. msm_routing_put_audio_mixer),
  7413. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7414. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7415. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7416. msm_routing_put_audio_mixer),
  7417. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7418. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7419. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7420. msm_routing_put_audio_mixer),
  7421. };
  7422. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7423. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7477. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7478. msm_routing_put_audio_mixer),
  7479. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7481. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7482. msm_routing_put_audio_mixer),
  7483. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7485. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7486. msm_routing_put_audio_mixer),
  7487. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7489. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7490. msm_routing_put_audio_mixer),
  7491. };
  7492. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7493. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. };
  7562. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7563. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. };
  7632. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. };
  7702. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7703. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. };
  7772. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7773. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. };
  7842. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  7843. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_USB_RX,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_USB_RX,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_USB_RX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_USB_RX,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_USB_RX,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_USB_RX,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_USB_RX,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_USB_RX,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_USB_RX,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_USB_RX,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_USB_RX,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_USB_RX,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_USB_RX,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_USB_RX,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_USB_RX,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_USB_RX,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_USB_RX,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. };
  7912. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  7913. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7958. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7960. msm_routing_put_audio_mixer),
  7961. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7962. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7964. msm_routing_put_audio_mixer),
  7965. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7966. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7967. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7968. msm_routing_put_audio_mixer),
  7969. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7970. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7972. msm_routing_put_audio_mixer),
  7973. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. };
  8006. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8007. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8028. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8029. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8030. msm_routing_put_audio_mixer),
  8031. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8032. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8033. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8034. msm_routing_put_audio_mixer),
  8035. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8036. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8037. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8038. msm_routing_put_audio_mixer),
  8039. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8040. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8041. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8042. msm_routing_put_audio_mixer),
  8043. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8044. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8045. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8046. msm_routing_put_audio_mixer),
  8047. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. };
  8076. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8077. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_INT_FM_RX,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_INT_FM_RX,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_INT_FM_RX,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_INT_FM_RX,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_INT_FM_RX,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_INT_FM_RX,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_INT_FM_RX,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_INT_FM_RX,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_INT_FM_RX,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_INT_FM_RX,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_INT_FM_RX,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_INT_FM_RX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_INT_FM_RX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_INT_FM_RX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_INT_FM_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT_FM_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_INT_FM_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_INT_FM_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_INT_FM_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_INT_FM_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_INT_FM_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_INT_FM_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_INT_FM_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. };
  8170. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_AFE_PCM_RX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_AFE_PCM_RX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_AFE_PCM_RX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_AFE_PCM_RX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_AFE_PCM_RX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_AFE_PCM_RX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_AFE_PCM_RX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_AFE_PCM_RX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_AFE_PCM_RX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_AFE_PCM_RX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_AFE_PCM_RX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_AFE_PCM_RX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_AFE_PCM_RX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_AFE_PCM_RX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_AFE_PCM_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_AFE_PCM_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_AFE_PCM_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_AFE_PCM_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_AFE_PCM_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_AFE_PCM_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_AFE_PCM_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_AFE_PCM_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_AFE_PCM_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. };
  8264. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_AUXPCM_RX,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_AUXPCM_RX,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_AUXPCM_RX,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_AUXPCM_RX,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_AUXPCM_RX,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_AUXPCM_RX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_AUXPCM_RX,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_AUXPCM_RX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_AUXPCM_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_AUXPCM_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_AUXPCM_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_AUXPCM_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_AUXPCM_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_AUXPCM_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_AUXPCM_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_AUXPCM_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_AUXPCM_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_AUXPCM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_AUXPCM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_AUXPCM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_AUXPCM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_AUXPCM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_AUXPCM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_AUXPCM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. };
  8362. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. };
  8460. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8461. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. };
  8530. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8531. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. };
  8600. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8601. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. };
  8670. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8671. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8736. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8737. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8738. msm_routing_put_audio_mixer),
  8739. };
  8740. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8741. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. };
  8810. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  8811. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. };
  8880. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  8881. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. };
  8950. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  8951. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8996. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  8997. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8998. msm_routing_put_audio_mixer),
  8999. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9000. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9001. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9002. msm_routing_put_audio_mixer),
  9003. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9004. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9005. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9006. msm_routing_put_audio_mixer),
  9007. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9008. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9009. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9010. msm_routing_put_audio_mixer),
  9011. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9012. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9013. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9014. msm_routing_put_audio_mixer),
  9015. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9016. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9017. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9018. msm_routing_put_audio_mixer),
  9019. };
  9020. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9021. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. };
  9086. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9087. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. };
  9156. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9157. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. };
  9226. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. };
  9296. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. };
  9366. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9367. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. };
  9432. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. };
  9502. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. };
  9568. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9569. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. };
  9638. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9639. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. };
  9708. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9709. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. };
  9778. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  9779. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. };
  9848. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  9849. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. };
  9922. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  9923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. };
  9988. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  9989. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. };
  10062. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10124. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10126. msm_routing_put_audio_mixer),
  10127. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10128. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10129. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10130. msm_routing_put_audio_mixer),
  10131. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10132. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10133. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10134. msm_routing_put_audio_mixer),
  10135. };
  10136. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10137. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. };
  10210. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10211. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10268. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10269. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10270. msm_routing_put_audio_mixer),
  10271. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10274. msm_routing_put_audio_mixer),
  10275. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10277. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10278. msm_routing_put_audio_mixer),
  10279. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. };
  10284. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10285. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10343. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10344. msm_routing_put_audio_mixer),
  10345. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10346. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10348. msm_routing_put_audio_mixer),
  10349. };
  10350. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10351. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. };
  10424. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10425. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. };
  10498. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. };
  10572. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. };
  10646. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10647. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. };
  10712. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  10713. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. };
  10786. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  10787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. };
  10860. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  10861. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. };
  10934. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  10935. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_PRI_I2S_TX,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10938. msm_routing_put_audio_mixer),
  10939. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_MI2S_TX,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_AUXPCM_TX,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_INT_FM_TX,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_AFE_PCM_TX,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_USB_TX,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. };
  11208. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_INT_FM_TX,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_MI2S_TX,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11242. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11244. msm_routing_put_audio_mixer),
  11245. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11246. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11248. msm_routing_put_audio_mixer),
  11249. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11250. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11252. msm_routing_put_audio_mixer),
  11253. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11254. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11255. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11256. msm_routing_put_audio_mixer),
  11257. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11258. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11260. msm_routing_put_audio_mixer),
  11261. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11262. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11264. msm_routing_put_audio_mixer),
  11265. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_USB_TX,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. };
  11430. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11431. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_INT_FM_TX,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_MI2S_TX,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_AFE_PCM_TX,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_AUXPCM_TX,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. };
  11652. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11653. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_INT_FM_TX,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_AFE_PCM_TX,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_USB_TX,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11851. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11852. msm_routing_put_audio_mixer),
  11853. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11854. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11855. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11856. msm_routing_put_audio_mixer),
  11857. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11859. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11860. msm_routing_put_audio_mixer),
  11861. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11863. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11864. msm_routing_put_audio_mixer),
  11865. };
  11866. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  11867. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_INT_FM_TX,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_MI2S_TX,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_AFE_PCM_TX,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_AUXPCM_TX,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_USB_TX,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. };
  12112. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12113. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_INT_FM_TX,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_AUXPCM_TX,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_USB_TX,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. };
  12334. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12335. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_INT_FM_TX,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_AFE_PCM_TX,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_USB_TX,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12518. msm_routing_put_audio_mixer),
  12519. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. };
  12560. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12561. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_INT_FM_TX,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_AFE_PCM_TX,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12632. msm_routing_put_audio_mixer),
  12633. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12644. msm_routing_put_audio_mixer),
  12645. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12647. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12648. msm_routing_put_audio_mixer),
  12649. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12651. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12652. msm_routing_put_audio_mixer),
  12653. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12655. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12656. msm_routing_put_audio_mixer),
  12657. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12659. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12660. msm_routing_put_audio_mixer),
  12661. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12663. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12664. msm_routing_put_audio_mixer),
  12665. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12667. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12668. msm_routing_put_audio_mixer),
  12669. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12672. msm_routing_put_audio_mixer),
  12673. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_USB_TX,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_MI2S_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_AUXPCM_TX,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12732. msm_routing_get_audio_mixer,
  12733. msm_routing_put_audio_mixer),
  12734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12735. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12736. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12737. msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12742. msm_routing_get_audio_mixer,
  12743. msm_routing_put_audio_mixer),
  12744. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12747. msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12752. msm_routing_get_audio_mixer,
  12753. msm_routing_put_audio_mixer),
  12754. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12755. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12756. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  12757. msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. };
  12776. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  12777. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_INT_FM_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_AFE_PCM_TX,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. };
  12938. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  12939. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_INT_FM_TX,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_AFE_PCM_TX,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_USB_TX,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_MI2S_TX,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_AUXPCM_TX,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13074. msm_routing_get_audio_mixer,
  13075. msm_routing_put_audio_mixer),
  13076. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13078. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13079. msm_routing_get_audio_mixer,
  13080. msm_routing_put_audio_mixer),
  13081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13084. msm_routing_get_audio_mixer,
  13085. msm_routing_put_audio_mixer),
  13086. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13088. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13089. msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13094. msm_routing_get_audio_mixer,
  13095. msm_routing_put_audio_mixer),
  13096. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13099. msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. };
  13118. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13119. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13125. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13126. msm_routing_put_audio_mixer),
  13127. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13129. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13130. msm_routing_put_audio_mixer),
  13131. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13133. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13134. msm_routing_put_audio_mixer),
  13135. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_INT_FM_TX,
  13137. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13138. msm_routing_put_audio_mixer),
  13139. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13141. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13142. msm_routing_put_audio_mixer),
  13143. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_AFE_PCM_TX,
  13145. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13146. msm_routing_put_audio_mixer),
  13147. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13149. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13150. msm_routing_put_audio_mixer),
  13151. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13153. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13154. msm_routing_put_audio_mixer),
  13155. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13157. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13158. msm_routing_put_audio_mixer),
  13159. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13161. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13166. msm_routing_put_audio_mixer),
  13167. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13169. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13170. msm_routing_put_audio_mixer),
  13171. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13173. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13174. msm_routing_put_audio_mixer),
  13175. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13177. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13178. msm_routing_put_audio_mixer),
  13179. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13181. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13190. msm_routing_get_audio_mixer,
  13191. msm_routing_put_audio_mixer),
  13192. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13194. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13195. msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13200. msm_routing_get_audio_mixer,
  13201. msm_routing_put_audio_mixer),
  13202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13204. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13205. msm_routing_get_audio_mixer,
  13206. msm_routing_put_audio_mixer),
  13207. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13210. msm_routing_get_audio_mixer,
  13211. msm_routing_put_audio_mixer),
  13212. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13214. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13215. msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. };
  13230. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13231. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13233. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13234. msm_routing_put_audio_mixer),
  13235. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13238. msm_routing_put_audio_mixer),
  13239. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13241. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13242. msm_routing_put_audio_mixer),
  13243. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13245. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13246. msm_routing_put_audio_mixer),
  13247. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_INT_FM_TX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_AFE_PCM_TX,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13306. msm_routing_get_audio_mixer,
  13307. msm_routing_put_audio_mixer),
  13308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13310. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13311. msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13316. msm_routing_get_audio_mixer,
  13317. msm_routing_put_audio_mixer),
  13318. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13319. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13320. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13321. msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13326. msm_routing_get_audio_mixer,
  13327. msm_routing_put_audio_mixer),
  13328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13330. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13331. msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. };
  13346. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13347. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_INT_FM_TX,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_AFE_PCM_TX,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13406. msm_routing_put_audio_mixer),
  13407. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13409. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13422. msm_routing_get_audio_mixer,
  13423. msm_routing_put_audio_mixer),
  13424. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13426. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13427. msm_routing_get_audio_mixer,
  13428. msm_routing_put_audio_mixer),
  13429. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13430. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13431. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13432. msm_routing_get_audio_mixer,
  13433. msm_routing_put_audio_mixer),
  13434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13436. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13437. msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13442. msm_routing_get_audio_mixer,
  13443. msm_routing_put_audio_mixer),
  13444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13446. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13447. msm_routing_get_audio_mixer,
  13448. msm_routing_put_audio_mixer),
  13449. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13451. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13452. msm_routing_put_audio_mixer),
  13453. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13455. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13456. msm_routing_put_audio_mixer),
  13457. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13459. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13460. msm_routing_put_audio_mixer),
  13461. };
  13462. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13463. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13602. msm_routing_put_audio_mixer),
  13603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13605. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13614. msm_routing_put_audio_mixer),
  13615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13617. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13622. msm_routing_put_audio_mixer),
  13623. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13625. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13626. msm_routing_put_audio_mixer),
  13627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13629. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13630. msm_routing_put_audio_mixer),
  13631. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13633. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13634. msm_routing_put_audio_mixer),
  13635. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13637. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13638. msm_routing_put_audio_mixer),
  13639. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13640. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13641. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13642. msm_routing_put_audio_mixer),
  13643. };
  13644. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13645. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_AUXPCM_TX,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13659. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13660. msm_routing_put_audio_mixer),
  13661. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13663. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13664. msm_routing_put_audio_mixer),
  13665. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13667. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13668. msm_routing_put_audio_mixer),
  13669. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13696. msm_routing_put_audio_mixer),
  13697. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13699. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13700. msm_routing_put_audio_mixer),
  13701. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13703. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13720. msm_routing_put_audio_mixer),
  13721. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13722. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13723. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13724. msm_routing_put_audio_mixer),
  13725. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13727. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13728. msm_routing_put_audio_mixer),
  13729. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13731. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13732. msm_routing_put_audio_mixer),
  13733. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13735. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13740. msm_routing_put_audio_mixer),
  13741. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13743. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13748. msm_routing_put_audio_mixer),
  13749. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13752. msm_routing_put_audio_mixer),
  13753. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13755. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13776. msm_routing_put_audio_mixer),
  13777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13779. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13780. msm_routing_put_audio_mixer),
  13781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13783. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13784. msm_routing_put_audio_mixer),
  13785. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. };
  13810. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  13811. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. };
  13868. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  13869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13871. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13872. msm_routing_put_audio_mixer),
  13873. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13875. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13876. msm_routing_put_audio_mixer),
  13877. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_INT_FM_TX,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_AFE_PCM_TX,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13927. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13928. msm_routing_put_audio_mixer),
  13929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13931. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13932. msm_routing_put_audio_mixer),
  13933. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13935. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13936. msm_routing_put_audio_mixer),
  13937. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13939. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13940. msm_routing_put_audio_mixer),
  13941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13944. msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13949. msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13954. msm_routing_get_audio_mixer,
  13955. msm_routing_put_audio_mixer),
  13956. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13958. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13959. msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13964. msm_routing_get_audio_mixer,
  13965. msm_routing_put_audio_mixer),
  13966. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13968. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  13969. msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. };
  13984. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  13985. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_INT_FM_TX,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_AFE_PCM_TX,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14060. msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14065. msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14070. msm_routing_get_audio_mixer,
  14071. msm_routing_put_audio_mixer),
  14072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14074. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14075. msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14080. msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14085. msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. };
  14100. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14101. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_INT_FM_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_AFE_PCM_TX,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14160. msm_routing_put_audio_mixer),
  14161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14163. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14164. msm_routing_put_audio_mixer),
  14165. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14172. msm_routing_get_audio_mixer,
  14173. msm_routing_put_audio_mixer),
  14174. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14175. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14176. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14177. msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14182. msm_routing_get_audio_mixer,
  14183. msm_routing_put_audio_mixer),
  14184. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14185. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14186. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14187. msm_routing_get_audio_mixer,
  14188. msm_routing_put_audio_mixer),
  14189. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14191. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14192. msm_routing_get_audio_mixer,
  14193. msm_routing_put_audio_mixer),
  14194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14196. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14197. msm_routing_get_audio_mixer,
  14198. msm_routing_put_audio_mixer),
  14199. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14201. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14202. msm_routing_put_audio_mixer),
  14203. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14205. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14206. msm_routing_put_audio_mixer),
  14207. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14209. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14210. msm_routing_put_audio_mixer),
  14211. };
  14212. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14213. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_PRI_I2S_RX,
  14215. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14216. msm_routing_put_voice_mixer),
  14217. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_PRI_I2S_RX,
  14219. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14220. msm_routing_put_voice_mixer),
  14221. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_PRI_I2S_RX,
  14223. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14224. msm_routing_put_voice_mixer),
  14225. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_PRI_I2S_RX,
  14227. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14228. msm_routing_put_voice_mixer),
  14229. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_PRI_I2S_RX,
  14231. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14232. msm_routing_put_voice_mixer),
  14233. };
  14234. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14235. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_SEC_I2S_RX,
  14237. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14238. msm_routing_put_voice_mixer),
  14239. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_SEC_I2S_RX,
  14241. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14242. msm_routing_put_voice_mixer),
  14243. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_SEC_I2S_RX,
  14245. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14246. msm_routing_put_voice_mixer),
  14247. };
  14248. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14249. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14251. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14252. msm_routing_put_voice_mixer),
  14253. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14255. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14256. msm_routing_put_voice_mixer),
  14257. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14259. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14260. msm_routing_put_voice_mixer),
  14261. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14263. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14264. msm_routing_put_voice_mixer),
  14265. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14267. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14268. msm_routing_put_voice_mixer),
  14269. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14271. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14272. msm_routing_put_voice_mixer),
  14273. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14275. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14276. msm_routing_put_voice_mixer),
  14277. };
  14278. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14279. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14281. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14282. msm_routing_put_voice_mixer),
  14283. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14285. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14286. msm_routing_put_voice_mixer),
  14287. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14289. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14290. msm_routing_put_voice_mixer),
  14291. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14293. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14294. msm_routing_put_voice_mixer),
  14295. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14297. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14298. msm_routing_put_voice_mixer),
  14299. };
  14300. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14301. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14303. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14304. msm_routing_put_voice_mixer),
  14305. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14307. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14308. msm_routing_put_voice_mixer),
  14309. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14311. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14312. msm_routing_put_voice_mixer),
  14313. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14315. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14316. msm_routing_put_voice_mixer),
  14317. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14319. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14320. msm_routing_put_voice_mixer),
  14321. };
  14322. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14323. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_USB_RX,
  14325. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14326. msm_routing_put_voice_mixer),
  14327. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_USB_RX,
  14329. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14330. msm_routing_put_voice_mixer),
  14331. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_USB_RX,
  14333. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14334. msm_routing_put_voice_mixer),
  14335. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_USB_RX,
  14337. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14338. msm_routing_put_voice_mixer),
  14339. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_USB_RX,
  14341. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14342. msm_routing_put_voice_mixer),
  14343. };
  14344. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14345. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14347. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14348. msm_routing_put_voice_mixer),
  14349. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14351. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14352. msm_routing_put_voice_mixer),
  14353. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14355. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14356. msm_routing_put_voice_mixer),
  14357. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14359. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14360. msm_routing_put_voice_mixer),
  14361. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14363. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14364. msm_routing_put_voice_mixer),
  14365. };
  14366. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14367. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14369. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14370. msm_routing_put_voice_mixer),
  14371. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14373. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14374. msm_routing_put_voice_mixer),
  14375. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14377. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14378. msm_routing_put_voice_mixer),
  14379. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14381. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14382. msm_routing_put_voice_mixer),
  14383. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14385. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14386. msm_routing_put_voice_mixer),
  14387. };
  14388. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14389. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14391. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14392. msm_routing_put_voice_mixer),
  14393. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14395. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14396. msm_routing_put_voice_mixer),
  14397. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14399. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14400. msm_routing_put_voice_mixer),
  14401. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14403. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14404. msm_routing_put_voice_mixer),
  14405. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14407. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14408. msm_routing_put_voice_mixer),
  14409. };
  14410. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14411. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_MI2S_RX,
  14413. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14414. msm_routing_put_voice_mixer),
  14415. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_MI2S_RX,
  14417. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14418. msm_routing_put_voice_mixer),
  14419. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_MI2S_RX,
  14421. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14422. msm_routing_put_voice_mixer),
  14423. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_MI2S_RX,
  14425. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14426. msm_routing_put_voice_mixer),
  14427. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_MI2S_RX,
  14429. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14430. msm_routing_put_voice_mixer),
  14431. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_MI2S_RX,
  14433. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14434. msm_routing_put_voice_mixer),
  14435. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_MI2S_RX,
  14437. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14438. msm_routing_put_voice_mixer),
  14439. };
  14440. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14441. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14443. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14444. msm_routing_put_voice_mixer),
  14445. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14447. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14448. msm_routing_put_voice_mixer),
  14449. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14451. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14452. msm_routing_put_voice_mixer),
  14453. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14455. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14456. msm_routing_put_voice_mixer),
  14457. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14459. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14460. msm_routing_put_voice_mixer),
  14461. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14463. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14464. msm_routing_put_voice_mixer),
  14465. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14467. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14468. msm_routing_put_voice_mixer),
  14469. };
  14470. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14471. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14473. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14474. msm_routing_put_voice_mixer),
  14475. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14477. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14478. msm_routing_put_voice_mixer),
  14479. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14481. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14482. msm_routing_put_voice_mixer),
  14483. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14485. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14486. msm_routing_put_voice_mixer),
  14487. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14489. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14490. msm_routing_put_voice_mixer),
  14491. };
  14492. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14493. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14495. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14496. msm_routing_put_voice_mixer),
  14497. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14499. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14500. msm_routing_put_voice_mixer),
  14501. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14503. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14504. msm_routing_put_voice_mixer),
  14505. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14507. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14508. msm_routing_put_voice_mixer),
  14509. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14511. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14512. msm_routing_put_voice_mixer),
  14513. };
  14514. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14515. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14517. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14518. msm_routing_put_voice_mixer),
  14519. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14521. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14522. msm_routing_put_voice_mixer),
  14523. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14525. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14526. msm_routing_put_voice_mixer),
  14527. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14529. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14530. msm_routing_put_voice_mixer),
  14531. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14533. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14534. msm_routing_put_voice_mixer),
  14535. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14537. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14538. msm_routing_put_voice_mixer),
  14539. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14541. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14542. msm_routing_put_voice_mixer),
  14543. };
  14544. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14545. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14546. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14547. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14548. msm_routing_put_voice_mixer),
  14549. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14551. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14552. msm_routing_put_voice_mixer),
  14553. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14555. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14556. msm_routing_put_voice_mixer),
  14557. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14559. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14560. msm_routing_put_voice_mixer),
  14561. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14563. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14564. msm_routing_put_voice_mixer),
  14565. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14567. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14568. msm_routing_put_voice_mixer),
  14569. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14571. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14572. msm_routing_put_voice_mixer),
  14573. };
  14574. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14575. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14577. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14578. msm_routing_put_voice_mixer),
  14579. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14581. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14582. msm_routing_put_voice_stub_mixer),
  14583. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14585. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14586. msm_routing_put_voice_stub_mixer),
  14587. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14589. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14590. msm_routing_put_voice_mixer),
  14591. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14594. msm_routing_put_voice_mixer),
  14595. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14597. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14598. msm_routing_put_voice_mixer),
  14599. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14601. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14602. msm_routing_put_voice_mixer),
  14603. };
  14604. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  14605. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14607. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14608. msm_routing_put_voice_mixer),
  14609. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14610. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14611. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14612. msm_routing_put_voice_mixer),
  14613. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14615. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14616. msm_routing_put_voice_mixer),
  14617. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14619. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14620. msm_routing_put_voice_mixer),
  14621. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14623. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14624. msm_routing_put_voice_mixer),
  14625. };
  14626. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  14627. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_AFE_PCM_RX,
  14629. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14630. msm_routing_put_voice_mixer),
  14631. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_AFE_PCM_RX,
  14633. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14634. msm_routing_put_voice_mixer),
  14635. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_AFE_PCM_RX,
  14637. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14638. msm_routing_put_voice_mixer),
  14639. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_AFE_PCM_RX,
  14641. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14642. msm_routing_put_voice_mixer),
  14643. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_AFE_PCM_RX,
  14645. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14646. msm_routing_put_voice_mixer),
  14647. };
  14648. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  14649. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_AUXPCM_RX,
  14651. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14652. msm_routing_put_voice_mixer),
  14653. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_AUXPCM_RX,
  14655. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14656. msm_routing_put_voice_mixer),
  14657. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_AUXPCM_RX,
  14659. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14660. msm_routing_put_voice_mixer),
  14661. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_AUXPCM_RX,
  14663. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14664. msm_routing_put_voice_mixer),
  14665. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_AUXPCM_RX,
  14667. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14668. msm_routing_put_voice_mixer),
  14669. };
  14670. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  14671. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14673. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14674. msm_routing_put_voice_mixer),
  14675. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14677. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14678. msm_routing_put_voice_mixer),
  14679. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14681. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14682. msm_routing_put_voice_mixer),
  14683. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14685. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14686. msm_routing_put_voice_mixer),
  14687. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14688. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14689. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14690. msm_routing_put_voice_mixer),
  14691. };
  14692. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  14693. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14695. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14696. msm_routing_put_voice_mixer),
  14697. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14699. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14700. msm_routing_put_voice_mixer),
  14701. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14703. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14704. msm_routing_put_voice_mixer),
  14705. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14707. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14708. msm_routing_put_voice_mixer),
  14709. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14711. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14712. msm_routing_put_voice_mixer),
  14713. };
  14714. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  14715. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14717. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14718. msm_routing_put_voice_mixer),
  14719. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14721. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14722. msm_routing_put_voice_mixer),
  14723. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14725. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14726. msm_routing_put_voice_mixer),
  14727. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14729. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14730. msm_routing_put_voice_mixer),
  14731. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14733. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14734. msm_routing_put_voice_mixer),
  14735. };
  14736. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  14737. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14739. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14740. msm_routing_put_voice_mixer),
  14741. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14743. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14744. msm_routing_put_voice_mixer),
  14745. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14747. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14748. msm_routing_put_voice_mixer),
  14749. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14751. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14752. msm_routing_put_voice_mixer),
  14753. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14755. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14756. msm_routing_put_voice_mixer),
  14757. };
  14758. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  14759. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14760. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14761. msm_routing_put_voice_mixer),
  14762. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14763. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14764. msm_routing_put_voice_mixer),
  14765. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14766. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14767. msm_routing_put_voice_mixer),
  14768. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14770. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14771. msm_routing_put_voice_mixer),
  14772. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14774. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14775. msm_routing_put_voice_mixer),
  14776. };
  14777. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  14778. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14779. MSM_BACKEND_DAI_HDMI_RX,
  14780. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14781. msm_routing_put_voice_mixer),
  14782. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14783. MSM_BACKEND_DAI_HDMI_RX,
  14784. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14785. msm_routing_put_voice_mixer),
  14786. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14787. MSM_BACKEND_DAI_HDMI_RX,
  14788. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14789. msm_routing_put_voice_mixer),
  14790. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14791. MSM_BACKEND_DAI_HDMI_RX,
  14792. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14793. msm_routing_put_voice_mixer),
  14794. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14795. MSM_BACKEND_DAI_HDMI_RX,
  14796. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14797. msm_routing_put_voice_mixer),
  14798. };
  14799. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  14800. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14802. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14803. msm_routing_put_voice_mixer),
  14804. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14806. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14807. msm_routing_put_voice_mixer),
  14808. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14809. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14810. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14811. msm_routing_put_voice_mixer),
  14812. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14813. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14814. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14815. msm_routing_put_voice_mixer),
  14816. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  14818. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14819. msm_routing_put_voice_mixer),
  14820. };
  14821. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  14822. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14825. msm_routing_put_voice_mixer),
  14826. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14828. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14829. msm_routing_put_voice_mixer),
  14830. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14832. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14833. msm_routing_put_voice_mixer),
  14834. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14835. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14836. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14837. msm_routing_put_voice_mixer),
  14838. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14839. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  14840. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14841. msm_routing_put_voice_mixer),
  14842. };
  14843. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  14844. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14845. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  14846. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14847. msm_routing_put_voice_mixer),
  14848. };
  14849. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  14850. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14851. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14852. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14853. msm_routing_put_voice_mixer),
  14854. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14855. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14856. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14857. msm_routing_put_voice_mixer),
  14858. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14861. msm_routing_put_voice_mixer),
  14862. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14864. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14865. msm_routing_put_voice_mixer),
  14866. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14867. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14868. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14869. msm_routing_put_voice_mixer),
  14870. };
  14871. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  14872. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14874. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14875. msm_routing_put_voice_mixer),
  14876. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14877. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14878. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14879. msm_routing_put_voice_mixer),
  14880. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14881. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14882. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14883. msm_routing_put_voice_mixer),
  14884. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14885. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14886. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14887. msm_routing_put_voice_mixer),
  14888. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14889. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  14890. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14891. msm_routing_put_voice_mixer),
  14892. };
  14893. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  14894. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14896. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14897. msm_routing_put_voice_mixer),
  14898. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14900. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14901. msm_routing_put_voice_mixer),
  14902. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14904. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14905. msm_routing_put_voice_mixer),
  14906. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14908. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14909. msm_routing_put_voice_mixer),
  14910. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14912. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14913. msm_routing_put_voice_mixer),
  14914. };
  14915. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  14916. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14919. msm_routing_put_voice_mixer),
  14920. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14922. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14923. msm_routing_put_voice_mixer),
  14924. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14926. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14927. msm_routing_put_voice_mixer),
  14928. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14930. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14931. msm_routing_put_voice_mixer),
  14932. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14933. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  14934. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14935. msm_routing_put_voice_mixer),
  14936. };
  14937. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  14938. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14940. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14941. msm_routing_put_voice_mixer),
  14942. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14944. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14945. msm_routing_put_voice_mixer),
  14946. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14948. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14949. msm_routing_put_voice_mixer),
  14950. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14952. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14953. msm_routing_put_voice_mixer),
  14954. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  14956. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14957. msm_routing_put_voice_mixer),
  14958. };
  14959. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  14960. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14961. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14962. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14963. msm_routing_put_voice_mixer),
  14964. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14966. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14967. msm_routing_put_voice_mixer),
  14968. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14969. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14970. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14971. msm_routing_put_voice_mixer),
  14972. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14973. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14974. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14975. msm_routing_put_voice_mixer),
  14976. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14977. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  14978. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14979. msm_routing_put_voice_mixer),
  14980. };
  14981. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  14982. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14984. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14985. msm_routing_put_voice_mixer),
  14986. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14988. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14989. msm_routing_put_voice_mixer),
  14990. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14992. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14993. msm_routing_put_voice_mixer),
  14994. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  14996. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14997. msm_routing_put_voice_mixer),
  14998. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15000. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15001. msm_routing_put_voice_mixer),
  15002. };
  15003. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15004. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15006. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15007. msm_routing_put_voice_mixer),
  15008. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15010. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15011. msm_routing_put_voice_mixer),
  15012. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15014. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15015. msm_routing_put_voice_mixer),
  15016. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15018. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15019. msm_routing_put_voice_mixer),
  15020. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15022. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15023. msm_routing_put_voice_mixer),
  15024. };
  15025. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15026. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15028. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15029. msm_routing_put_voice_mixer),
  15030. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15032. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15033. msm_routing_put_voice_mixer),
  15034. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15036. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15037. msm_routing_put_voice_mixer),
  15038. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15040. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15041. msm_routing_put_voice_mixer),
  15042. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15044. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15045. msm_routing_put_voice_mixer),
  15046. };
  15047. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15048. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15051. msm_routing_put_voice_mixer),
  15052. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15054. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15055. msm_routing_put_voice_mixer),
  15056. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15058. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15059. msm_routing_put_voice_mixer),
  15060. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15061. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15062. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15063. msm_routing_put_voice_mixer),
  15064. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15066. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15067. msm_routing_put_voice_mixer),
  15068. };
  15069. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15070. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15071. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15072. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15073. msm_routing_put_voice_mixer),
  15074. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15075. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15076. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15077. msm_routing_put_voice_stub_mixer),
  15078. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15080. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15081. msm_routing_put_voice_stub_mixer),
  15082. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15084. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15085. msm_routing_put_voice_mixer),
  15086. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15088. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15089. msm_routing_put_voice_mixer),
  15090. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15091. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15092. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15093. msm_routing_put_voice_mixer),
  15094. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15095. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15096. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15097. msm_routing_put_voice_mixer),
  15098. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15099. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15100. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15101. msm_routing_put_voice_mixer),
  15102. };
  15103. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15104. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15106. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15107. msm_routing_put_voice_mixer),
  15108. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15110. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15111. msm_routing_put_voice_stub_mixer),
  15112. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15114. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15115. msm_routing_put_voice_stub_mixer),
  15116. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15118. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15119. msm_routing_put_voice_mixer),
  15120. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15122. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15123. msm_routing_put_voice_mixer),
  15124. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15126. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15127. msm_routing_put_voice_mixer),
  15128. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15130. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15131. msm_routing_put_voice_mixer),
  15132. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15134. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15135. msm_routing_put_voice_mixer),
  15136. };
  15137. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15138. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15140. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15141. msm_routing_put_voice_mixer),
  15142. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15143. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15144. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15145. msm_routing_put_voice_stub_mixer),
  15146. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15148. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15149. msm_routing_put_voice_stub_mixer),
  15150. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15152. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15153. msm_routing_put_voice_mixer),
  15154. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15156. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15157. msm_routing_put_voice_mixer),
  15158. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15160. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15161. msm_routing_put_voice_mixer),
  15162. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15164. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15165. msm_routing_put_voice_mixer),
  15166. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15168. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15169. msm_routing_put_voice_mixer),
  15170. };
  15171. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15172. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15174. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15175. msm_routing_put_voice_mixer),
  15176. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15178. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15179. msm_routing_put_voice_stub_mixer),
  15180. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15182. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15183. msm_routing_put_voice_stub_mixer),
  15184. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15186. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15187. msm_routing_put_voice_mixer),
  15188. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15190. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15191. msm_routing_put_voice_mixer),
  15192. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15193. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15194. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15195. msm_routing_put_voice_mixer),
  15196. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15198. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15199. msm_routing_put_voice_mixer),
  15200. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15202. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15203. msm_routing_put_voice_mixer),
  15204. };
  15205. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15206. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_EXTPROC_RX,
  15208. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15209. msm_routing_put_voice_mixer),
  15210. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15211. MSM_BACKEND_DAI_EXTPROC_RX,
  15212. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15213. msm_routing_put_voice_mixer),
  15214. };
  15215. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15216. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15218. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15219. msm_routing_put_voice_mixer),
  15220. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15222. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15223. msm_routing_put_voice_mixer),
  15224. };
  15225. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15226. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15228. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15229. msm_routing_put_voice_mixer),
  15230. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15232. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15233. msm_routing_put_voice_mixer),
  15234. };
  15235. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15236. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15237. MSM_BACKEND_DAI_PRI_I2S_TX,
  15238. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15239. msm_routing_put_voice_mixer),
  15240. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_MI2S_TX,
  15242. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15243. msm_routing_put_voice_mixer),
  15244. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15246. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15247. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15248. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15249. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15250. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15252. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15253. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15255. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15256. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15258. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15259. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15261. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15262. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15264. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15265. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15267. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15268. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15269. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15270. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15271. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15273. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15274. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15276. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15277. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15279. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15280. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15282. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15283. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15285. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15286. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15287. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15288. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15289. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_USB_TX,
  15291. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15292. msm_routing_put_voice_mixer),
  15293. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15295. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15296. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15298. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15301. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15302. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15304. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15305. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15307. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15310. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15311. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15313. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15316. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15319. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15320. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15322. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15323. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15325. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15326. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15328. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15329. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15331. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15332. };
  15333. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15334. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15335. MSM_BACKEND_DAI_PRI_I2S_TX,
  15336. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15337. msm_routing_put_voice_mixer),
  15338. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15339. MSM_BACKEND_DAI_MI2S_TX,
  15340. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15341. msm_routing_put_voice_mixer),
  15342. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15344. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15345. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15346. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15347. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15348. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15350. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15351. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15353. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15354. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15356. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15357. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15358. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15359. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15360. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15362. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15363. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15365. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15366. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15368. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15369. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15370. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15371. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15372. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15374. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15375. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15377. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15378. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15380. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15381. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15382. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15383. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15384. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15386. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15387. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15389. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15390. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15392. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15393. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15395. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15396. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15398. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15401. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15402. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15404. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15405. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15407. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15410. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15411. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15412. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15413. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15414. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15416. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15417. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15419. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15420. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15422. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15423. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15425. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_PRI_I2S_TX,
  15430. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15431. msm_routing_put_voice_mixer),
  15432. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_MI2S_TX,
  15434. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15435. msm_routing_put_voice_mixer),
  15436. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15438. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15439. msm_routing_put_voice_mixer),
  15440. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15442. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15443. msm_routing_put_voice_mixer),
  15444. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_AFE_PCM_TX,
  15446. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15447. msm_routing_put_voice_mixer),
  15448. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_AUXPCM_TX,
  15450. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15451. msm_routing_put_voice_mixer),
  15452. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15454. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15455. msm_routing_put_voice_mixer),
  15456. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15458. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15459. msm_routing_put_voice_mixer),
  15460. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15462. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15463. msm_routing_put_voice_mixer),
  15464. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15466. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15467. msm_routing_put_voice_mixer),
  15468. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15470. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15471. msm_routing_put_voice_mixer),
  15472. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15474. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15475. msm_routing_put_voice_mixer),
  15476. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15478. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15479. msm_routing_put_voice_mixer),
  15480. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15482. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15483. msm_routing_put_voice_mixer),
  15484. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15486. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15487. msm_routing_put_voice_mixer),
  15488. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15490. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15491. msm_routing_put_voice_mixer),
  15492. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15494. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15495. msm_routing_put_voice_mixer),
  15496. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15497. MSM_BACKEND_DAI_USB_TX,
  15498. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15499. msm_routing_put_voice_mixer),
  15500. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15501. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15502. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15503. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15505. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15508. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15509. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15510. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15511. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15512. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15513. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15514. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15515. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15517. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15520. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15521. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15522. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15523. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15524. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15526. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15527. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15528. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15529. msm_routing_put_voice_mixer),
  15530. };
  15531. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15532. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_EXTPROC_TX,
  15534. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15535. msm_routing_put_voice_stub_mixer),
  15536. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15538. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15539. msm_routing_put_voice_stub_mixer),
  15540. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15542. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15543. msm_routing_put_voice_stub_mixer),
  15544. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15546. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15547. msm_routing_put_voice_stub_mixer),
  15548. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_MI2S_TX,
  15550. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15551. msm_routing_put_voice_stub_mixer),
  15552. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15554. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15555. msm_routing_put_voice_stub_mixer),
  15556. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15558. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15559. msm_routing_put_voice_stub_mixer),
  15560. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15561. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15562. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15563. msm_routing_put_voice_stub_mixer),
  15564. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15565. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15566. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15567. msm_routing_put_voice_stub_mixer),
  15568. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15569. MSM_BACKEND_DAI_AUXPCM_TX,
  15570. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15571. msm_routing_put_voice_stub_mixer),
  15572. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15574. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15575. msm_routing_put_voice_stub_mixer),
  15576. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15578. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15579. msm_routing_put_voice_stub_mixer),
  15580. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15582. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15583. msm_routing_put_voice_stub_mixer),
  15584. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15586. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15587. msm_routing_put_voice_stub_mixer),
  15588. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15590. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15591. msm_routing_put_voice_stub_mixer),
  15592. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15594. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15595. msm_routing_put_voice_stub_mixer),
  15596. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15598. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15599. msm_routing_put_voice_stub_mixer),
  15600. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_AFE_PCM_TX,
  15602. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15603. msm_routing_put_voice_stub_mixer),
  15604. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15606. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15607. msm_routing_put_voice_stub_mixer),
  15608. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15609. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15610. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15611. msm_routing_put_voice_stub_mixer),
  15612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15614. 1, 0, msm_routing_get_voice_stub_mixer,
  15615. msm_routing_put_voice_stub_mixer),
  15616. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15618. 1, 0, msm_routing_get_voice_stub_mixer,
  15619. msm_routing_put_voice_stub_mixer),
  15620. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  15622. 1, 0, msm_routing_get_voice_stub_mixer,
  15623. msm_routing_put_voice_stub_mixer),
  15624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15626. 1, 0, msm_routing_get_voice_stub_mixer,
  15627. msm_routing_put_voice_stub_mixer),
  15628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15630. 1, 0, msm_routing_get_voice_stub_mixer,
  15631. msm_routing_put_voice_stub_mixer),
  15632. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  15634. 1, 0, msm_routing_get_voice_stub_mixer,
  15635. msm_routing_put_voice_stub_mixer),
  15636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  15638. 1, 0, msm_routing_get_voice_stub_mixer,
  15639. msm_routing_put_voice_stub_mixer),
  15640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  15642. 1, 0, msm_routing_get_voice_stub_mixer,
  15643. msm_routing_put_voice_stub_mixer),
  15644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  15646. 1, 0, msm_routing_get_voice_stub_mixer,
  15647. msm_routing_put_voice_stub_mixer),
  15648. };
  15649. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  15650. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_EXTPROC_TX,
  15652. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15653. msm_routing_put_voice_stub_mixer),
  15654. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15656. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15657. msm_routing_put_voice_stub_mixer),
  15658. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15660. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15661. msm_routing_put_voice_stub_mixer),
  15662. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_AUXPCM_TX,
  15664. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15665. msm_routing_put_voice_stub_mixer),
  15666. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15668. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15669. msm_routing_put_voice_stub_mixer),
  15670. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15672. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15673. msm_routing_put_voice_stub_mixer),
  15674. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15676. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15677. msm_routing_put_voice_stub_mixer),
  15678. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15680. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15681. msm_routing_put_voice_stub_mixer),
  15682. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15683. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15684. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15685. msm_routing_put_voice_stub_mixer),
  15686. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15688. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15689. msm_routing_put_voice_stub_mixer),
  15690. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15692. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15693. msm_routing_put_voice_stub_mixer),
  15694. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_AFE_PCM_TX,
  15696. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15697. msm_routing_put_voice_stub_mixer),
  15698. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15700. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15701. msm_routing_put_voice_stub_mixer),
  15702. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15704. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15705. msm_routing_put_voice_stub_mixer),
  15706. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15708. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15709. msm_routing_put_voice_stub_mixer),
  15710. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15712. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15713. msm_routing_put_voice_stub_mixer),
  15714. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15716. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15717. msm_routing_put_voice_stub_mixer),
  15718. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  15720. 1, 0, msm_routing_get_voice_stub_mixer,
  15721. msm_routing_put_voice_stub_mixer),
  15722. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  15724. 1, 0, msm_routing_get_voice_stub_mixer,
  15725. msm_routing_put_voice_stub_mixer),
  15726. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  15728. 1, 0, msm_routing_get_voice_stub_mixer,
  15729. msm_routing_put_voice_stub_mixer),
  15730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  15732. 1, 0, msm_routing_get_voice_stub_mixer,
  15733. msm_routing_put_voice_stub_mixer),
  15734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15735. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  15736. 1, 0, msm_routing_get_voice_stub_mixer,
  15737. msm_routing_put_voice_stub_mixer),
  15738. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  15740. 1, 0, msm_routing_get_voice_stub_mixer,
  15741. msm_routing_put_voice_stub_mixer),
  15742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  15744. 1, 0, msm_routing_get_voice_stub_mixer,
  15745. msm_routing_put_voice_stub_mixer),
  15746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  15748. 1, 0, msm_routing_get_voice_stub_mixer,
  15749. msm_routing_put_voice_stub_mixer),
  15750. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  15752. 1, 0, msm_routing_get_voice_stub_mixer,
  15753. msm_routing_put_voice_stub_mixer),
  15754. };
  15755. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  15756. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_EXTPROC_TX,
  15758. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15759. msm_routing_put_voice_stub_mixer),
  15760. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15761. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15762. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15763. msm_routing_put_voice_stub_mixer),
  15764. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15765. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15766. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15767. msm_routing_put_voice_stub_mixer),
  15768. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_AUXPCM_TX,
  15770. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15771. msm_routing_put_voice_stub_mixer),
  15772. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15774. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15775. msm_routing_put_voice_stub_mixer),
  15776. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15778. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15779. msm_routing_put_voice_stub_mixer),
  15780. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15782. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15783. msm_routing_put_voice_stub_mixer),
  15784. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15786. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15787. msm_routing_put_voice_stub_mixer),
  15788. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15790. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15791. msm_routing_put_voice_stub_mixer),
  15792. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15794. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15795. msm_routing_put_voice_stub_mixer),
  15796. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15798. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15799. msm_routing_put_voice_stub_mixer),
  15800. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15801. MSM_BACKEND_DAI_AFE_PCM_TX,
  15802. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15803. msm_routing_put_voice_stub_mixer),
  15804. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15805. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15806. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15807. msm_routing_put_voice_stub_mixer),
  15808. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15809. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15810. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15811. msm_routing_put_voice_stub_mixer),
  15812. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15813. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15814. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15815. msm_routing_put_voice_stub_mixer),
  15816. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15817. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15818. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15819. msm_routing_put_voice_stub_mixer),
  15820. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  15822. 1, 0, msm_routing_get_voice_stub_mixer,
  15823. msm_routing_put_voice_stub_mixer),
  15824. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  15826. 1, 0, msm_routing_get_voice_stub_mixer,
  15827. msm_routing_put_voice_stub_mixer),
  15828. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  15830. 1, 0, msm_routing_get_voice_stub_mixer,
  15831. msm_routing_put_voice_stub_mixer),
  15832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  15834. 1, 0, msm_routing_get_voice_stub_mixer,
  15835. msm_routing_put_voice_stub_mixer),
  15836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  15838. 1, 0, msm_routing_get_voice_stub_mixer,
  15839. msm_routing_put_voice_stub_mixer),
  15840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  15842. 1, 0, msm_routing_get_voice_stub_mixer,
  15843. msm_routing_put_voice_stub_mixer),
  15844. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  15846. 1, 0, msm_routing_get_voice_stub_mixer,
  15847. msm_routing_put_voice_stub_mixer),
  15848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  15850. 1, 0, msm_routing_get_voice_stub_mixer,
  15851. msm_routing_put_voice_stub_mixer),
  15852. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  15854. 1, 0, msm_routing_get_voice_stub_mixer,
  15855. msm_routing_put_voice_stub_mixer),
  15856. };
  15857. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  15858. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_PRI_I2S_TX,
  15860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15864. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15868. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  15869. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_AFE_PCM_TX,
  15872. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15873. msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_AUXPCM_TX,
  15876. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15880. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15881. msm_routing_put_voice_mixer),
  15882. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15884. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15885. msm_routing_put_voice_mixer),
  15886. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15888. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15889. msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15892. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15893. msm_routing_put_voice_mixer),
  15894. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15896. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15897. msm_routing_put_voice_mixer),
  15898. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_MI2S_TX,
  15900. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15901. msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15904. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15905. msm_routing_put_voice_mixer),
  15906. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15908. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15909. msm_routing_put_voice_mixer),
  15910. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15912. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15913. msm_routing_put_voice_mixer),
  15914. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15916. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15917. msm_routing_put_voice_mixer),
  15918. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15920. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15921. msm_routing_put_voice_mixer),
  15922. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_USB_TX,
  15924. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15925. msm_routing_put_voice_mixer),
  15926. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  15928. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  15931. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15932. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  15934. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  15936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  15937. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15938. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  15940. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  15942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  15943. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  15946. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  15949. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15950. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  15952. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15953. };
  15954. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  15955. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15957. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15958. msm_routing_put_port_mixer),
  15959. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15960. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15961. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15962. msm_routing_put_port_mixer),
  15963. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15964. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15965. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15966. msm_routing_put_port_mixer),
  15967. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15968. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15969. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15970. msm_routing_put_port_mixer),
  15971. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15972. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15973. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15974. msm_routing_put_port_mixer),
  15975. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15976. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15977. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15978. msm_routing_put_port_mixer),
  15979. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15980. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15981. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15982. msm_routing_put_port_mixer),
  15983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15986. msm_routing_put_port_mixer),
  15987. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15989. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15990. msm_routing_put_port_mixer),
  15991. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15993. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15994. msm_routing_put_port_mixer),
  15995. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15997. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15998. msm_routing_put_port_mixer),
  15999. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16000. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16001. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16002. msm_routing_put_port_mixer),
  16003. };
  16004. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16005. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16007. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16008. msm_routing_put_port_mixer),
  16009. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16010. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16011. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16012. msm_routing_put_port_mixer),
  16013. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16015. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16016. msm_routing_put_port_mixer),
  16017. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16019. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16020. msm_routing_put_port_mixer),
  16021. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16023. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16024. msm_routing_put_port_mixer),
  16025. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16027. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16028. msm_routing_put_port_mixer),
  16029. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16030. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16031. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16032. msm_routing_put_port_mixer),
  16033. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16034. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16035. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16036. msm_routing_put_port_mixer),
  16037. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16038. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16039. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16040. msm_routing_put_port_mixer),
  16041. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16042. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16043. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16044. msm_routing_put_port_mixer),
  16045. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16046. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16047. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16048. msm_routing_put_port_mixer),
  16049. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16050. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16051. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16052. msm_routing_put_port_mixer),
  16053. };
  16054. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16055. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16056. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16057. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16058. msm_routing_put_port_mixer),
  16059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16060. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16062. msm_routing_put_port_mixer),
  16063. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16064. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16065. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16066. msm_routing_put_port_mixer),
  16067. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16068. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16069. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16070. msm_routing_put_port_mixer),
  16071. };
  16072. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16073. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16075. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16076. msm_routing_put_port_mixer),
  16077. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16079. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16080. msm_routing_put_port_mixer),
  16081. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16083. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16084. msm_routing_put_port_mixer),
  16085. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16087. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16088. msm_routing_put_port_mixer),
  16089. };
  16090. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16091. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16093. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16094. msm_routing_put_port_mixer),
  16095. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16097. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16098. msm_routing_put_port_mixer),
  16099. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16101. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16102. msm_routing_put_port_mixer),
  16103. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16105. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16106. msm_routing_put_port_mixer),
  16107. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16109. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16110. msm_routing_put_port_mixer),
  16111. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16112. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16113. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16114. msm_routing_put_port_mixer),
  16115. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16117. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16118. msm_routing_put_port_mixer),
  16119. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16121. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16122. msm_routing_put_port_mixer),
  16123. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16124. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16125. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16126. msm_routing_put_port_mixer),
  16127. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16129. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16130. msm_routing_put_port_mixer),
  16131. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16133. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16134. msm_routing_put_port_mixer),
  16135. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16136. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16137. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16138. msm_routing_put_port_mixer),
  16139. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16141. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16142. msm_routing_put_port_mixer),
  16143. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16145. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16146. msm_routing_put_port_mixer),
  16147. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16148. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16149. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16150. msm_routing_put_port_mixer),
  16151. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16152. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16153. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16154. msm_routing_put_port_mixer),
  16155. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16157. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16158. msm_routing_put_port_mixer),
  16159. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16161. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16162. msm_routing_put_port_mixer),
  16163. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16164. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16165. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16166. msm_routing_put_port_mixer),
  16167. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16169. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16170. msm_routing_put_port_mixer),
  16171. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16173. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16174. msm_routing_put_port_mixer),
  16175. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16176. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16177. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16178. msm_routing_put_port_mixer),
  16179. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16180. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16181. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16182. msm_routing_put_port_mixer),
  16183. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16185. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16186. msm_routing_put_port_mixer),
  16187. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16189. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16190. msm_routing_put_port_mixer),
  16191. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16193. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16194. msm_routing_put_port_mixer),
  16195. };
  16196. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16197. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16198. MSM_BACKEND_DAI_AUXPCM_RX,
  16199. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16200. msm_routing_put_port_mixer),
  16201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16202. MSM_BACKEND_DAI_AUXPCM_RX,
  16203. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16204. msm_routing_put_port_mixer),
  16205. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16206. MSM_BACKEND_DAI_AUXPCM_RX,
  16207. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16208. msm_routing_put_port_mixer),
  16209. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16210. MSM_BACKEND_DAI_AUXPCM_RX,
  16211. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16212. msm_routing_put_port_mixer),
  16213. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16214. MSM_BACKEND_DAI_AUXPCM_RX,
  16215. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16216. msm_routing_put_port_mixer),
  16217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16218. MSM_BACKEND_DAI_AUXPCM_RX,
  16219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16220. msm_routing_put_port_mixer),
  16221. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_AUXPCM_RX,
  16223. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16224. msm_routing_put_port_mixer),
  16225. };
  16226. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16227. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16229. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16230. msm_routing_put_port_mixer),
  16231. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16233. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16234. msm_routing_put_port_mixer),
  16235. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16236. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16237. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16238. msm_routing_put_port_mixer),
  16239. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16241. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16242. msm_routing_put_port_mixer),
  16243. };
  16244. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16245. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16246. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16247. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16248. msm_routing_put_port_mixer),
  16249. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16250. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16251. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16252. msm_routing_put_port_mixer),
  16253. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16254. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16255. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16256. msm_routing_put_port_mixer),
  16257. };
  16258. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16259. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16260. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16261. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16262. msm_routing_put_port_mixer),
  16263. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16264. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16265. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16266. msm_routing_put_port_mixer),
  16267. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16268. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16269. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16270. msm_routing_put_port_mixer),
  16271. };
  16272. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16273. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16274. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16275. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16276. msm_routing_put_port_mixer),
  16277. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16278. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16279. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16280. msm_routing_put_port_mixer),
  16281. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16283. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16284. msm_routing_put_port_mixer),
  16285. };
  16286. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16287. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16288. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16289. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16290. msm_routing_put_port_mixer),
  16291. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16292. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16293. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16294. msm_routing_put_port_mixer),
  16295. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16296. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16297. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16298. msm_routing_put_port_mixer),
  16299. };
  16300. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16301. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16303. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16304. msm_routing_put_port_mixer),
  16305. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16306. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16307. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16308. msm_routing_put_port_mixer),
  16309. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16311. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16312. msm_routing_put_port_mixer),
  16313. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16314. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16315. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16316. msm_routing_put_port_mixer),
  16317. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16318. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16319. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16320. msm_routing_put_port_mixer),
  16321. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16323. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16324. msm_routing_put_port_mixer),
  16325. };
  16326. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16327. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16328. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16329. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16330. msm_routing_put_port_mixer),
  16331. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16333. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16334. msm_routing_put_port_mixer),
  16335. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16337. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16338. msm_routing_put_port_mixer),
  16339. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16340. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16341. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16342. msm_routing_put_port_mixer),
  16343. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16344. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16345. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16346. msm_routing_put_port_mixer),
  16347. };
  16348. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16349. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16351. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16352. msm_routing_put_port_mixer),
  16353. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16355. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16356. msm_routing_put_port_mixer),
  16357. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16358. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16359. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16363. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16364. msm_routing_put_port_mixer),
  16365. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16367. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16368. msm_routing_put_port_mixer),
  16369. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16371. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16372. msm_routing_put_port_mixer),
  16373. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16375. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16376. msm_routing_put_port_mixer),
  16377. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16378. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16379. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16383. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16384. msm_routing_put_port_mixer),
  16385. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16387. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16388. msm_routing_put_port_mixer),
  16389. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16392. msm_routing_put_port_mixer),
  16393. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16394. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16395. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16396. msm_routing_put_port_mixer),
  16397. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16398. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16399. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16400. msm_routing_put_port_mixer),
  16401. };
  16402. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16403. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16405. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16406. msm_routing_put_port_mixer),
  16407. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16409. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16410. msm_routing_put_port_mixer),
  16411. };
  16412. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16413. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16414. MSM_BACKEND_DAI_AFE_PCM_RX,
  16415. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16416. msm_routing_put_port_mixer),
  16417. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16418. MSM_BACKEND_DAI_AFE_PCM_RX,
  16419. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16420. msm_routing_put_port_mixer),
  16421. };
  16422. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16423. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_HDMI_RX,
  16425. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16426. msm_routing_put_port_mixer),
  16427. };
  16428. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16429. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16430. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16431. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16432. msm_routing_put_port_mixer),
  16433. };
  16434. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16435. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16437. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16438. msm_routing_put_port_mixer),
  16439. };
  16440. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16441. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16442. MSM_BACKEND_DAI_SEC_I2S_RX,
  16443. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16444. msm_routing_put_port_mixer),
  16445. };
  16446. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16447. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16448. MSM_BACKEND_DAI_MI2S_RX,
  16449. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16450. msm_routing_put_port_mixer),
  16451. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16452. MSM_BACKEND_DAI_MI2S_RX,
  16453. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16454. msm_routing_put_port_mixer),
  16455. };
  16456. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16457. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16459. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16460. msm_routing_put_port_mixer),
  16461. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16462. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16463. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16464. msm_routing_put_port_mixer),
  16465. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16466. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16467. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16468. msm_routing_put_port_mixer),
  16469. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16470. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16471. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16472. msm_routing_put_port_mixer),
  16473. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16474. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16475. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16476. msm_routing_put_port_mixer),
  16477. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16479. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16480. msm_routing_put_port_mixer),
  16481. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16483. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16487. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16488. msm_routing_put_port_mixer),
  16489. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16491. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16492. msm_routing_put_port_mixer),
  16493. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16495. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16496. msm_routing_put_port_mixer),
  16497. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16499. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16500. msm_routing_put_port_mixer),
  16501. };
  16502. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16503. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16504. MSM_BACKEND_DAI_USB_RX,
  16505. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16506. msm_routing_put_port_mixer),
  16507. };
  16508. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16509. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16511. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16512. msm_routing_put_port_mixer),
  16513. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16515. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16516. msm_routing_put_port_mixer),
  16517. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16519. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16520. msm_routing_put_port_mixer),
  16521. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16523. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16527. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16528. msm_routing_put_port_mixer),
  16529. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16531. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16532. msm_routing_put_port_mixer),
  16533. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16535. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16536. msm_routing_put_port_mixer),
  16537. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16539. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16540. msm_routing_put_port_mixer),
  16541. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16543. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16547. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16548. msm_routing_put_port_mixer),
  16549. };
  16550. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16551. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16552. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16553. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16554. msm_routing_put_port_mixer),
  16555. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16557. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16558. msm_routing_put_port_mixer),
  16559. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16561. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16562. msm_routing_put_port_mixer),
  16563. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16565. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16566. msm_routing_put_port_mixer),
  16567. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16568. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16569. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16570. msm_routing_put_port_mixer),
  16571. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16572. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16573. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16574. msm_routing_put_port_mixer),
  16575. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16577. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16578. msm_routing_put_port_mixer),
  16579. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16581. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16582. msm_routing_put_port_mixer),
  16583. };
  16584. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16585. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16587. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16588. msm_routing_put_port_mixer),
  16589. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16591. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16592. msm_routing_put_port_mixer),
  16593. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16595. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16596. msm_routing_put_port_mixer),
  16597. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16598. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16599. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16600. msm_routing_put_port_mixer),
  16601. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16602. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16603. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16604. msm_routing_put_port_mixer),
  16605. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16607. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16608. msm_routing_put_port_mixer),
  16609. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16611. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16612. msm_routing_put_port_mixer),
  16613. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16615. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16616. msm_routing_put_port_mixer),
  16617. };
  16618. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  16619. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16621. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16622. msm_routing_get_port_mixer,
  16623. msm_routing_put_port_mixer),
  16624. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16625. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16626. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16627. msm_routing_get_port_mixer,
  16628. msm_routing_put_port_mixer),
  16629. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16631. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16632. msm_routing_get_port_mixer,
  16633. msm_routing_put_port_mixer),
  16634. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16635. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16636. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16637. msm_routing_get_port_mixer,
  16638. msm_routing_put_port_mixer),
  16639. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16641. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16642. msm_routing_get_port_mixer,
  16643. msm_routing_put_port_mixer),
  16644. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16646. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16647. msm_routing_get_port_mixer,
  16648. msm_routing_put_port_mixer),
  16649. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16651. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16652. msm_routing_get_port_mixer,
  16653. msm_routing_put_port_mixer),
  16654. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16655. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16656. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16657. msm_routing_get_port_mixer,
  16658. msm_routing_put_port_mixer),
  16659. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16661. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16662. msm_routing_get_port_mixer,
  16663. msm_routing_put_port_mixer),
  16664. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16666. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16667. msm_routing_get_port_mixer,
  16668. msm_routing_put_port_mixer),
  16669. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16670. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16671. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16672. msm_routing_get_port_mixer,
  16673. msm_routing_put_port_mixer),
  16674. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16676. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16677. msm_routing_get_port_mixer,
  16678. msm_routing_put_port_mixer),
  16679. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16680. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16681. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16682. msm_routing_get_port_mixer,
  16683. msm_routing_put_port_mixer),
  16684. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16686. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16687. msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16691. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16692. msm_routing_get_port_mixer,
  16693. msm_routing_put_port_mixer),
  16694. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16696. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16697. msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16701. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16702. msm_routing_get_port_mixer,
  16703. msm_routing_put_port_mixer),
  16704. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16706. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16707. msm_routing_get_port_mixer,
  16708. msm_routing_put_port_mixer),
  16709. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16711. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16712. msm_routing_get_port_mixer,
  16713. msm_routing_put_port_mixer),
  16714. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16716. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16717. msm_routing_get_port_mixer,
  16718. msm_routing_put_port_mixer),
  16719. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16721. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16722. msm_routing_get_port_mixer,
  16723. msm_routing_put_port_mixer),
  16724. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16726. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16727. msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16731. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16732. msm_routing_get_port_mixer,
  16733. msm_routing_put_port_mixer),
  16734. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16736. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16737. msm_routing_get_port_mixer,
  16738. msm_routing_put_port_mixer),
  16739. };
  16740. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  16741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16742. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16744. msm_routing_get_port_mixer,
  16745. msm_routing_put_port_mixer),
  16746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16749. msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16754. msm_routing_get_port_mixer,
  16755. msm_routing_put_port_mixer),
  16756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16757. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16759. msm_routing_get_port_mixer,
  16760. msm_routing_put_port_mixer),
  16761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16764. msm_routing_get_port_mixer,
  16765. msm_routing_put_port_mixer),
  16766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16769. msm_routing_get_port_mixer,
  16770. msm_routing_put_port_mixer),
  16771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16774. msm_routing_get_port_mixer,
  16775. msm_routing_put_port_mixer),
  16776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16779. msm_routing_get_port_mixer,
  16780. msm_routing_put_port_mixer),
  16781. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16783. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16784. msm_routing_get_port_mixer,
  16785. msm_routing_put_port_mixer),
  16786. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16787. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16788. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16789. msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16793. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16794. msm_routing_get_port_mixer,
  16795. msm_routing_put_port_mixer),
  16796. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16797. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16798. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16799. msm_routing_get_port_mixer,
  16800. msm_routing_put_port_mixer),
  16801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16804. msm_routing_get_port_mixer,
  16805. msm_routing_put_port_mixer),
  16806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16807. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16809. msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16814. msm_routing_get_port_mixer,
  16815. msm_routing_put_port_mixer),
  16816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16819. msm_routing_get_port_mixer,
  16820. msm_routing_put_port_mixer),
  16821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16824. msm_routing_get_port_mixer,
  16825. msm_routing_put_port_mixer),
  16826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16827. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16829. msm_routing_get_port_mixer,
  16830. msm_routing_put_port_mixer),
  16831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16834. msm_routing_get_port_mixer,
  16835. msm_routing_put_port_mixer),
  16836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16839. msm_routing_get_port_mixer,
  16840. msm_routing_put_port_mixer),
  16841. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16843. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16844. msm_routing_get_port_mixer,
  16845. msm_routing_put_port_mixer),
  16846. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16848. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16849. msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16853. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16854. msm_routing_get_port_mixer,
  16855. msm_routing_put_port_mixer),
  16856. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16857. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16858. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16859. msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. };
  16862. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  16863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16865. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16866. msm_routing_get_port_mixer,
  16867. msm_routing_put_port_mixer),
  16868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16869. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16871. msm_routing_get_port_mixer,
  16872. msm_routing_put_port_mixer),
  16873. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16874. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16875. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16876. msm_routing_get_port_mixer,
  16877. msm_routing_put_port_mixer),
  16878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16881. msm_routing_get_port_mixer,
  16882. msm_routing_put_port_mixer),
  16883. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16886. msm_routing_get_port_mixer,
  16887. msm_routing_put_port_mixer),
  16888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16889. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16890. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16891. msm_routing_get_port_mixer,
  16892. msm_routing_put_port_mixer),
  16893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16896. msm_routing_get_port_mixer,
  16897. msm_routing_put_port_mixer),
  16898. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16901. msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16905. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  16906. msm_routing_get_port_mixer,
  16907. msm_routing_put_port_mixer),
  16908. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  16909. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16910. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  16911. msm_routing_get_port_mixer,
  16912. msm_routing_put_port_mixer),
  16913. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16915. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  16916. msm_routing_get_port_mixer,
  16917. msm_routing_put_port_mixer),
  16918. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  16919. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16920. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  16921. msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16925. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16926. msm_routing_get_port_mixer,
  16927. msm_routing_put_port_mixer),
  16928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16929. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16930. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16931. msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16935. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16936. msm_routing_get_port_mixer,
  16937. msm_routing_put_port_mixer),
  16938. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16940. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16941. msm_routing_get_port_mixer,
  16942. msm_routing_put_port_mixer),
  16943. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16944. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16945. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16946. msm_routing_get_port_mixer,
  16947. msm_routing_put_port_mixer),
  16948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16949. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16950. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16951. msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16955. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16956. msm_routing_get_port_mixer,
  16957. msm_routing_put_port_mixer),
  16958. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16960. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16961. msm_routing_get_port_mixer,
  16962. msm_routing_put_port_mixer),
  16963. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16965. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16966. msm_routing_get_port_mixer,
  16967. msm_routing_put_port_mixer),
  16968. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16970. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16971. msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16975. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16976. msm_routing_get_port_mixer,
  16977. msm_routing_put_port_mixer),
  16978. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16979. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16980. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16981. msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. };
  16984. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  16985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16987. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16988. msm_routing_get_port_mixer,
  16989. msm_routing_put_port_mixer),
  16990. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16991. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16992. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16993. msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16996. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16997. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16998. msm_routing_get_port_mixer,
  16999. msm_routing_put_port_mixer),
  17000. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17002. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17003. msm_routing_get_port_mixer,
  17004. msm_routing_put_port_mixer),
  17005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17007. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17008. msm_routing_get_port_mixer,
  17009. msm_routing_put_port_mixer),
  17010. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17011. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17012. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17013. msm_routing_get_port_mixer,
  17014. msm_routing_put_port_mixer),
  17015. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17017. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17018. msm_routing_get_port_mixer,
  17019. msm_routing_put_port_mixer),
  17020. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17022. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17023. msm_routing_get_port_mixer,
  17024. msm_routing_put_port_mixer),
  17025. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17026. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17027. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17028. msm_routing_get_port_mixer,
  17029. msm_routing_put_port_mixer),
  17030. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17031. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17032. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17033. msm_routing_get_port_mixer,
  17034. msm_routing_put_port_mixer),
  17035. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17037. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17038. msm_routing_get_port_mixer,
  17039. msm_routing_put_port_mixer),
  17040. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17041. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17042. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17043. msm_routing_get_port_mixer,
  17044. msm_routing_put_port_mixer),
  17045. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17046. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17047. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17048. msm_routing_get_port_mixer,
  17049. msm_routing_put_port_mixer),
  17050. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17051. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17052. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17053. msm_routing_get_port_mixer,
  17054. msm_routing_put_port_mixer),
  17055. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17057. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17058. msm_routing_get_port_mixer,
  17059. msm_routing_put_port_mixer),
  17060. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17062. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17063. msm_routing_get_port_mixer,
  17064. msm_routing_put_port_mixer),
  17065. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17066. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17067. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17068. msm_routing_get_port_mixer,
  17069. msm_routing_put_port_mixer),
  17070. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17071. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17072. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17073. msm_routing_get_port_mixer,
  17074. msm_routing_put_port_mixer),
  17075. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17077. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17078. msm_routing_get_port_mixer,
  17079. msm_routing_put_port_mixer),
  17080. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17082. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17083. msm_routing_get_port_mixer,
  17084. msm_routing_put_port_mixer),
  17085. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17086. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17087. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17088. msm_routing_get_port_mixer,
  17089. msm_routing_put_port_mixer),
  17090. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17092. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17093. msm_routing_get_port_mixer,
  17094. msm_routing_put_port_mixer),
  17095. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17097. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17098. msm_routing_get_port_mixer,
  17099. msm_routing_put_port_mixer),
  17100. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17101. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17102. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17103. msm_routing_get_port_mixer,
  17104. msm_routing_put_port_mixer),
  17105. };
  17106. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17107. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17109. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17110. msm_routing_get_port_mixer,
  17111. msm_routing_put_port_mixer),
  17112. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17113. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17114. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17115. msm_routing_get_port_mixer,
  17116. msm_routing_put_port_mixer),
  17117. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17118. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17119. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17120. msm_routing_get_port_mixer,
  17121. msm_routing_put_port_mixer),
  17122. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17124. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17125. msm_routing_get_port_mixer,
  17126. msm_routing_put_port_mixer),
  17127. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17128. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17129. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17130. msm_routing_get_port_mixer,
  17131. msm_routing_put_port_mixer),
  17132. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17133. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17134. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17135. msm_routing_get_port_mixer,
  17136. msm_routing_put_port_mixer),
  17137. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17140. msm_routing_get_port_mixer,
  17141. msm_routing_put_port_mixer),
  17142. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17143. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17144. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17145. msm_routing_get_port_mixer,
  17146. msm_routing_put_port_mixer),
  17147. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17148. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17149. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17150. msm_routing_get_port_mixer,
  17151. msm_routing_put_port_mixer),
  17152. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17153. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17154. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17155. msm_routing_get_port_mixer,
  17156. msm_routing_put_port_mixer),
  17157. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17159. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17160. msm_routing_get_port_mixer,
  17161. msm_routing_put_port_mixer),
  17162. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17163. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17164. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17165. msm_routing_get_port_mixer,
  17166. msm_routing_put_port_mixer),
  17167. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17168. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17169. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17170. msm_routing_get_port_mixer,
  17171. msm_routing_put_port_mixer),
  17172. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17173. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17174. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17175. msm_routing_get_port_mixer,
  17176. msm_routing_put_port_mixer),
  17177. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17178. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17179. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17180. msm_routing_get_port_mixer,
  17181. msm_routing_put_port_mixer),
  17182. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17183. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17184. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17185. msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17189. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17190. msm_routing_get_port_mixer,
  17191. msm_routing_put_port_mixer),
  17192. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17194. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17195. msm_routing_get_port_mixer,
  17196. msm_routing_put_port_mixer),
  17197. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17198. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17199. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17200. msm_routing_get_port_mixer,
  17201. msm_routing_put_port_mixer),
  17202. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17203. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17204. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17205. msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17209. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17210. msm_routing_get_port_mixer,
  17211. msm_routing_put_port_mixer),
  17212. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17214. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17215. msm_routing_get_port_mixer,
  17216. msm_routing_put_port_mixer),
  17217. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17218. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17219. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17220. msm_routing_get_port_mixer,
  17221. msm_routing_put_port_mixer),
  17222. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17223. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17224. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17225. msm_routing_get_port_mixer,
  17226. msm_routing_put_port_mixer),
  17227. };
  17228. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17229. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17230. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17231. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17232. msm_routing_get_port_mixer,
  17233. msm_routing_put_port_mixer),
  17234. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17235. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17236. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17237. msm_routing_get_port_mixer,
  17238. msm_routing_put_port_mixer),
  17239. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17240. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17241. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17242. msm_routing_get_port_mixer,
  17243. msm_routing_put_port_mixer),
  17244. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17245. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17246. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17247. msm_routing_get_port_mixer,
  17248. msm_routing_put_port_mixer),
  17249. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17250. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17251. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17252. msm_routing_get_port_mixer,
  17253. msm_routing_put_port_mixer),
  17254. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17255. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17256. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17257. msm_routing_get_port_mixer,
  17258. msm_routing_put_port_mixer),
  17259. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17261. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17262. msm_routing_get_port_mixer,
  17263. msm_routing_put_port_mixer),
  17264. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17265. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17266. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17267. msm_routing_get_port_mixer,
  17268. msm_routing_put_port_mixer),
  17269. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17270. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17271. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17272. msm_routing_get_port_mixer,
  17273. msm_routing_put_port_mixer),
  17274. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17276. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17277. msm_routing_get_port_mixer,
  17278. msm_routing_put_port_mixer),
  17279. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17281. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17282. msm_routing_get_port_mixer,
  17283. msm_routing_put_port_mixer),
  17284. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17286. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17287. msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17291. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17292. msm_routing_get_port_mixer,
  17293. msm_routing_put_port_mixer),
  17294. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17295. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17296. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17297. msm_routing_get_port_mixer,
  17298. msm_routing_put_port_mixer),
  17299. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17301. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17302. msm_routing_get_port_mixer,
  17303. msm_routing_put_port_mixer),
  17304. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17305. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17306. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17307. msm_routing_get_port_mixer,
  17308. msm_routing_put_port_mixer),
  17309. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17311. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17312. msm_routing_get_port_mixer,
  17313. msm_routing_put_port_mixer),
  17314. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17316. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17317. msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17321. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17322. msm_routing_get_port_mixer,
  17323. msm_routing_put_port_mixer),
  17324. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17326. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17327. msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17331. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17332. msm_routing_get_port_mixer,
  17333. msm_routing_put_port_mixer),
  17334. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17335. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17336. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17337. msm_routing_get_port_mixer,
  17338. msm_routing_put_port_mixer),
  17339. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17340. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17341. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17342. msm_routing_get_port_mixer,
  17343. msm_routing_put_port_mixer),
  17344. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17345. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17346. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17347. msm_routing_get_port_mixer,
  17348. msm_routing_put_port_mixer),
  17349. };
  17350. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17351. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17352. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17353. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17354. msm_routing_get_port_mixer,
  17355. msm_routing_put_port_mixer),
  17356. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17357. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17358. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17359. msm_routing_get_port_mixer,
  17360. msm_routing_put_port_mixer),
  17361. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17363. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17364. msm_routing_get_port_mixer,
  17365. msm_routing_put_port_mixer),
  17366. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17368. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17369. msm_routing_get_port_mixer,
  17370. msm_routing_put_port_mixer),
  17371. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17372. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17373. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17374. msm_routing_get_port_mixer,
  17375. msm_routing_put_port_mixer),
  17376. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17377. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17378. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17379. msm_routing_get_port_mixer,
  17380. msm_routing_put_port_mixer),
  17381. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17382. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17383. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17384. msm_routing_get_port_mixer,
  17385. msm_routing_put_port_mixer),
  17386. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17387. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17388. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17389. msm_routing_get_port_mixer,
  17390. msm_routing_put_port_mixer),
  17391. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17392. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17393. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17394. msm_routing_get_port_mixer,
  17395. msm_routing_put_port_mixer),
  17396. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17397. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17398. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17399. msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17402. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17403. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17404. msm_routing_get_port_mixer,
  17405. msm_routing_put_port_mixer),
  17406. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17407. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17408. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17409. msm_routing_get_port_mixer,
  17410. msm_routing_put_port_mixer),
  17411. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17413. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17414. msm_routing_get_port_mixer,
  17415. msm_routing_put_port_mixer),
  17416. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17418. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17419. msm_routing_get_port_mixer,
  17420. msm_routing_put_port_mixer),
  17421. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17422. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17423. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17424. msm_routing_get_port_mixer,
  17425. msm_routing_put_port_mixer),
  17426. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17427. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17428. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17429. msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17433. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17434. msm_routing_get_port_mixer,
  17435. msm_routing_put_port_mixer),
  17436. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17437. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17438. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17439. msm_routing_get_port_mixer,
  17440. msm_routing_put_port_mixer),
  17441. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17442. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17443. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17444. msm_routing_get_port_mixer,
  17445. msm_routing_put_port_mixer),
  17446. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17447. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17448. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17449. msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17453. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17454. msm_routing_get_port_mixer,
  17455. msm_routing_put_port_mixer),
  17456. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17457. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17458. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17459. msm_routing_get_port_mixer,
  17460. msm_routing_put_port_mixer),
  17461. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17462. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17463. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17464. msm_routing_get_port_mixer,
  17465. msm_routing_put_port_mixer),
  17466. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17467. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17468. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17469. msm_routing_get_port_mixer,
  17470. msm_routing_put_port_mixer),
  17471. };
  17472. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17473. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17475. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17476. msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17480. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17481. msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17485. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17486. msm_routing_get_port_mixer,
  17487. msm_routing_put_port_mixer),
  17488. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17489. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17490. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17491. msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17495. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17496. msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17500. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17501. msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17505. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17506. msm_routing_get_port_mixer,
  17507. msm_routing_put_port_mixer),
  17508. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17509. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17510. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17511. msm_routing_get_port_mixer,
  17512. msm_routing_put_port_mixer),
  17513. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17515. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17516. msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17520. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17521. msm_routing_get_port_mixer,
  17522. msm_routing_put_port_mixer),
  17523. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17524. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17525. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17526. msm_routing_get_port_mixer,
  17527. msm_routing_put_port_mixer),
  17528. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17529. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17530. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17531. msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17535. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17536. msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17540. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17541. msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17545. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17546. msm_routing_get_port_mixer,
  17547. msm_routing_put_port_mixer),
  17548. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17550. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17551. msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17555. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17556. msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17559. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17560. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17561. msm_routing_get_port_mixer,
  17562. msm_routing_put_port_mixer),
  17563. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17565. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17566. msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17570. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17571. msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17574. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17575. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17576. msm_routing_get_port_mixer,
  17577. msm_routing_put_port_mixer),
  17578. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17579. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17580. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17581. msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17585. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17586. msm_routing_get_port_mixer,
  17587. msm_routing_put_port_mixer),
  17588. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17589. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17590. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17591. msm_routing_get_port_mixer,
  17592. msm_routing_put_port_mixer),
  17593. };
  17594. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17595. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  17597. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  17598. msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. };
  17601. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  17602. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17604. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17605. msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17609. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17610. msm_routing_get_port_mixer,
  17611. msm_routing_put_port_mixer),
  17612. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17614. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17615. msm_routing_get_port_mixer,
  17616. msm_routing_put_port_mixer),
  17617. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17618. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17619. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17620. msm_routing_get_port_mixer,
  17621. msm_routing_put_port_mixer),
  17622. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17623. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17624. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17625. msm_routing_get_port_mixer,
  17626. msm_routing_put_port_mixer),
  17627. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17628. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17629. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17630. msm_routing_get_port_mixer,
  17631. msm_routing_put_port_mixer),
  17632. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17633. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17634. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17635. msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17639. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17640. msm_routing_get_port_mixer,
  17641. msm_routing_put_port_mixer),
  17642. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17643. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17644. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17645. msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17648. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17649. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17650. msm_routing_get_port_mixer,
  17651. msm_routing_put_port_mixer),
  17652. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17653. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17654. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17655. msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17658. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17659. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17660. msm_routing_get_port_mixer,
  17661. msm_routing_put_port_mixer),
  17662. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17663. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17664. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17665. msm_routing_get_port_mixer,
  17666. msm_routing_put_port_mixer),
  17667. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17668. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17669. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17670. msm_routing_get_port_mixer,
  17671. msm_routing_put_port_mixer),
  17672. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17674. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17675. msm_routing_get_port_mixer,
  17676. msm_routing_put_port_mixer),
  17677. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17678. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17679. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17680. msm_routing_get_port_mixer,
  17681. msm_routing_put_port_mixer),
  17682. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17683. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17684. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17685. msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17689. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17690. msm_routing_get_port_mixer,
  17691. msm_routing_put_port_mixer),
  17692. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17693. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17694. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17695. msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17699. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17700. msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17704. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17705. msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17709. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17710. msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17714. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17715. msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17719. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17720. msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. };
  17723. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  17724. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17725. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17726. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17727. msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17731. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17732. msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17735. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17736. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17737. msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17740. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17741. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17742. msm_routing_get_port_mixer,
  17743. msm_routing_put_port_mixer),
  17744. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17745. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17746. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17747. msm_routing_get_port_mixer,
  17748. msm_routing_put_port_mixer),
  17749. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17750. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17751. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17752. msm_routing_get_port_mixer,
  17753. msm_routing_put_port_mixer),
  17754. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17755. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17756. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17757. msm_routing_get_port_mixer,
  17758. msm_routing_put_port_mixer),
  17759. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17760. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17761. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17762. msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17766. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17767. msm_routing_get_port_mixer,
  17768. msm_routing_put_port_mixer),
  17769. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17770. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17771. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17772. msm_routing_get_port_mixer,
  17773. msm_routing_put_port_mixer),
  17774. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17775. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17776. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17777. msm_routing_get_port_mixer,
  17778. msm_routing_put_port_mixer),
  17779. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17780. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17781. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17782. msm_routing_get_port_mixer,
  17783. msm_routing_put_port_mixer),
  17784. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17785. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17786. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17787. msm_routing_get_port_mixer,
  17788. msm_routing_put_port_mixer),
  17789. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17791. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17792. msm_routing_get_port_mixer,
  17793. msm_routing_put_port_mixer),
  17794. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17795. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17796. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17797. msm_routing_get_port_mixer,
  17798. msm_routing_put_port_mixer),
  17799. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17800. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17801. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17802. msm_routing_get_port_mixer,
  17803. msm_routing_put_port_mixer),
  17804. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17805. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17806. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17807. msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17811. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17812. msm_routing_get_port_mixer,
  17813. msm_routing_put_port_mixer),
  17814. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17816. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17817. msm_routing_get_port_mixer,
  17818. msm_routing_put_port_mixer),
  17819. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17821. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17822. msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17826. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17827. msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17831. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17832. msm_routing_get_port_mixer,
  17833. msm_routing_put_port_mixer),
  17834. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17835. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17836. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17837. msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  17841. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17842. msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. };
  17845. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  17846. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17847. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17848. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17849. msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17854. msm_routing_get_port_mixer,
  17855. msm_routing_put_port_mixer),
  17856. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17858. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17859. msm_routing_get_port_mixer,
  17860. msm_routing_put_port_mixer),
  17861. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17862. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17863. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17864. msm_routing_get_port_mixer,
  17865. msm_routing_put_port_mixer),
  17866. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17867. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17868. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17869. msm_routing_get_port_mixer,
  17870. msm_routing_put_port_mixer),
  17871. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17872. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17873. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17874. msm_routing_get_port_mixer,
  17875. msm_routing_put_port_mixer),
  17876. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17877. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17878. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17879. msm_routing_get_port_mixer,
  17880. msm_routing_put_port_mixer),
  17881. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17882. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17883. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17884. msm_routing_get_port_mixer,
  17885. msm_routing_put_port_mixer),
  17886. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17887. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17888. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17889. msm_routing_get_port_mixer,
  17890. msm_routing_put_port_mixer),
  17891. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17892. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17893. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17894. msm_routing_get_port_mixer,
  17895. msm_routing_put_port_mixer),
  17896. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17897. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17898. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17899. msm_routing_get_port_mixer,
  17900. msm_routing_put_port_mixer),
  17901. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17902. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17903. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17904. msm_routing_get_port_mixer,
  17905. msm_routing_put_port_mixer),
  17906. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17907. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17908. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17909. msm_routing_get_port_mixer,
  17910. msm_routing_put_port_mixer),
  17911. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17912. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17913. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17914. msm_routing_get_port_mixer,
  17915. msm_routing_put_port_mixer),
  17916. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17917. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17918. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17919. msm_routing_get_port_mixer,
  17920. msm_routing_put_port_mixer),
  17921. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17923. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17924. msm_routing_get_port_mixer,
  17925. msm_routing_put_port_mixer),
  17926. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17928. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17929. msm_routing_get_port_mixer,
  17930. msm_routing_put_port_mixer),
  17931. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17932. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17933. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17934. msm_routing_get_port_mixer,
  17935. msm_routing_put_port_mixer),
  17936. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17937. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17938. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17939. msm_routing_get_port_mixer,
  17940. msm_routing_put_port_mixer),
  17941. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17943. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17944. msm_routing_get_port_mixer,
  17945. msm_routing_put_port_mixer),
  17946. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17948. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17949. msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17953. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17954. msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17958. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17959. msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  17963. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17964. msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. };
  17967. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  17968. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17969. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17970. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17971. msm_routing_get_port_mixer,
  17972. msm_routing_put_port_mixer),
  17973. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17975. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17976. msm_routing_get_port_mixer,
  17977. msm_routing_put_port_mixer),
  17978. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17979. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17980. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17981. msm_routing_get_port_mixer,
  17982. msm_routing_put_port_mixer),
  17983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17984. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17986. msm_routing_get_port_mixer,
  17987. msm_routing_put_port_mixer),
  17988. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17989. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17990. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17991. msm_routing_get_port_mixer,
  17992. msm_routing_put_port_mixer),
  17993. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  17995. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17996. msm_routing_get_port_mixer,
  17997. msm_routing_put_port_mixer),
  17998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18000. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18001. msm_routing_get_port_mixer,
  18002. msm_routing_put_port_mixer),
  18003. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18005. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18006. msm_routing_get_port_mixer,
  18007. msm_routing_put_port_mixer),
  18008. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18009. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18010. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18011. msm_routing_get_port_mixer,
  18012. msm_routing_put_port_mixer),
  18013. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18015. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18016. msm_routing_get_port_mixer,
  18017. msm_routing_put_port_mixer),
  18018. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18020. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18021. msm_routing_get_port_mixer,
  18022. msm_routing_put_port_mixer),
  18023. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18025. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18026. msm_routing_get_port_mixer,
  18027. msm_routing_put_port_mixer),
  18028. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18029. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18030. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18031. msm_routing_get_port_mixer,
  18032. msm_routing_put_port_mixer),
  18033. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18034. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18035. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18036. msm_routing_get_port_mixer,
  18037. msm_routing_put_port_mixer),
  18038. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18039. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18040. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18041. msm_routing_get_port_mixer,
  18042. msm_routing_put_port_mixer),
  18043. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18044. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18045. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18046. msm_routing_get_port_mixer,
  18047. msm_routing_put_port_mixer),
  18048. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18049. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18050. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18051. msm_routing_get_port_mixer,
  18052. msm_routing_put_port_mixer),
  18053. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18054. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18055. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18056. msm_routing_get_port_mixer,
  18057. msm_routing_put_port_mixer),
  18058. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18059. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18060. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18061. msm_routing_get_port_mixer,
  18062. msm_routing_put_port_mixer),
  18063. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18064. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18065. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18066. msm_routing_get_port_mixer,
  18067. msm_routing_put_port_mixer),
  18068. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18069. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18070. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18071. msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18074. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18075. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18076. msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18079. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18080. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18081. msm_routing_get_port_mixer,
  18082. msm_routing_put_port_mixer),
  18083. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18084. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18085. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18086. msm_routing_get_port_mixer,
  18087. msm_routing_put_port_mixer),
  18088. };
  18089. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18090. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18091. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18092. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18093. msm_routing_get_port_mixer,
  18094. msm_routing_put_port_mixer),
  18095. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18096. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18097. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18098. msm_routing_get_port_mixer,
  18099. msm_routing_put_port_mixer),
  18100. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18101. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18102. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18103. msm_routing_get_port_mixer,
  18104. msm_routing_put_port_mixer),
  18105. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18106. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18107. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18108. msm_routing_get_port_mixer,
  18109. msm_routing_put_port_mixer),
  18110. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18111. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18112. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18113. msm_routing_get_port_mixer,
  18114. msm_routing_put_port_mixer),
  18115. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18116. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18117. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18118. msm_routing_get_port_mixer,
  18119. msm_routing_put_port_mixer),
  18120. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18121. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18122. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18123. msm_routing_get_port_mixer,
  18124. msm_routing_put_port_mixer),
  18125. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18126. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18127. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18128. msm_routing_get_port_mixer,
  18129. msm_routing_put_port_mixer),
  18130. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18131. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18132. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18133. msm_routing_get_port_mixer,
  18134. msm_routing_put_port_mixer),
  18135. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18136. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18137. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18138. msm_routing_get_port_mixer,
  18139. msm_routing_put_port_mixer),
  18140. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18141. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18142. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18143. msm_routing_get_port_mixer,
  18144. msm_routing_put_port_mixer),
  18145. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18146. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18147. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18148. msm_routing_get_port_mixer,
  18149. msm_routing_put_port_mixer),
  18150. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18151. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18152. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18153. msm_routing_get_port_mixer,
  18154. msm_routing_put_port_mixer),
  18155. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18156. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18157. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18158. msm_routing_get_port_mixer,
  18159. msm_routing_put_port_mixer),
  18160. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18161. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18162. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18163. msm_routing_get_port_mixer,
  18164. msm_routing_put_port_mixer),
  18165. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18166. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18167. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18168. msm_routing_get_port_mixer,
  18169. msm_routing_put_port_mixer),
  18170. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18171. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18172. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18173. msm_routing_get_port_mixer,
  18174. msm_routing_put_port_mixer),
  18175. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18176. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18177. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18178. msm_routing_get_port_mixer,
  18179. msm_routing_put_port_mixer),
  18180. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18181. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18182. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18183. msm_routing_get_port_mixer,
  18184. msm_routing_put_port_mixer),
  18185. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18186. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18187. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18188. msm_routing_get_port_mixer,
  18189. msm_routing_put_port_mixer),
  18190. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18191. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18192. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18193. msm_routing_get_port_mixer,
  18194. msm_routing_put_port_mixer),
  18195. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18196. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18197. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18198. msm_routing_get_port_mixer,
  18199. msm_routing_put_port_mixer),
  18200. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18201. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18202. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18203. msm_routing_get_port_mixer,
  18204. msm_routing_put_port_mixer),
  18205. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18206. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18207. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18208. msm_routing_get_port_mixer,
  18209. msm_routing_put_port_mixer),
  18210. };
  18211. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18212. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18213. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18214. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18215. msm_routing_get_port_mixer,
  18216. msm_routing_put_port_mixer),
  18217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18218. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18220. msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18223. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18224. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18225. msm_routing_get_port_mixer,
  18226. msm_routing_put_port_mixer),
  18227. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18228. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18229. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18230. msm_routing_get_port_mixer,
  18231. msm_routing_put_port_mixer),
  18232. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18233. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18234. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18235. msm_routing_get_port_mixer,
  18236. msm_routing_put_port_mixer),
  18237. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18238. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18239. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18240. msm_routing_get_port_mixer,
  18241. msm_routing_put_port_mixer),
  18242. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18243. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18244. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18245. msm_routing_get_port_mixer,
  18246. msm_routing_put_port_mixer),
  18247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18248. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18249. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18250. msm_routing_get_port_mixer,
  18251. msm_routing_put_port_mixer),
  18252. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18253. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18254. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18255. msm_routing_get_port_mixer,
  18256. msm_routing_put_port_mixer),
  18257. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18258. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18259. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18260. msm_routing_get_port_mixer,
  18261. msm_routing_put_port_mixer),
  18262. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18263. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18264. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18265. msm_routing_get_port_mixer,
  18266. msm_routing_put_port_mixer),
  18267. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18268. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18269. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18270. msm_routing_get_port_mixer,
  18271. msm_routing_put_port_mixer),
  18272. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18273. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18274. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18275. msm_routing_get_port_mixer,
  18276. msm_routing_put_port_mixer),
  18277. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18278. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18279. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18280. msm_routing_get_port_mixer,
  18281. msm_routing_put_port_mixer),
  18282. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18283. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18284. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18285. msm_routing_get_port_mixer,
  18286. msm_routing_put_port_mixer),
  18287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18288. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18289. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18290. msm_routing_get_port_mixer,
  18291. msm_routing_put_port_mixer),
  18292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18293. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18294. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18295. msm_routing_get_port_mixer,
  18296. msm_routing_put_port_mixer),
  18297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18298. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18299. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18300. msm_routing_get_port_mixer,
  18301. msm_routing_put_port_mixer),
  18302. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18303. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18304. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18305. msm_routing_get_port_mixer,
  18306. msm_routing_put_port_mixer),
  18307. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18308. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18309. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18310. msm_routing_get_port_mixer,
  18311. msm_routing_put_port_mixer),
  18312. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18314. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18315. msm_routing_get_port_mixer,
  18316. msm_routing_put_port_mixer),
  18317. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18318. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18319. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18320. msm_routing_get_port_mixer,
  18321. msm_routing_put_port_mixer),
  18322. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18323. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18324. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18325. msm_routing_get_port_mixer,
  18326. msm_routing_put_port_mixer),
  18327. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18328. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18329. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18330. msm_routing_get_port_mixer,
  18331. msm_routing_put_port_mixer),
  18332. };
  18333. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18334. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18336. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18337. msm_routing_get_port_mixer,
  18338. msm_routing_put_port_mixer),
  18339. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18341. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18342. msm_routing_get_port_mixer,
  18343. msm_routing_put_port_mixer),
  18344. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18345. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18346. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18347. msm_routing_get_port_mixer,
  18348. msm_routing_put_port_mixer),
  18349. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18350. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18351. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18352. msm_routing_get_port_mixer,
  18353. msm_routing_put_port_mixer),
  18354. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18355. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18356. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18357. msm_routing_get_port_mixer,
  18358. msm_routing_put_port_mixer),
  18359. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18360. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18361. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18362. msm_routing_get_port_mixer,
  18363. msm_routing_put_port_mixer),
  18364. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18365. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18366. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18367. msm_routing_get_port_mixer,
  18368. msm_routing_put_port_mixer),
  18369. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18370. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18371. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18372. msm_routing_get_port_mixer,
  18373. msm_routing_put_port_mixer),
  18374. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18375. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18376. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18377. msm_routing_get_port_mixer,
  18378. msm_routing_put_port_mixer),
  18379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18380. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18381. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18382. msm_routing_get_port_mixer,
  18383. msm_routing_put_port_mixer),
  18384. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18386. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18387. msm_routing_get_port_mixer,
  18388. msm_routing_put_port_mixer),
  18389. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18390. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18391. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18392. msm_routing_get_port_mixer,
  18393. msm_routing_put_port_mixer),
  18394. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18395. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18396. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18397. msm_routing_get_port_mixer,
  18398. msm_routing_put_port_mixer),
  18399. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18400. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18401. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18402. msm_routing_get_port_mixer,
  18403. msm_routing_put_port_mixer),
  18404. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18405. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18406. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18407. msm_routing_get_port_mixer,
  18408. msm_routing_put_port_mixer),
  18409. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18410. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18411. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18412. msm_routing_get_port_mixer,
  18413. msm_routing_put_port_mixer),
  18414. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18415. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18416. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18417. msm_routing_get_port_mixer,
  18418. msm_routing_put_port_mixer),
  18419. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18420. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18421. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18422. msm_routing_get_port_mixer,
  18423. msm_routing_put_port_mixer),
  18424. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18425. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18426. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18427. msm_routing_get_port_mixer,
  18428. msm_routing_put_port_mixer),
  18429. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18430. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18431. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18432. msm_routing_get_port_mixer,
  18433. msm_routing_put_port_mixer),
  18434. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18435. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18436. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18437. msm_routing_get_port_mixer,
  18438. msm_routing_put_port_mixer),
  18439. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18440. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18441. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18442. msm_routing_get_port_mixer,
  18443. msm_routing_put_port_mixer),
  18444. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18445. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18446. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18447. msm_routing_get_port_mixer,
  18448. msm_routing_put_port_mixer),
  18449. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18450. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18451. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18452. msm_routing_get_port_mixer,
  18453. msm_routing_put_port_mixer),
  18454. };
  18455. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18456. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18458. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18463. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18473. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18474. msm_routing_get_port_mixer,
  18475. msm_routing_put_port_mixer),
  18476. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18478. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18479. msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18483. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18484. msm_routing_get_port_mixer,
  18485. msm_routing_put_port_mixer),
  18486. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18488. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18489. msm_routing_get_port_mixer,
  18490. msm_routing_put_port_mixer),
  18491. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18492. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18493. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18494. msm_routing_get_port_mixer,
  18495. msm_routing_put_port_mixer),
  18496. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18497. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18498. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18499. msm_routing_get_port_mixer,
  18500. msm_routing_put_port_mixer),
  18501. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18502. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18503. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18504. msm_routing_get_port_mixer,
  18505. msm_routing_put_port_mixer),
  18506. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18507. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18508. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18509. msm_routing_get_port_mixer,
  18510. msm_routing_put_port_mixer),
  18511. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18512. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18513. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18514. msm_routing_get_port_mixer,
  18515. msm_routing_put_port_mixer),
  18516. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18517. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18518. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18519. msm_routing_get_port_mixer,
  18520. msm_routing_put_port_mixer),
  18521. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18522. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18523. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18524. msm_routing_get_port_mixer,
  18525. msm_routing_put_port_mixer),
  18526. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18527. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18528. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18529. msm_routing_get_port_mixer,
  18530. msm_routing_put_port_mixer),
  18531. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18532. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18533. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18534. msm_routing_get_port_mixer,
  18535. msm_routing_put_port_mixer),
  18536. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18537. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18538. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18539. msm_routing_get_port_mixer,
  18540. msm_routing_put_port_mixer),
  18541. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18542. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18543. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18544. msm_routing_get_port_mixer,
  18545. msm_routing_put_port_mixer),
  18546. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18547. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18548. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18549. msm_routing_get_port_mixer,
  18550. msm_routing_put_port_mixer),
  18551. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18552. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18553. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18554. msm_routing_get_port_mixer,
  18555. msm_routing_put_port_mixer),
  18556. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18557. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18558. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18559. msm_routing_get_port_mixer,
  18560. msm_routing_put_port_mixer),
  18561. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18562. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18563. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18564. msm_routing_get_port_mixer,
  18565. msm_routing_put_port_mixer),
  18566. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18567. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18568. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18569. msm_routing_get_port_mixer,
  18570. msm_routing_put_port_mixer),
  18571. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18572. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18573. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18574. msm_routing_get_port_mixer,
  18575. msm_routing_put_port_mixer),
  18576. };
  18577. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18578. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18580. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. };
  18584. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18585. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18586. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18587. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18588. msm_routing_get_port_mixer,
  18589. msm_routing_put_port_mixer),
  18590. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18591. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18592. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18593. msm_routing_get_port_mixer,
  18594. msm_routing_put_port_mixer),
  18595. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18596. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18597. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18598. msm_routing_get_port_mixer,
  18599. msm_routing_put_port_mixer),
  18600. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18601. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18602. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18603. msm_routing_get_port_mixer,
  18604. msm_routing_put_port_mixer),
  18605. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18606. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18607. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18608. msm_routing_get_port_mixer,
  18609. msm_routing_put_port_mixer),
  18610. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18611. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18612. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18613. msm_routing_get_port_mixer,
  18614. msm_routing_put_port_mixer),
  18615. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18616. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18617. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18618. msm_routing_get_port_mixer,
  18619. msm_routing_put_port_mixer),
  18620. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18621. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18622. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18623. msm_routing_get_port_mixer,
  18624. msm_routing_put_port_mixer),
  18625. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18627. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18628. msm_routing_get_port_mixer,
  18629. msm_routing_put_port_mixer),
  18630. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18632. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18633. msm_routing_get_port_mixer,
  18634. msm_routing_put_port_mixer),
  18635. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18636. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18637. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18638. msm_routing_get_port_mixer,
  18639. msm_routing_put_port_mixer),
  18640. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18642. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18643. msm_routing_get_port_mixer,
  18644. msm_routing_put_port_mixer),
  18645. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18647. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18648. msm_routing_get_port_mixer,
  18649. msm_routing_put_port_mixer),
  18650. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18652. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18653. msm_routing_get_port_mixer,
  18654. msm_routing_put_port_mixer),
  18655. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18657. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18658. msm_routing_get_port_mixer,
  18659. msm_routing_put_port_mixer),
  18660. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18662. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18663. msm_routing_get_port_mixer,
  18664. msm_routing_put_port_mixer),
  18665. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18667. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18668. msm_routing_get_port_mixer,
  18669. msm_routing_put_port_mixer),
  18670. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18672. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18673. msm_routing_get_port_mixer,
  18674. msm_routing_put_port_mixer),
  18675. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18677. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18678. msm_routing_get_port_mixer,
  18679. msm_routing_put_port_mixer),
  18680. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18682. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18687. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18692. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18697. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18702. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. };
  18706. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  18707. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18708. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18709. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18710. msm_routing_get_port_mixer,
  18711. msm_routing_put_port_mixer),
  18712. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18713. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18714. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18715. msm_routing_get_port_mixer,
  18716. msm_routing_put_port_mixer),
  18717. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18719. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18720. msm_routing_get_port_mixer,
  18721. msm_routing_put_port_mixer),
  18722. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18723. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18724. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18725. msm_routing_get_port_mixer,
  18726. msm_routing_put_port_mixer),
  18727. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18728. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18729. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18730. msm_routing_get_port_mixer,
  18731. msm_routing_put_port_mixer),
  18732. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18733. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18734. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18735. msm_routing_get_port_mixer,
  18736. msm_routing_put_port_mixer),
  18737. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18738. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18739. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18740. msm_routing_get_port_mixer,
  18741. msm_routing_put_port_mixer),
  18742. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18743. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18744. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18745. msm_routing_get_port_mixer,
  18746. msm_routing_put_port_mixer),
  18747. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18748. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18749. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18750. msm_routing_get_port_mixer,
  18751. msm_routing_put_port_mixer),
  18752. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18754. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18755. msm_routing_get_port_mixer,
  18756. msm_routing_put_port_mixer),
  18757. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18759. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18760. msm_routing_get_port_mixer,
  18761. msm_routing_put_port_mixer),
  18762. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18764. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18765. msm_routing_get_port_mixer,
  18766. msm_routing_put_port_mixer),
  18767. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18768. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18769. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18770. msm_routing_get_port_mixer,
  18771. msm_routing_put_port_mixer),
  18772. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18774. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18775. msm_routing_get_port_mixer,
  18776. msm_routing_put_port_mixer),
  18777. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18779. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18780. msm_routing_get_port_mixer,
  18781. msm_routing_put_port_mixer),
  18782. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18784. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18785. msm_routing_get_port_mixer,
  18786. msm_routing_put_port_mixer),
  18787. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18788. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18789. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18790. msm_routing_get_port_mixer,
  18791. msm_routing_put_port_mixer),
  18792. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18793. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18794. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18795. msm_routing_get_port_mixer,
  18796. msm_routing_put_port_mixer),
  18797. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18799. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18800. msm_routing_get_port_mixer,
  18801. msm_routing_put_port_mixer),
  18802. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18804. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18809. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18814. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18819. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  18824. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. };
  18828. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  18829. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18830. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18831. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18832. msm_routing_get_port_mixer,
  18833. msm_routing_put_port_mixer),
  18834. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18835. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18836. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18837. msm_routing_get_port_mixer,
  18838. msm_routing_put_port_mixer),
  18839. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18840. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18841. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18842. msm_routing_get_port_mixer,
  18843. msm_routing_put_port_mixer),
  18844. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18845. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18846. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18847. msm_routing_get_port_mixer,
  18848. msm_routing_put_port_mixer),
  18849. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18850. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18851. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18852. msm_routing_get_port_mixer,
  18853. msm_routing_put_port_mixer),
  18854. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18855. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18856. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18857. msm_routing_get_port_mixer,
  18858. msm_routing_put_port_mixer),
  18859. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18860. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18861. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18862. msm_routing_get_port_mixer,
  18863. msm_routing_put_port_mixer),
  18864. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18865. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18866. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18867. msm_routing_get_port_mixer,
  18868. msm_routing_put_port_mixer),
  18869. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18870. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18871. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18872. msm_routing_get_port_mixer,
  18873. msm_routing_put_port_mixer),
  18874. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18875. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18876. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18877. msm_routing_get_port_mixer,
  18878. msm_routing_put_port_mixer),
  18879. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18880. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18881. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18882. msm_routing_get_port_mixer,
  18883. msm_routing_put_port_mixer),
  18884. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18885. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18886. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18887. msm_routing_get_port_mixer,
  18888. msm_routing_put_port_mixer),
  18889. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18890. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18891. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18892. msm_routing_get_port_mixer,
  18893. msm_routing_put_port_mixer),
  18894. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18895. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18896. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18897. msm_routing_get_port_mixer,
  18898. msm_routing_put_port_mixer),
  18899. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18900. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18901. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18902. msm_routing_get_port_mixer,
  18903. msm_routing_put_port_mixer),
  18904. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18905. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18906. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18907. msm_routing_get_port_mixer,
  18908. msm_routing_put_port_mixer),
  18909. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18910. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18911. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18912. msm_routing_get_port_mixer,
  18913. msm_routing_put_port_mixer),
  18914. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18916. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18917. msm_routing_get_port_mixer,
  18918. msm_routing_put_port_mixer),
  18919. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18920. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18921. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18922. msm_routing_get_port_mixer,
  18923. msm_routing_put_port_mixer),
  18924. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18925. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18926. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18927. msm_routing_get_port_mixer,
  18928. msm_routing_put_port_mixer),
  18929. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18931. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18936. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18941. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  18946. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. };
  18950. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  18951. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18952. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18953. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18954. msm_routing_get_port_mixer,
  18955. msm_routing_put_port_mixer),
  18956. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18957. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18958. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18959. msm_routing_get_port_mixer,
  18960. msm_routing_put_port_mixer),
  18961. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18962. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18963. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18964. msm_routing_get_port_mixer,
  18965. msm_routing_put_port_mixer),
  18966. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18967. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18968. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18969. msm_routing_get_port_mixer,
  18970. msm_routing_put_port_mixer),
  18971. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18972. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18973. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18974. msm_routing_get_port_mixer,
  18975. msm_routing_put_port_mixer),
  18976. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18977. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18978. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18979. msm_routing_get_port_mixer,
  18980. msm_routing_put_port_mixer),
  18981. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18982. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18983. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18984. msm_routing_get_port_mixer,
  18985. msm_routing_put_port_mixer),
  18986. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18987. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18988. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18989. msm_routing_get_port_mixer,
  18990. msm_routing_put_port_mixer),
  18991. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18992. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18993. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18994. msm_routing_get_port_mixer,
  18995. msm_routing_put_port_mixer),
  18996. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18997. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  18998. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18999. msm_routing_get_port_mixer,
  19000. msm_routing_put_port_mixer),
  19001. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19002. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19003. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19004. msm_routing_get_port_mixer,
  19005. msm_routing_put_port_mixer),
  19006. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19007. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19008. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19009. msm_routing_get_port_mixer,
  19010. msm_routing_put_port_mixer),
  19011. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19012. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19013. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19014. msm_routing_get_port_mixer,
  19015. msm_routing_put_port_mixer),
  19016. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19017. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19018. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19019. msm_routing_get_port_mixer,
  19020. msm_routing_put_port_mixer),
  19021. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19022. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19023. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19024. msm_routing_get_port_mixer,
  19025. msm_routing_put_port_mixer),
  19026. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19027. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19028. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19029. msm_routing_get_port_mixer,
  19030. msm_routing_put_port_mixer),
  19031. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19032. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19033. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19034. msm_routing_get_port_mixer,
  19035. msm_routing_put_port_mixer),
  19036. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19037. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19038. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19039. msm_routing_get_port_mixer,
  19040. msm_routing_put_port_mixer),
  19041. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19042. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19043. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19044. msm_routing_get_port_mixer,
  19045. msm_routing_put_port_mixer),
  19046. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19047. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19048. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19049. msm_routing_get_port_mixer,
  19050. msm_routing_put_port_mixer),
  19051. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19052. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19053. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19054. msm_routing_get_port_mixer,
  19055. msm_routing_put_port_mixer),
  19056. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19057. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19058. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19059. msm_routing_get_port_mixer,
  19060. msm_routing_put_port_mixer),
  19061. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19062. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19063. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19064. msm_routing_get_port_mixer,
  19065. msm_routing_put_port_mixer),
  19066. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19067. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19068. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19069. msm_routing_get_port_mixer,
  19070. msm_routing_put_port_mixer),
  19071. };
  19072. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19073. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19074. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19075. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19076. msm_routing_get_port_mixer,
  19077. msm_routing_put_port_mixer),
  19078. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19079. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19080. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19081. msm_routing_get_port_mixer,
  19082. msm_routing_put_port_mixer),
  19083. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19084. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19085. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19086. msm_routing_get_port_mixer,
  19087. msm_routing_put_port_mixer),
  19088. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19089. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19090. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19091. msm_routing_get_port_mixer,
  19092. msm_routing_put_port_mixer),
  19093. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19094. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19095. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19096. msm_routing_get_port_mixer,
  19097. msm_routing_put_port_mixer),
  19098. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19099. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19100. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19101. msm_routing_get_port_mixer,
  19102. msm_routing_put_port_mixer),
  19103. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19104. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19105. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19106. msm_routing_get_port_mixer,
  19107. msm_routing_put_port_mixer),
  19108. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19109. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19110. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19111. msm_routing_get_port_mixer,
  19112. msm_routing_put_port_mixer),
  19113. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19114. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19115. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19116. msm_routing_get_port_mixer,
  19117. msm_routing_put_port_mixer),
  19118. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19119. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19120. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19121. msm_routing_get_port_mixer,
  19122. msm_routing_put_port_mixer),
  19123. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19124. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19125. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19126. msm_routing_get_port_mixer,
  19127. msm_routing_put_port_mixer),
  19128. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19129. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19130. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19131. msm_routing_get_port_mixer,
  19132. msm_routing_put_port_mixer),
  19133. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19134. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19135. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19136. msm_routing_get_port_mixer,
  19137. msm_routing_put_port_mixer),
  19138. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19139. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19140. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19141. msm_routing_get_port_mixer,
  19142. msm_routing_put_port_mixer),
  19143. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19144. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19145. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19146. msm_routing_get_port_mixer,
  19147. msm_routing_put_port_mixer),
  19148. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19149. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19150. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19151. msm_routing_get_port_mixer,
  19152. msm_routing_put_port_mixer),
  19153. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19154. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19155. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19156. msm_routing_get_port_mixer,
  19157. msm_routing_put_port_mixer),
  19158. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19159. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19160. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19161. msm_routing_get_port_mixer,
  19162. msm_routing_put_port_mixer),
  19163. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19164. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19165. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19166. msm_routing_get_port_mixer,
  19167. msm_routing_put_port_mixer),
  19168. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19169. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19170. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19171. msm_routing_get_port_mixer,
  19172. msm_routing_put_port_mixer),
  19173. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19174. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19175. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19176. msm_routing_get_port_mixer,
  19177. msm_routing_put_port_mixer),
  19178. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19179. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19180. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19181. msm_routing_get_port_mixer,
  19182. msm_routing_put_port_mixer),
  19183. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19184. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19185. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19186. msm_routing_get_port_mixer,
  19187. msm_routing_put_port_mixer),
  19188. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19189. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19190. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19191. msm_routing_get_port_mixer,
  19192. msm_routing_put_port_mixer),
  19193. };
  19194. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19195. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19196. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19197. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19198. msm_routing_get_port_mixer,
  19199. msm_routing_put_port_mixer),
  19200. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19201. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19202. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19203. msm_routing_get_port_mixer,
  19204. msm_routing_put_port_mixer),
  19205. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19206. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19207. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19208. msm_routing_get_port_mixer,
  19209. msm_routing_put_port_mixer),
  19210. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19211. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19212. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19213. msm_routing_get_port_mixer,
  19214. msm_routing_put_port_mixer),
  19215. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19216. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19217. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19218. msm_routing_get_port_mixer,
  19219. msm_routing_put_port_mixer),
  19220. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19221. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19222. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19223. msm_routing_get_port_mixer,
  19224. msm_routing_put_port_mixer),
  19225. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19226. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19227. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19228. msm_routing_get_port_mixer,
  19229. msm_routing_put_port_mixer),
  19230. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19231. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19232. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19233. msm_routing_get_port_mixer,
  19234. msm_routing_put_port_mixer),
  19235. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19236. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19237. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19238. msm_routing_get_port_mixer,
  19239. msm_routing_put_port_mixer),
  19240. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19241. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19242. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19243. msm_routing_get_port_mixer,
  19244. msm_routing_put_port_mixer),
  19245. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19246. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19247. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19248. msm_routing_get_port_mixer,
  19249. msm_routing_put_port_mixer),
  19250. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19251. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19252. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19253. msm_routing_get_port_mixer,
  19254. msm_routing_put_port_mixer),
  19255. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19256. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19257. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19258. msm_routing_get_port_mixer,
  19259. msm_routing_put_port_mixer),
  19260. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19261. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19262. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19263. msm_routing_get_port_mixer,
  19264. msm_routing_put_port_mixer),
  19265. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19266. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19267. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19268. msm_routing_get_port_mixer,
  19269. msm_routing_put_port_mixer),
  19270. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19271. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19272. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19273. msm_routing_get_port_mixer,
  19274. msm_routing_put_port_mixer),
  19275. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19276. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19277. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19278. msm_routing_get_port_mixer,
  19279. msm_routing_put_port_mixer),
  19280. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19281. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19282. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19283. msm_routing_get_port_mixer,
  19284. msm_routing_put_port_mixer),
  19285. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19286. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19287. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19288. msm_routing_get_port_mixer,
  19289. msm_routing_put_port_mixer),
  19290. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19291. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19292. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19293. msm_routing_get_port_mixer,
  19294. msm_routing_put_port_mixer),
  19295. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19296. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19297. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19298. msm_routing_get_port_mixer,
  19299. msm_routing_put_port_mixer),
  19300. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19301. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19302. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19303. msm_routing_get_port_mixer,
  19304. msm_routing_put_port_mixer),
  19305. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19306. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19307. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19308. msm_routing_get_port_mixer,
  19309. msm_routing_put_port_mixer),
  19310. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19311. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19312. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19313. msm_routing_get_port_mixer,
  19314. msm_routing_put_port_mixer),
  19315. };
  19316. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19317. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19318. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19319. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19320. msm_routing_get_port_mixer,
  19321. msm_routing_put_port_mixer),
  19322. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19323. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19324. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19325. msm_routing_get_port_mixer,
  19326. msm_routing_put_port_mixer),
  19327. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19328. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19329. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19330. msm_routing_get_port_mixer,
  19331. msm_routing_put_port_mixer),
  19332. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19333. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19334. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19335. msm_routing_get_port_mixer,
  19336. msm_routing_put_port_mixer),
  19337. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19338. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19339. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19340. msm_routing_get_port_mixer,
  19341. msm_routing_put_port_mixer),
  19342. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19343. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19344. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19345. msm_routing_get_port_mixer,
  19346. msm_routing_put_port_mixer),
  19347. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19348. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19349. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19350. msm_routing_get_port_mixer,
  19351. msm_routing_put_port_mixer),
  19352. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19353. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19354. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19355. msm_routing_get_port_mixer,
  19356. msm_routing_put_port_mixer),
  19357. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19358. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19359. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19360. msm_routing_get_port_mixer,
  19361. msm_routing_put_port_mixer),
  19362. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19363. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19364. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19365. msm_routing_get_port_mixer,
  19366. msm_routing_put_port_mixer),
  19367. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19368. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19369. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19370. msm_routing_get_port_mixer,
  19371. msm_routing_put_port_mixer),
  19372. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19373. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19374. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19375. msm_routing_get_port_mixer,
  19376. msm_routing_put_port_mixer),
  19377. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19378. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19379. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19380. msm_routing_get_port_mixer,
  19381. msm_routing_put_port_mixer),
  19382. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19383. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19384. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19385. msm_routing_get_port_mixer,
  19386. msm_routing_put_port_mixer),
  19387. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19388. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19389. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19390. msm_routing_get_port_mixer,
  19391. msm_routing_put_port_mixer),
  19392. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19393. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19394. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19395. msm_routing_get_port_mixer,
  19396. msm_routing_put_port_mixer),
  19397. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19398. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19399. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19400. msm_routing_get_port_mixer,
  19401. msm_routing_put_port_mixer),
  19402. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19403. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19404. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19405. msm_routing_get_port_mixer,
  19406. msm_routing_put_port_mixer),
  19407. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19408. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19409. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19410. msm_routing_get_port_mixer,
  19411. msm_routing_put_port_mixer),
  19412. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19413. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19414. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19415. msm_routing_get_port_mixer,
  19416. msm_routing_put_port_mixer),
  19417. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19418. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19419. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19420. msm_routing_get_port_mixer,
  19421. msm_routing_put_port_mixer),
  19422. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19423. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19424. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19425. msm_routing_get_port_mixer,
  19426. msm_routing_put_port_mixer),
  19427. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19428. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19429. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19430. msm_routing_get_port_mixer,
  19431. msm_routing_put_port_mixer),
  19432. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19433. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19434. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19435. msm_routing_get_port_mixer,
  19436. msm_routing_put_port_mixer),
  19437. };
  19438. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19439. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19441. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19442. msm_routing_get_port_mixer,
  19443. msm_routing_put_port_mixer),
  19444. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19446. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19451. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19455. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19456. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19457. msm_routing_get_port_mixer,
  19458. msm_routing_put_port_mixer),
  19459. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19460. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19461. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19462. msm_routing_get_port_mixer,
  19463. msm_routing_put_port_mixer),
  19464. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19465. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19466. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19467. msm_routing_get_port_mixer,
  19468. msm_routing_put_port_mixer),
  19469. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19470. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19471. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19472. msm_routing_get_port_mixer,
  19473. msm_routing_put_port_mixer),
  19474. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19475. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19476. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19477. msm_routing_get_port_mixer,
  19478. msm_routing_put_port_mixer),
  19479. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19480. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19481. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19482. msm_routing_get_port_mixer,
  19483. msm_routing_put_port_mixer),
  19484. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19485. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19486. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19487. msm_routing_get_port_mixer,
  19488. msm_routing_put_port_mixer),
  19489. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19490. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19491. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19492. msm_routing_get_port_mixer,
  19493. msm_routing_put_port_mixer),
  19494. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19495. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19496. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19497. msm_routing_get_port_mixer,
  19498. msm_routing_put_port_mixer),
  19499. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19500. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19501. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19502. msm_routing_get_port_mixer,
  19503. msm_routing_put_port_mixer),
  19504. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19505. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19506. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19507. msm_routing_get_port_mixer,
  19508. msm_routing_put_port_mixer),
  19509. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19510. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19511. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19512. msm_routing_get_port_mixer,
  19513. msm_routing_put_port_mixer),
  19514. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19515. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19516. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19517. msm_routing_get_port_mixer,
  19518. msm_routing_put_port_mixer),
  19519. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19520. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19521. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19522. msm_routing_get_port_mixer,
  19523. msm_routing_put_port_mixer),
  19524. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19525. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19526. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19527. msm_routing_get_port_mixer,
  19528. msm_routing_put_port_mixer),
  19529. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19530. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19531. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19532. msm_routing_get_port_mixer,
  19533. msm_routing_put_port_mixer),
  19534. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19535. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19536. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19537. msm_routing_get_port_mixer,
  19538. msm_routing_put_port_mixer),
  19539. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19540. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19541. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19542. msm_routing_get_port_mixer,
  19543. msm_routing_put_port_mixer),
  19544. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19545. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19546. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19547. msm_routing_get_port_mixer,
  19548. msm_routing_put_port_mixer),
  19549. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19550. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19551. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19552. msm_routing_get_port_mixer,
  19553. msm_routing_put_port_mixer),
  19554. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19555. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19556. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19557. msm_routing_get_port_mixer,
  19558. msm_routing_put_port_mixer),
  19559. };
  19560. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  19561. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19562. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19563. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19564. msm_routing_get_port_mixer,
  19565. msm_routing_put_port_mixer),
  19566. };
  19567. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19568. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19569. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19570. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19571. msm_routing_put_port_mixer),
  19572. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19573. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19574. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19577. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19578. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19579. msm_routing_put_port_mixer),
  19580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19581. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19582. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19583. msm_routing_put_port_mixer),
  19584. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19585. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19586. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19587. msm_routing_put_port_mixer),
  19588. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19589. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19590. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19591. msm_routing_put_port_mixer),
  19592. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19593. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19594. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19595. msm_routing_put_port_mixer),
  19596. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19597. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19598. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. };
  19601. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  19602. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19603. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19604. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19605. msm_routing_put_port_mixer),
  19606. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19607. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19608. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19609. msm_routing_put_port_mixer),
  19610. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19612. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19613. msm_routing_put_port_mixer),
  19614. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19616. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19617. msm_routing_put_port_mixer),
  19618. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19620. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19621. msm_routing_put_port_mixer),
  19622. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19623. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19624. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19625. msm_routing_put_port_mixer),
  19626. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19627. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19628. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19632. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19636. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19637. msm_routing_put_port_mixer),
  19638. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19640. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  19641. msm_routing_put_port_mixer),
  19642. };
  19643. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  19644. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19646. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19647. msm_routing_put_listen_mixer),
  19648. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19650. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19651. msm_routing_put_listen_mixer),
  19652. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19653. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19654. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19655. msm_routing_put_listen_mixer),
  19656. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19657. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19658. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19659. msm_routing_put_listen_mixer),
  19660. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19662. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19663. msm_routing_put_listen_mixer),
  19664. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19666. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19667. msm_routing_put_listen_mixer),
  19668. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19670. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19671. msm_routing_put_listen_mixer),
  19672. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19673. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19674. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19675. msm_routing_put_listen_mixer),
  19676. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19677. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19678. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19679. msm_routing_put_listen_mixer),
  19680. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19681. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19682. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19683. msm_routing_put_listen_mixer),
  19684. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19685. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19686. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19687. msm_routing_put_listen_mixer),
  19688. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19690. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19691. msm_routing_put_listen_mixer),
  19692. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19693. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19694. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  19695. msm_routing_put_listen_mixer),
  19696. };
  19697. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  19698. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19699. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19700. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19701. msm_routing_put_listen_mixer),
  19702. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  19703. SND_SOC_NOPM,
  19704. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19705. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19706. msm_routing_put_listen_mixer),
  19707. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19708. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19709. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19710. msm_routing_put_listen_mixer),
  19711. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19712. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19713. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19714. msm_routing_put_listen_mixer),
  19715. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19716. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19717. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19718. msm_routing_put_listen_mixer),
  19719. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19720. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19721. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19722. msm_routing_put_listen_mixer),
  19723. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19724. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19725. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19726. msm_routing_put_listen_mixer),
  19727. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19729. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19730. msm_routing_put_listen_mixer),
  19731. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19733. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19734. msm_routing_put_listen_mixer),
  19735. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19736. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19737. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19738. msm_routing_put_listen_mixer),
  19739. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19740. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19741. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19742. msm_routing_put_listen_mixer),
  19743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19745. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19746. msm_routing_put_listen_mixer),
  19747. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19749. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  19750. msm_routing_put_listen_mixer),
  19751. };
  19752. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  19753. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19754. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19755. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19756. msm_routing_put_listen_mixer),
  19757. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19758. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19759. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19760. msm_routing_put_listen_mixer),
  19761. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19762. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19763. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19764. msm_routing_put_listen_mixer),
  19765. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19766. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19767. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19768. msm_routing_put_listen_mixer),
  19769. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19770. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19771. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19772. msm_routing_put_listen_mixer),
  19773. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19774. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19775. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19776. msm_routing_put_listen_mixer),
  19777. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19779. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19780. msm_routing_put_listen_mixer),
  19781. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19783. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19784. msm_routing_put_listen_mixer),
  19785. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19787. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19788. msm_routing_put_listen_mixer),
  19789. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19790. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19791. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19792. msm_routing_put_listen_mixer),
  19793. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19794. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19795. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19796. msm_routing_put_listen_mixer),
  19797. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19798. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19799. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19800. msm_routing_put_listen_mixer),
  19801. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19803. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  19804. msm_routing_put_listen_mixer),
  19805. };
  19806. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  19807. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19808. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19809. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19810. msm_routing_put_listen_mixer),
  19811. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19812. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19813. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19814. msm_routing_put_listen_mixer),
  19815. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19817. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19818. msm_routing_put_listen_mixer),
  19819. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19820. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19821. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19822. msm_routing_put_listen_mixer),
  19823. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19824. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19825. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19826. msm_routing_put_listen_mixer),
  19827. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19828. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19829. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19830. msm_routing_put_listen_mixer),
  19831. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19832. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19833. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19834. msm_routing_put_listen_mixer),
  19835. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19836. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19837. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19838. msm_routing_put_listen_mixer),
  19839. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19840. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19841. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19842. msm_routing_put_listen_mixer),
  19843. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19844. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19845. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19846. msm_routing_put_listen_mixer),
  19847. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19848. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19849. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19850. msm_routing_put_listen_mixer),
  19851. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19852. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19853. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19854. msm_routing_put_listen_mixer),
  19855. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19856. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19857. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  19858. msm_routing_put_listen_mixer),
  19859. };
  19860. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  19861. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19862. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19863. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19864. msm_routing_put_listen_mixer),
  19865. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19866. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19867. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19868. msm_routing_put_listen_mixer),
  19869. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19870. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19871. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19872. msm_routing_put_listen_mixer),
  19873. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19874. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19875. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19876. msm_routing_put_listen_mixer),
  19877. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19878. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19879. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19880. msm_routing_put_listen_mixer),
  19881. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19882. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19883. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19884. msm_routing_put_listen_mixer),
  19885. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19886. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19887. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19888. msm_routing_put_listen_mixer),
  19889. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19891. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19892. msm_routing_put_listen_mixer),
  19893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19895. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19896. msm_routing_put_listen_mixer),
  19897. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19898. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19899. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19900. msm_routing_put_listen_mixer),
  19901. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19902. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19903. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19904. msm_routing_put_listen_mixer),
  19905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19907. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19908. msm_routing_put_listen_mixer),
  19909. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19911. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  19912. msm_routing_put_listen_mixer),
  19913. };
  19914. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  19915. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19916. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19917. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19918. msm_routing_put_listen_mixer),
  19919. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19920. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19921. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19922. msm_routing_put_listen_mixer),
  19923. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19924. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19925. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19926. msm_routing_put_listen_mixer),
  19927. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19928. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19929. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19930. msm_routing_put_listen_mixer),
  19931. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19932. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19933. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19934. msm_routing_put_listen_mixer),
  19935. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19936. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19937. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19938. msm_routing_put_listen_mixer),
  19939. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19940. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19941. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19942. msm_routing_put_listen_mixer),
  19943. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19944. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19945. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19946. msm_routing_put_listen_mixer),
  19947. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  19948. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  19949. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19950. msm_routing_put_listen_mixer),
  19951. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  19952. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  19953. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19954. msm_routing_put_listen_mixer),
  19955. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  19956. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  19957. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19958. msm_routing_put_listen_mixer),
  19959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  19960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  19961. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19962. msm_routing_put_listen_mixer),
  19963. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19964. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  19965. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  19966. msm_routing_put_listen_mixer),
  19967. };
  19968. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  19969. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  19970. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  19971. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19972. msm_routing_put_listen_mixer),
  19973. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  19974. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  19975. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19976. msm_routing_put_listen_mixer),
  19977. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  19979. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19980. msm_routing_put_listen_mixer),
  19981. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  19983. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19984. msm_routing_put_listen_mixer),
  19985. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  19987. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19988. msm_routing_put_listen_mixer),
  19989. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  19991. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19992. msm_routing_put_listen_mixer),
  19993. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19994. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  19995. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  19996. msm_routing_put_listen_mixer),
  19997. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_INT3_MI2S_TX,
  19999. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20000. msm_routing_put_listen_mixer),
  20001. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20003. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20004. msm_routing_put_listen_mixer),
  20005. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20006. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20007. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20008. msm_routing_put_listen_mixer),
  20009. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20010. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20011. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20012. msm_routing_put_listen_mixer),
  20013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20015. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20016. msm_routing_put_listen_mixer),
  20017. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20018. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20019. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20020. msm_routing_put_listen_mixer),
  20021. };
  20022. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20023. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20024. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20025. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20026. msm_routing_put_listen_mixer),
  20027. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20029. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20030. msm_routing_put_listen_mixer),
  20031. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20033. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20034. msm_routing_put_listen_mixer),
  20035. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20036. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20037. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20038. msm_routing_put_listen_mixer),
  20039. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20041. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20042. msm_routing_put_listen_mixer),
  20043. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20045. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20046. msm_routing_put_listen_mixer),
  20047. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20048. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20049. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20050. msm_routing_put_listen_mixer),
  20051. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20052. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20053. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20054. msm_routing_put_listen_mixer),
  20055. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20056. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20057. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20058. msm_routing_put_listen_mixer),
  20059. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20060. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20061. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20062. msm_routing_put_listen_mixer),
  20063. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20064. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20065. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20066. msm_routing_put_listen_mixer),
  20067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20069. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20070. msm_routing_put_listen_mixer),
  20071. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20072. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20073. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20074. msm_routing_put_listen_mixer),
  20075. };
  20076. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20077. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20078. 0, 1, 0, msm_routing_get_switch_mixer,
  20079. msm_routing_put_switch_mixer);
  20080. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20081. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20082. 0, 1, 0, msm_routing_get_switch_mixer,
  20083. msm_routing_put_switch_mixer);
  20084. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20085. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20086. 0, 1, 0, msm_routing_get_switch_mixer,
  20087. msm_routing_put_switch_mixer);
  20088. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20089. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20090. 0, 1, 0, msm_routing_get_switch_mixer,
  20091. msm_routing_put_switch_mixer);
  20092. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20093. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20094. 0, 1, 0, msm_routing_get_switch_mixer,
  20095. msm_routing_put_switch_mixer);
  20096. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20097. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20098. 0, 1, 0, msm_routing_get_switch_mixer,
  20099. msm_routing_put_switch_mixer);
  20100. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20101. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20102. 0, 1, 0, msm_routing_get_switch_mixer,
  20103. msm_routing_put_switch_mixer);
  20104. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20105. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20106. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20107. msm_routing_put_fm_pcmrx_switch_mixer);
  20108. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20109. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20110. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20111. msm_routing_put_int0_mi2s_switch_mixer);
  20112. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20113. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20114. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20115. msm_routing_put_int4_mi2s_switch_mixer);
  20116. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20117. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20118. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20119. msm_routing_put_pri_mi2s_switch_mixer);
  20120. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20121. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20122. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20123. msm_routing_put_sec_mi2s_switch_mixer);
  20124. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20125. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20126. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20127. msm_routing_put_tert_mi2s_switch_mixer);
  20128. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20129. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20130. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20131. msm_routing_put_quat_mi2s_switch_mixer);
  20132. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20133. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20134. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20135. msm_routing_put_quin_mi2s_switch_mixer);
  20136. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20137. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20138. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20139. msm_routing_put_sen_mi2s_switch_mixer);
  20140. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20141. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20142. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20143. msm_routing_put_hfp_switch_mixer);
  20144. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20145. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20146. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20147. msm_routing_put_hfp_switch_mixer);
  20148. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20149. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20150. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20151. msm_routing_put_hfp_switch_mixer);
  20152. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20153. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20154. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20155. msm_routing_put_hfp_switch_mixer);
  20156. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20157. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20158. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20159. msm_routing_put_usb_switch_mixer);
  20160. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20161. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20162. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20163. msm_routing_a2dp_switch_mixer_put);
  20164. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20165. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20166. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20167. msm_routing_sco_switch_mixer_put);
  20168. static const struct soc_enum lsm_port_enum =
  20169. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20170. static const char * const lsm_func_text[] = {
  20171. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20172. };
  20173. static const struct soc_enum lsm_func_enum =
  20174. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20175. static const struct snd_kcontrol_new lsm_controls[] = {
  20176. /* kcontrol of lsm_function */
  20177. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20178. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20179. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20180. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20181. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20182. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20183. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20184. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20185. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20186. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20187. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20188. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20189. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20190. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20191. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20192. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20193. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20194. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20195. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20196. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20197. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20198. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20199. /* kcontrol of lsm_port */
  20200. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20201. msm_routing_lsm_port_get,
  20202. msm_routing_lsm_port_put),
  20203. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20204. msm_routing_lsm_port_get,
  20205. msm_routing_lsm_port_put),
  20206. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20207. msm_routing_lsm_port_get,
  20208. msm_routing_lsm_port_put),
  20209. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20210. msm_routing_lsm_port_get,
  20211. msm_routing_lsm_port_put),
  20212. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20213. msm_routing_lsm_port_get,
  20214. msm_routing_lsm_port_put),
  20215. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20216. msm_routing_lsm_port_get,
  20217. msm_routing_lsm_port_put),
  20218. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20219. msm_routing_lsm_port_get,
  20220. msm_routing_lsm_port_put),
  20221. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20222. msm_routing_lsm_port_get,
  20223. msm_routing_lsm_port_put),
  20224. };
  20225. static const char * const aanc_slim_0_rx_text[] = {
  20226. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20227. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20228. };
  20229. static const struct soc_enum aanc_slim_0_rx_enum =
  20230. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20231. aanc_slim_0_rx_text);
  20232. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20233. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20234. msm_routing_slim_0_rx_aanc_mux_get,
  20235. msm_routing_slim_0_rx_aanc_mux_put)
  20236. };
  20237. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20238. struct snd_ctl_elem_value *ucontrol)
  20239. {
  20240. ucontrol->value.integer.value[0] = aanc_level;
  20241. return 0;
  20242. }
  20243. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20244. struct snd_ctl_elem_value *ucontrol)
  20245. {
  20246. int ret = 0;
  20247. mutex_lock(&routing_lock);
  20248. aanc_level = ucontrol->value.integer.value[0];
  20249. pr_debug("%s: value: %ld\n",
  20250. __func__, ucontrol->value.integer.value[0]);
  20251. ret = afe_set_aanc_noise_level(aanc_level);
  20252. mutex_unlock(&routing_lock);
  20253. return ret;
  20254. }
  20255. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20256. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20257. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20258. };
  20259. static int msm_routing_get_stereo_to_custom_stereo_control(
  20260. struct snd_kcontrol *kcontrol,
  20261. struct snd_ctl_elem_value *ucontrol)
  20262. {
  20263. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20264. return 0;
  20265. }
  20266. static int msm_routing_put_stereo_to_custom_stereo_control(
  20267. struct snd_kcontrol *kcontrol,
  20268. struct snd_ctl_elem_value *ucontrol)
  20269. {
  20270. int flag = 0, i = 0, rc = 0, idx = 0;
  20271. int be_index = 0, port_id, topo_id;
  20272. unsigned int session_id = 0;
  20273. uint16_t op_FL_ip_FL_weight = 0;
  20274. uint16_t op_FL_ip_FR_weight = 0;
  20275. uint16_t op_FR_ip_FL_weight = 0;
  20276. uint16_t op_FR_ip_FR_weight = 0;
  20277. flag = ucontrol->value.integer.value[0];
  20278. pr_debug("%s E flag %d\n", __func__, flag);
  20279. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20280. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20281. __func__, is_custom_stereo_on, flag);
  20282. return 0;
  20283. }
  20284. is_custom_stereo_on = flag ? true : false;
  20285. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20286. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20287. port_id = msm_bedais[be_index].port_id;
  20288. if (!msm_bedais[be_index].active)
  20289. continue;
  20290. if ((port_id != SLIMBUS_0_RX) &&
  20291. (port_id != RT_PROXY_PORT_001_RX) &&
  20292. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20293. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20294. continue;
  20295. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20296. MSM_FRONTEND_DAI_MM_SIZE) {
  20297. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20298. LEGACY_PCM_MODE)
  20299. goto skip_send_custom_stereo;
  20300. session_id =
  20301. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20302. if (is_custom_stereo_on) {
  20303. op_FL_ip_FL_weight =
  20304. Q14_GAIN_ZERO_POINT_FIVE;
  20305. op_FL_ip_FR_weight =
  20306. Q14_GAIN_ZERO_POINT_FIVE;
  20307. op_FR_ip_FL_weight =
  20308. Q14_GAIN_ZERO_POINT_FIVE;
  20309. op_FR_ip_FR_weight =
  20310. Q14_GAIN_ZERO_POINT_FIVE;
  20311. } else {
  20312. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20313. op_FL_ip_FR_weight = 0;
  20314. op_FR_ip_FL_weight = 0;
  20315. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20316. }
  20317. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20318. unsigned long copp =
  20319. session_copp_map[i]
  20320. [SESSION_TYPE_RX][be_index];
  20321. if (!test_bit(idx, &copp))
  20322. goto skip_send_custom_stereo;
  20323. topo_id = adm_get_topology_for_port_copp_idx(
  20324. msm_bedais[be_index].port_id, idx);
  20325. if (topo_id < 0)
  20326. pr_debug("%s:Err:custom stereo topo %d",
  20327. __func__, topo_id);
  20328. pr_debug("idx %d\n", idx);
  20329. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20330. rc = msm_ds2_dap_set_custom_stereo_onoff
  20331. (msm_bedais[be_index].port_id,
  20332. idx, is_custom_stereo_on);
  20333. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20334. rc = dolby_dap_set_custom_stereo_onoff(
  20335. msm_bedais[be_index].port_id,
  20336. idx, is_custom_stereo_on);
  20337. else
  20338. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20339. (msm_bedais[be_index].port_id,
  20340. idx, session_id,
  20341. op_FL_ip_FL_weight,
  20342. op_FL_ip_FR_weight,
  20343. op_FR_ip_FL_weight,
  20344. op_FR_ip_FR_weight);
  20345. if (rc < 0)
  20346. skip_send_custom_stereo:
  20347. pr_err("%s: err setting custom stereo\n",
  20348. __func__);
  20349. }
  20350. }
  20351. }
  20352. return 0;
  20353. }
  20354. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20355. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20356. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20357. msm_routing_put_stereo_to_custom_stereo_control),
  20358. };
  20359. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20360. struct snd_ctl_elem_value *ucontrol)
  20361. {
  20362. return 0;
  20363. }
  20364. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20365. struct snd_ctl_elem_value *ucontrol)
  20366. {
  20367. int i = 0, j;
  20368. int num_app_types = ucontrol->value.integer.value[i++];
  20369. pr_debug("%s\n", __func__);
  20370. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20371. sizeof(struct msm_pcm_routing_app_type_data));
  20372. if (num_app_types > MAX_APP_TYPES) {
  20373. pr_err("%s: number of app types exceed the max supported\n",
  20374. __func__);
  20375. return -EINVAL;
  20376. }
  20377. for (j = 0; j < num_app_types; j++) {
  20378. app_type_cfg[j].app_type =
  20379. ucontrol->value.integer.value[i++];
  20380. app_type_cfg[j].sample_rate =
  20381. ucontrol->value.integer.value[i++];
  20382. app_type_cfg[j].bit_width =
  20383. ucontrol->value.integer.value[i++];
  20384. }
  20385. return 0;
  20386. }
  20387. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20388. struct snd_ctl_elem_value *ucontrol)
  20389. {
  20390. int j, fe_id, be_id, port_type;
  20391. int ret = 0;
  20392. unsigned long copp;
  20393. struct msm_pcm_routing_bdai_data *bedai;
  20394. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20395. SESSION_TYPE_RX;
  20396. int app_type = ucontrol->value.integer.value[1];
  20397. int gain = (ucontrol->value.integer.value[2] +
  20398. ucontrol->value.integer.value[3])/2;
  20399. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20400. MSM_AFE_PORT_TYPE_TX;
  20401. mutex_lock(&routing_lock);
  20402. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20403. if (is_be_dai_extproc(be_id))
  20404. continue;
  20405. bedai = &msm_bedais[be_id];
  20406. if (afe_get_port_type(bedai->port_id) != port_type)
  20407. continue;
  20408. if (!bedai->active)
  20409. continue;
  20410. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20411. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20412. continue;
  20413. if (app_type !=
  20414. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20415. continue;
  20416. copp = session_copp_map[fe_id][dir][be_id];
  20417. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20418. if (!test_bit(j, &copp))
  20419. continue;
  20420. ret |= adm_set_volume(bedai->port_id, j, gain);
  20421. }
  20422. }
  20423. }
  20424. mutex_unlock(&routing_lock);
  20425. return ret ? -EINVAL : 0;
  20426. }
  20427. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20428. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20429. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20430. msm_routing_put_app_type_cfg_control),
  20431. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20432. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20433. };
  20434. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20435. struct snd_ctl_elem_value *ucontrol)
  20436. {
  20437. int copp_idx, fe_id, be_id, port_type;
  20438. int ret = 0;
  20439. unsigned long copp;
  20440. struct msm_pcm_routing_bdai_data *bedai;
  20441. u8 *packed_params = NULL;
  20442. struct param_hdr_v3 param_hdr;
  20443. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20444. sizeof(uint32_t));
  20445. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20446. SESSION_TYPE_RX;
  20447. int app_type = ucontrol->value.integer.value[1];
  20448. int module_id = ucontrol->value.integer.value[2];
  20449. int instance_id = ucontrol->value.integer.value[3];
  20450. int param_id = ucontrol->value.integer.value[4];
  20451. int param_value = ucontrol->value.integer.value[5];
  20452. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20453. MSM_AFE_PORT_TYPE_TX;
  20454. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20455. __func__, app_type, module_id,
  20456. instance_id, param_id, param_value);
  20457. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20458. if (!packed_params)
  20459. return -ENOMEM;
  20460. memset(&param_hdr, 0, sizeof(param_hdr));
  20461. param_hdr.module_id = module_id;
  20462. param_hdr.instance_id = instance_id;
  20463. param_hdr.param_id = param_id;
  20464. param_hdr.param_size = sizeof(uint32_t);
  20465. packed_param_size = 0;
  20466. mutex_lock(&routing_lock);
  20467. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20468. if (is_be_dai_extproc(be_id))
  20469. continue;
  20470. bedai = &msm_bedais[be_id];
  20471. if (afe_get_port_type(bedai->port_id) != port_type)
  20472. continue;
  20473. if (!bedai->active)
  20474. continue;
  20475. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20476. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20477. continue;
  20478. if (app_type !=
  20479. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20480. continue;
  20481. copp = session_copp_map[fe_id][dir][be_id];
  20482. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20483. copp_idx++) {
  20484. if (!test_bit(copp_idx, &copp))
  20485. continue;
  20486. ret = q6common_pack_pp_params(packed_params,
  20487. &param_hdr,
  20488. (u8 *) &param_value,
  20489. &packed_param_size);
  20490. if (ret) {
  20491. pr_err("%s: Failed to pack params, error %d\n",
  20492. __func__, ret);
  20493. goto done;
  20494. }
  20495. ret = adm_set_pp_params(bedai->port_id,
  20496. copp_idx, NULL,
  20497. packed_params,
  20498. packed_param_size);
  20499. if (ret) {
  20500. pr_err("%s: Setting param failed with err=%d\n",
  20501. __func__, ret);
  20502. ret = -EINVAL;
  20503. goto done;
  20504. }
  20505. }
  20506. }
  20507. }
  20508. done:
  20509. mutex_unlock(&routing_lock);
  20510. kfree(packed_params);
  20511. return ret;
  20512. }
  20513. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20514. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20515. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20516. };
  20517. static int msm_routing_get_lsm_app_type_cfg_control(
  20518. struct snd_kcontrol *kcontrol,
  20519. struct snd_ctl_elem_value *ucontrol)
  20520. {
  20521. int shift = ((struct soc_multi_mixer_control *)
  20522. kcontrol->private_value)->shift;
  20523. int i = 0, j = 0;
  20524. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20525. for (j = 0; j < num_app_cfg_types; ++j) {
  20526. ucontrol->value.integer.value[++i] =
  20527. lsm_app_type_cfg[j].app_type;
  20528. ucontrol->value.integer.value[++i] =
  20529. lsm_app_type_cfg[j].sample_rate;
  20530. ucontrol->value.integer.value[++i] =
  20531. lsm_app_type_cfg[j].bit_width;
  20532. if (shift == 1)
  20533. ucontrol->value.integer.value[++i] =
  20534. lsm_app_type_cfg[j].num_out_channels;
  20535. }
  20536. return 0;
  20537. }
  20538. static int msm_routing_put_lsm_app_type_cfg_control(
  20539. struct snd_kcontrol *kcontrol,
  20540. struct snd_ctl_elem_value *ucontrol)
  20541. {
  20542. int shift = ((struct soc_multi_mixer_control *)
  20543. kcontrol->private_value)->shift;
  20544. int i = 0, j;
  20545. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20546. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20547. sizeof(struct msm_pcm_routing_app_type_data));
  20548. if (num_app_cfg_types > MAX_APP_TYPES) {
  20549. pr_err("%s: number of app types exceed the max supported\n",
  20550. __func__);
  20551. return -EINVAL;
  20552. }
  20553. for (j = 0; j < num_app_cfg_types; j++) {
  20554. lsm_app_type_cfg[j].app_type =
  20555. ucontrol->value.integer.value[i++];
  20556. lsm_app_type_cfg[j].sample_rate =
  20557. ucontrol->value.integer.value[i++];
  20558. lsm_app_type_cfg[j].bit_width =
  20559. ucontrol->value.integer.value[i++];
  20560. /* Shift of 1 indicates this is V2 mixer control */
  20561. if (shift == 1)
  20562. lsm_app_type_cfg[j].num_out_channels =
  20563. ucontrol->value.integer.value[i++];
  20564. }
  20565. return 0;
  20566. }
  20567. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20568. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20569. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20570. msm_routing_put_lsm_app_type_cfg_control),
  20571. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20572. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20573. msm_routing_put_lsm_app_type_cfg_control),
  20574. };
  20575. static int msm_routing_get_use_ds1_or_ds2_control(
  20576. struct snd_kcontrol *kcontrol,
  20577. struct snd_ctl_elem_value *ucontrol)
  20578. {
  20579. ucontrol->value.integer.value[0] = is_ds2_on;
  20580. return 0;
  20581. }
  20582. static int msm_routing_put_use_ds1_or_ds2_control(
  20583. struct snd_kcontrol *kcontrol,
  20584. struct snd_ctl_elem_value *ucontrol)
  20585. {
  20586. is_ds2_on = ucontrol->value.integer.value[0];
  20587. return 0;
  20588. }
  20589. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  20590. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  20591. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  20592. msm_routing_put_use_ds1_or_ds2_control),
  20593. };
  20594. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  20595. struct snd_ctl_elem_value *ucontrol) {
  20596. int rc = 0;
  20597. int be_idx = 0;
  20598. char *param_value;
  20599. int *update_param_value;
  20600. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  20601. struct param_hdr_v3 param_hdr;
  20602. param_value = kzalloc(param_size, GFP_KERNEL);
  20603. if (!param_value)
  20604. return -ENOMEM;
  20605. memset(&param_hdr, 0, sizeof(param_hdr));
  20606. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  20607. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  20608. break;
  20609. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  20610. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  20611. param_hdr.instance_id = INSTANCE_ID_0;
  20612. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  20613. param_hdr.param_size = param_size;
  20614. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  20615. NULL, &param_hdr, (u8 *) param_value);
  20616. if (rc) {
  20617. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  20618. kfree(param_value);
  20619. return -EINVAL;
  20620. }
  20621. update_param_value = (int *)param_value;
  20622. ucontrol->value.integer.value[0] = update_param_value[0];
  20623. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  20624. __func__, update_param_value[0]);
  20625. }
  20626. kfree(param_value);
  20627. return 0;
  20628. }
  20629. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  20630. struct snd_ctl_elem_value *ucontrol)
  20631. {
  20632. voc_session_id = ucontrol->value.integer.value[0];
  20633. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  20634. return 0;
  20635. }
  20636. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  20637. struct snd_ctl_elem_value *ucontrol)
  20638. {
  20639. ucontrol->value.integer.value[0] = voc_session_id;
  20640. return 0;
  20641. }
  20642. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  20643. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  20644. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  20645. msm_voc_session_id_put),
  20646. };
  20647. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  20648. struct snd_ctl_elem_info *uinfo)
  20649. {
  20650. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20651. uinfo->count = sizeof(struct sound_focus_param);
  20652. return 0;
  20653. }
  20654. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  20655. struct snd_ctl_elem_value *ucontrol)
  20656. {
  20657. int ret = 0;
  20658. struct sound_focus_param soundFocusData;
  20659. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  20660. sizeof(struct sound_focus_param));
  20661. ret = voc_set_sound_focus(soundFocusData);
  20662. if (ret) {
  20663. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  20664. __func__, ret);
  20665. ret = -EINVAL;
  20666. }
  20667. return ret;
  20668. }
  20669. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  20670. struct snd_ctl_elem_value *ucontrol)
  20671. {
  20672. int ret = 0;
  20673. struct sound_focus_param soundFocusData;
  20674. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  20675. ret = voc_get_sound_focus(&soundFocusData);
  20676. if (ret) {
  20677. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  20678. __func__, ret);
  20679. ret = -EINVAL;
  20680. goto done;
  20681. }
  20682. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  20683. sizeof(struct sound_focus_param));
  20684. done:
  20685. return ret;
  20686. }
  20687. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  20688. struct snd_ctl_elem_info *uinfo)
  20689. {
  20690. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20691. uinfo->count = sizeof(struct source_tracking_param);
  20692. return 0;
  20693. }
  20694. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  20695. struct snd_ctl_elem_value *ucontrol)
  20696. {
  20697. int ret = 0;
  20698. struct source_tracking_param sourceTrackingData;
  20699. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  20700. ret = voc_get_source_tracking(&sourceTrackingData);
  20701. if (ret) {
  20702. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  20703. __func__, ret);
  20704. ret = -EINVAL;
  20705. goto done;
  20706. }
  20707. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  20708. sizeof(struct source_tracking_param));
  20709. done:
  20710. return ret;
  20711. }
  20712. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  20713. int *copp_idx)
  20714. {
  20715. int i, idx, be_idx;
  20716. int ret = 0;
  20717. unsigned long copp;
  20718. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  20719. ret = q6audio_validate_port(port_id);
  20720. if (ret < 0) {
  20721. pr_err("%s: port validation failed id 0x%x ret %d\n",
  20722. __func__, port_id, ret);
  20723. ret = -EINVAL;
  20724. goto done;
  20725. }
  20726. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  20727. if (msm_bedais[be_idx].port_id == port_id)
  20728. break;
  20729. }
  20730. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  20731. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  20732. ret = -EINVAL;
  20733. goto done;
  20734. }
  20735. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  20736. MSM_FRONTEND_DAI_MAX) {
  20737. if (!(is_mm_lsm_fe_id(i) &&
  20738. route_check_fe_id_adm_support(i)))
  20739. continue;
  20740. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20741. copp = session_copp_map[i]
  20742. [session_type][be_idx];
  20743. if (test_bit(idx, &copp))
  20744. break;
  20745. }
  20746. if (idx >= MAX_COPPS_PER_PORT)
  20747. continue;
  20748. else
  20749. break;
  20750. }
  20751. if (i >= MSM_FRONTEND_DAI_MAX) {
  20752. pr_debug("%s: Invalid FE, exiting\n", __func__);
  20753. ret = -EINVAL;
  20754. goto done;
  20755. }
  20756. *copp_idx = idx;
  20757. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  20758. done:
  20759. return ret;
  20760. }
  20761. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  20762. const char *prefix, int *port_id)
  20763. {
  20764. int ret = 0;
  20765. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  20766. /*
  20767. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  20768. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  20769. * and compare the string with the backend name to derive the port id.
  20770. */
  20771. if (!strcmp(kcontrol->id.name + strlen(prefix),
  20772. "SLIMBUS_0")) {
  20773. *port_id = SLIMBUS_0_TX;
  20774. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20775. "TERT_MI2S")) {
  20776. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  20777. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20778. "INT3_MI2S")) {
  20779. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  20780. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20781. "VA_CDC_DMA_TX_0")) {
  20782. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  20783. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20784. "TX_CDC_DMA_TX_3")) {
  20785. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  20786. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20787. "QUIN_TDM_TX_0")) {
  20788. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  20789. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  20790. "PRIMARY_TDM")) {
  20791. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  20792. } else {
  20793. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  20794. __func__, kcontrol->id.name);
  20795. ret = -EINVAL;
  20796. goto done;
  20797. }
  20798. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  20799. __func__, kcontrol->id.name, *port_id);
  20800. done:
  20801. return ret;
  20802. }
  20803. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  20804. struct snd_ctl_elem_value *ucontrol)
  20805. {
  20806. int ret = 0;
  20807. struct sound_focus_param soundFocusData;
  20808. int port_id, copp_idx;
  20809. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20810. "Sound Focus Audio Tx ", &port_id);
  20811. if (ret != 0) {
  20812. pr_err("%s: Error in deriving port id, err=%d\n",
  20813. __func__, ret);
  20814. ret = -EINVAL;
  20815. goto done;
  20816. }
  20817. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20818. &copp_idx);
  20819. if (ret) {
  20820. pr_err("%s: Could not get copp idx for port_id=%d\n",
  20821. __func__, port_id);
  20822. ret = -EINVAL;
  20823. goto done;
  20824. }
  20825. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  20826. sizeof(struct sound_focus_param));
  20827. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  20828. if (ret) {
  20829. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  20830. __func__, ret);
  20831. ret = -EINVAL;
  20832. goto done;
  20833. }
  20834. done:
  20835. return ret;
  20836. }
  20837. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  20838. struct snd_ctl_elem_value *ucontrol)
  20839. {
  20840. int ret = 0;
  20841. struct sound_focus_param soundFocusData;
  20842. int port_id, copp_idx;
  20843. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20844. "Sound Focus Audio Tx ", &port_id);
  20845. if (ret) {
  20846. pr_err("%s: Error in deriving port id, err=%d\n",
  20847. __func__, ret);
  20848. ret = -EINVAL;
  20849. goto done;
  20850. }
  20851. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20852. &copp_idx);
  20853. if (ret) {
  20854. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  20855. __func__, port_id);
  20856. ret = -EINVAL;
  20857. goto done;
  20858. }
  20859. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  20860. if (ret) {
  20861. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  20862. __func__, ret);
  20863. ret = -EINVAL;
  20864. goto done;
  20865. }
  20866. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  20867. sizeof(struct sound_focus_param));
  20868. done:
  20869. return ret;
  20870. }
  20871. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  20872. struct snd_ctl_elem_value *ucontrol)
  20873. {
  20874. int ret = 0;
  20875. struct source_tracking_param sourceTrackingData;
  20876. int port_id, copp_idx;
  20877. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20878. "Source Tracking Audio Tx ", &port_id);
  20879. if (ret) {
  20880. pr_err("%s: Error in deriving port id, err=%d\n",
  20881. __func__, ret);
  20882. ret = -EINVAL;
  20883. goto done;
  20884. }
  20885. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20886. &copp_idx);
  20887. if (ret) {
  20888. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  20889. __func__, port_id);
  20890. ret = -EINVAL;
  20891. goto done;
  20892. }
  20893. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  20894. if (ret) {
  20895. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  20896. __func__, ret);
  20897. ret = -EINVAL;
  20898. goto done;
  20899. }
  20900. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  20901. sizeof(struct source_tracking_param));
  20902. done:
  20903. return ret;
  20904. }
  20905. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  20906. struct snd_ctl_elem_info *uinfo)
  20907. {
  20908. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  20909. uinfo->count = sizeof(struct doa_tracking_mon_param);
  20910. return 0;
  20911. }
  20912. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  20913. struct snd_ctl_elem_value *ucontrol)
  20914. {
  20915. int ret = 0;
  20916. struct doa_tracking_mon_param doa_tracking_data;
  20917. int port_id, copp_idx;
  20918. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  20919. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  20920. "Doa Tracking Monitor Listen ", &port_id);
  20921. if (ret) {
  20922. pr_err("%s: Error in deriving port id, err=%d\n",
  20923. __func__, ret);
  20924. ret = -EINVAL;
  20925. goto done;
  20926. }
  20927. /*
  20928. * If copp id exists for given port id, query adm to get doa data.
  20929. * Else query afe for doa tracking params.
  20930. * This is to support in cases where LSM directly connects to
  20931. * AFE for FFNS.
  20932. */
  20933. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  20934. &copp_idx);
  20935. if (!ret)
  20936. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  20937. &doa_tracking_data);
  20938. else
  20939. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  20940. if (ret) {
  20941. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  20942. __func__, ret);
  20943. ret = -EINVAL;
  20944. goto done;
  20945. }
  20946. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  20947. sizeof(struct doa_tracking_mon_param));
  20948. done:
  20949. return ret;
  20950. }
  20951. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  20952. {
  20953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20954. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20955. .name = "Sound Focus Voice Tx SLIMBUS_0",
  20956. .info = msm_sound_focus_info,
  20957. .get = msm_voice_sound_focus_get,
  20958. .put = msm_voice_sound_focus_put,
  20959. },
  20960. {
  20961. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20963. .name = "Source Tracking Voice Tx SLIMBUS_0",
  20964. .info = msm_source_tracking_info,
  20965. .get = msm_voice_source_tracking_get,
  20966. },
  20967. {
  20968. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20970. .name = "Sound Focus Audio Tx SLIMBUS_0",
  20971. .info = msm_sound_focus_info,
  20972. .get = msm_audio_sound_focus_get,
  20973. .put = msm_audio_sound_focus_put,
  20974. },
  20975. {
  20976. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20977. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20978. .name = "Source Tracking Audio Tx SLIMBUS_0",
  20979. .info = msm_source_tracking_info,
  20980. .get = msm_audio_source_tracking_get,
  20981. },
  20982. {
  20983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20985. .name = "Sound Focus Voice Tx TERT_MI2S",
  20986. .info = msm_sound_focus_info,
  20987. .get = msm_voice_sound_focus_get,
  20988. .put = msm_voice_sound_focus_put,
  20989. },
  20990. {
  20991. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  20992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  20993. .name = "Source Tracking Voice Tx TERT_MI2S",
  20994. .info = msm_source_tracking_info,
  20995. .get = msm_voice_source_tracking_get,
  20996. },
  20997. {
  20998. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  20999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21000. .name = "Sound Focus Audio Tx TERT_MI2S",
  21001. .info = msm_sound_focus_info,
  21002. .get = msm_audio_sound_focus_get,
  21003. .put = msm_audio_sound_focus_put,
  21004. },
  21005. {
  21006. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21007. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21008. .name = "Source Tracking Audio Tx TERT_MI2S",
  21009. .info = msm_source_tracking_info,
  21010. .get = msm_audio_source_tracking_get,
  21011. },
  21012. {
  21013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21015. .name = "Sound Focus Voice Tx INT3_MI2S",
  21016. .info = msm_sound_focus_info,
  21017. .get = msm_voice_sound_focus_get,
  21018. .put = msm_voice_sound_focus_put,
  21019. },
  21020. {
  21021. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21023. .name = "Source Tracking Voice Tx INT3_MI2S",
  21024. .info = msm_source_tracking_info,
  21025. .get = msm_voice_source_tracking_get,
  21026. },
  21027. {
  21028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21030. .name = "Sound Focus Audio Tx INT3_MI2S",
  21031. .info = msm_sound_focus_info,
  21032. .get = msm_audio_sound_focus_get,
  21033. .put = msm_audio_sound_focus_put,
  21034. },
  21035. {
  21036. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21038. .name = "Source Tracking Audio Tx INT3_MI2S",
  21039. .info = msm_source_tracking_info,
  21040. .get = msm_audio_source_tracking_get,
  21041. },
  21042. {
  21043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21045. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21046. .info = msm_sound_focus_info,
  21047. .get = msm_voice_sound_focus_get,
  21048. .put = msm_voice_sound_focus_put,
  21049. },
  21050. {
  21051. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21053. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21054. .info = msm_source_tracking_info,
  21055. .get = msm_voice_source_tracking_get,
  21056. },
  21057. {
  21058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21060. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21061. .info = msm_sound_focus_info,
  21062. .get = msm_audio_sound_focus_get,
  21063. .put = msm_audio_sound_focus_put,
  21064. },
  21065. {
  21066. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21067. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21068. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21069. .info = msm_source_tracking_info,
  21070. .get = msm_audio_source_tracking_get,
  21071. },
  21072. {
  21073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21074. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21075. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21076. .info = msm_sound_focus_info,
  21077. .get = msm_voice_sound_focus_get,
  21078. .put = msm_voice_sound_focus_put,
  21079. },
  21080. {
  21081. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21083. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21084. .info = msm_source_tracking_info,
  21085. .get = msm_voice_source_tracking_get,
  21086. },
  21087. {
  21088. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21090. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21091. .info = msm_sound_focus_info,
  21092. .get = msm_audio_sound_focus_get,
  21093. .put = msm_audio_sound_focus_put,
  21094. },
  21095. {
  21096. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21097. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21098. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21099. .info = msm_source_tracking_info,
  21100. .get = msm_audio_source_tracking_get,
  21101. },
  21102. {
  21103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21104. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21105. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21106. .info = msm_sound_focus_info,
  21107. .get = msm_voice_sound_focus_get,
  21108. .put = msm_voice_sound_focus_put,
  21109. },
  21110. {
  21111. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21113. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21114. .info = msm_source_tracking_info,
  21115. .get = msm_voice_source_tracking_get,
  21116. },
  21117. {
  21118. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21120. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21121. .info = msm_sound_focus_info,
  21122. .get = msm_audio_sound_focus_get,
  21123. .put = msm_audio_sound_focus_put,
  21124. },
  21125. {
  21126. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21127. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21128. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21129. .info = msm_source_tracking_info,
  21130. .get = msm_audio_source_tracking_get,
  21131. },
  21132. {
  21133. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21134. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21135. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21136. .info = msm_sound_focus_info,
  21137. .get = msm_audio_sound_focus_get,
  21138. .put = msm_audio_sound_focus_put,
  21139. },
  21140. {
  21141. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21142. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21143. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21144. .info = msm_source_tracking_info,
  21145. .get = msm_audio_source_tracking_get,
  21146. },
  21147. {
  21148. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21150. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21151. .info = msm_doa_tracking_mon_info,
  21152. .get = msm_doa_tracking_mon_get,
  21153. },
  21154. };
  21155. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21156. struct snd_ctl_elem_value *ucontrol)
  21157. {
  21158. int ret = 0;
  21159. int item;
  21160. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21161. pr_debug("%s item is %d\n", __func__,
  21162. ucontrol->value.enumerated.item[0]);
  21163. mutex_lock(&routing_lock);
  21164. item = ucontrol->value.enumerated.item[0];
  21165. if (item < e->items) {
  21166. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21167. __func__, e->shift_l, e->values[item]);
  21168. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21169. e->values[item] < MSM_BACKEND_DAI_MAX)
  21170. /* Enable feedback TX path */
  21171. ret = afe_spk_prot_feed_back_cfg(
  21172. msm_bedais[e->values[item]].port_id,
  21173. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21174. else {
  21175. pr_debug("%s values are out of range item %d\n",
  21176. __func__, e->values[item]);
  21177. /* Disable feedback TX path */
  21178. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21179. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21180. else
  21181. ret = -EINVAL;
  21182. }
  21183. } else {
  21184. pr_err("%s item value is out of range item\n", __func__);
  21185. ret = -EINVAL;
  21186. }
  21187. mutex_unlock(&routing_lock);
  21188. return ret;
  21189. }
  21190. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21191. struct snd_ctl_elem_value *ucontrol)
  21192. {
  21193. int ret = 0;
  21194. int item;
  21195. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21196. pr_debug("%s item is %d\n", __func__,
  21197. ucontrol->value.enumerated.item[0]);
  21198. mutex_lock(&routing_lock);
  21199. item = ucontrol->value.enumerated.item[0];
  21200. if (item < e->items) {
  21201. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21202. __func__, e->shift_l, e->values[item]);
  21203. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21204. e->values[item] < MSM_BACKEND_DAI_MAX)
  21205. /* Enable feedback TX path */
  21206. ret = afe_spk_prot_feed_back_cfg(
  21207. msm_bedais[e->values[item]].port_id,
  21208. msm_bedais[e->shift_l].port_id,
  21209. 1, 1, 1);
  21210. else {
  21211. pr_debug("%s values are out of range item %d\n",
  21212. __func__, e->values[item]);
  21213. /* Disable feedback TX path */
  21214. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21215. ret = afe_spk_prot_feed_back_cfg(0,
  21216. 0, 0, 0, 0);
  21217. else
  21218. ret = -EINVAL;
  21219. }
  21220. } else {
  21221. pr_err("%s item value is out of range item\n", __func__);
  21222. ret = -EINVAL;
  21223. }
  21224. mutex_unlock(&routing_lock);
  21225. return ret;
  21226. }
  21227. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21228. struct snd_ctl_elem_value *ucontrol)
  21229. {
  21230. pr_debug("%s\n", __func__);
  21231. return 0;
  21232. }
  21233. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21234. struct snd_ctl_elem_value *ucontrol)
  21235. {
  21236. pr_debug("%s\n", __func__);
  21237. ucontrol->value.enumerated.item[0] = 0;
  21238. return 0;
  21239. }
  21240. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21241. "ZERO", "SLIM4_TX"
  21242. };
  21243. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21244. "ZERO", "SLIM4_TX"
  21245. };
  21246. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21247. "ZERO", "WSA_CDC_DMA_TX_0"
  21248. };
  21249. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21250. "ZERO", "WSA_CDC_DMA_TX_0"
  21251. };
  21252. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21253. "ZERO", "SENARY_TX"
  21254. };
  21255. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21256. "ZERO", "INT5_MI2S_TX"
  21257. };
  21258. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21259. "ZERO", "INT5_MI2S_TX"
  21260. };
  21261. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21262. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21263. };
  21264. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21265. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21266. };
  21267. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21268. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21269. };
  21270. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21271. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21272. };
  21273. static const int mi2s_rx_vi_fb_tx_value[] = {
  21274. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21275. };
  21276. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21277. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21278. };
  21279. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21280. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21281. };
  21282. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21283. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21284. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21285. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21286. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21287. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21288. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21289. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21290. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21291. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21292. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21293. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21294. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21295. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21296. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21297. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21298. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21299. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21300. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21301. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21302. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21303. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21304. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21305. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21306. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21307. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21308. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21309. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21310. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21311. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21312. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21313. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21314. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21315. spkr_prot_put_vi_lch_port);
  21316. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21317. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21318. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21319. spkr_prot_put_vi_rch_port);
  21320. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21321. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21322. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21323. spkr_prot_put_vi_lch_port);
  21324. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21325. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21326. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21327. spkr_prot_put_vi_rch_port);
  21328. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21329. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21330. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21331. spkr_prot_put_vi_lch_port);
  21332. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21333. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21334. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21335. spkr_prot_put_vi_lch_port);
  21336. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21337. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21338. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21339. spkr_prot_put_vi_rch_port);
  21340. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21341. /* Frontend AIF */
  21342. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21343. * Stream name must contains substring of front-end dai name
  21344. */
  21345. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21346. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21347. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21348. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21349. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21350. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21351. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21352. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21353. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21354. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21355. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21356. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21357. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21358. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21359. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21360. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21361. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21362. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21363. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21364. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21365. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21366. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21367. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21368. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21369. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21370. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  21371. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  21372. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  21373. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  21374. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  21375. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  21376. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  21377. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  21378. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  21379. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  21380. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  21381. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  21382. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  21383. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  21384. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  21385. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  21386. "VoiceMMode1 Playback", 0, 0, 0, 0),
  21387. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  21388. "VoiceMMode1 Capture", 0, 0, 0, 0),
  21389. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  21390. "VoiceMMode2 Playback", 0, 0, 0, 0),
  21391. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  21392. "VoiceMMode2 Capture", 0, 0, 0, 0),
  21393. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  21394. 0, 0, 0, 0),
  21395. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21396. 0, 0, 0, 0),
  21397. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21398. 0, 0, 0, 0),
  21399. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21400. 0, 0, 0, 0),
  21401. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21402. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21403. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21404. 0, 0, 0, 0),
  21405. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21406. 0, 0, 0, 0),
  21407. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21408. 0, 0, 0, 0),
  21409. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21410. 0, 0, 0, 0),
  21411. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21412. 0, 0, 0, 0),
  21413. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21414. 0, 0, 0, 0),
  21415. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21416. 0, 0, 0, 0),
  21417. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21418. 0, 0, 0, 0),
  21419. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21420. 0, 0, 0, 0),
  21421. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21422. 0, 0, 0, 0),
  21423. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21424. 0, 0, 0, 0),
  21425. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21426. 0, 0, 0, 0),
  21427. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21428. 0, 0, 0, 0),
  21429. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21430. 0, 0, 0, 0),
  21431. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21432. 0, 0, 0, 0),
  21433. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21434. 0, 0, 0, 0),
  21435. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21436. 0, 0, 0, 0),
  21437. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21438. 0, 0, 0, 0),
  21439. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21440. 0, 0, 0, 0),
  21441. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21442. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21443. 0, 0, 0, 0),
  21444. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21445. "INT0 MI2S_RX Hostless Playback",
  21446. 0, 0, 0, 0),
  21447. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21448. "INT4 MI2S_RX Hostless Playback",
  21449. 0, 0, 0, 0),
  21450. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21451. "Primary MI2S_RX Hostless Playback",
  21452. 0, 0, 0, 0),
  21453. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21454. "Secondary MI2S_RX Hostless Playback",
  21455. 0, 0, 0, 0),
  21456. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21457. "Tertiary MI2S_RX Hostless Playback",
  21458. 0, 0, 0, 0),
  21459. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21460. "Quaternary MI2S_RX Hostless Playback",
  21461. 0, 0, 0, 0),
  21462. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21463. "Quinary MI2S_RX Hostless Playback",
  21464. 0, 0, 0, 0),
  21465. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21466. "Senary MI2S_RX Hostless Playback",
  21467. 0, 0, 0, 0),
  21468. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21469. 0, 0, 0, 0),
  21470. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21471. 0, 0, 0, 0),
  21472. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21473. 0, 0, 0, 0),
  21474. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21475. 0, 0, 0, 0),
  21476. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21477. 0, 0, 0, 0),
  21478. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21479. "INT3 MI2S_TX Hostless Capture",
  21480. 0, 0, 0, 0),
  21481. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21482. "Tertiary MI2S_TX Hostless Capture",
  21483. 0, 0, 0, 0),
  21484. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21485. "Secondary MI2S_TX Hostless Capture",
  21486. 0, 0, 0, 0),
  21487. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21488. "Primary MI2S_TX Hostless Capture",
  21489. 0, 0, 0, 0),
  21490. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21491. 0, 0, 0, 0),
  21492. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21493. 0, 0, 0, 0),
  21494. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21495. "Quaternary MI2S_TX Hostless Capture",
  21496. 0, 0, 0, 0),
  21497. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21498. "Quinary MI2S_TX Hostless Capture",
  21499. 0, 0, 0, 0),
  21500. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21501. "Senary MI2S_TX Hostless Capture",
  21502. 0, 0, 0, 0),
  21503. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21504. "Primary TDM0 Hostless Playback",
  21505. 0, 0, 0, 0),
  21506. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21507. "Primary TDM0 Hostless Capture",
  21508. 0, 0, 0, 0),
  21509. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21510. "Primary TDM1 Hostless Playback",
  21511. 0, 0, 0, 0),
  21512. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21513. "Primary TDM1 Hostless Capture",
  21514. 0, 0, 0, 0),
  21515. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21516. "Primary TDM2 Hostless Playback",
  21517. 0, 0, 0, 0),
  21518. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21519. "Primary TDM2 Hostless Capture",
  21520. 0, 0, 0, 0),
  21521. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21522. "Primary TDM3 Hostless Playback",
  21523. 0, 0, 0, 0),
  21524. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21525. "Primary TDM3 Hostless Capture",
  21526. 0, 0, 0, 0),
  21527. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21528. "Primary TDM4 Hostless Playback",
  21529. 0, 0, 0, 0),
  21530. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21531. "Primary TDM4 Hostless Capture",
  21532. 0, 0, 0, 0),
  21533. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21534. "Primary TDM5 Hostless Playback",
  21535. 0, 0, 0, 0),
  21536. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21537. "Primary TDM5 Hostless Capture",
  21538. 0, 0, 0, 0),
  21539. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21540. "Primary TDM6 Hostless Playback",
  21541. 0, 0, 0, 0),
  21542. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21543. "Primary TDM6 Hostless Capture",
  21544. 0, 0, 0, 0),
  21545. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21546. "Primary TDM7 Hostless Playback",
  21547. 0, 0, 0, 0),
  21548. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21549. "Primary TDM7 Hostless Capture",
  21550. 0, 0, 0, 0),
  21551. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21552. "Secondary TDM0 Hostless Playback",
  21553. 0, 0, 0, 0),
  21554. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21555. "Secondary TDM0 Hostless Capture",
  21556. 0, 0, 0, 0),
  21557. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21558. "Secondary TDM1 Hostless Playback",
  21559. 0, 0, 0, 0),
  21560. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  21561. "Secondary TDM1 Hostless Capture",
  21562. 0, 0, 0, 0),
  21563. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  21564. "Secondary TDM2 Hostless Playback",
  21565. 0, 0, 0, 0),
  21566. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  21567. "Secondary TDM2 Hostless Capture",
  21568. 0, 0, 0, 0),
  21569. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  21570. "Secondary TDM3 Hostless Playback",
  21571. 0, 0, 0, 0),
  21572. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  21573. "Secondary TDM3 Hostless Capture",
  21574. 0, 0, 0, 0),
  21575. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  21576. "Secondary TDM4 Hostless Playback",
  21577. 0, 0, 0, 0),
  21578. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  21579. "Secondary TDM4 Hostless Capture",
  21580. 0, 0, 0, 0),
  21581. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  21582. "Secondary TDM5 Hostless Playback",
  21583. 0, 0, 0, 0),
  21584. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  21585. "Secondary TDM5 Hostless Capture",
  21586. 0, 0, 0, 0),
  21587. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  21588. "Secondary TDM6 Hostless Playback",
  21589. 0, 0, 0, 0),
  21590. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  21591. "Secondary TDM6 Hostless Capture",
  21592. 0, 0, 0, 0),
  21593. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  21594. "Secondary TDM7 Hostless Playback",
  21595. 0, 0, 0, 0),
  21596. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  21597. "Secondary TDM7 Hostless Capture",
  21598. 0, 0, 0, 0),
  21599. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  21600. "Tertiary TDM0 Hostless Playback",
  21601. 0, 0, 0, 0),
  21602. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  21603. "Tertiary TDM0 Hostless Capture",
  21604. 0, 0, 0, 0),
  21605. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  21606. "Tertiary TDM1 Hostless Playback",
  21607. 0, 0, 0, 0),
  21608. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  21609. "Tertiary TDM1 Hostless Capture",
  21610. 0, 0, 0, 0),
  21611. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  21612. "Tertiary TDM2 Hostless Playback",
  21613. 0, 0, 0, 0),
  21614. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  21615. "Tertiary TDM2 Hostless Capture",
  21616. 0, 0, 0, 0),
  21617. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  21618. "Tertiary TDM3 Hostless Playback",
  21619. 0, 0, 0, 0),
  21620. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  21621. "Tertiary TDM3 Hostless Capture",
  21622. 0, 0, 0, 0),
  21623. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  21624. "Tertiary TDM4 Hostless Playback",
  21625. 0, 0, 0, 0),
  21626. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  21627. "Tertiary TDM4 Hostless Capture",
  21628. 0, 0, 0, 0),
  21629. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  21630. "Tertiary TDM5 Hostless Playback",
  21631. 0, 0, 0, 0),
  21632. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  21633. "Tertiary TDM5 Hostless Capture",
  21634. 0, 0, 0, 0),
  21635. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  21636. "Tertiary TDM6 Hostless Playback",
  21637. 0, 0, 0, 0),
  21638. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  21639. "Tertiary TDM6 Hostless Capture",
  21640. 0, 0, 0, 0),
  21641. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  21642. "Tertiary TDM7 Hostless Playback",
  21643. 0, 0, 0, 0),
  21644. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  21645. "Tertiary TDM7 Hostless Capture",
  21646. 0, 0, 0, 0),
  21647. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  21648. "Quaternary TDM0 Hostless Playback",
  21649. 0, 0, 0, 0),
  21650. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  21651. "Quaternary TDM0 Hostless Capture",
  21652. 0, 0, 0, 0),
  21653. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  21654. "Quaternary TDM1 Hostless Playback",
  21655. 0, 0, 0, 0),
  21656. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  21657. "Quaternary TDM1 Hostless Capture",
  21658. 0, 0, 0, 0),
  21659. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  21660. "Quaternary TDM2 Hostless Playback",
  21661. 0, 0, 0, 0),
  21662. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  21663. "Quaternary TDM2 Hostless Capture",
  21664. 0, 0, 0, 0),
  21665. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  21666. "Quaternary TDM3 Hostless Playback",
  21667. 0, 0, 0, 0),
  21668. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  21669. "Quaternary TDM3 Hostless Capture",
  21670. 0, 0, 0, 0),
  21671. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  21672. "Quaternary TDM4 Hostless Playback",
  21673. 0, 0, 0, 0),
  21674. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  21675. "Quaternary TDM4 Hostless Capture",
  21676. 0, 0, 0, 0),
  21677. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  21678. "Quaternary TDM5 Hostless Playback",
  21679. 0, 0, 0, 0),
  21680. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  21681. "Quaternary TDM5 Hostless Capture",
  21682. 0, 0, 0, 0),
  21683. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  21684. "Quaternary TDM6 Hostless Playback",
  21685. 0, 0, 0, 0),
  21686. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  21687. "Quaternary TDM6 Hostless Capture",
  21688. 0, 0, 0, 0),
  21689. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  21690. "Quaternary TDM7 Hostless Playback",
  21691. 0, 0, 0, 0),
  21692. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  21693. "Quaternary TDM7 Hostless Capture",
  21694. 0, 0, 0, 0),
  21695. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  21696. "Quinary TDM0 Hostless Playback",
  21697. 0, 0, 0, 0),
  21698. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  21699. "Quinary TDM0 Hostless Capture",
  21700. 0, 0, 0, 0),
  21701. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  21702. "Quinary TDM1 Hostless Playback",
  21703. 0, 0, 0, 0),
  21704. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  21705. "Quinary TDM1 Hostless Capture",
  21706. 0, 0, 0, 0),
  21707. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  21708. "Quinary TDM2 Hostless Playback",
  21709. 0, 0, 0, 0),
  21710. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  21711. "Quinary TDM2 Hostless Capture",
  21712. 0, 0, 0, 0),
  21713. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  21714. "Quinary TDM3 Hostless Playback",
  21715. 0, 0, 0, 0),
  21716. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  21717. "Quinary TDM3 Hostless Capture",
  21718. 0, 0, 0, 0),
  21719. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  21720. "Quinary TDM4 Hostless Playback",
  21721. 0, 0, 0, 0),
  21722. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  21723. "Quinary TDM4 Hostless Capture",
  21724. 0, 0, 0, 0),
  21725. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  21726. "Quinary TDM5 Hostless Playback",
  21727. 0, 0, 0, 0),
  21728. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  21729. "Quinary TDM5 Hostless Capture",
  21730. 0, 0, 0, 0),
  21731. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  21732. "Quinary TDM6 Hostless Playback",
  21733. 0, 0, 0, 0),
  21734. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  21735. "Quinary TDM6 Hostless Capture",
  21736. 0, 0, 0, 0),
  21737. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  21738. "Quinary TDM7 Hostless Playback",
  21739. 0, 0, 0, 0),
  21740. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  21741. "Quinary TDM7 Hostless Capture",
  21742. 0, 0, 0, 0),
  21743. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  21744. "Senary TDM0 Hostless Playback",
  21745. 0, 0, 0, 0),
  21746. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  21747. "Senary TDM0 Hostless Capture",
  21748. 0, 0, 0, 0),
  21749. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  21750. "Senary TDM1 Hostless Playback",
  21751. 0, 0, 0, 0),
  21752. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  21753. "Senary TDM1 Hostless Capture",
  21754. 0, 0, 0, 0),
  21755. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  21756. "Senary TDM2 Hostless Playback",
  21757. 0, 0, 0, 0),
  21758. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  21759. "Senary TDM2 Hostless Capture",
  21760. 0, 0, 0, 0),
  21761. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  21762. "Senary TDM3 Hostless Playback",
  21763. 0, 0, 0, 0),
  21764. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  21765. "Senary TDM3 Hostless Capture",
  21766. 0, 0, 0, 0),
  21767. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  21768. "Senary TDM4 Hostless Playback",
  21769. 0, 0, 0, 0),
  21770. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  21771. "Senary TDM4 Hostless Capture",
  21772. 0, 0, 0, 0),
  21773. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  21774. "Senary TDM5 Hostless Playback",
  21775. 0, 0, 0, 0),
  21776. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  21777. "Senary TDM5 Hostless Capture",
  21778. 0, 0, 0, 0),
  21779. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  21780. "Senary TDM6 Hostless Playback",
  21781. 0, 0, 0, 0),
  21782. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  21783. "Senary TDM6 Hostless Capture",
  21784. 0, 0, 0, 0),
  21785. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  21786. "Senary TDM7 Hostless Playback",
  21787. 0, 0, 0, 0),
  21788. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  21789. "Senary TDM7 Hostless Capture",
  21790. 0, 0, 0, 0),
  21791. /* LSM */
  21792. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  21793. 0, 0, 0, 0),
  21794. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  21795. 0, 0, 0, 0),
  21796. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  21797. 0, 0, 0, 0),
  21798. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  21799. 0, 0, 0, 0),
  21800. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  21801. 0, 0, 0, 0),
  21802. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  21803. 0, 0, 0, 0),
  21804. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  21805. 0, 0, 0, 0),
  21806. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  21807. 0, 0, 0, 0),
  21808. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  21809. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  21810. /* Backend AIF */
  21811. /* Stream name equals to backend dai link stream name */
  21812. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  21813. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  21814. 0, 0, 0, 0),
  21815. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  21816. 0, 0, 0, 0),
  21817. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  21818. 0, 0, 0, 0),
  21819. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  21820. 0, 0, 0, 0),
  21821. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  21822. 0, 0, 0, 0),
  21823. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  21824. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  21825. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  21826. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  21827. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  21828. 0, 0, 0, 0),
  21829. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  21830. 0, 0, 0, 0),
  21831. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  21832. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  21833. 0, 0, 0, 0),
  21834. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  21835. 0, 0, 0, 0),
  21836. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  21837. 0, 0, 0, 0),
  21838. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  21839. "Secondary MI2S Playback SD1",
  21840. 0, 0, 0, 0),
  21841. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  21842. 0, 0, 0, 0),
  21843. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  21844. 0, 0, 0, 0),
  21845. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  21846. 0, 0, 0, 0),
  21847. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  21848. 0, 0, 0, 0),
  21849. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  21850. 0, 0, 0, 0),
  21851. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  21852. 0, 0, 0, 0),
  21853. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  21854. 0, 0, 0, 0),
  21855. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  21856. 0, 0, 0, 0),
  21857. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  21858. 0, 0, 0, 0),
  21859. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  21860. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  21861. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  21862. 0, 0, 0, 0),
  21863. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  21864. 0, 0, 0, 0),
  21865. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  21866. 0, 0, 0, 0),
  21867. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  21868. 0, 0, 0, 0),
  21869. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  21870. 0, 0, 0, 0),
  21871. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  21872. 0, 0, 0, 0),
  21873. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  21874. 0, 0, 0, 0),
  21875. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  21876. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  21877. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  21878. 0, 0, 0, 0),
  21879. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  21880. 0, 0, 0, 0),
  21881. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  21882. 0, 0, 0, 0),
  21883. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  21884. 0, 0, 0, 0),
  21885. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  21886. 0, 0, 0, 0),
  21887. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  21888. 0, 0, 0, 0),
  21889. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  21890. 0, 0, 0, 0),
  21891. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  21892. 0, 0, 0, 0),
  21893. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  21894. 0, 0, 0, 0),
  21895. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  21896. 0, 0, 0, 0),
  21897. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  21898. 0, 0, 0, 0),
  21899. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  21900. 0, 0, 0, 0),
  21901. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  21902. 0, 0, 0, 0),
  21903. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  21904. 0, 0, 0, 0),
  21905. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  21906. 0, 0, 0, 0),
  21907. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  21908. 0, 0, 0, 0),
  21909. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  21910. 0, 0, 0, 0),
  21911. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  21912. 0, 0, 0, 0),
  21913. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  21914. 0, 0, 0, 0),
  21915. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  21916. 0, 0, 0, 0),
  21917. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  21918. 0, 0, 0, 0),
  21919. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  21920. 0, 0, 0, 0),
  21921. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  21922. 0, 0, 0, 0),
  21923. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  21924. 0, 0, 0, 0),
  21925. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  21926. 0, 0, 0, 0),
  21927. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  21928. 0, 0, 0, 0),
  21929. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  21930. 0, 0, 0, 0),
  21931. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  21932. 0, 0, 0, 0),
  21933. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  21934. 0, 0, 0, 0),
  21935. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  21936. 0, 0, 0, 0),
  21937. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  21938. 0, 0, 0, 0),
  21939. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  21940. 0, 0, 0, 0),
  21941. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  21942. 0, 0, 0, 0),
  21943. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  21944. 0, 0, 0, 0),
  21945. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  21946. 0, 0, 0, 0),
  21947. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  21948. 0, 0, 0, 0),
  21949. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  21950. 0, 0, 0, 0),
  21951. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  21952. 0, 0, 0, 0),
  21953. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  21954. 0, 0, 0, 0),
  21955. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  21956. 0, 0, 0, 0),
  21957. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  21958. 0, 0, 0, 0),
  21959. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  21960. 0, 0, 0, 0),
  21961. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  21962. 0, 0, 0, 0),
  21963. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  21964. 0, 0, 0, 0),
  21965. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  21966. 0, 0, 0, 0),
  21967. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  21968. 0, 0, 0, 0),
  21969. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  21970. 0, 0, 0, 0),
  21971. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  21972. 0, 0, 0, 0),
  21973. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  21974. 0, 0, 0, 0),
  21975. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  21976. 0, 0, 0, 0),
  21977. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  21978. 0, 0, 0, 0),
  21979. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  21980. 0, 0, 0, 0),
  21981. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  21982. 0, 0, 0, 0),
  21983. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  21984. 0, 0, 0, 0),
  21985. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  21986. 0, 0, 0, 0),
  21987. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  21988. 0, 0, 0, 0),
  21989. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  21990. 0, 0, 0, 0),
  21991. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  21992. 0, 0, 0, 0),
  21993. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  21994. 0, 0, 0, 0),
  21995. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  21996. 0, 0, 0, 0),
  21997. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  21998. 0, 0, 0, 0),
  21999. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22000. 0, 0, 0, 0),
  22001. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22002. 0, 0, 0, 0),
  22003. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22004. 0, 0, 0, 0),
  22005. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22006. 0, 0, 0, 0),
  22007. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22008. 0, 0, 0, 0),
  22009. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22010. 0, 0, 0, 0),
  22011. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22012. 0, 0, 0, 0),
  22013. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22014. 0, 0, 0, 0),
  22015. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22016. 0, 0, 0, 0),
  22017. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22018. 0, 0, 0, 0),
  22019. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22020. 0, 0, 0, 0),
  22021. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22022. 0, 0, 0, 0),
  22023. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22024. 0, 0, 0, 0),
  22025. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22026. 0, 0, 0, 0),
  22027. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22028. 0, 0, 0, 0),
  22029. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22030. 0, 0, 0, 0),
  22031. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22032. 0, 0, 0, 0),
  22033. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22034. 0, 0, 0, 0),
  22035. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22036. 0, 0, 0, 0),
  22037. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22038. 0, 0, 0, 0),
  22039. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22040. 0, 0, 0, 0),
  22041. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22042. 0, 0, 0, 0),
  22043. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22044. 0, 0, 0, 0),
  22045. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22046. 0, 0, 0, 0),
  22047. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22048. 0, 0, 0, 0),
  22049. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22050. 0, 0, 0, 0),
  22051. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22052. 0, 0, 0, 0),
  22053. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22054. 0, 0, 0, 0),
  22055. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22056. 0, 0, 0, 0),
  22057. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22058. 0, 0, 0, 0),
  22059. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22060. 0, 0, 0, 0),
  22061. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22062. 0, 0, 0, 0),
  22063. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22064. 0, 0, 0, 0),
  22065. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22066. 0, 0, 0, 0),
  22067. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22068. 0, 0, 0, 0),
  22069. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22070. 0, 0, 0, 0),
  22071. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22072. 0, 0, 0, 0),
  22073. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22074. 0, 0, 0, 0),
  22075. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22076. 0, 0, 0, 0),
  22077. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22078. 0, 0, 0, 0),
  22079. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22080. 0, 0, 0, 0),
  22081. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22082. 0, 0, 0, 0),
  22083. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22084. 0, 0, 0, 0),
  22085. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22086. 0, 0, 0, 0),
  22087. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22088. 0, 0, 0, 0),
  22089. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22090. 0, 0, 0, 0),
  22091. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22092. 0, 0, 0, 0),
  22093. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22094. 0, 0, 0, 0),
  22095. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22096. 0, 0, 0, 0),
  22097. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22098. 0, 0, 0, 0),
  22099. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22100. 0, 0, 0, 0),
  22101. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22102. 0, 0, 0, 0),
  22103. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22104. 0, 0, 0, 0),
  22105. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22106. 0, 0, 0, 0),
  22107. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22108. 0, 0, 0, 0),
  22109. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22110. 0, 0, 0, 0),
  22111. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22112. 0, 0, 0, 0),
  22113. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22114. 0, 0, 0, 0),
  22115. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22116. 0, 0, 0, 0),
  22117. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22118. 0, 0, 0, 0),
  22119. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22120. 0, 0, 0, 0),
  22121. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22122. 0, 0, 0, 0),
  22123. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22124. 0, 0, 0, 0),
  22125. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22126. 0, 0, 0, 0),
  22127. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22128. 0, 0, 0, 0),
  22129. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22130. 0, 0, 0, 0),
  22131. /* incall */
  22132. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22133. 0, 0, 0, 0),
  22134. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22135. 0, 0, 0, 0),
  22136. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22137. 0, 0, 0, 0),
  22138. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22139. 0, 0, 0, 0),
  22140. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22141. 0, 0, 0, 0),
  22142. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22143. 0, 0, 0, 0),
  22144. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22145. 0, 0, 0, 0),
  22146. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22147. 0, 0, 0, 0),
  22148. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22149. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22150. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22151. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22152. 0, 0, 0, 0),
  22153. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22154. 0, 0, 0, 0),
  22155. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22156. 0, 0, 0, 0),
  22157. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22158. 0, 0, 0, 0),
  22159. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22160. 0, 0, 0, 0),
  22161. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22162. 0, 0, 0, 0),
  22163. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22164. 0, 0, 0, 0),
  22165. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22166. 0, 0, 0, 0),
  22167. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22168. 0, 0, 0, 0),
  22169. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22170. 0, 0, 0, 0),
  22171. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22172. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22173. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22174. 0, 0, 0, 0),
  22175. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22176. 0, 0, 0, 0),
  22177. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22178. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22179. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22180. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22181. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22182. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22183. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22184. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22185. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22186. /* In- call recording */
  22187. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22188. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22189. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22190. 0, 0, 0, 0),
  22191. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22192. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22193. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22194. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22195. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22196. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22197. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22198. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22199. /* Switch Definitions */
  22200. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22201. &slim_fm_switch_mixer_controls),
  22202. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22203. &slim1_fm_switch_mixer_controls),
  22204. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22205. &slim3_fm_switch_mixer_controls),
  22206. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22207. &slim4_fm_switch_mixer_controls),
  22208. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22209. &slim6_fm_switch_mixer_controls),
  22210. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22211. &pcm_rx_switch_mixer_controls),
  22212. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22213. &int0_mi2s_rx_switch_mixer_controls),
  22214. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22215. &int4_mi2s_rx_switch_mixer_controls),
  22216. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22217. &pri_mi2s_rx_switch_mixer_controls),
  22218. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22219. &sec_mi2s_rx_switch_mixer_controls),
  22220. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22221. &tert_mi2s_rx_switch_mixer_controls),
  22222. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22223. &quat_mi2s_rx_switch_mixer_controls),
  22224. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22225. &quin_mi2s_rx_switch_mixer_controls),
  22226. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22227. &sco_slim7_switch_mixer_controls),
  22228. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22229. &sen_mi2s_rx_switch_mixer_controls),
  22230. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22231. &hfp_pri_aux_switch_mixer_controls),
  22232. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22233. &hfp_aux_switch_mixer_controls),
  22234. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22235. &hfp_int_switch_mixer_controls),
  22236. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22237. &hfp_slim7_switch_mixer_controls),
  22238. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22239. &usb_switch_mixer_controls),
  22240. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22241. &a2dp_slim7_switch_mixer_controls),
  22242. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22243. &cdc_dma_wsa_switch_mixer_controls),
  22244. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22245. &cdc_dma_rx_switch_mixer_controls),
  22246. /* Mixer definitions */
  22247. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22248. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22249. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22250. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22251. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22252. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22253. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22254. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22255. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22256. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22257. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22258. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22259. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22260. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22261. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22262. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22263. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22264. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22265. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22266. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22267. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22268. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22269. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22270. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22271. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22272. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22273. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22274. quaternary_mi2s_rx_mixer_controls,
  22275. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22276. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22277. tertiary_mi2s_rx_mixer_controls,
  22278. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22279. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22280. secondary_mi2s_rx_mixer_controls,
  22281. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22282. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22283. secondary_mi2s_rx2_mixer_controls,
  22284. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22285. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22286. primary_mi2s_rx_mixer_controls,
  22287. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22288. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22289. int0_mi2s_rx_mixer_controls,
  22290. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22291. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22292. int4_mi2s_rx_mixer_controls,
  22293. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22294. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22295. quinary_mi2s_rx_mixer_controls,
  22296. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22297. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22298. senary_mi2s_rx_mixer_controls,
  22299. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22300. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22301. pri_tdm_rx_0_mixer_controls,
  22302. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22303. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22304. pri_tdm_rx_1_mixer_controls,
  22305. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22306. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22307. pri_tdm_rx_2_mixer_controls,
  22308. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22309. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22310. pri_tdm_rx_3_mixer_controls,
  22311. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22312. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22313. pri_tdm_tx_0_mixer_controls,
  22314. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22315. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22316. sec_tdm_rx_0_mixer_controls,
  22317. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22318. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22319. sec_tdm_rx_1_mixer_controls,
  22320. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22321. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22322. sec_tdm_rx_2_mixer_controls,
  22323. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22324. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22325. sec_tdm_rx_3_mixer_controls,
  22326. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22327. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22328. sec_tdm_tx_0_mixer_controls,
  22329. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22330. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22331. tert_tdm_rx_0_mixer_controls,
  22332. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22333. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22334. tert_tdm_tx_0_mixer_controls,
  22335. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22336. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22337. tert_tdm_rx_1_mixer_controls,
  22338. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22339. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22340. tert_tdm_rx_2_mixer_controls,
  22341. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22342. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22343. tert_tdm_rx_3_mixer_controls,
  22344. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22345. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22346. tert_tdm_rx_4_mixer_controls,
  22347. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22348. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22349. quat_tdm_rx_0_mixer_controls,
  22350. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22351. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22352. quat_tdm_tx_0_mixer_controls,
  22353. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22354. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22355. quat_tdm_rx_1_mixer_controls,
  22356. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22357. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22358. quat_tdm_rx_2_mixer_controls,
  22359. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22360. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22361. quat_tdm_rx_3_mixer_controls,
  22362. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22363. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22364. quin_tdm_rx_0_mixer_controls,
  22365. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  22366. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22367. quin_tdm_tx_0_mixer_controls,
  22368. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  22369. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22370. quin_tdm_rx_1_mixer_controls,
  22371. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  22372. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22373. quin_tdm_rx_2_mixer_controls,
  22374. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  22375. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22376. quin_tdm_rx_3_mixer_controls,
  22377. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  22378. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22379. sen_tdm_tx_0_mixer_controls,
  22380. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  22381. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22382. sen_tdm_rx_0_mixer_controls,
  22383. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  22384. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22385. sen_tdm_rx_1_mixer_controls,
  22386. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  22387. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22388. sen_tdm_rx_2_mixer_controls,
  22389. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  22390. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22391. sen_tdm_rx_3_mixer_controls,
  22392. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  22393. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22394. wsa_cdc_dma_rx_0_mixer_controls,
  22395. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22396. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22397. wsa_cdc_dma_rx_1_mixer_controls,
  22398. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22399. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22400. rx_cdc_dma_rx_0_mixer_controls,
  22401. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22402. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22403. rx_cdc_dma_rx_1_mixer_controls,
  22404. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22405. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22406. rx_cdc_dma_rx_2_mixer_controls,
  22407. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22408. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22409. rx_cdc_dma_rx_3_mixer_controls,
  22410. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22411. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22412. rx_cdc_dma_rx_4_mixer_controls,
  22413. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22414. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22415. rx_cdc_dma_rx_5_mixer_controls,
  22416. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22417. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22418. rx_cdc_dma_rx_6_mixer_controls,
  22419. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22420. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22421. rx_cdc_dma_rx_7_mixer_controls,
  22422. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22423. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22424. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22425. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22426. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22427. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22428. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22429. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22430. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22431. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22432. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22433. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22434. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22435. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22436. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22437. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22438. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22439. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22440. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22441. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22442. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22443. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22444. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22445. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22446. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22447. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22448. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22449. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22450. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22451. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22452. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22453. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22454. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22455. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22456. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22457. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22458. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22459. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  22460. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  22461. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22462. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22463. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22464. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22465. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22466. tert_auxpcm_rx_mixer_controls,
  22467. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22468. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22469. quat_auxpcm_rx_mixer_controls,
  22470. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22471. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22472. quin_auxpcm_rx_mixer_controls,
  22473. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22474. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22475. sen_auxpcm_rx_mixer_controls,
  22476. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22477. /* incall */
  22478. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22479. incall_music_delivery_mixer_controls,
  22480. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22481. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22482. incall_music2_delivery_mixer_controls,
  22483. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22484. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22485. slimbus_4_rx_mixer_controls,
  22486. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22487. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22488. slimbus_6_rx_mixer_controls,
  22489. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22490. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22491. usb_audio_rx_mixer_controls,
  22492. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22493. /* Voice Mixer */
  22494. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22495. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22496. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22497. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22498. SND_SOC_NOPM, 0, 0,
  22499. sec_i2s_rx_voice_mixer_controls,
  22500. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22501. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22502. SND_SOC_NOPM, 0, 0,
  22503. sec_mi2s_rx_voice_mixer_controls,
  22504. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22505. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22506. SND_SOC_NOPM, 0, 0,
  22507. slimbus_rx_voice_mixer_controls,
  22508. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22509. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22510. SND_SOC_NOPM, 0, 0,
  22511. bt_sco_rx_voice_mixer_controls,
  22512. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22513. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22514. SND_SOC_NOPM, 0, 0,
  22515. afe_pcm_rx_voice_mixer_controls,
  22516. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22517. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22518. SND_SOC_NOPM, 0, 0,
  22519. aux_pcm_rx_voice_mixer_controls,
  22520. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22521. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22522. SND_SOC_NOPM, 0, 0,
  22523. sec_aux_pcm_rx_voice_mixer_controls,
  22524. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22525. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22526. SND_SOC_NOPM, 0, 0,
  22527. tert_aux_pcm_rx_voice_mixer_controls,
  22528. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22529. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22530. SND_SOC_NOPM, 0, 0,
  22531. quat_aux_pcm_rx_voice_mixer_controls,
  22532. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22533. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22534. SND_SOC_NOPM, 0, 0,
  22535. quin_aux_pcm_rx_voice_mixer_controls,
  22536. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22537. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22538. SND_SOC_NOPM, 0, 0,
  22539. sen_aux_pcm_rx_voice_mixer_controls,
  22540. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22541. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22542. SND_SOC_NOPM, 0, 0,
  22543. hdmi_rx_voice_mixer_controls,
  22544. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22545. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22546. SND_SOC_NOPM, 0, 0,
  22547. mi2s_rx_voice_mixer_controls,
  22548. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  22549. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  22550. SND_SOC_NOPM, 0, 0,
  22551. pri_mi2s_rx_voice_mixer_controls,
  22552. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  22553. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  22554. SND_SOC_NOPM, 0, 0,
  22555. int0_mi2s_rx_voice_mixer_controls,
  22556. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  22557. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  22558. SND_SOC_NOPM, 0, 0,
  22559. int4_mi2s_rx_voice_mixer_controls,
  22560. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  22561. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  22562. SND_SOC_NOPM, 0, 0,
  22563. tert_mi2s_rx_voice_mixer_controls,
  22564. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  22565. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  22566. SND_SOC_NOPM, 0, 0,
  22567. quat_mi2s_rx_voice_mixer_controls,
  22568. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  22569. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  22570. SND_SOC_NOPM, 0, 0,
  22571. quin_mi2s_rx_voice_mixer_controls,
  22572. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  22573. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  22574. SND_SOC_NOPM, 0, 0,
  22575. pri_tdm_rx_0_voice_mixer_controls,
  22576. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  22577. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  22578. SND_SOC_NOPM, 0, 0,
  22579. pri_tdm_rx_1_voice_mixer_controls,
  22580. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  22581. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  22582. SND_SOC_NOPM, 0, 0,
  22583. pri_tdm_rx_2_voice_mixer_controls,
  22584. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  22585. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  22586. SND_SOC_NOPM, 0, 0,
  22587. pri_tdm_rx_3_voice_mixer_controls,
  22588. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  22589. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  22590. SND_SOC_NOPM, 0, 0,
  22591. sen_mi2s_rx_voice_mixer_controls,
  22592. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  22593. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  22594. SND_SOC_NOPM, 0, 0,
  22595. quat_tdm_rx_2_voice_mixer_controls,
  22596. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  22597. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  22598. SND_SOC_NOPM, 0, 0,
  22599. wsa_cdc_dma_rx_0_voice_mixer_controls,
  22600. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  22601. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  22602. SND_SOC_NOPM, 0, 0,
  22603. rx_cdc_dma_rx_0_voice_mixer_controls,
  22604. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  22605. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  22606. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  22607. ARRAY_SIZE(tx_voip_mixer_controls)),
  22608. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  22609. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  22610. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  22611. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  22612. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  22613. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  22614. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22615. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  22616. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22617. int_bt_a2dp_rx_mixer_controls,
  22618. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  22619. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22620. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  22621. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22622. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  22623. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22624. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  22625. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22626. tx_voice2_stub_mixer_controls,
  22627. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  22628. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  22629. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  22630. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  22631. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  22632. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  22633. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  22634. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22635. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  22636. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  22637. SND_SOC_NOPM, 0, 0,
  22638. slimbus_6_rx_voice_mixer_controls,
  22639. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  22640. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22641. slimbus_7_rx_voice_mixer_controls,
  22642. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  22643. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  22644. slimbus_8_rx_voice_mixer_controls,
  22645. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  22646. /* port mixer */
  22647. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  22648. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  22649. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  22650. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  22651. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  22652. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  22653. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  22654. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  22655. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  22656. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  22657. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  22658. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  22659. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  22660. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  22661. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  22662. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  22663. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  22664. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  22665. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  22666. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  22667. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  22668. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22669. sbus_1_rx_port_mixer_controls,
  22670. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  22671. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22672. bt_sco_rx_port_mixer_controls,
  22673. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  22674. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  22675. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  22676. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  22677. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  22678. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  22679. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  22680. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  22681. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  22682. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  22683. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  22684. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  22685. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  22686. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  22687. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  22688. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  22689. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  22690. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  22691. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  22692. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  22693. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  22694. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  22695. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22696. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  22697. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22698. primary_mi2s_rx_port_mixer_controls,
  22699. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  22700. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22701. sec_mi2s_rx_port_mixer_controls,
  22702. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  22703. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22704. tert_mi2s_rx_port_mixer_controls,
  22705. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  22706. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22707. quat_mi2s_rx_port_mixer_controls,
  22708. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  22709. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22710. quin_mi2s_rx_port_mixer_controls,
  22711. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  22712. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22713. sen_mi2s_rx_port_mixer_controls,
  22714. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  22715. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22716. pri_tdm_rx_0_port_mixer_controls,
  22717. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  22718. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22719. pri_tdm_rx_1_port_mixer_controls,
  22720. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  22721. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22722. pri_tdm_rx_2_port_mixer_controls,
  22723. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  22724. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22725. pri_tdm_rx_3_port_mixer_controls,
  22726. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  22727. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22728. sec_tdm_rx_0_port_mixer_controls,
  22729. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  22730. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22731. sec_tdm_rx_1_port_mixer_controls,
  22732. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  22733. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22734. sec_tdm_rx_2_port_mixer_controls,
  22735. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  22736. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22737. sec_tdm_rx_3_port_mixer_controls,
  22738. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  22739. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22740. sec_tdm_rx_7_port_mixer_controls,
  22741. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  22742. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22743. tert_tdm_rx_0_port_mixer_controls,
  22744. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  22745. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22746. tert_tdm_rx_1_port_mixer_controls,
  22747. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  22748. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22749. tert_tdm_rx_2_port_mixer_controls,
  22750. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  22751. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22752. tert_tdm_rx_3_port_mixer_controls,
  22753. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  22754. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22755. quat_tdm_rx_0_port_mixer_controls,
  22756. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  22757. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22758. quat_tdm_rx_1_port_mixer_controls,
  22759. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  22760. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22761. quat_tdm_rx_2_port_mixer_controls,
  22762. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  22763. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22764. quat_tdm_rx_3_port_mixer_controls,
  22765. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  22766. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22767. quat_tdm_rx_7_port_mixer_controls,
  22768. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  22769. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22770. quin_tdm_rx_0_port_mixer_controls,
  22771. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  22772. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22773. quin_tdm_rx_1_port_mixer_controls,
  22774. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  22775. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22776. quin_tdm_rx_2_port_mixer_controls,
  22777. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  22778. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22779. quin_tdm_rx_3_port_mixer_controls,
  22780. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  22781. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  22782. quin_tdm_rx_7_port_mixer_controls,
  22783. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  22784. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22785. sen_tdm_rx_0_port_mixer_controls,
  22786. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  22787. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  22788. sen_tdm_rx_1_port_mixer_controls,
  22789. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  22790. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  22791. sen_tdm_rx_2_port_mixer_controls,
  22792. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  22793. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  22794. sen_tdm_rx_3_port_mixer_controls,
  22795. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  22796. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22797. int0_mi2s_rx_port_mixer_controls,
  22798. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  22799. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  22800. int4_mi2s_rx_port_mixer_controls,
  22801. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  22802. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22803. wsa_cdc_dma_rx_0_port_mixer_controls,
  22804. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  22805. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  22806. rx_cdc_dma_rx_0_port_mixer_controls,
  22807. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  22808. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  22809. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  22810. ARRAY_SIZE(tx_qchat_mixer_controls)),
  22811. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  22812. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  22813. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  22814. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  22815. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  22816. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  22817. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  22818. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  22819. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  22820. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  22821. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  22822. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  22823. /* lsm mixer definitions */
  22824. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  22825. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  22826. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  22827. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  22828. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  22829. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  22830. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  22831. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  22832. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  22833. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  22834. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  22835. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  22836. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  22837. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  22838. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  22839. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  22840. /* Virtual Pins to force backends ON atm */
  22841. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  22842. SND_SOC_DAPM_INPUT("BE_IN"),
  22843. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  22844. &slim0_rx_vi_fb_lch_mux),
  22845. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  22846. &slim0_rx_vi_fb_rch_mux),
  22847. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  22848. &wsa_rx_0_vi_fb_lch_mux),
  22849. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  22850. &wsa_rx_0_vi_fb_rch_mux),
  22851. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  22852. &mi2s_rx_vi_fb_mux),
  22853. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  22854. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  22855. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  22856. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  22857. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  22858. &voc_ext_ec_mux),
  22859. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  22860. &ext_ec_ref_mux_ul1),
  22861. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  22862. &ext_ec_ref_mux_ul2),
  22863. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  22864. &ext_ec_ref_mux_ul3),
  22865. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  22866. &ext_ec_ref_mux_ul4),
  22867. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  22868. &ext_ec_ref_mux_ul5),
  22869. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  22870. &ext_ec_ref_mux_ul6),
  22871. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  22872. &ext_ec_ref_mux_ul8),
  22873. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  22874. &ext_ec_ref_mux_ul9),
  22875. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  22876. &ext_ec_ref_mux_ul10),
  22877. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  22878. &ext_ec_ref_mux_ul16),
  22879. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  22880. &ext_ec_ref_mux_ul17),
  22881. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  22882. &ext_ec_ref_mux_ul18),
  22883. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  22884. &ext_ec_ref_mux_ul19),
  22885. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  22886. &ext_ec_ref_mux_ul28),
  22887. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  22888. &ext_ec_ref_mux_ul29),
  22889. };
  22890. static const struct snd_soc_dapm_route intercon[] = {
  22891. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22892. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22893. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22894. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22895. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22896. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22897. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22898. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22899. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22900. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22901. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22902. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22903. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22904. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22905. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22906. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22907. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22908. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  22909. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22910. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22911. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22912. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22913. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22914. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22915. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22916. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22917. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22918. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22919. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22920. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22921. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22922. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22923. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22924. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22925. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22926. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  22927. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22928. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22929. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22930. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22931. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22932. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22933. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22934. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22935. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22936. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22937. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22938. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22939. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22940. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22941. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22942. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22943. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22944. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  22945. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22946. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22947. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22948. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22949. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22950. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22951. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22952. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22953. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22954. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22955. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22956. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22957. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22958. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22959. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22960. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22961. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22962. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  22963. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22964. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22965. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22966. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22967. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22968. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22969. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22970. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22971. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22972. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22973. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22974. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22975. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22976. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22977. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22978. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22979. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22980. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  22981. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22982. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22983. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22984. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22985. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22986. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22987. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22988. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22989. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22990. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22991. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22992. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22993. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22994. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22995. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22996. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22997. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  22998. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  22999. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23000. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23001. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23002. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23003. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23004. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23005. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23006. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23007. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23008. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23009. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23010. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23011. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23012. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23013. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23014. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23015. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23016. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23017. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23018. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23019. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23020. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23021. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23022. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23023. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23024. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23025. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23026. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23027. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23028. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23029. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23030. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23031. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23032. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23033. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23034. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23035. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23036. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23037. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23038. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23039. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23040. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23041. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23042. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23043. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23044. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23045. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23046. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23047. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23048. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23049. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23050. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23051. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23052. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23053. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23054. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23055. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23056. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23057. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23058. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23059. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23060. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23061. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23062. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23063. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23064. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23065. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23066. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23067. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23068. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23069. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23070. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23071. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23072. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23073. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23074. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23075. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23076. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23077. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23078. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23079. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23080. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23081. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23082. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23083. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23084. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23085. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23086. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23087. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23088. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23089. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23090. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23091. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23092. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23093. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23094. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23095. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23096. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23097. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23098. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23099. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23100. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23101. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23102. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23103. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23104. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23105. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23106. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23107. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23108. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23109. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23110. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23111. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23112. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23113. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23114. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23115. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23116. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23117. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23118. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23119. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23120. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23121. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23122. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23123. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23124. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23125. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23126. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23127. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23128. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23129. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23130. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23131. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23132. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23133. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23134. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23135. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23136. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23137. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23138. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23139. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23140. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23141. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23142. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23143. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23144. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23145. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23146. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23147. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23148. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23149. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23150. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23151. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23152. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23153. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23154. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23155. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23156. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23157. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23158. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23159. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23160. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23161. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23162. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23163. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23164. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23165. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23166. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23167. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23168. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23169. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23170. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23171. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23172. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23173. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23174. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23175. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23176. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23177. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23178. {"HDMI", NULL, "HDMI Mixer"},
  23179. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23180. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23181. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23182. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23183. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23184. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23185. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23186. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23187. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23188. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23189. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23190. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23191. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23192. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23193. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23194. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23195. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23196. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23197. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23198. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23199. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23200. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23201. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23202. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23203. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23204. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23205. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23206. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23207. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23208. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23209. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23210. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23211. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23212. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23213. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23214. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23215. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23216. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23217. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23218. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23219. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23220. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23221. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23222. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23223. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23224. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23225. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23226. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23227. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23228. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23229. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23230. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23231. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23232. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23233. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23234. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23235. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23236. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23237. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23238. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23239. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23240. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23241. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23242. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23243. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23244. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23245. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23246. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23247. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23248. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23249. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23250. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23251. /* incall */
  23252. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23253. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23254. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23255. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23256. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23257. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23258. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23259. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23260. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23261. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23262. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23263. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23264. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23265. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23266. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23267. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23268. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23269. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23270. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23271. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23272. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23273. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23274. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23275. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23276. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23277. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23278. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23279. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23280. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23281. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23282. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23283. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23284. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23285. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23286. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23287. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23288. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23289. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23290. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23291. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23292. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23293. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23294. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23295. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23296. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23297. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23298. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23299. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23300. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23301. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23302. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23303. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23304. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23305. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23306. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23307. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23308. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23309. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23310. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23311. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23312. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23313. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23314. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23315. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23316. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23317. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23318. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23319. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23320. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23321. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23322. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23323. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23324. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23325. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23326. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23327. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23328. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23329. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23330. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23331. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23332. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23333. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23334. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23335. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23336. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23337. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23338. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23339. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23340. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23341. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23342. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23343. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23344. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23345. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  23346. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23347. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23348. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23349. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23350. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23351. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23352. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23353. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23354. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23355. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23356. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23357. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23358. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23359. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23360. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23361. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23362. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23363. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23364. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23365. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23366. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23367. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23368. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23369. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23370. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23371. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23372. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23373. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23374. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23375. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23376. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23377. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23378. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23379. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23380. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23381. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23382. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23383. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23384. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23385. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23386. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23387. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23388. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23389. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23390. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23391. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23392. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23393. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23394. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23395. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23396. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23397. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23398. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23399. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23400. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23401. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23402. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23403. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23404. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23405. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23406. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23407. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23408. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23409. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23410. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23411. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23412. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23413. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23414. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23415. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23416. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23417. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23418. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23419. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23420. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23421. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23422. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23423. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23424. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23425. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23426. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23427. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23428. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23429. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23430. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23431. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23432. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23433. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23434. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23435. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23436. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23437. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23438. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23439. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23440. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23441. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23442. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23443. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23444. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23445. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23446. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23447. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23448. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23449. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23450. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23451. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23452. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23453. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23454. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23455. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23456. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23457. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23458. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23459. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23460. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23461. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23462. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23463. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23464. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23465. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23466. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23467. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23468. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23469. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23470. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23471. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23472. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23473. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23474. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23475. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23476. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23477. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23478. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23479. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23480. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23481. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23482. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23483. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23484. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23485. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23486. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23487. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23488. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23489. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23490. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23491. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23492. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23493. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23494. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23495. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23496. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23497. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23498. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23499. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23500. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23501. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23502. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23503. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23504. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23505. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23506. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23507. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23508. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23509. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23510. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23511. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23512. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23513. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23514. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23515. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23516. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23517. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23518. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23519. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23520. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23521. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23522. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23523. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23524. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23525. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23526. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23527. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23528. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23529. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23530. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23531. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23532. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23533. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23534. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23535. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23536. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23537. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23538. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23539. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23540. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23541. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23542. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23543. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23544. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23545. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23546. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23547. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23548. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23549. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23550. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23551. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23552. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23553. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23554. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23555. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23556. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23557. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  23558. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23559. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23560. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23561. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23562. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23563. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23564. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23565. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23566. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23567. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23568. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23569. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23570. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23571. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23572. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23573. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  23574. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23575. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23576. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23577. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23578. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23579. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23580. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23581. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23582. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23583. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23584. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23585. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23586. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23587. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23588. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23589. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23590. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23591. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  23592. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23593. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23594. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23595. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23596. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23597. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23598. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23599. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23600. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23601. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23602. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23603. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23604. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23605. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23606. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23607. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23608. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23609. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  23610. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23611. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23612. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23613. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23614. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23615. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23616. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23617. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23618. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23619. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23620. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23621. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23622. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23623. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23624. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23625. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23626. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23627. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  23628. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23629. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23630. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23631. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23632. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23633. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23634. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23635. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23636. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23637. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23638. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23639. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23640. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23641. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23642. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23643. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23644. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23645. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  23646. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23647. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23648. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23649. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23650. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23651. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23652. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23653. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23654. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23655. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23656. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23657. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23658. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23659. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23660. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23661. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23662. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  23663. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23664. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23665. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23666. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23667. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23668. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23669. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23670. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23671. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23672. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23673. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23674. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23675. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23676. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23677. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23678. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23679. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23680. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  23681. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23682. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23683. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23684. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23685. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23686. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23687. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23688. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23689. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23690. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23691. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23692. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23693. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23694. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23695. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23696. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23697. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23698. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  23699. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23700. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23701. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23702. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23703. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23704. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23705. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23706. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23707. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23708. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23709. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23710. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23711. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23712. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23713. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23714. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23715. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23716. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  23717. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23718. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23719. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23720. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23721. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23722. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23723. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23724. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23725. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23726. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23727. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23728. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23729. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23730. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23731. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23732. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23733. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23734. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  23735. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23736. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23737. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23738. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23739. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23740. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23741. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23742. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23743. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23744. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23745. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23746. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23747. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23748. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23749. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23750. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23751. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  23752. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23753. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23754. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23755. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23756. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23757. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23758. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23759. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23760. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23761. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23762. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23763. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23764. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23765. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23766. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23767. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23768. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23769. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  23770. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23771. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23772. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23773. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23774. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23775. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23776. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23777. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23778. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23779. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23780. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23781. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23782. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23783. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23784. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23785. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23786. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  23787. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23788. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23789. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23790. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23791. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23792. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23793. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23794. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23795. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23796. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23797. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23798. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23799. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23800. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23801. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23802. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23803. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23804. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  23805. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23806. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23807. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23808. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23809. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23810. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23811. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23812. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23813. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23814. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23815. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23816. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23817. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23818. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23819. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23820. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23821. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23822. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  23823. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23824. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23825. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23826. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23827. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23828. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23829. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23830. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23831. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23832. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23833. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23834. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23835. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23836. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23837. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23838. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23839. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23840. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  23841. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23842. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23843. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23844. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23845. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23846. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23847. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23848. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23849. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23850. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23851. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23852. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23853. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23854. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23855. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23856. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23857. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23858. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  23859. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23860. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23861. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23862. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23863. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23864. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23865. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23866. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23867. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23868. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23869. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23870. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23871. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23872. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23873. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23874. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23875. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23876. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23877. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  23878. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23879. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23880. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23881. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23882. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23883. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23884. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23885. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23886. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23887. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23888. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23889. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23890. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23891. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23892. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23893. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23894. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  23895. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23896. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23897. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23898. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23899. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23900. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23901. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23902. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23903. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23904. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23905. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23906. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23907. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23908. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23909. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23910. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23911. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23912. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23913. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  23914. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23915. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23916. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23917. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23918. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23919. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23920. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23921. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23922. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23923. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23924. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23925. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23926. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23927. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23928. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23929. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23930. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23931. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23932. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  23933. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23934. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23935. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23936. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23937. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23938. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23939. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23940. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23941. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23942. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23943. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23944. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23945. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23946. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23947. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23948. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23949. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23950. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23951. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  23952. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23953. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23954. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23955. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23956. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23957. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23958. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23959. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23960. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23961. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23962. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23963. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23964. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23965. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23966. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23967. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23968. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  23969. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  23970. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  23971. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23972. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23973. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23974. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23975. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23976. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23977. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23978. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23979. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23980. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23981. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23982. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23983. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23984. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23985. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23986. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23987. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  23988. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23989. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23990. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23991. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23992. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23993. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23994. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23995. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23996. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23997. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23998. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23999. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24000. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24001. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24002. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24003. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24004. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24005. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24006. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24007. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24008. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24009. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24010. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24011. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24012. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24013. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24014. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24015. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24016. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24017. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24018. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24019. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24020. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24021. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24022. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24023. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24024. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24025. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24026. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24027. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24028. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24029. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24030. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24031. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24032. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24033. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24034. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24035. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24036. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24037. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24038. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24039. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24040. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24041. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24042. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24043. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24044. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24045. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24046. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24047. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24048. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24049. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24050. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24051. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24052. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24053. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24054. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24055. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24056. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24057. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24058. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24059. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24060. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24061. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24062. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24063. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24064. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24065. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24066. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24067. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24068. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24069. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24070. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24071. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24072. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24073. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24074. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24075. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24076. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24077. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24078. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24079. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24080. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24081. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24082. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24083. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24084. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24085. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24086. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24087. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24088. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24089. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24090. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24091. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24092. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24093. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24094. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24095. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24096. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24097. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24098. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24099. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24100. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24101. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24102. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24103. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24104. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24105. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24106. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24107. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24108. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24109. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24110. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24111. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24112. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24113. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24114. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24115. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24116. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24117. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24118. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24119. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24120. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24121. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24122. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24123. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24124. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24125. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24126. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24127. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24128. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24129. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24130. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24131. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24132. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24133. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24134. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24135. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24136. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24137. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24138. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24139. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24140. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24141. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24142. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24143. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24144. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24145. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24146. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24147. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24148. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24149. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24150. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24151. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24152. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24153. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24154. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24155. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24156. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24157. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24158. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24159. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24160. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24161. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24162. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24163. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24164. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24165. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24166. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24167. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24168. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24169. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24170. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24171. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24172. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24173. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24174. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24175. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24176. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24177. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24178. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24179. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24180. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24181. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24182. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24183. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24184. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24185. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24186. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24187. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24188. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24189. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24190. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24191. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24192. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24193. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24194. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24195. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24196. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24197. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24198. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24199. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24200. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24201. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24202. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24203. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24204. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24205. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24206. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24207. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24208. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24209. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24210. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24211. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24212. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24213. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24214. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24215. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24216. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24217. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24218. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24219. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24220. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24221. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24222. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24223. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24224. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24225. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24226. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24227. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24228. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24229. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24230. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24231. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24232. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24233. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24234. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24235. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24236. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24237. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24238. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24239. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24240. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24241. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24242. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24243. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24244. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24245. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24246. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24247. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24248. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24249. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24250. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24251. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24252. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24253. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24254. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24255. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24256. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24257. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24258. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24259. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24260. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24261. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24262. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24263. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24264. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24265. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24266. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24267. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24268. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24269. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24270. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24271. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24272. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24273. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24274. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24275. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24276. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24277. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24278. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24279. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24280. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24281. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24282. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24283. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24284. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24285. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24286. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24287. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24288. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24289. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24290. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24291. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24292. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24293. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24294. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24295. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24296. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24297. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24298. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24299. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24300. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24301. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24302. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24303. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24304. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24305. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24306. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24307. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24308. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24309. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24310. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24311. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24312. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24313. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24314. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24315. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24316. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24317. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24318. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24319. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24320. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24321. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24322. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24323. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24324. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24325. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24326. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24327. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24328. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24329. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24330. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24331. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24332. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24333. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24334. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24335. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24336. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24337. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24338. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24339. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24340. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24341. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24342. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24343. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24344. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24345. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24346. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24347. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24348. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24349. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24350. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24351. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24352. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24353. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24354. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24355. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24356. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24357. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24358. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24359. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24360. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24361. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24362. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24363. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24364. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24365. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24366. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24367. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24368. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24369. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24370. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24371. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24372. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24373. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24374. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24375. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24376. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24377. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24378. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24379. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24380. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24381. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24382. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24383. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24384. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24385. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24386. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24387. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24388. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24389. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24390. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24391. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24392. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24393. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24394. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24395. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24396. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24397. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24398. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24399. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24400. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24401. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24402. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24403. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24404. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24405. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24406. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24407. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24408. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24409. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24410. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24411. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24412. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24413. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24414. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24415. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24416. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24417. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24418. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24419. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24420. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24421. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24422. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24423. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24424. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24425. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24426. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24427. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24428. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24429. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24430. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24431. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24432. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24433. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24434. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24435. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24436. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24437. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24438. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24439. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24440. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24441. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24442. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24443. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24444. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24445. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24446. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24447. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24448. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24449. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24450. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24451. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24452. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24453. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24454. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24455. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24456. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24457. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24458. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24459. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24460. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24461. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24462. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24463. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24464. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24465. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24466. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24467. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24468. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24469. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24470. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24471. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24472. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24473. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24474. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24475. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24476. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24477. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24478. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24479. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24480. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24481. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24482. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24483. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24484. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24485. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24486. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24487. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24488. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24489. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24490. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24491. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24492. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24493. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24494. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24495. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24496. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24497. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24498. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24499. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24500. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24501. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24502. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24503. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24504. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24505. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24506. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24507. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24508. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24509. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24510. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24511. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24512. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24513. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24514. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24515. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24516. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24517. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24518. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24519. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24520. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24521. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24522. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24523. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24524. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24525. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24526. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24527. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24528. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24529. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24530. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24531. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24532. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24533. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24534. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24535. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24536. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24537. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24538. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24539. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24540. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24541. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24542. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24543. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24544. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24545. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24546. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24547. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24548. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24549. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24550. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24551. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24552. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24553. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24554. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24555. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24556. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24557. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24558. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24559. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24560. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24561. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24562. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24563. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24564. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24565. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24566. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24567. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24568. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24569. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24570. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24571. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24572. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24573. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24574. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24575. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24576. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24577. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24578. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24579. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24580. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24581. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24582. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24583. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24584. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24585. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24586. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24587. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24588. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24589. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24590. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24591. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24592. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24593. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24594. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24595. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24596. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24597. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24598. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24599. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24600. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24601. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24602. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24603. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24604. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24605. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24606. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24607. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24608. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24609. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24610. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24611. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24612. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24613. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24614. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24615. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24616. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24617. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24618. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24619. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24620. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24621. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24622. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24623. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24624. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24625. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24626. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24627. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24628. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24629. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24630. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24631. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24632. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24633. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24634. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24635. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24636. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24637. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24638. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24639. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24640. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24641. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24642. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24643. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24644. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24645. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24646. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24647. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24648. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24649. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24650. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24651. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24652. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24653. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24654. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24655. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24656. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24657. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24658. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24659. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24660. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24661. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24662. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24663. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24664. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24665. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24666. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24667. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24668. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24669. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24670. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24671. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24672. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24673. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24674. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24675. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24676. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24677. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24678. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24679. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24680. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24681. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24682. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24683. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24684. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24685. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24686. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24687. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24688. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24689. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24690. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24691. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24692. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24693. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24694. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24695. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24696. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24697. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24698. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24699. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24700. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24701. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24702. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24703. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24704. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24705. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24706. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24707. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24708. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24709. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24710. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24711. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24712. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24713. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24714. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24715. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24716. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24717. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24718. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24719. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24720. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24721. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24722. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24723. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24724. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24725. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24726. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24727. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24728. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24729. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24730. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24731. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24732. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24733. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24734. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24735. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24736. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24737. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24738. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24739. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24740. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24741. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24742. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24743. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24744. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24745. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24746. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24747. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  24748. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  24749. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24750. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24751. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24752. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24753. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24754. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24755. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24756. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24757. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24758. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24759. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24760. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24761. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24762. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24763. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24764. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24765. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  24766. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  24767. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24768. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24769. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24770. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24771. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24772. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24773. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24774. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24775. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24776. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24777. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24778. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24779. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24780. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24781. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24782. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24783. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  24784. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24785. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24786. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24787. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24788. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24789. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24790. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24791. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24792. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24793. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24794. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24795. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24796. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24797. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24798. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24799. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24800. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  24801. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24802. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24803. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24804. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24805. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24806. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24807. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24808. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24809. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24810. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24811. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24812. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24813. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24814. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24815. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24816. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24817. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24818. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24819. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24820. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24821. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24822. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24823. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24824. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24825. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24826. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24827. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24828. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24829. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24830. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24831. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24832. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24833. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24834. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24835. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24836. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24837. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24838. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  24839. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  24840. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24841. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  24842. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  24843. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  24844. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  24845. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  24846. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  24847. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  24848. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  24849. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  24850. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  24851. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  24852. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  24853. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  24854. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  24855. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  24856. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  24857. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  24858. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  24859. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24860. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24861. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24862. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24863. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24864. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24865. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24866. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24867. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24868. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24869. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24870. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24871. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24872. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24873. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24874. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24875. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24876. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  24877. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24878. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24879. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24880. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24881. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24882. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24883. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24884. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24885. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24886. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24887. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24888. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24889. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24890. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24891. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24892. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24893. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24894. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  24895. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24896. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24897. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24898. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24899. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24900. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24901. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24902. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24903. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24904. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24905. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24906. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24907. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24908. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24909. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24910. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24911. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  24912. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24913. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24914. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24915. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24916. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24917. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24918. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24919. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24920. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24921. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24922. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24923. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24924. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24925. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24926. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24927. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24928. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  24929. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24930. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24931. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24932. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24933. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24934. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24935. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24936. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24937. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24938. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24939. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24940. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24941. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24942. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24943. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24944. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24945. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  24946. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24947. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24948. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24949. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24950. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24951. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24952. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24953. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24954. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24955. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24956. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24957. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24958. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24959. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24960. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24961. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24962. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  24963. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24964. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24965. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24966. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24967. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24968. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  24969. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24970. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24971. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24972. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  24973. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24974. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  24975. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  24976. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24977. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24978. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24979. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24980. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  24981. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24982. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24983. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24984. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24985. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24986. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  24987. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24988. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24989. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24990. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24991. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24992. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  24993. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24994. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24995. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24996. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24997. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24998. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  24999. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25000. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25001. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25002. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25003. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25004. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25005. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25006. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25007. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25008. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25009. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25010. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25011. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25012. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25013. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25014. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25015. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25016. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25017. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25018. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25019. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25020. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25021. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25022. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25023. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25024. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25025. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25026. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25027. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25028. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25029. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25030. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25031. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25032. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25033. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25034. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25035. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25036. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25037. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25038. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25039. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25040. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25041. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25042. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25043. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25044. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25045. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25046. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25047. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25048. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25049. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25050. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25051. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25052. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25053. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25054. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25055. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25056. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25057. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25058. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25059. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25060. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25061. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25062. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25063. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25064. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25065. {"HDMI", NULL, "HDMI_DL_HL"},
  25066. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25067. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25068. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25069. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25070. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25071. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25072. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25073. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25074. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25075. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25076. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25077. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25078. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25079. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25080. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25081. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25082. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25083. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25084. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25085. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25086. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25087. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25088. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25089. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25090. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25091. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25092. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25093. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25094. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25095. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25096. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25097. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25098. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25099. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25100. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25101. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25102. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25103. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25104. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25105. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25106. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25107. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25108. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25109. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25110. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25111. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25112. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25113. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25114. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25115. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25116. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25117. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25118. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25119. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25120. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25121. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25122. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25123. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25124. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25125. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25126. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25127. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25128. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25129. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25130. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25131. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25132. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25133. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25134. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25135. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25136. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25137. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25138. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25139. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25140. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25141. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25142. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25143. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25144. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25145. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25146. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25147. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25148. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25149. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25150. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25151. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25152. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25153. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25154. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25155. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25156. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25157. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25158. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25159. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25160. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25161. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25162. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25163. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25164. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25165. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25166. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25167. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25168. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25169. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25170. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25171. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25172. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25173. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25174. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25175. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25176. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25177. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25178. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25179. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25180. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25181. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25182. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25183. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25184. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25185. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25186. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25187. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25188. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25189. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25190. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25191. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25192. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25193. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25194. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25195. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25196. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25197. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25198. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25199. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25200. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25201. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25202. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25203. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25204. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25205. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25206. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25207. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25208. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25209. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25210. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25211. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25212. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25213. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25214. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25215. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25216. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25217. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25218. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25219. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25220. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25221. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25222. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25223. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25224. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25225. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25226. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25227. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25228. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25229. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25230. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25231. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25232. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25233. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25234. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25235. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25236. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25237. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25238. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25239. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25240. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25241. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25242. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25243. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25244. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25245. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25246. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25247. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25248. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25249. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25250. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25251. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25252. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25253. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25254. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25255. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25256. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25257. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25258. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25259. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25260. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  25261. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  25262. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  25263. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  25264. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  25265. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  25266. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  25267. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  25268. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  25269. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  25270. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  25271. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  25272. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  25273. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  25274. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  25275. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  25276. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  25277. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  25278. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  25279. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  25280. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  25281. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  25282. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  25283. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  25284. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  25285. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  25286. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  25287. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  25288. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  25289. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  25290. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  25291. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  25292. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  25293. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  25294. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  25295. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  25296. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  25297. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  25298. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  25299. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  25300. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  25301. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  25302. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  25303. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  25304. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  25305. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  25306. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  25307. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  25308. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  25309. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  25310. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  25311. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  25312. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  25313. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  25314. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  25315. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  25316. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  25317. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  25318. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  25319. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  25320. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  25321. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  25322. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  25323. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  25324. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  25325. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  25326. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  25327. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  25328. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  25329. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  25330. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  25331. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  25332. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  25333. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  25334. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  25335. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  25336. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  25337. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  25338. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  25339. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  25340. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  25341. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  25342. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  25343. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  25344. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  25345. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  25346. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  25347. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  25348. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  25349. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  25350. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  25351. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  25352. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  25353. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  25354. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  25355. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  25356. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  25357. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  25358. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  25359. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  25360. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  25361. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  25362. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  25363. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  25364. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  25365. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  25366. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  25367. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  25368. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  25369. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25370. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  25371. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  25372. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25373. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25374. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  25375. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25376. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25377. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25378. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25379. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25380. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25381. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25382. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25383. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25384. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25385. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25386. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25387. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25388. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  25389. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25390. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25391. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25392. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25393. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25394. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25395. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25396. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25397. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25398. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25399. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25400. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25401. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25402. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  25403. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25404. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25405. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25406. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25407. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25408. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25409. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25410. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25411. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25412. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25413. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25414. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25415. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25416. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  25417. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25418. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25419. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25420. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25421. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25422. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25423. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25424. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25425. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25426. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25427. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25428. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25429. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25430. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25431. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25432. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25433. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25434. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25435. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25436. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25437. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25438. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25439. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25440. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25441. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25442. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25443. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25444. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25445. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25446. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25447. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25448. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25449. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25450. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25451. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25452. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25453. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25454. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25455. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25456. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  25457. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25458. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25459. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25460. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25461. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25462. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25463. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25464. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25465. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25466. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25467. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25468. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  25469. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25470. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25471. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25472. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25473. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25474. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25475. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25476. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25477. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25478. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25479. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25480. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  25481. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  25482. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  25483. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  25484. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  25485. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  25486. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  25487. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  25488. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  25489. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  25490. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  25491. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  25492. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  25493. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  25494. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  25495. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  25496. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  25497. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  25498. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  25499. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  25500. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  25501. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  25502. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  25503. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  25504. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  25505. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  25506. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  25507. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  25508. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  25509. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  25510. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  25511. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  25512. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  25513. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  25514. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  25515. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  25516. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  25517. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  25518. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  25519. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  25520. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  25521. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  25522. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  25523. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  25524. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  25525. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  25526. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  25527. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  25528. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  25529. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  25530. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  25531. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  25532. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  25533. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  25534. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  25535. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  25536. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  25537. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  25538. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  25539. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  25540. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  25541. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  25542. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  25543. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  25544. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  25545. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  25546. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  25547. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  25548. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  25549. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  25550. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  25551. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  25552. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  25553. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  25554. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  25555. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  25556. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  25557. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  25558. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  25559. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  25560. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  25561. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  25562. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  25563. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  25564. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  25565. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  25566. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  25567. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  25568. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  25569. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  25570. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  25571. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  25572. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  25573. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  25574. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  25575. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  25576. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  25577. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  25578. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  25579. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  25580. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  25581. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  25582. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  25583. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  25584. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  25585. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  25586. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  25587. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  25588. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  25589. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  25590. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  25591. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  25592. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  25593. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  25594. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  25595. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  25596. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  25597. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  25598. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  25599. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  25600. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  25601. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  25602. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25603. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25604. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25605. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25606. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25607. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25608. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25609. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25610. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25611. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25612. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25613. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25614. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25615. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25616. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25617. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25618. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25619. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25620. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25621. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25622. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25623. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25624. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25625. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25626. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  25627. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25628. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25629. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25630. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25631. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25632. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25633. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25634. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25635. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25636. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25637. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25638. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25639. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25640. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25641. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25642. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25643. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25644. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25645. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25646. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25647. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25648. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25649. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25650. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25651. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  25652. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25653. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25654. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25655. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25656. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25657. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25658. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25659. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25660. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25661. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25662. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25663. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25664. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25665. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25666. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25667. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25668. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25669. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25670. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25671. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25672. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25673. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25674. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25675. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25676. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  25677. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25678. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25679. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25680. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25681. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25682. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25683. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25684. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25685. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25686. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25687. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25688. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25689. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25690. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25691. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25692. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25693. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25694. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25695. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25696. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25697. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25698. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25699. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25700. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25701. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  25702. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25703. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25704. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25705. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25706. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25707. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25708. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25709. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25710. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25711. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25712. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25713. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25714. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25715. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25716. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25717. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25718. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25719. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25720. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25721. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25722. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25723. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25724. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25725. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25726. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  25727. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25728. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25729. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25730. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25731. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25732. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25733. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25734. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25735. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25736. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25737. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25738. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25739. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25740. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25741. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25742. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25743. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25744. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25745. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25746. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25747. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25748. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25749. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25750. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25751. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  25752. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25753. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25754. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25755. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25756. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25757. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25758. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25759. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25760. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25761. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25762. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25763. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25764. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25765. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25766. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25767. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25768. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25769. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25770. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25771. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25772. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25773. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25774. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25775. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25776. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  25777. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25778. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25779. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25780. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25781. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25782. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25783. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25784. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25785. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25786. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25787. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25788. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25789. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25790. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25791. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25792. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25793. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25794. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25795. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25796. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25797. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25798. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25799. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25800. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25801. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  25802. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  25803. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  25804. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25805. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25806. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25807. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25808. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25809. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25810. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25811. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25812. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25813. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25814. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25815. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25816. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25817. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25818. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25819. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25820. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25821. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25822. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25823. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25824. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25825. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25826. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25827. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25828. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  25829. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25830. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25831. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25832. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25833. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25834. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25835. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25836. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25837. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25838. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25839. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25840. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25841. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25842. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25843. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25844. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25845. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25846. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25847. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25848. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25849. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25850. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25851. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25852. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25853. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  25854. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25855. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25856. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25857. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25858. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25859. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25860. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25861. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25862. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25863. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25864. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25865. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25866. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25867. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25868. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25869. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25870. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25871. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25872. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25873. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25874. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25875. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25876. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25877. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25878. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  25879. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25880. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25881. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25882. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25883. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25884. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25885. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25886. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25887. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25888. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25889. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25890. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25891. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25892. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25893. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25894. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25895. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25896. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25897. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25898. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25899. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25900. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25901. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25902. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25903. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  25904. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25905. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25906. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25907. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25908. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25909. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25910. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25911. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25912. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25913. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25914. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25915. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25916. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25917. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25918. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25919. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25920. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25921. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25922. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25923. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25924. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25925. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25926. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25927. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25928. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  25929. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25930. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25931. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25932. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25933. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25934. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25935. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25936. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25937. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25938. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25939. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25940. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25941. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25942. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25943. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25944. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25945. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25946. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25947. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25948. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25949. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25950. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25951. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25952. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25953. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  25954. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25955. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25956. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25957. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25958. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25959. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25960. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25961. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25962. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25963. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25964. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25965. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25966. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25967. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25968. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25969. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25970. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25971. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25972. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25973. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25974. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25975. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25976. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25977. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25978. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  25979. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25980. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25981. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25982. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25983. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25984. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25985. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25986. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25987. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25988. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25989. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25990. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25991. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25992. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25993. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25994. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25995. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25996. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25997. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25998. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25999. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26000. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26001. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26002. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26003. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26004. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26005. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26006. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26007. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26008. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26009. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26010. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26011. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26012. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26013. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26014. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26015. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26016. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26017. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26018. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26019. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26020. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26021. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26022. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26023. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26024. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26025. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26026. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26027. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26028. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26029. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26030. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26031. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26032. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26033. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26034. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26035. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26036. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26037. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26038. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26039. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26040. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26041. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26042. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26043. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26044. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26045. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26046. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26047. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26048. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26049. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26050. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26051. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26052. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26053. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26054. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26055. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26056. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26057. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26058. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26059. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26060. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26061. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26062. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26063. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26064. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26065. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26066. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26067. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26068. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26069. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26070. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26071. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26072. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26073. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26074. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26075. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26076. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26077. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26078. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26079. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26080. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26081. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26082. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26083. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26084. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26085. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26086. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26087. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26088. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26089. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26090. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26091. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26092. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26093. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26094. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26095. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26096. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26097. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26098. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26099. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26100. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26101. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26102. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26103. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26104. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26105. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26106. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26107. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26108. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26109. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26110. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26111. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26112. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26113. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26114. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26115. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26116. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26117. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26118. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26119. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26120. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26121. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26122. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26123. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26124. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26125. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26126. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26127. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26128. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26129. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26130. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26131. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26132. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26133. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26134. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26135. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26136. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26137. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26138. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26139. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26140. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26141. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26142. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26143. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26144. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26145. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26146. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26147. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26148. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26149. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26150. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26151. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26152. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26153. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26154. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26155. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26156. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26157. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26158. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26159. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26160. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26161. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26162. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26163. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26164. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26165. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26166. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26167. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26168. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26169. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26170. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26171. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26172. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26173. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26174. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26175. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26176. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26177. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26178. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26179. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26180. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26181. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26182. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26183. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26184. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26185. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26186. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26187. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26188. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26189. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26190. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26191. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26192. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26193. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26194. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26195. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26196. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26197. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26198. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26199. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26200. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26201. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26202. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26203. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26204. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26205. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26206. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26207. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26208. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26209. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26210. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26211. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26212. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26213. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26214. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26215. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26216. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26217. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26218. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26219. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26220. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26221. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26222. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26223. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26224. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26225. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26226. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26227. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26228. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26229. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26230. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26231. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26232. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26233. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26234. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26235. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26236. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26237. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26238. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26239. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26240. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26241. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26242. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26243. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26244. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26245. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26246. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26247. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26248. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26249. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26250. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26251. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26252. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26253. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26254. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26255. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26256. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26257. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26258. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26259. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26260. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26261. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26262. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26263. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26264. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26265. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26266. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26267. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26268. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26269. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26270. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26271. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26272. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26273. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26274. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26275. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26276. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26277. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26278. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26279. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26280. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26281. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26282. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26283. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26284. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26285. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26286. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26287. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26288. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26289. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26290. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26291. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  26292. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26293. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26294. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26295. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26296. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26297. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26298. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26299. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26300. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26301. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26302. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26303. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26304. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26305. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26306. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26307. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26308. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26309. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26310. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26311. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26312. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26313. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26314. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26315. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26316. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26317. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26318. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26319. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26320. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26321. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26322. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26323. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26324. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26325. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26326. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26327. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26328. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26329. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26330. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26331. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26332. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26333. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26334. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26335. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26336. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26337. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26338. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26339. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26340. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26341. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26342. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26343. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26344. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26345. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26346. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26347. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26348. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26349. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26350. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26351. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26352. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26353. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26354. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26355. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26356. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26357. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26358. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26359. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26360. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26361. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26362. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26363. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26364. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26365. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26366. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26367. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26368. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26369. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26370. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26371. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26372. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26373. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26374. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26375. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26376. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26377. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26378. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26379. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  26380. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26381. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26382. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  26383. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26384. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26385. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  26386. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26387. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26388. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26389. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26390. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26391. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26392. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26393. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26394. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26395. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26396. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26397. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  26398. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26399. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26400. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26401. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26402. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26403. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26404. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26405. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26406. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26407. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26408. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  26409. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26410. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26411. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26412. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26413. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26414. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26415. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26416. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26417. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  26418. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26419. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26420. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26421. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26422. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26423. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26424. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26425. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26426. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26427. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26428. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  26429. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26430. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26431. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26432. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26433. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26434. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26435. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26436. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26437. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26438. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26439. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26440. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26441. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26442. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26443. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26444. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26445. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26446. /* Backend Enablement */
  26447. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26448. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26449. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26450. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26451. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26452. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26453. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26454. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26455. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26456. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26457. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26458. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26459. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26460. {"BE_OUT", NULL, "HDMI"},
  26461. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26462. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26463. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26464. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  26465. {"BE_OUT", NULL, "MI2S_RX"},
  26466. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  26467. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  26468. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  26469. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  26470. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  26471. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  26472. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  26473. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  26474. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  26475. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  26476. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  26477. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  26478. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26479. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  26480. {"BE_OUT", NULL, "INT_FM_RX"},
  26481. {"BE_OUT", NULL, "PCM_RX"},
  26482. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26483. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26484. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  26485. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  26486. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  26487. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  26488. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  26489. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26490. {"BE_OUT", NULL, "INT_FM_RX"},
  26491. {"BE_OUT", NULL, "PCM_RX"},
  26492. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26493. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  26494. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  26495. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  26496. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  26497. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  26498. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  26499. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  26500. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  26501. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  26502. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  26503. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  26504. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  26505. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  26506. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  26507. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  26508. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  26509. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  26510. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  26511. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  26512. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  26513. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  26514. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  26515. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  26516. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  26517. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  26518. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  26519. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  26520. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  26521. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  26522. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  26523. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  26524. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  26525. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  26526. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  26527. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  26528. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  26529. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  26530. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  26531. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  26532. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  26533. {"PRI_I2S_TX", NULL, "BE_IN"},
  26534. {"MI2S_TX", NULL, "BE_IN"},
  26535. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  26536. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  26537. {"PRI_MI2S_TX", NULL, "BE_IN"},
  26538. {"TERT_MI2S_TX", NULL, "BE_IN"},
  26539. {"INT0_MI2S_TX", NULL, "BE_IN"},
  26540. {"INT2_MI2S_TX", NULL, "BE_IN"},
  26541. {"INT3_MI2S_TX", NULL, "BE_IN"},
  26542. {"INT4_MI2S_TX", NULL, "BE_IN"},
  26543. {"INT5_MI2S_TX", NULL, "BE_IN"},
  26544. {"SEC_MI2S_TX", NULL, "BE_IN"},
  26545. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  26546. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  26547. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  26548. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  26549. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  26550. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  26551. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  26552. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  26553. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  26554. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  26555. {"USB_AUDIO_TX", NULL, "BE_IN" },
  26556. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  26557. {"INT_FM_TX", NULL, "BE_IN"},
  26558. {"PCM_TX", NULL, "BE_IN"},
  26559. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26560. {"BE_OUT", NULL, "STUB_RX"},
  26561. {"STUB_TX", NULL, "BE_IN"},
  26562. {"STUB_1_TX", NULL, "BE_IN"},
  26563. {"BE_OUT", NULL, "AUX_PCM_RX"},
  26564. {"AUX_PCM_TX", NULL, "BE_IN"},
  26565. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  26566. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  26567. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  26568. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  26569. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  26570. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  26571. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  26572. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26573. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  26574. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26575. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26576. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  26577. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  26578. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  26579. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  26580. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  26581. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  26582. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  26583. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  26584. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  26585. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  26586. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  26587. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  26588. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  26589. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  26590. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  26591. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  26592. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  26593. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  26594. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  26595. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  26596. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  26597. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  26598. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  26599. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  26600. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  26601. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  26602. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  26603. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  26604. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  26605. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  26606. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  26607. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  26608. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  26609. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  26610. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  26611. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  26612. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  26613. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  26614. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26615. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26616. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26617. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  26618. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  26619. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  26620. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  26621. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  26622. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  26623. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  26624. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  26625. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  26626. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  26627. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  26628. };
  26629. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  26630. struct snd_pcm_hw_params *params)
  26631. {
  26632. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26633. unsigned int be_id = rtd->dai_link->id;
  26634. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26635. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26636. return -EINVAL;
  26637. }
  26638. mutex_lock(&routing_lock);
  26639. msm_bedais[be_id].sample_rate = params_rate(params);
  26640. msm_bedais[be_id].channel = params_channels(params);
  26641. msm_bedais[be_id].format = params_format(params);
  26642. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  26643. __func__, msm_bedais[be_id].sample_rate,
  26644. msm_bedais[be_id].format, be_id);
  26645. mutex_unlock(&routing_lock);
  26646. return 0;
  26647. }
  26648. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  26649. {
  26650. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26651. unsigned int be_id = rtd->dai_link->id;
  26652. int i, session_type, path_type, topology;
  26653. struct msm_pcm_routing_bdai_data *bedai;
  26654. struct msm_pcm_routing_fdai_data *fdai;
  26655. pr_debug("%s: substream->pcm->id:%s\n",
  26656. __func__, substream->pcm->id);
  26657. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26658. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26659. return -EINVAL;
  26660. }
  26661. bedai = &msm_bedais[be_id];
  26662. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  26663. 0 : 1);
  26664. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  26665. path_type = ADM_PATH_PLAYBACK;
  26666. else
  26667. path_type = ADM_PATH_LIVE_REC;
  26668. mutex_lock(&routing_lock);
  26669. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26670. if (!is_mm_lsm_fe_id(i))
  26671. continue;
  26672. fdai = &fe_dai_map[i][session_type];
  26673. if (fdai->strm_id != INVALID_SESSION) {
  26674. int idx;
  26675. int port_id;
  26676. unsigned long copp =
  26677. session_copp_map[i][session_type][be_id];
  26678. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  26679. if (test_bit(idx, &copp))
  26680. break;
  26681. if (idx >= MAX_COPPS_PER_PORT) {
  26682. pr_debug("%s: copp idx is invalid, exiting\n",
  26683. __func__);
  26684. continue;
  26685. }
  26686. fdai->be_srate = bedai->sample_rate;
  26687. port_id = get_port_id(bedai->port_id);
  26688. topology = adm_get_topology_for_port_copp_idx(port_id,
  26689. idx);
  26690. msm_routing_unload_topology(topology);
  26691. adm_close(port_id, fdai->perf_mode, idx);
  26692. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  26693. __func__, copp, i, session_type, be_id,
  26694. topology);
  26695. clear_bit(idx,
  26696. &session_copp_map[i][session_type][be_id]);
  26697. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  26698. (fdai->passthr_mode == LEGACY_PCM))
  26699. msm_pcm_routing_deinit_pp(port_id,
  26700. topology);
  26701. }
  26702. }
  26703. bedai->active = 0;
  26704. bedai->sample_rate = 0;
  26705. bedai->channel = 0;
  26706. mutex_unlock(&routing_lock);
  26707. return 0;
  26708. }
  26709. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  26710. {
  26711. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  26712. unsigned int be_id = rtd->dai_link->id;
  26713. int i, path_type, topology;
  26714. int session_type = INVALID_SESSION;
  26715. struct msm_pcm_routing_bdai_data *bedai;
  26716. u32 channels, sample_rate;
  26717. uint16_t bits_per_sample = 16, voc_path_type;
  26718. struct msm_pcm_routing_fdai_data *fdai;
  26719. u32 session_id;
  26720. struct media_format_info voc_be_media_format;
  26721. bool is_lsm;
  26722. pr_debug("%s: substream->pcm->id:%s\n",
  26723. __func__, substream->pcm->id);
  26724. if (be_id >= MSM_BACKEND_DAI_MAX) {
  26725. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  26726. return -EINVAL;
  26727. }
  26728. bedai = &msm_bedais[be_id];
  26729. mutex_lock(&routing_lock);
  26730. if (bedai->active == 1)
  26731. goto done; /* Ignore prepare if back-end already active */
  26732. /* AFE port is not active at this point. However, still
  26733. * go ahead setting active flag under the notion that
  26734. * QDSP6 is able to handle ADM starting before AFE port
  26735. * is started.
  26736. */
  26737. bedai->active = 1;
  26738. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26739. if (!(is_mm_lsm_fe_id(i) &&
  26740. route_check_fe_id_adm_support(i)))
  26741. continue;
  26742. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  26743. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26744. fdai = &fe_dai_map[i][session_type];
  26745. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  26746. if (fdai->passthr_mode != LEGACY_PCM)
  26747. path_type = ADM_PATH_COMPRESSED_RX;
  26748. else
  26749. path_type = ADM_PATH_PLAYBACK;
  26750. } else {
  26751. if ((fdai->passthr_mode != LEGACY_PCM) &&
  26752. (fdai->passthr_mode != LISTEN))
  26753. path_type = ADM_PATH_COMPRESSED_TX;
  26754. else
  26755. path_type = ADM_PATH_LIVE_REC;
  26756. }
  26757. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  26758. (i <= MSM_FRONTEND_DAI_LSM8);
  26759. if (fdai->strm_id != INVALID_SESSION) {
  26760. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  26761. int port_id = get_port_id(bedai->port_id);
  26762. if (session_type == SESSION_TYPE_TX &&
  26763. fdai->be_srate &&
  26764. (fdai->be_srate != bedai->sample_rate)) {
  26765. pr_debug("%s: flush strm %d diff BE rates\n",
  26766. __func__,
  26767. fdai->strm_id);
  26768. if (fdai->event_info.event_func)
  26769. fdai->event_info.event_func(
  26770. MSM_PCM_RT_EVT_BUF_RECFG,
  26771. fdai->event_info.priv_data);
  26772. fdai->be_srate = 0; /* might not need it */
  26773. }
  26774. bits_per_sample = msm_routing_get_bit_width(
  26775. bedai->format);
  26776. app_type =
  26777. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  26778. if (app_type && is_lsm) {
  26779. app_type_idx =
  26780. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  26781. sample_rate =
  26782. fe_dai_app_type_cfg[i][session_type][be_id]
  26783. .sample_rate;
  26784. bits_per_sample =
  26785. lsm_app_type_cfg[app_type_idx].bit_width;
  26786. } else if (app_type) {
  26787. app_type_idx =
  26788. msm_pcm_routing_get_app_type_idx(app_type);
  26789. sample_rate =
  26790. fe_dai_app_type_cfg[i][session_type]
  26791. [be_id].sample_rate;
  26792. bits_per_sample =
  26793. app_type_cfg[app_type_idx].bit_width;
  26794. } else
  26795. sample_rate = bedai->sample_rate;
  26796. /*
  26797. * check if ADM needs to be configured with different
  26798. * channel mapping than backend
  26799. */
  26800. if (!bedai->adm_override_ch)
  26801. channels = bedai->channel;
  26802. else
  26803. channels = bedai->adm_override_ch;
  26804. acdb_dev_id =
  26805. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  26806. topology = msm_routing_get_adm_topology(i, session_type,
  26807. be_id);
  26808. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  26809. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  26810. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  26811. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  26812. copp_idx = adm_open(port_id, path_type,
  26813. sample_rate, channels, topology,
  26814. fdai->perf_mode, bits_per_sample,
  26815. app_type, acdb_dev_id,
  26816. session_type);
  26817. if ((copp_idx < 0) ||
  26818. (copp_idx >= MAX_COPPS_PER_PORT)) {
  26819. pr_err("%s: adm open failed\n", __func__);
  26820. mutex_unlock(&routing_lock);
  26821. return -EINVAL;
  26822. }
  26823. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  26824. __func__, i, session_type, be_id);
  26825. set_bit(copp_idx,
  26826. &session_copp_map[i][session_type][be_id]);
  26827. if (msm_is_resample_needed(
  26828. sample_rate,
  26829. bedai->sample_rate))
  26830. adm_copp_mfc_cfg(port_id, copp_idx,
  26831. bedai->sample_rate);
  26832. msm_pcm_routing_build_matrix(i, session_type, path_type,
  26833. fdai->perf_mode, fdai->passthr_mode);
  26834. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  26835. (fdai->passthr_mode == LEGACY_PCM))
  26836. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  26837. topology, channels);
  26838. }
  26839. }
  26840. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  26841. session_id = msm_pcm_routing_get_voc_sessionid(i);
  26842. if (session_id) {
  26843. pr_debug("%s voice session_id: 0x%x\n", __func__,
  26844. session_id);
  26845. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  26846. voc_path_type = RX_PATH;
  26847. else
  26848. voc_path_type = TX_PATH;
  26849. voc_set_route_flag(session_id, voc_path_type, 1);
  26850. memset(&voc_be_media_format, 0,
  26851. sizeof(struct media_format_info));
  26852. voc_be_media_format.port_id = bedai->port_id;
  26853. voc_be_media_format.num_channels = bedai->channel;
  26854. voc_be_media_format.sample_rate = bedai->sample_rate;
  26855. voc_be_media_format.bits_per_sample = bedai->format;
  26856. /* Defaulting this to 1 for voice call usecases */
  26857. voc_be_media_format.channel_mapping[0] = 1;
  26858. voc_set_device_config(session_id, voc_path_type,
  26859. &voc_be_media_format);
  26860. if (voc_get_route_flag(session_id, RX_PATH) &&
  26861. voc_get_route_flag(session_id, TX_PATH))
  26862. voc_enable_device(session_id);
  26863. }
  26864. }
  26865. /* Check if backend is an external ec ref port and set as needed */
  26866. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  26867. memset(&voc_be_media_format, 0,
  26868. sizeof(struct media_format_info));
  26869. /* Get format info for ec ref port from msm_bedais[] */
  26870. voc_be_media_format.port_id = bedai->port_id;
  26871. voc_be_media_format.num_channels = bedai->channel;
  26872. voc_be_media_format.bits_per_sample = bedai->format;
  26873. voc_be_media_format.sample_rate = bedai->sample_rate;
  26874. /* Defaulting this to 1 for voice call usecases */
  26875. voc_be_media_format.channel_mapping[0] = 1;
  26876. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  26877. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  26878. __func__, voc_be_media_format.port_id,
  26879. voc_be_media_format.num_channels,
  26880. voc_be_media_format.bits_per_sample,
  26881. voc_be_media_format.sample_rate);
  26882. }
  26883. done:
  26884. mutex_unlock(&routing_lock);
  26885. return 0;
  26886. }
  26887. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  26888. int fe_id)
  26889. {
  26890. int index, topo_id, be_idx;
  26891. unsigned long pp_config = 0;
  26892. bool mute_on;
  26893. int latency, session_type;
  26894. bool compr_passthr_mode = true;
  26895. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  26896. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  26897. pr_err("%s: Device pp params on invalid port %d\n",
  26898. __func__, port_id);
  26899. return -EINVAL;
  26900. }
  26901. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  26902. if (port_id == msm_bedais[be_idx].port_id)
  26903. break;
  26904. }
  26905. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  26906. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  26907. return -EINVAL;
  26908. }
  26909. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  26910. if (msm_bedais_pp_params[index].port_id == port_id)
  26911. break;
  26912. }
  26913. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  26914. pr_err("%s: Invalid backend pp params index %d\n",
  26915. __func__, index);
  26916. return -EINVAL;
  26917. }
  26918. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  26919. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  26920. pr_err("%s: Invalid passthrough topology 0x%x\n",
  26921. __func__, topo_id);
  26922. return -EINVAL;
  26923. }
  26924. session_type =
  26925. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  26926. SESSION_TYPE_RX : SESSION_TYPE_TX;
  26927. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  26928. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  26929. compr_passthr_mode = false;
  26930. pp_config = msm_bedais_pp_params[index].pp_params_config;
  26931. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  26932. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  26933. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  26934. mute_on = msm_bedais_pp_params[index].mute_on;
  26935. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26936. adm_send_compressed_device_mute(port_id,
  26937. copp_idx,
  26938. mute_on);
  26939. }
  26940. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  26941. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  26942. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  26943. &pp_config);
  26944. latency = msm_bedais_pp_params[index].latency;
  26945. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  26946. adm_send_compressed_device_latency(port_id,
  26947. copp_idx,
  26948. latency);
  26949. }
  26950. return 0;
  26951. }
  26952. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  26953. {
  26954. uint32_t topology = NULL_COPP_TOPOLOGY;
  26955. void *cal_info = NULL;
  26956. uint32_t size = 0;
  26957. /* Retrieve cal_info size from cal data*/
  26958. if (data_size < sizeof(struct audio_cal_type_basic) +
  26959. sizeof(struct audio_cal_info_adm_top)) {
  26960. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  26961. goto done;
  26962. }
  26963. size = data_size - sizeof(struct audio_cal_type_basic);
  26964. cal_info = kzalloc(size, GFP_KERNEL);
  26965. if (!cal_info)
  26966. goto done;
  26967. memcpy(cal_info,
  26968. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  26969. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  26970. kfree(cal_info);
  26971. cal_info = NULL;
  26972. done:
  26973. pr_debug("%s: Using topology %d\n", __func__, topology);
  26974. return topology;
  26975. }
  26976. static void msm_routing_load_topology(size_t data_size, void *data)
  26977. {
  26978. uint32_t topology_id;
  26979. int ret = -EINVAL;
  26980. topology_id = msm_routing_get_topology(data_size, data);
  26981. if (topology_id != NULL_COPP_TOPOLOGY)
  26982. ret = q6core_load_unload_topo_modules(topology_id,
  26983. CORE_LOAD_TOPOLOGY);
  26984. if (ret < 0)
  26985. pr_debug("%s %d load topology failed\n",
  26986. __func__, topology_id);
  26987. }
  26988. static void msm_routing_unload_topology(uint32_t topology_id)
  26989. {
  26990. int ret = -EINVAL;
  26991. if (topology_id != NULL_COPP_TOPOLOGY)
  26992. ret = q6core_load_unload_topo_modules(topology_id,
  26993. CORE_UNLOAD_TOPOLOGY);
  26994. if (ret < 0)
  26995. pr_debug("%s %d unload topology failed\n",
  26996. __func__, topology_id);
  26997. }
  26998. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  26999. struct snd_ctl_elem_value *ucontrol)
  27000. {
  27001. int pp_id = ucontrol->value.integer.value[0];
  27002. int port_id = 0;
  27003. int index, be_idx, i, topo_id, idx;
  27004. bool mute;
  27005. int latency, session_type;
  27006. bool compr_passthr_mode = true;
  27007. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27008. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27009. port_id = msm_bedais[be_idx].port_id;
  27010. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27011. break;
  27012. }
  27013. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27014. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27015. return -EINVAL;
  27016. }
  27017. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27018. if (msm_bedais_pp_params[index].port_id == port_id)
  27019. break;
  27020. }
  27021. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27022. pr_err("%s: Invalid pp params backend index %d\n",
  27023. __func__, index);
  27024. return -EINVAL;
  27025. }
  27026. session_type =
  27027. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27028. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27029. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27030. MSM_FRONTEND_DAI_MM_SIZE) {
  27031. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27032. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27033. compr_passthr_mode = false;
  27034. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27035. unsigned long copp =
  27036. session_copp_map[i]
  27037. [SESSION_TYPE_RX][be_idx];
  27038. if (!test_bit(idx, &copp))
  27039. continue;
  27040. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27041. idx);
  27042. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27043. continue;
  27044. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27045. __func__, port_id, copp, msm_bedais[be_idx].active,
  27046. fe_dai_map[i][session_type].passthr_mode);
  27047. switch (pp_id) {
  27048. case ADM_PP_PARAM_MUTE_ID:
  27049. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27050. mute = ucontrol->value.integer.value[1] ? true : false;
  27051. msm_bedais_pp_params[index].mute_on = mute;
  27052. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27053. &msm_bedais_pp_params[index].pp_params_config);
  27054. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27055. adm_send_compressed_device_mute(port_id,
  27056. idx, mute);
  27057. break;
  27058. case ADM_PP_PARAM_LATENCY_ID:
  27059. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27060. msm_bedais_pp_params[index].latency =
  27061. ucontrol->value.integer.value[1];
  27062. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27063. &msm_bedais_pp_params[index].pp_params_config);
  27064. latency = msm_bedais_pp_params[index].latency =
  27065. ucontrol->value.integer.value[1];
  27066. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27067. adm_send_compressed_device_latency(port_id,
  27068. idx, latency);
  27069. break;
  27070. default:
  27071. pr_info("%s, device pp param %d not supported\n",
  27072. __func__, pp_id);
  27073. break;
  27074. }
  27075. }
  27076. }
  27077. return 0;
  27078. }
  27079. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27080. struct snd_ctl_elem_value *ucontrol)
  27081. {
  27082. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27083. return 0;
  27084. }
  27085. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27086. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27087. 0, 3, msm_routing_get_device_pp_params_mixer,
  27088. msm_routing_put_device_pp_params_mixer),
  27089. };
  27090. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27091. struct snd_ctl_elem_value *ucontrol)
  27092. {
  27093. ucontrol->value.integer.value[0] =
  27094. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27095. pr_debug("%s: status %ld\n", __func__,
  27096. ucontrol->value.integer.value[0]);
  27097. return 0;
  27098. }
  27099. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27100. struct snd_ctl_elem_value *ucontrol)
  27101. {
  27102. int32_t status = 0;
  27103. status = core_set_license(ucontrol->value.integer.value[0],
  27104. APTX_CLASSIC_DEC_LICENSE_ID);
  27105. pr_debug("%s: status %d\n", __func__, status);
  27106. return status;
  27107. }
  27108. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27109. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27110. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27111. msm_aptx_dec_license_control_put),
  27112. };
  27113. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27114. struct snd_ctl_elem_value *ucontrol)
  27115. {
  27116. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27117. uint32_t be_idx = ucontrol->value.integer.value[0];
  27118. int i;
  27119. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27120. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27121. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27122. pr_err("%s: Invalid channel map %d\n",
  27123. __func__, channel_map[i]);
  27124. return -EINVAL;
  27125. }
  27126. }
  27127. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27128. return 0;
  27129. }
  27130. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27131. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27132. MSM_BACKEND_DAI_MAX, 0,
  27133. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27134. msm_routing_put_port_chmap_mixer),
  27135. };
  27136. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27137. struct snd_ctl_elem_info *uinfo)
  27138. {
  27139. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27140. uinfo->count = sizeof(be_dai_name_table);
  27141. return 0;
  27142. }
  27143. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27144. unsigned int __user *bytes,
  27145. unsigned int size)
  27146. {
  27147. int i;
  27148. int ret = 0;
  27149. if (size < sizeof(be_dai_name_table)) {
  27150. pr_err("%s: invalid size %d requested, returning\n",
  27151. __func__, size);
  27152. ret = -EINVAL;
  27153. goto done;
  27154. }
  27155. /*
  27156. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27157. * needed when adding new backends
  27158. */
  27159. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27160. be_dai_name_table[i].be_id = i;
  27161. strlcpy(be_dai_name_table[i].be_name,
  27162. msm_bedais[i].name,
  27163. LPASS_BE_NAME_MAX_LENGTH);
  27164. }
  27165. ret = copy_to_user(bytes, &be_dai_name_table,
  27166. sizeof(be_dai_name_table));
  27167. if (ret) {
  27168. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27169. ret = -EFAULT;
  27170. }
  27171. done:
  27172. return ret;
  27173. }
  27174. static const struct snd_kcontrol_new
  27175. msm_routing_be_dai_name_table_mixer_controls[] = {
  27176. {
  27177. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27178. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27179. .info = msm_routing_be_dai_name_table_info,
  27180. .name = "Backend DAI Name Table",
  27181. .tlv.c = snd_soc_bytes_tlv_callback,
  27182. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27183. .max = sizeof(be_dai_name_table),
  27184. .get = msm_routing_be_dai_name_table_tlv_get,
  27185. }
  27186. },
  27187. };
  27188. static int msm_routing_stereo_channel_reverse_control_get(
  27189. struct snd_kcontrol *kcontrol,
  27190. struct snd_ctl_elem_value *ucontrol)
  27191. {
  27192. ucontrol->value.integer.value[0] = swap_ch;
  27193. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27194. ucontrol->value.integer.value[0]);
  27195. return 0;
  27196. }
  27197. static int msm_routing_stereo_channel_reverse_control_put(
  27198. struct snd_kcontrol *kcontrol,
  27199. struct snd_ctl_elem_value *ucontrol)
  27200. {
  27201. int i, idx, be_index, port_id;
  27202. int ret = 0;
  27203. unsigned long copp;
  27204. pr_debug("%s Swap channel value:%ld\n", __func__,
  27205. ucontrol->value.integer.value[0]);
  27206. swap_ch = ucontrol->value.integer.value[0];
  27207. mutex_lock(&routing_lock);
  27208. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27209. port_id = msm_bedais[be_index].port_id;
  27210. if (!msm_bedais[be_index].active)
  27211. continue;
  27212. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27213. MSM_FRONTEND_DAI_MM_SIZE) {
  27214. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27215. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27216. if (!test_bit(idx, &copp))
  27217. continue;
  27218. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27219. __func__, port_id, idx);
  27220. ret = adm_swap_speaker_channels(
  27221. port_id, idx,
  27222. msm_bedais[be_index].sample_rate,
  27223. swap_ch);
  27224. if (ret) {
  27225. pr_err("%s:Swap_channel failed, err=%d\n",
  27226. __func__, ret);
  27227. goto done;
  27228. }
  27229. }
  27230. }
  27231. }
  27232. done:
  27233. mutex_unlock(&routing_lock);
  27234. return ret;
  27235. }
  27236. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27237. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27238. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27239. msm_routing_stereo_channel_reverse_control_put),
  27240. };
  27241. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27242. struct snd_ctl_elem_info *uinfo)
  27243. {
  27244. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  27245. uinfo->count = 1;
  27246. return 0;
  27247. }
  27248. static int msm_routing_instance_id_support_put(
  27249. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27250. {
  27251. bool supported = ucontrol->value.integer.value[0] ? true : false;
  27252. q6common_update_instance_id_support(supported);
  27253. return 0;
  27254. }
  27255. static int msm_routing_instance_id_support_get(
  27256. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27257. {
  27258. bool supported = false;
  27259. supported = q6common_is_instance_id_supported();
  27260. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  27261. return 0;
  27262. }
  27263. static const struct snd_kcontrol_new
  27264. msm_routing_feature_support_mixer_controls[] = {
  27265. {
  27266. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  27267. SNDRV_CTL_ELEM_ACCESS_WRITE,
  27268. .info = msm_routing_instance_id_support_info,
  27269. .name = "Instance ID Support",
  27270. .put = msm_routing_instance_id_support_put,
  27271. .get = msm_routing_instance_id_support_get,
  27272. },
  27273. };
  27274. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  27275. .hw_params = msm_pcm_routing_hw_params,
  27276. .close = msm_pcm_routing_close,
  27277. .prepare = msm_pcm_routing_prepare,
  27278. };
  27279. /* Not used but frame seems to require it */
  27280. static int msm_routing_probe(struct snd_soc_component *component)
  27281. {
  27282. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  27283. ARRAY_SIZE(msm_qdsp6_widgets));
  27284. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  27285. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  27286. snd_soc_dapm_add_routes(&component->dapm, intercon,
  27287. ARRAY_SIZE(intercon));
  27288. snd_soc_dapm_new_widgets(component->dapm.card);
  27289. snd_soc_add_component_controls(component, lsm_controls,
  27290. ARRAY_SIZE(lsm_controls));
  27291. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  27292. ARRAY_SIZE(aanc_slim_0_rx_mux));
  27293. snd_soc_add_component_controls(component, aanc_noise_level,
  27294. ARRAY_SIZE(aanc_noise_level));
  27295. snd_soc_add_component_controls(component, msm_voc_session_controls,
  27296. ARRAY_SIZE(msm_voc_session_controls));
  27297. snd_soc_add_component_controls(component, app_type_cfg_controls,
  27298. ARRAY_SIZE(app_type_cfg_controls));
  27299. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  27300. ARRAY_SIZE(lsm_app_type_cfg_controls));
  27301. snd_soc_add_component_controls(component, module_cfg_controls,
  27302. ARRAY_SIZE(module_cfg_controls));
  27303. snd_soc_add_component_controls(component,
  27304. stereo_to_custom_stereo_controls,
  27305. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  27306. snd_soc_add_component_controls(component, ec_ref_param_controls,
  27307. ARRAY_SIZE(ec_ref_param_controls));
  27308. snd_soc_add_component_controls(component, channel_mixer_controls,
  27309. ARRAY_SIZE(channel_mixer_controls));
  27310. msm_qti_pp_add_controls(component);
  27311. msm_dts_srs_tm_add_controls(component);
  27312. msm_dolby_dap_add_controls(component);
  27313. snd_soc_add_component_controls(component,
  27314. use_ds1_or_ds2_controls,
  27315. ARRAY_SIZE(use_ds1_or_ds2_controls));
  27316. snd_soc_add_component_controls(component,
  27317. device_pp_params_mixer_controls,
  27318. ARRAY_SIZE(device_pp_params_mixer_controls));
  27319. snd_soc_add_component_controls(component,
  27320. msm_routing_be_dai_name_table_mixer_controls,
  27321. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  27322. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  27323. ARRAY_SIZE(msm_source_tracking_controls));
  27324. snd_soc_add_component_controls(component, adm_channel_config_controls,
  27325. ARRAY_SIZE(adm_channel_config_controls));
  27326. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  27327. ARRAY_SIZE(aptx_dec_license_controls));
  27328. snd_soc_add_component_controls(component,
  27329. stereo_channel_reverse_control,
  27330. ARRAY_SIZE(stereo_channel_reverse_control));
  27331. snd_soc_add_component_controls(
  27332. component, msm_routing_feature_support_mixer_controls,
  27333. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  27334. snd_soc_add_component_controls(component,
  27335. port_multi_channel_map_mixer_controls,
  27336. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  27337. return 0;
  27338. }
  27339. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  27340. {
  27341. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  27342. }
  27343. void msm_routing_pcm_free(struct snd_pcm *pcm)
  27344. {
  27345. msm_pcm_routing_hwdep_free(pcm);
  27346. }
  27347. static struct snd_soc_component_driver msm_soc_routing_component = {
  27348. .name = DRV_NAME,
  27349. .ops = &msm_routing_pcm_ops,
  27350. .probe = msm_routing_probe,
  27351. .pcm_new = msm_routing_pcm_new,
  27352. .pcm_free = msm_routing_pcm_free,
  27353. };
  27354. static int msm_routing_pcm_probe(struct platform_device *pdev)
  27355. {
  27356. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  27357. return snd_soc_register_component(&pdev->dev,
  27358. &msm_soc_routing_component,
  27359. NULL, 0);
  27360. }
  27361. static int msm_routing_pcm_remove(struct platform_device *pdev)
  27362. {
  27363. snd_soc_unregister_component(&pdev->dev);
  27364. return 0;
  27365. }
  27366. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  27367. {.compatible = "qcom,msm-pcm-routing"},
  27368. {}
  27369. };
  27370. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  27371. static struct platform_driver msm_routing_pcm_driver = {
  27372. .driver = {
  27373. .name = "msm-pcm-routing",
  27374. .owner = THIS_MODULE,
  27375. .of_match_table = msm_pcm_routing_dt_match,
  27376. .suppress_bind_attrs = true,
  27377. },
  27378. .probe = msm_routing_pcm_probe,
  27379. .remove = msm_routing_pcm_remove,
  27380. };
  27381. int msm_routing_check_backend_enabled(int fedai_id)
  27382. {
  27383. int i;
  27384. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  27385. /* bad ID assigned in machine driver */
  27386. pr_err("%s: bad MM ID\n", __func__);
  27387. return 0;
  27388. }
  27389. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27390. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  27391. return msm_bedais[i].active;
  27392. }
  27393. return 0;
  27394. }
  27395. static int get_cal_type_index(int32_t cal_type)
  27396. {
  27397. int ret = -EINVAL;
  27398. switch (cal_type) {
  27399. case ADM_TOPOLOGY_CAL_TYPE:
  27400. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  27401. break;
  27402. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  27403. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  27404. break;
  27405. default:
  27406. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  27407. }
  27408. return ret;
  27409. }
  27410. static int msm_routing_set_cal(int32_t cal_type,
  27411. size_t data_size, void *data)
  27412. {
  27413. int ret = 0;
  27414. int cal_index;
  27415. pr_debug("%s\n", __func__);
  27416. cal_index = get_cal_type_index(cal_type);
  27417. if (cal_index < 0) {
  27418. pr_err("%s: Could not get cal index %d\n",
  27419. __func__, cal_index);
  27420. ret = -EINVAL;
  27421. goto done;
  27422. }
  27423. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  27424. if (ret < 0) {
  27425. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  27426. __func__, ret, cal_type);
  27427. ret = -EINVAL;
  27428. goto done;
  27429. }
  27430. /* Pre-load if it is ADM topology */
  27431. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  27432. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27433. msm_routing_load_topology(data_size, data);
  27434. }
  27435. done:
  27436. return ret;
  27437. }
  27438. static void msm_routing_delete_cal_data(void)
  27439. {
  27440. pr_debug("%s\n", __func__);
  27441. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27442. }
  27443. static int msm_routing_init_cal_data(void)
  27444. {
  27445. int ret = 0;
  27446. struct cal_type_info cal_type_info[] = {
  27447. {{ADM_TOPOLOGY_CAL_TYPE,
  27448. {NULL, NULL, NULL,
  27449. msm_routing_set_cal, NULL, NULL} },
  27450. {NULL, NULL, cal_utils_match_buf_num} },
  27451. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  27452. {NULL, NULL, NULL,
  27453. msm_routing_set_cal, NULL, NULL} },
  27454. {NULL, NULL, cal_utils_match_buf_num} },
  27455. };
  27456. pr_debug("%s\n", __func__);
  27457. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  27458. &cal_type_info[0]);
  27459. if (ret < 0) {
  27460. pr_err("%s: could not create cal type!\n",
  27461. __func__);
  27462. ret = -EINVAL;
  27463. goto err;
  27464. }
  27465. return ret;
  27466. err:
  27467. msm_routing_delete_cal_data();
  27468. return ret;
  27469. }
  27470. int __init msm_soc_routing_platform_init(void)
  27471. {
  27472. mutex_init(&routing_lock);
  27473. if (msm_routing_init_cal_data())
  27474. pr_err("%s: could not init cal data!\n", __func__);
  27475. afe_set_routing_callback(
  27476. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  27477. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  27478. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  27479. return platform_driver_register(&msm_routing_pcm_driver);
  27480. }
  27481. void msm_soc_routing_platform_exit(void)
  27482. {
  27483. msm_routing_delete_cal_data();
  27484. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  27485. mutex_destroy(&routing_lock);
  27486. platform_driver_unregister(&msm_routing_pcm_driver);
  27487. }
  27488. MODULE_DESCRIPTION("MSM routing platform driver");
  27489. MODULE_LICENSE("GPL v2");