msm-pcm-routing-v2.c 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326
  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 bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define LSM_FUNCTION_TEXT "LSM Function"
  113. static const char * const lsm_port_text[] = {
  114. "None",
  115. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  116. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  117. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  118. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  119. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  120. };
  121. struct msm_pcm_route_bdai_pp_params {
  122. u16 port_id; /* AFE port ID */
  123. unsigned long pp_params_config;
  124. bool mute_on;
  125. int latency;
  126. };
  127. static struct msm_pcm_route_bdai_pp_params
  128. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  129. {HDMI_RX, 0, 0, 0},
  130. {DISPLAY_PORT_RX, 0, 0, 0},
  131. };
  132. /*
  133. * The be_dai_name_table is passed to HAL so that it can specify the
  134. * BE ID for the BE it wants to enable based on the name. Thus there
  135. * is a matching table and structure in HAL that need to be updated
  136. * if any changes to these are made.
  137. */
  138. struct msm_pcm_route_bdai_name {
  139. unsigned int be_id;
  140. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  141. };
  142. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  143. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  144. int fe_id);
  145. static void msm_routing_load_topology(size_t data_size, void *data);
  146. static void msm_routing_unload_topology(uint32_t topology_id);
  147. static int msm_routing_get_bit_width(unsigned int format)
  148. {
  149. int bit_width;
  150. switch (format) {
  151. case SNDRV_PCM_FORMAT_S32_LE:
  152. bit_width = 32;
  153. break;
  154. case SNDRV_PCM_FORMAT_S24_LE:
  155. case SNDRV_PCM_FORMAT_S24_3LE:
  156. bit_width = 24;
  157. break;
  158. case SNDRV_PCM_FORMAT_S16_LE:
  159. default:
  160. bit_width = 16;
  161. }
  162. return bit_width;
  163. }
  164. static bool msm_is_resample_needed(int input_sr, int output_sr)
  165. {
  166. bool rc = false;
  167. if (input_sr != output_sr)
  168. rc = true;
  169. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  170. (rc ? "oh yes" : "not really"),
  171. input_sr, output_sr);
  172. return rc;
  173. }
  174. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  175. int channels)
  176. {
  177. int rc = 0;
  178. switch (topology) {
  179. case SRS_TRUMEDIA_TOPOLOGY_ID:
  180. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  181. msm_dts_srs_tm_init(port_id, copp_idx);
  182. break;
  183. case DS2_ADM_COPP_TOPOLOGY_ID:
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  185. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  186. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  187. is_custom_stereo_on);
  188. if (rc < 0)
  189. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  190. __func__, topology, port_id,
  191. is_custom_stereo_on, rc);
  192. break;
  193. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  194. if (is_ds2_on) {
  195. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  196. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  197. is_custom_stereo_on);
  198. if (rc < 0)
  199. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  200. __func__, topology, port_id, rc);
  201. } else {
  202. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  203. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  204. is_custom_stereo_on);
  205. if (rc < 0)
  206. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  207. __func__, topology, port_id, rc);
  208. }
  209. break;
  210. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  211. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  212. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  213. if (rc < 0)
  214. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  215. __func__, topology, port_id, copp_idx, rc);
  216. break;
  217. default:
  218. /* custom topology specific feature param handlers */
  219. break;
  220. }
  221. }
  222. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  223. {
  224. switch (topology) {
  225. case SRS_TRUMEDIA_TOPOLOGY_ID:
  226. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  227. msm_dts_srs_tm_deinit(port_id);
  228. break;
  229. case DS2_ADM_COPP_TOPOLOGY_ID:
  230. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  231. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  232. msm_ds2_dap_deinit(port_id);
  233. break;
  234. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  235. if (is_ds2_on) {
  236. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  237. msm_ds2_dap_deinit(port_id);
  238. } else {
  239. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_dolby_dap_deinit(port_id);
  241. }
  242. break;
  243. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  244. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  245. msm_qti_pp_asphere_deinit(port_id);
  246. break;
  247. default:
  248. /* custom topology specific feature deinit handlers */
  249. break;
  250. }
  251. }
  252. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  253. int path_type, int perf_mode)
  254. {
  255. int itr = 0, rc = 0;
  256. if ((path_type == ADM_PATH_PLAYBACK) &&
  257. (perf_mode == LEGACY_PCM_MODE) &&
  258. is_custom_stereo_on) {
  259. for (itr = 0; itr < payload.num_copps; itr++) {
  260. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  261. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  262. continue;
  263. }
  264. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  265. payload.port_id[itr],
  266. payload.copp_idx[itr],
  267. payload.session_id,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE);
  272. if (rc < 0)
  273. pr_err("%s: err setting custom stereo\n",
  274. __func__);
  275. }
  276. }
  277. }
  278. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  279. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  280. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  281. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  282. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  283. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  284. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  285. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  286. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  287. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  288. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  289. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_AFE_PCM_RX},
  291. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_TX},
  293. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AUXPCM_RX},
  295. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_TX},
  297. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_VOICE_PLAYBACK_TX},
  299. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE2_PLAYBACK_TX},
  301. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_INCALL_RECORD_RX},
  303. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_TX},
  305. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  306. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  307. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  308. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  309. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  310. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  311. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  312. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  313. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  314. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  315. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  316. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  317. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  318. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  319. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  320. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  321. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  322. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  323. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  327. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_QUAT_MI2S_RX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_TX},
  331. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_SEC_MI2S_RX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_TX},
  335. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_PRI_MI2S_RX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_TX},
  339. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_TERT_MI2S_RX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_TX},
  343. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_AUDIO_I2S_RX},
  345. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_SEC_AUXPCM_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_TX},
  349. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_PRI_SPDIF_RX},
  351. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_SEC_MI2S_RX_SD1},
  353. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_QUIN_MI2S_RX},
  355. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_TX},
  357. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_SENARY_MI2S_TX},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_RX_0},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_TX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_RX_1},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_TX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_RX_2},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_TX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_RX_3},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_TX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_RX_4},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_TX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_RX_5},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_TX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_RX_6},
  385. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_TX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_RX_7},
  389. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_TX_7},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_RX_0},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_TX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_RX_1},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_TX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_RX_2},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_TX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_RX_3},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_TX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_RX_4},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_TX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_RX_5},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_TX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_RX_6},
  417. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_TX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_RX_7},
  421. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_TX_7},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_RX_0},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_TX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_RX_1},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_TX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_RX_2},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_TX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_RX_3},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_TX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_RX_4},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_TX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_RX_5},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_TX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_RX_6},
  449. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_TX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_RX_7},
  453. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_TX_7},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_RX_0},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_TX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_RX_1},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_TX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_RX_2},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_TX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_RX_3},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_TX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_RX_4},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_TX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_RX_5},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_TX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_RX_6},
  481. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_TX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_RX_7},
  485. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_TX_7},
  487. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_RX_0},
  489. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_TX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_RX_1},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_TX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_RX_2},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_TX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_RX_3},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_TX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_RX_4},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_TX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_RX_5},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_TX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_RX_6},
  513. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_TX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_RX_7},
  517. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_TX_7},
  519. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_SEN_TDM_RX_0},
  521. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_TX_0},
  523. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_RX_1},
  525. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_TX_1},
  527. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_RX_2},
  529. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_TX_2},
  531. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_RX_3},
  533. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_TX_3},
  535. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_RX_4},
  537. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_TX_4},
  539. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_RX_5},
  541. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_TX_5},
  543. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_RX_6},
  545. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_TX_6},
  547. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_RX_7},
  549. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_TX_7},
  551. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT_BT_A2DP_RX},
  553. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_USB_AUDIO_RX},
  555. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_TX},
  557. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_DISPLAY_PORT},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT1},
  561. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_TERT_AUXPCM_RX},
  563. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_TX},
  565. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_QUAT_AUXPCM_RX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_TX},
  569. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUIN_AUXPCM_RX},
  571. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_TX},
  573. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_INT0_MI2S_RX},
  575. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_TX},
  577. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT1_MI2S_RX},
  579. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_TX},
  581. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT2_MI2S_RX},
  583. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_TX},
  585. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT3_MI2S_RX},
  587. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_TX},
  589. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT4_MI2S_RX},
  591. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_TX},
  593. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT5_MI2S_RX},
  595. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_TX},
  597. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT6_MI2S_RX},
  599. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_TX},
  601. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_SEN_AUXPCM_RX},
  603. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_TX},
  605. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SENARY_MI2S_RX},
  607. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_WSA_CDC_DMA_RX_0},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_TX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_RX_1},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_TX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_2},
  617. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_VA_CDC_DMA_TX_0},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_1},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_2},
  623. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_RX_CDC_DMA_RX_0},
  625. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_TX_CDC_DMA_TX_0},
  627. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_RX_CDC_DMA_RX_1},
  629. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_TX_CDC_DMA_TX_1},
  631. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_RX_CDC_DMA_RX_2},
  633. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_TX_CDC_DMA_TX_2},
  635. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_RX_CDC_DMA_RX_3},
  637. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_TX_CDC_DMA_TX_3},
  639. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_RX_CDC_DMA_RX_4},
  641. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_TX_CDC_DMA_TX_4},
  643. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_RX_CDC_DMA_RX_5},
  645. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_TX_CDC_DMA_TX_5},
  647. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_RX_CDC_DMA_RX_6},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_7},
  651. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_PRI_SPDIF_TX},
  653. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_SEC_SPDIF_RX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_TX},
  657. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  658. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  659. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  660. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_PRI_META_MI2S_RX},
  662. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_SEC_META_MI2S_RX},
  664. };
  665. /* Track ASM playback & capture sessions of DAI
  666. * Track LSM listen sessions
  667. */
  668. static struct msm_pcm_routing_fdai_data
  669. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  670. /* MULTIMEDIA1 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  673. /* MULTIMEDIA2 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA3 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA4 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA5 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA6 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA7*/
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA8 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA9 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* MULTIMEDIA10 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* MULTIMEDIA11 */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* MULTIMEDIA12 */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* MULTIMEDIA13 */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* MULTIMEDIA14 */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* MULTIMEDIA15 */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* MULTIMEDIA16 */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* MULTIMEDIA17 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* MULTIMEDIA18 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* MULTIMEDIA19 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* MULTIMEDIA20 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* MULTIMEDIA21 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* MULTIMEDIA22 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* MULTIMEDIA26 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* MULTIMEDIA27 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* MULTIMEDIA28 */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* MULTIMEDIA29 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* MULTIMEDIA30 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. /* VOIP */
  752. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  753. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  754. /* AFE_RX */
  755. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  756. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  757. /* AFE_TX */
  758. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  759. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  760. /* VOICE_STUB */
  761. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  762. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  763. /* DTMF_RX */
  764. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  765. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  766. /* QCHAT */
  767. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  768. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  769. /* VOLTE_STUB */
  770. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  771. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  772. /* LSM1 */
  773. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  774. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  775. /* LSM2 */
  776. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  777. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  778. /* LSM3 */
  779. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  780. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  781. /* LSM4 */
  782. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  783. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  784. /* LSM5 */
  785. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  786. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  787. /* LSM6 */
  788. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  789. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  790. /* LSM7 */
  791. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  792. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  793. /* LSM8 */
  794. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  795. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  796. /* VOICE2_STUB */
  797. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  798. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  799. /* VOICEMMODE1 */
  800. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  801. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  802. /* VOICEMMODE2 */
  803. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  804. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  805. };
  806. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  807. [MSM_BACKEND_DAI_MAX];
  808. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  809. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  810. static struct msm_pcm_stream_app_type_cfg
  811. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  812. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  813. /* The caller of this should acquire routing lock */
  814. void msm_pcm_routing_get_bedai_info(int be_idx,
  815. struct msm_pcm_routing_bdai_data *be_dai)
  816. {
  817. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  818. memcpy(be_dai, &msm_bedais[be_idx],
  819. sizeof(struct msm_pcm_routing_bdai_data));
  820. }
  821. /* The caller of this should acquire routing lock */
  822. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  823. struct msm_pcm_routing_fdai_data *fe_dai)
  824. {
  825. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  826. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  827. sizeof(struct msm_pcm_routing_fdai_data));
  828. }
  829. void msm_pcm_routing_acquire_lock(void)
  830. {
  831. mutex_lock(&routing_lock);
  832. }
  833. void msm_pcm_routing_release_lock(void)
  834. {
  835. mutex_unlock(&routing_lock);
  836. }
  837. static int msm_pcm_routing_get_app_type_idx(int app_type)
  838. {
  839. int idx;
  840. pr_debug("%s: app_type: %d\n", __func__, app_type);
  841. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  842. if (app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_info("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (lsm_app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_debug("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int get_port_id(int port_id)
  860. {
  861. int ret = port_id;
  862. if (port_id == AFE_LOOPBACK_TX) {
  863. /*
  864. * Return afe_loopback_tx_port_id if set. Else return
  865. * msm_ec_ref_port_id to maintain backward compatibility.
  866. */
  867. if (afe_loopback_tx_port_id != -1)
  868. ret = afe_loopback_tx_port_id;
  869. else
  870. ret = msm_ec_ref_port_id;
  871. }
  872. return ret;
  873. }
  874. static bool is_mm_lsm_fe_id(int fe_id)
  875. {
  876. bool rc = true;
  877. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  878. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  879. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  880. rc = false;
  881. }
  882. return rc;
  883. }
  884. /*
  885. * msm_pcm_routing_send_chmix_cfg:
  886. * send the channel mixer command to mix the input channels
  887. * into output channels.
  888. *
  889. * @fe_id: front end id
  890. * @ip_channel_cnt: input channel count
  891. * @op_channel_cnt: output channel count
  892. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  893. * @session_type: indicates session is of type TX or RX
  894. * @stream_type: indicates either Audio or Listen stream type
  895. */
  896. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  897. int op_channel_cnt, int *ch_wght_coeff,
  898. int session_type, int stream_type)
  899. {
  900. int rc = 0, idx = 0;
  901. int be_index = 0, port_id;
  902. unsigned int session_id = 0;
  903. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  904. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  905. stream_type);
  906. if (!is_mm_lsm_fe_id(fe_id)) {
  907. /* bad ID assigned in machine driver */
  908. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  909. return -EINVAL;
  910. }
  911. if (ch_wght_coeff == NULL) {
  912. pr_err("%s: Null channel weightage coefficients passed\n",
  913. __func__);
  914. return -EINVAL;
  915. }
  916. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  917. port_id = msm_bedais[be_index].port_id;
  918. if (!msm_bedais[be_index].active ||
  919. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  920. continue;
  921. session_id = fe_dai_map[fe_id][session_type].strm_id;
  922. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  923. unsigned long copp =
  924. session_copp_map[fe_id][session_type][be_index];
  925. if (!test_bit(idx, &copp))
  926. continue;
  927. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  928. session_id, ip_channel_cnt,
  929. op_channel_cnt, ch_wght_coeff,
  930. session_type, stream_type);
  931. if (rc < 0)
  932. pr_err("%s: err setting channel mix config\n",
  933. __func__);
  934. }
  935. }
  936. return 0;
  937. }
  938. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  939. /**
  940. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  941. * setting before use case start.
  942. *
  943. * @fe_id: frontend idx
  944. * @type: stream direction type
  945. * @params: parameters of channel mixer setting
  946. *
  947. * Return 0 for success
  948. */
  949. int msm_pcm_routing_set_channel_mixer_cfg(
  950. int fe_id, int type,
  951. struct msm_pcm_channel_mixer *params)
  952. {
  953. int i, j = 0;
  954. channel_mixer_v2[fe_id][type].enable = params->enable;
  955. channel_mixer_v2[fe_id][type].rule = params->rule;
  956. channel_mixer_v2[fe_id][type].input_channel =
  957. params->input_channel;
  958. channel_mixer_v2[fe_id][type].output_channel =
  959. params->output_channel;
  960. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  961. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  962. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  963. params->in_ch_map[i];
  964. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  965. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  966. params->out_ch_map[i];
  967. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  968. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  969. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  970. params->channel_weight[i][j];
  971. channel_mixer_v2[fe_id][type].override_in_ch_map =
  972. params->override_in_ch_map;
  973. channel_mixer_v2[fe_id][type].override_out_ch_map =
  974. params->override_out_ch_map;
  975. return 0;
  976. }
  977. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  978. int msm_pcm_routing_reg_stream_app_type_cfg(
  979. int fedai_id, int session_type, int be_id,
  980. struct msm_pcm_stream_app_type_cfg *cfg_data)
  981. {
  982. int ret = 0;
  983. if (cfg_data == NULL) {
  984. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  985. ret = -EINVAL;
  986. goto done;
  987. }
  988. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  989. __func__, fedai_id, session_type, be_id,
  990. cfg_data->app_type, cfg_data->acdb_dev_id,
  991. cfg_data->sample_rate);
  992. if (!is_mm_lsm_fe_id(fedai_id)) {
  993. pr_err("%s: Invalid machine driver ID %d\n",
  994. __func__, fedai_id);
  995. ret = -EINVAL;
  996. goto done;
  997. }
  998. if (session_type != SESSION_TYPE_RX &&
  999. session_type != SESSION_TYPE_TX) {
  1000. pr_err("%s: Invalid session type %d\n",
  1001. __func__, session_type);
  1002. ret = -EINVAL;
  1003. goto done;
  1004. }
  1005. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1006. pr_err("%s: Received out of bounds be_id %d\n",
  1007. __func__, be_id);
  1008. ret = -EINVAL;
  1009. goto done;
  1010. }
  1011. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1012. /*
  1013. * Store the BE ID of the configuration information set as the latest so
  1014. * the get mixer control knows what to return.
  1015. */
  1016. last_be_id_configured[fedai_id][session_type] = be_id;
  1017. done:
  1018. return ret;
  1019. }
  1020. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1021. /**
  1022. * msm_pcm_routing_get_stream_app_type_cfg
  1023. *
  1024. * Receives fedai_id, session_type, be_id, and populates app_type,
  1025. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1026. * -EINVAL and does not alter passed values.
  1027. *
  1028. * fedai_id - Passed value, front end ID for which app type config is wanted
  1029. * session_type - Passed value, session type for which app type config
  1030. * is wanted
  1031. * be_id - Returned value, back end device id the app type config data is for
  1032. * cfg_data - Returned value, configuration data used by app type config
  1033. */
  1034. int msm_pcm_routing_get_stream_app_type_cfg(
  1035. int fedai_id, int session_type, int *bedai_id,
  1036. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1037. {
  1038. int be_id;
  1039. int ret = 0;
  1040. if (bedai_id == NULL) {
  1041. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1042. ret = -EINVAL;
  1043. goto done;
  1044. } else if (cfg_data == NULL) {
  1045. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1046. ret = -EINVAL;
  1047. goto done;
  1048. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1049. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. } else if (session_type != SESSION_TYPE_RX &&
  1053. session_type != SESSION_TYPE_TX) {
  1054. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. }
  1058. be_id = last_be_id_configured[fedai_id][session_type];
  1059. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1060. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. }
  1064. *bedai_id = be_id;
  1065. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1066. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1067. __func__, fedai_id, session_type, *bedai_id,
  1068. cfg_data->app_type, cfg_data->acdb_dev_id,
  1069. cfg_data->sample_rate);
  1070. done:
  1071. return ret;
  1072. }
  1073. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1074. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1075. int cal_index)
  1076. {
  1077. struct list_head *ptr, *next;
  1078. struct cal_block_data *cal_block = NULL;
  1079. pr_debug("%s\n", __func__);
  1080. list_for_each_safe(ptr, next,
  1081. &cal_data[cal_index]->cal_blocks) {
  1082. cal_block = list_entry(ptr,
  1083. struct cal_block_data, list);
  1084. if (cal_utils_is_cal_stale(cal_block))
  1085. continue;
  1086. if (((struct audio_cal_info_adm_top *)cal_block
  1087. ->cal_info)->path == path) {
  1088. return cal_block;
  1089. }
  1090. }
  1091. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1092. return NULL;
  1093. }
  1094. static struct cal_block_data *msm_routing_find_topology(int path,
  1095. int app_type,
  1096. int acdb_id,
  1097. int cal_index,
  1098. bool exact)
  1099. {
  1100. struct list_head *ptr, *next;
  1101. struct cal_block_data *cal_block = NULL;
  1102. struct audio_cal_info_adm_top *cal_info;
  1103. pr_debug("%s\n", __func__);
  1104. list_for_each_safe(ptr, next,
  1105. &cal_data[cal_index]->cal_blocks) {
  1106. cal_block = list_entry(ptr,
  1107. struct cal_block_data, list);
  1108. if (cal_utils_is_cal_stale(cal_block))
  1109. continue;
  1110. cal_info = (struct audio_cal_info_adm_top *)
  1111. cal_block->cal_info;
  1112. if ((cal_info->path == path) &&
  1113. (cal_info->app_type == app_type) &&
  1114. (cal_info->acdb_id == acdb_id)) {
  1115. return cal_block;
  1116. }
  1117. }
  1118. pr_debug("%s: Can't find topology for path %d, app %d, "
  1119. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1120. exact ? "fail" : "defaulting to search by path");
  1121. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1122. cal_index);
  1123. }
  1124. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1125. int acdb_dev_id, int idx,
  1126. bool exact)
  1127. {
  1128. int topology = -EINVAL;
  1129. struct cal_block_data *cal_block = NULL;
  1130. mutex_lock(&cal_data[idx]->lock);
  1131. cal_block = msm_routing_find_topology(session_type, app_type,
  1132. acdb_dev_id, idx, exact);
  1133. if (cal_block != NULL) {
  1134. topology = ((struct audio_cal_info_adm_top *)
  1135. cal_block->cal_info)->topology;
  1136. }
  1137. mutex_unlock(&cal_data[idx]->lock);
  1138. return topology;
  1139. }
  1140. /*
  1141. * Retrieving cal_block will mark cal_block as stale.
  1142. * Hence it cannot be reused or resent unless the flag
  1143. * is reset.
  1144. */
  1145. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1146. int be_id)
  1147. {
  1148. int topology = NULL_COPP_TOPOLOGY;
  1149. int app_type = 0, acdb_dev_id = 0;
  1150. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1151. __func__, fedai_id, session_type, be_id);
  1152. if (cal_data == NULL)
  1153. goto done;
  1154. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1155. acdb_dev_id =
  1156. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1157. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1158. topology = msm_routing_find_topology_on_index(session_type,
  1159. app_type,
  1160. acdb_dev_id,
  1161. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1162. true /*exact*/);
  1163. if (topology < 0) {
  1164. pr_debug("%s: Check for compatible topology\n", __func__);
  1165. topology = msm_routing_find_topology_on_index(session_type,
  1166. app_type,
  1167. acdb_dev_id,
  1168. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1169. false /*exact*/);
  1170. if (topology < 0)
  1171. topology = NULL_COPP_TOPOLOGY;
  1172. }
  1173. done:
  1174. pr_debug("%s: Using topology %d\n", __func__, topology);
  1175. return topology;
  1176. }
  1177. static uint8_t is_be_dai_extproc(int be_dai)
  1178. {
  1179. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1180. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1181. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1182. return 1;
  1183. else
  1184. return 0;
  1185. }
  1186. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1187. int path_type, int perf_mode,
  1188. uint32_t passthr_mode)
  1189. {
  1190. int i, port_type, j, num_copps = 0;
  1191. struct route_payload payload;
  1192. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1193. path_type == ADM_PATH_COMPRESSED_RX) ?
  1194. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1195. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1196. if (!is_be_dai_extproc(i) &&
  1197. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1198. (msm_bedais[i].active) &&
  1199. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1200. int port_id = get_port_id(msm_bedais[i].port_id);
  1201. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1202. unsigned long copp =
  1203. session_copp_map[fedai_id][sess_type][i];
  1204. if (test_bit(j, &copp)) {
  1205. payload.port_id[num_copps] = port_id;
  1206. payload.copp_idx[num_copps] = j;
  1207. payload.app_type[num_copps] =
  1208. fe_dai_app_type_cfg
  1209. [fedai_id][sess_type][i]
  1210. .app_type;
  1211. payload.acdb_dev_id[num_copps] =
  1212. fe_dai_app_type_cfg
  1213. [fedai_id][sess_type][i]
  1214. .acdb_dev_id;
  1215. payload.sample_rate[num_copps] =
  1216. fe_dai_app_type_cfg
  1217. [fedai_id][sess_type][i]
  1218. .sample_rate;
  1219. num_copps++;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. if (num_copps) {
  1225. payload.num_copps = num_copps;
  1226. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1227. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1228. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1229. }
  1230. }
  1231. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1232. int stream_type)
  1233. {
  1234. int i, session_type, path_type, port_type;
  1235. u32 mode = 0;
  1236. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1237. /* bad ID assigned in machine driver */
  1238. pr_err("%s: bad MM ID\n", __func__);
  1239. return;
  1240. }
  1241. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1242. session_type = SESSION_TYPE_RX;
  1243. path_type = ADM_PATH_PLAYBACK;
  1244. port_type = MSM_AFE_PORT_TYPE_RX;
  1245. } else {
  1246. session_type = SESSION_TYPE_TX;
  1247. path_type = ADM_PATH_LIVE_REC;
  1248. port_type = MSM_AFE_PORT_TYPE_TX;
  1249. }
  1250. mutex_lock(&routing_lock);
  1251. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1252. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1253. if (!is_be_dai_extproc(i) &&
  1254. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1255. (msm_bedais[i].active) &&
  1256. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1257. mode = afe_get_port_type(msm_bedais[i].port_id);
  1258. adm_connect_afe_port(mode, dspst_id,
  1259. msm_bedais[i].port_id);
  1260. break;
  1261. }
  1262. }
  1263. mutex_unlock(&routing_lock);
  1264. }
  1265. static bool route_check_fe_id_adm_support(int fe_id)
  1266. {
  1267. bool rc = true;
  1268. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1269. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1270. /* fe id is listen while port is set to afe */
  1271. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1272. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1273. __func__, fe_id, lsm_port_index);
  1274. rc = false;
  1275. }
  1276. }
  1277. return rc;
  1278. }
  1279. /*
  1280. * msm_pcm_routing_get_pp_ch_cnt:
  1281. * Read the processed channel count
  1282. *
  1283. * @fe_id: Front end ID
  1284. * @session_type: Inidicates RX or TX session type
  1285. */
  1286. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1287. {
  1288. struct msm_pcm_stream_app_type_cfg cfg_data;
  1289. int be_id = 0, app_type_idx = 0, app_type = 0;
  1290. int ret = -EINVAL;
  1291. memset(&cfg_data, 0, sizeof(cfg_data));
  1292. if (!is_mm_lsm_fe_id(fe_id)) {
  1293. pr_err("%s: bad MM ID\n", __func__);
  1294. return -EINVAL;
  1295. }
  1296. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1297. &be_id, &cfg_data);
  1298. if (ret) {
  1299. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1300. return ret;
  1301. }
  1302. app_type = cfg_data.app_type;
  1303. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1304. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1305. }
  1306. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1307. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1308. int dspst_id, int stream_type,
  1309. uint32_t passthr_mode)
  1310. {
  1311. int i, j, session_type, path_type, port_type, topology;
  1312. int num_copps = 0;
  1313. struct route_payload payload;
  1314. u32 channels, sample_rate;
  1315. u16 bit_width = 16, be_bit_width;
  1316. bool is_lsm;
  1317. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1318. __func__, fe_id, perf_mode, dspst_id,
  1319. stream_type, passthr_mode);
  1320. if (!is_mm_lsm_fe_id(fe_id)) {
  1321. /* bad ID assigned in machine driver */
  1322. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1323. return -EINVAL;
  1324. }
  1325. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1326. session_type = SESSION_TYPE_RX;
  1327. if (passthr_mode != LEGACY_PCM)
  1328. path_type = ADM_PATH_COMPRESSED_RX;
  1329. else
  1330. path_type = ADM_PATH_PLAYBACK;
  1331. port_type = MSM_AFE_PORT_TYPE_RX;
  1332. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1333. session_type = SESSION_TYPE_TX;
  1334. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1335. path_type = ADM_PATH_COMPRESSED_TX;
  1336. else
  1337. path_type = ADM_PATH_LIVE_REC;
  1338. port_type = MSM_AFE_PORT_TYPE_TX;
  1339. } else {
  1340. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1341. return -EINVAL;
  1342. }
  1343. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1344. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1345. mutex_lock(&routing_lock);
  1346. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1347. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1348. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1349. if (!route_check_fe_id_adm_support(fe_id)) {
  1350. /* ignore adm open if not supported for fe_id */
  1351. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1352. mutex_unlock(&routing_lock);
  1353. return 0;
  1354. }
  1355. payload.num_copps = 0; /* only RX needs to use payload */
  1356. /* re-enable EQ if active */
  1357. msm_qti_pp_send_eq_values(fe_id);
  1358. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1359. if (!is_be_dai_extproc(i) &&
  1360. (afe_get_port_type(msm_bedais[i].port_id) ==
  1361. port_type) &&
  1362. (msm_bedais[i].active) &&
  1363. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1364. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1365. int port_id = get_port_id(msm_bedais[i].port_id);
  1366. /*
  1367. * check if ADM needs to be configured with different
  1368. * channel mapping than backend
  1369. */
  1370. if (!msm_bedais[i].adm_override_ch)
  1371. channels = msm_bedais[i].channel;
  1372. else
  1373. channels = msm_bedais[i].adm_override_ch;
  1374. bit_width = msm_routing_get_bit_width(
  1375. msm_bedais[i].format);
  1376. app_type =
  1377. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1378. if (app_type && is_lsm) {
  1379. app_type_idx =
  1380. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1381. sample_rate =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i]
  1383. .sample_rate;
  1384. bit_width =
  1385. lsm_app_type_cfg[app_type_idx].bit_width;
  1386. } else if (app_type) {
  1387. app_type_idx =
  1388. msm_pcm_routing_get_app_type_idx(
  1389. app_type);
  1390. sample_rate =
  1391. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1392. bit_width =
  1393. app_type_cfg[app_type_idx].bit_width;
  1394. } else {
  1395. sample_rate = msm_bedais[i].sample_rate;
  1396. }
  1397. acdb_dev_id =
  1398. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1399. topology = msm_routing_get_adm_topology(fe_id,
  1400. session_type,
  1401. i);
  1402. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1403. || (passthr_mode ==
  1404. COMPRESSED_PASSTHROUGH_GEN)
  1405. || (passthr_mode ==
  1406. COMPRESSED_PASSTHROUGH_IEC61937))
  1407. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1408. pr_debug("%s: Before adm open topology %d\n", __func__,
  1409. topology);
  1410. be_bit_width = msm_routing_get_bit_width(
  1411. msm_bedais[i].format);
  1412. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1413. == 384000 || msm_bedais[i].sample_rate ==
  1414. 352800) && be_bit_width == 32)
  1415. bit_width = msm_routing_get_bit_width(
  1416. SNDRV_PCM_FORMAT_S32_LE);
  1417. copp_idx =
  1418. adm_open(port_id, path_type, sample_rate,
  1419. channels, topology, perf_mode,
  1420. bit_width, app_type, acdb_dev_id,
  1421. session_type);
  1422. if ((copp_idx < 0) ||
  1423. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1424. pr_err("%s:adm open failed coppid:%d\n",
  1425. __func__, copp_idx);
  1426. mutex_unlock(&routing_lock);
  1427. return -EINVAL;
  1428. }
  1429. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1430. __func__, fe_id, session_type, i);
  1431. set_bit(copp_idx,
  1432. &session_copp_map[fe_id][session_type][i]);
  1433. if (msm_is_resample_needed(
  1434. sample_rate,
  1435. msm_bedais[i].sample_rate))
  1436. adm_copp_mfc_cfg(port_id, copp_idx,
  1437. msm_bedais[i].sample_rate);
  1438. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1439. unsigned long copp =
  1440. session_copp_map[fe_id][session_type][i];
  1441. if (test_bit(j, &copp)) {
  1442. payload.port_id[num_copps] = port_id;
  1443. payload.copp_idx[num_copps] = j;
  1444. payload.app_type[num_copps] =
  1445. fe_dai_app_type_cfg
  1446. [fe_id][session_type][i]
  1447. .app_type;
  1448. payload.acdb_dev_id[num_copps] =
  1449. fe_dai_app_type_cfg
  1450. [fe_id][session_type][i]
  1451. .acdb_dev_id;
  1452. payload.sample_rate[num_copps] =
  1453. fe_dai_app_type_cfg
  1454. [fe_id][session_type][i]
  1455. .sample_rate;
  1456. num_copps++;
  1457. }
  1458. }
  1459. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1460. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1461. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1462. msm_routing_send_device_pp_params(port_id,
  1463. copp_idx, fe_id);
  1464. }
  1465. }
  1466. if (num_copps) {
  1467. payload.num_copps = num_copps;
  1468. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1469. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1470. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1471. }
  1472. mutex_unlock(&routing_lock);
  1473. return 0;
  1474. }
  1475. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1476. {
  1477. u32 session_id;
  1478. switch (val) {
  1479. case MSM_FRONTEND_DAI_QCHAT:
  1480. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1481. break;
  1482. case MSM_FRONTEND_DAI_VOIP:
  1483. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1484. break;
  1485. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1486. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1487. break;
  1488. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1489. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1490. break;
  1491. default:
  1492. session_id = 0;
  1493. }
  1494. pr_debug("%s session_id 0x%x", __func__, session_id);
  1495. return session_id;
  1496. }
  1497. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1498. int dspst_id, int stream_type)
  1499. {
  1500. int copp_idx = 0;
  1501. int sess_type = 0;
  1502. int j = 0, be_id = 0;
  1503. int ret = 0;
  1504. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1505. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1506. return 0;
  1507. }
  1508. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1509. sess_type = SESSION_TYPE_RX;
  1510. else
  1511. sess_type = SESSION_TYPE_TX;
  1512. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1513. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1514. __func__, fe_id, sess_type);
  1515. return 0;
  1516. }
  1517. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1518. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1519. channel_mixer_v2[fe_id][sess_type].input_channel;
  1520. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1521. __func__, sess_type, fe_id,
  1522. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1523. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1524. msm_bedais[be_id].active);
  1525. if ((msm_bedais[be_id].active) &&
  1526. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1527. unsigned long copp =
  1528. session_copp_map[fe_id][sess_type][be_id];
  1529. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1530. if (test_bit(j, &copp)) {
  1531. copp_idx = j;
  1532. break;
  1533. }
  1534. }
  1535. ret = adm_programable_channel_mixer(
  1536. msm_bedais[be_id].port_id,
  1537. copp_idx, dspst_id, sess_type,
  1538. &channel_mixer_v2[fe_id][sess_type], 0);
  1539. }
  1540. return ret;
  1541. }
  1542. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1543. int dspst_id, int stream_type)
  1544. {
  1545. int copp_idx = 0;
  1546. int sess_type = 0;
  1547. int i = 0, j = 0, be_id;
  1548. int ret = 0;
  1549. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1550. dspst_id, stream_type);
  1551. if (ret) {
  1552. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1553. fe_id);
  1554. return ret;
  1555. }
  1556. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1557. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1558. return 0;
  1559. }
  1560. if (!(channel_mixer[fe_id].enable)) {
  1561. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1562. __func__, fe_id);
  1563. return 0;
  1564. }
  1565. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1566. sess_type = SESSION_TYPE_RX;
  1567. else
  1568. sess_type = SESSION_TYPE_TX;
  1569. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1570. ++i) {
  1571. be_id = channel_input[fe_id][i] - 1;
  1572. channel_mixer[fe_id].input_channels[i] =
  1573. msm_bedais[be_id].channel;
  1574. if ((msm_bedais[be_id].active) &&
  1575. test_bit(fe_id,
  1576. &msm_bedais[be_id].fe_sessions[0])) {
  1577. unsigned long copp =
  1578. session_copp_map[fe_id][sess_type][be_id];
  1579. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1580. if (test_bit(j, &copp)) {
  1581. copp_idx = j;
  1582. break;
  1583. }
  1584. }
  1585. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1586. __func__,
  1587. fe_id, be_id, msm_bedais[be_id].channel,
  1588. copp_idx);
  1589. ret = adm_programable_channel_mixer(
  1590. get_port_id(msm_bedais[be_id].port_id),
  1591. copp_idx, dspst_id, sess_type,
  1592. channel_mixer + fe_id, i);
  1593. }
  1594. }
  1595. return ret;
  1596. }
  1597. /**
  1598. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1599. * setting during runtime.
  1600. *
  1601. * @be_id: backend index
  1602. * @session_id: session index
  1603. * @session_type: session type
  1604. * @params: parameters for channel mixer
  1605. *
  1606. * Retuen: 0 for success, else error
  1607. */
  1608. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1609. int session_type,
  1610. struct msm_pcm_channel_mixer *params)
  1611. {
  1612. int rc = 0;
  1613. int port_id, copp_idx = 0;
  1614. be_id--;
  1615. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1616. pr_err("%s: invalid backend id %d\n", __func__,
  1617. be_id);
  1618. return -EINVAL;
  1619. }
  1620. port_id = msm_bedais[be_id].port_id;
  1621. copp_idx = adm_get_default_copp_idx(port_id);
  1622. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1623. __func__, port_id, copp_idx, session_id);
  1624. if ((params->input_channel < 0) ||
  1625. (params->input_channel > ADM_MAX_CHANNELS)) {
  1626. pr_err("%s: invalid input channel %d\n", __func__,
  1627. params->input_channel);
  1628. return -EINVAL;
  1629. }
  1630. if ((params->output_channel < 0) ||
  1631. (params->output_channel > ADM_MAX_CHANNELS)) {
  1632. pr_err("%s: invalid output channel %d\n", __func__,
  1633. params->output_channel);
  1634. return -EINVAL;
  1635. }
  1636. params->input_channels[0] = params->input_channel;
  1637. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1638. __func__, session_type,
  1639. params->override_in_ch_map,
  1640. params->override_out_ch_map,
  1641. msm_bedais[be_id].active);
  1642. rc = adm_programable_channel_mixer(port_id,
  1643. copp_idx,
  1644. session_id,
  1645. session_type,
  1646. params,
  1647. 0);
  1648. if (rc) {
  1649. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1650. rc = -EINVAL;
  1651. }
  1652. return rc;
  1653. }
  1654. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1655. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1656. int dspst_id, int stream_type)
  1657. {
  1658. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1659. struct route_payload payload;
  1660. u32 channels, sample_rate;
  1661. uint16_t bits_per_sample = 16, be_bit_width;
  1662. uint32_t passthr_mode = LEGACY_PCM;
  1663. int ret = 0;
  1664. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1665. /* bad ID assigned in machine driver */
  1666. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1667. return -EINVAL;
  1668. }
  1669. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1670. session_type = SESSION_TYPE_RX;
  1671. path_type = ADM_PATH_PLAYBACK;
  1672. port_type = MSM_AFE_PORT_TYPE_RX;
  1673. } else {
  1674. session_type = SESSION_TYPE_TX;
  1675. path_type = ADM_PATH_LIVE_REC;
  1676. port_type = MSM_AFE_PORT_TYPE_TX;
  1677. }
  1678. mutex_lock(&routing_lock);
  1679. payload.num_copps = 0; /* only RX needs to use payload */
  1680. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1681. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1682. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1683. /* re-enable EQ if active */
  1684. msm_qti_pp_send_eq_values(fedai_id);
  1685. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1686. if (!is_be_dai_extproc(i) &&
  1687. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1688. (msm_bedais[i].active) &&
  1689. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1690. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1691. int port_id = get_port_id(msm_bedais[i].port_id);
  1692. /*
  1693. * check if ADM needs to be configured with different
  1694. * channel mapping than backend
  1695. */
  1696. if (!msm_bedais[i].adm_override_ch)
  1697. channels = msm_bedais[i].channel;
  1698. else
  1699. channels = msm_bedais[i].adm_override_ch;
  1700. bits_per_sample = msm_routing_get_bit_width(
  1701. msm_bedais[i].format);
  1702. app_type =
  1703. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1704. if (app_type) {
  1705. app_type_idx =
  1706. msm_pcm_routing_get_app_type_idx(app_type);
  1707. sample_rate =
  1708. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1709. .sample_rate;
  1710. bits_per_sample =
  1711. app_type_cfg[app_type_idx].bit_width;
  1712. } else
  1713. sample_rate = msm_bedais[i].sample_rate;
  1714. acdb_dev_id =
  1715. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1716. .acdb_dev_id;
  1717. topology = msm_routing_get_adm_topology(fedai_id,
  1718. session_type,
  1719. i);
  1720. be_bit_width = msm_routing_get_bit_width(
  1721. msm_bedais[i].format);
  1722. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1723. 384000 ||msm_bedais[i].sample_rate == 352800)
  1724. && be_bit_width == 32)
  1725. bits_per_sample = msm_routing_get_bit_width(
  1726. SNDRV_PCM_FORMAT_S32_LE);
  1727. copp_idx = adm_open(port_id, path_type,
  1728. sample_rate, channels, topology,
  1729. perf_mode, bits_per_sample,
  1730. app_type, acdb_dev_id,
  1731. session_type);
  1732. if ((copp_idx < 0) ||
  1733. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1734. pr_err("%s: adm open failed copp_idx:%d\n",
  1735. __func__, copp_idx);
  1736. mutex_unlock(&routing_lock);
  1737. return -EINVAL;
  1738. }
  1739. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1740. __func__, fedai_id, session_type, i);
  1741. set_bit(copp_idx,
  1742. &session_copp_map[fedai_id][session_type][i]);
  1743. if (msm_is_resample_needed(
  1744. sample_rate,
  1745. msm_bedais[i].sample_rate))
  1746. adm_copp_mfc_cfg(port_id, copp_idx,
  1747. msm_bedais[i].sample_rate);
  1748. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1749. unsigned long copp =
  1750. session_copp_map[fedai_id][session_type][i];
  1751. if (test_bit(j, &copp)) {
  1752. payload.port_id[num_copps] = port_id;
  1753. payload.copp_idx[num_copps] = j;
  1754. payload.app_type[num_copps] =
  1755. fe_dai_app_type_cfg
  1756. [fedai_id][session_type]
  1757. [i].app_type;
  1758. payload.acdb_dev_id[num_copps] =
  1759. fe_dai_app_type_cfg
  1760. [fedai_id][session_type]
  1761. [i].acdb_dev_id;
  1762. payload.sample_rate[num_copps] =
  1763. fe_dai_app_type_cfg
  1764. [fedai_id][session_type]
  1765. [i].sample_rate;
  1766. num_copps++;
  1767. }
  1768. }
  1769. if (perf_mode == LEGACY_PCM_MODE)
  1770. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1771. topology, channels);
  1772. }
  1773. }
  1774. if (num_copps) {
  1775. payload.num_copps = num_copps;
  1776. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1777. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1778. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1779. }
  1780. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1781. dspst_id, stream_type);
  1782. mutex_unlock(&routing_lock);
  1783. return ret;
  1784. }
  1785. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1786. int dspst_id, int stream_type,
  1787. struct msm_pcm_routing_evt event_info)
  1788. {
  1789. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1790. stream_type)) {
  1791. pr_err("%s: failed to reg phy stream\n", __func__);
  1792. return -EINVAL;
  1793. }
  1794. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1795. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1796. else
  1797. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1798. return 0;
  1799. }
  1800. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1801. {
  1802. int i, port_type, session_type, path_type, topology, port_id;
  1803. struct msm_pcm_routing_fdai_data *fdai;
  1804. if (!is_mm_lsm_fe_id(fedai_id)) {
  1805. /* bad ID assigned in machine driver */
  1806. pr_err("%s: bad MM ID\n", __func__);
  1807. return;
  1808. }
  1809. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1810. port_type = MSM_AFE_PORT_TYPE_RX;
  1811. session_type = SESSION_TYPE_RX;
  1812. path_type = ADM_PATH_PLAYBACK;
  1813. } else {
  1814. port_type = MSM_AFE_PORT_TYPE_TX;
  1815. session_type = SESSION_TYPE_TX;
  1816. path_type = ADM_PATH_LIVE_REC;
  1817. }
  1818. mutex_lock(&routing_lock);
  1819. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1820. if (!is_be_dai_extproc(i) &&
  1821. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1822. (msm_bedais[i].active) &&
  1823. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1824. int idx;
  1825. unsigned long copp =
  1826. session_copp_map[fedai_id][session_type][i];
  1827. fdai = &fe_dai_map[fedai_id][session_type];
  1828. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1829. if (test_bit(idx, &copp))
  1830. break;
  1831. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1832. pr_debug("%s: copp idx is invalid, exiting\n",
  1833. __func__);
  1834. continue;
  1835. }
  1836. port_id = get_port_id(msm_bedais[i].port_id);
  1837. topology = adm_get_topology_for_port_copp_idx(
  1838. port_id, idx);
  1839. msm_routing_unload_topology(topology);
  1840. adm_close(port_id, fdai->perf_mode, idx);
  1841. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1842. __func__, copp, fedai_id, session_type, i);
  1843. clear_bit(idx,
  1844. &session_copp_map[fedai_id][session_type][i]);
  1845. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1846. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1847. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1848. (fdai->passthr_mode == LEGACY_PCM))
  1849. msm_pcm_routing_deinit_pp(port_id, topology);
  1850. }
  1851. }
  1852. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1853. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1854. mutex_unlock(&routing_lock);
  1855. }
  1856. /* Check if FE/BE route is set */
  1857. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1858. {
  1859. bool rc = false;
  1860. if (!is_mm_lsm_fe_id(fe_id)) {
  1861. /* recheck FE ID in the mixer control defined in this file */
  1862. pr_err("%s: bad MM ID\n", __func__);
  1863. return rc;
  1864. }
  1865. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1866. rc = true;
  1867. return rc;
  1868. }
  1869. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1870. {
  1871. int session_type, path_type, topology;
  1872. u32 channels, sample_rate;
  1873. uint16_t bits_per_sample = 16, be_bit_width;
  1874. struct msm_pcm_routing_fdai_data *fdai;
  1875. uint32_t passthr_mode;
  1876. bool is_lsm;
  1877. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1878. if (!is_mm_lsm_fe_id(val)) {
  1879. /* recheck FE ID in the mixer control defined in this file */
  1880. pr_err("%s: bad MM ID\n", __func__);
  1881. return;
  1882. }
  1883. if (!route_check_fe_id_adm_support(val)) {
  1884. /* ignore adm open if not supported for fe_id */
  1885. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1886. if (set)
  1887. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1888. else
  1889. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1890. return;
  1891. }
  1892. session_type =
  1893. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1894. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1895. fdai = &fe_dai_map[val][session_type];
  1896. passthr_mode = fdai->passthr_mode;
  1897. if (session_type == SESSION_TYPE_RX) {
  1898. if (passthr_mode != LEGACY_PCM)
  1899. path_type = ADM_PATH_COMPRESSED_RX;
  1900. else
  1901. path_type = ADM_PATH_PLAYBACK;
  1902. } else {
  1903. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1904. path_type = ADM_PATH_COMPRESSED_TX;
  1905. else
  1906. path_type = ADM_PATH_LIVE_REC;
  1907. }
  1908. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1909. (val <= MSM_FRONTEND_DAI_LSM8);
  1910. mutex_lock(&routing_lock);
  1911. if (set) {
  1912. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1913. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1914. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1915. voc_start_playback(set, msm_bedais[reg].port_id);
  1916. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1917. if (msm_bedais[reg].active && fdai->strm_id !=
  1918. INVALID_SESSION) {
  1919. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1920. int port_id = get_port_id(msm_bedais[reg].port_id);
  1921. /*
  1922. * check if ADM needs to be configured with different
  1923. * channel mapping than backend
  1924. */
  1925. if (!msm_bedais[reg].adm_override_ch)
  1926. channels = msm_bedais[reg].channel;
  1927. else
  1928. channels = msm_bedais[reg].adm_override_ch;
  1929. if (session_type == SESSION_TYPE_TX &&
  1930. fdai->be_srate &&
  1931. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1932. pr_debug("%s: flush strm %d diff BE rates\n",
  1933. __func__, fdai->strm_id);
  1934. if (fdai->event_info.event_func)
  1935. fdai->event_info.event_func(
  1936. MSM_PCM_RT_EVT_BUF_RECFG,
  1937. fdai->event_info.priv_data);
  1938. fdai->be_srate = 0; /* might not need it */
  1939. }
  1940. bits_per_sample = msm_routing_get_bit_width(
  1941. msm_bedais[reg].format);
  1942. app_type =
  1943. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1944. if (app_type && is_lsm) {
  1945. app_type_idx =
  1946. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1947. sample_rate =
  1948. fe_dai_app_type_cfg[val][session_type][reg]
  1949. .sample_rate;
  1950. bits_per_sample =
  1951. lsm_app_type_cfg[app_type_idx].bit_width;
  1952. } else if (app_type) {
  1953. app_type_idx =
  1954. msm_pcm_routing_get_app_type_idx(app_type);
  1955. sample_rate =
  1956. fe_dai_app_type_cfg[val][session_type][reg]
  1957. .sample_rate;
  1958. bits_per_sample =
  1959. app_type_cfg[app_type_idx].bit_width;
  1960. } else
  1961. sample_rate = msm_bedais[reg].sample_rate;
  1962. topology = msm_routing_get_adm_topology(val,
  1963. session_type,
  1964. reg);
  1965. acdb_dev_id =
  1966. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1967. be_bit_width = msm_routing_get_bit_width(
  1968. msm_bedais[reg].format);
  1969. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1970. == 384000 ||msm_bedais[reg].sample_rate ==
  1971. 352800) && be_bit_width == 32)
  1972. bits_per_sample = msm_routing_get_bit_width(
  1973. SNDRV_PCM_FORMAT_S32_LE);
  1974. copp_idx = adm_open(port_id, path_type,
  1975. sample_rate, channels, topology,
  1976. fdai->perf_mode, bits_per_sample,
  1977. app_type, acdb_dev_id,
  1978. session_type);
  1979. if ((copp_idx < 0) ||
  1980. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1981. pr_err("%s: adm open failed\n", __func__);
  1982. mutex_unlock(&routing_lock);
  1983. return;
  1984. }
  1985. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1986. __func__, val, session_type, reg);
  1987. set_bit(copp_idx,
  1988. &session_copp_map[val][session_type][reg]);
  1989. if (msm_is_resample_needed(
  1990. sample_rate,
  1991. msm_bedais[reg].sample_rate))
  1992. adm_copp_mfc_cfg(port_id, copp_idx,
  1993. msm_bedais[reg].sample_rate);
  1994. if (session_type == SESSION_TYPE_RX &&
  1995. fdai->event_info.event_func)
  1996. fdai->event_info.event_func(
  1997. MSM_PCM_RT_EVT_DEVSWITCH,
  1998. fdai->event_info.priv_data);
  1999. msm_pcm_routing_build_matrix(val, session_type,
  2000. path_type,
  2001. fdai->perf_mode,
  2002. passthr_mode);
  2003. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2004. (passthr_mode == LEGACY_PCM))
  2005. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2006. topology, channels);
  2007. }
  2008. } else {
  2009. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2010. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2011. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2012. voc_start_playback(set, msm_bedais[reg].port_id);
  2013. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2014. if (msm_bedais[reg].active && fdai->strm_id !=
  2015. INVALID_SESSION) {
  2016. int idx;
  2017. int port_id;
  2018. unsigned long copp =
  2019. session_copp_map[val][session_type][reg];
  2020. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2021. if (test_bit(idx, &copp))
  2022. break;
  2023. if (idx >= MAX_COPPS_PER_PORT) {
  2024. pr_debug("%s: copp idx is invalid, exiting\n",
  2025. __func__);
  2026. mutex_unlock(&routing_lock);
  2027. return;
  2028. }
  2029. port_id = get_port_id(msm_bedais[reg].port_id);
  2030. topology = adm_get_topology_for_port_copp_idx(port_id,
  2031. idx);
  2032. msm_routing_unload_topology(topology);
  2033. adm_close(port_id, fdai->perf_mode, idx);
  2034. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2035. __func__, copp, val, session_type, reg,
  2036. topology);
  2037. clear_bit(idx,
  2038. &session_copp_map[val][session_type][reg]);
  2039. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2040. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2041. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2042. (passthr_mode == LEGACY_PCM))
  2043. msm_pcm_routing_deinit_pp(port_id, topology);
  2044. msm_pcm_routing_build_matrix(val, session_type,
  2045. path_type,
  2046. fdai->perf_mode,
  2047. passthr_mode);
  2048. }
  2049. }
  2050. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2051. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2052. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2053. mutex_unlock(&routing_lock);
  2054. }
  2055. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. struct soc_mixer_control *mc =
  2059. (struct soc_mixer_control *)kcontrol->private_value;
  2060. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2061. ucontrol->value.integer.value[0] = 1;
  2062. else
  2063. ucontrol->value.integer.value[0] = 0;
  2064. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2065. ucontrol->value.integer.value[0]);
  2066. return 0;
  2067. }
  2068. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2069. struct snd_ctl_elem_value *ucontrol)
  2070. {
  2071. struct snd_soc_dapm_widget *widget =
  2072. snd_soc_dapm_kcontrol_widget(kcontrol);
  2073. struct soc_mixer_control *mc =
  2074. (struct soc_mixer_control *)kcontrol->private_value;
  2075. struct snd_soc_dapm_update *update = NULL;
  2076. if (ucontrol->value.integer.value[0] &&
  2077. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2078. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2079. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2080. update);
  2081. } else if (!ucontrol->value.integer.value[0] &&
  2082. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2083. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2084. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2085. update);
  2086. }
  2087. return 1;
  2088. }
  2089. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2090. struct snd_ctl_elem_value *ucontrol)
  2091. {
  2092. struct soc_mixer_control *mc =
  2093. (struct soc_mixer_control *)kcontrol->private_value;
  2094. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2095. ucontrol->value.integer.value[0] = 1;
  2096. else
  2097. ucontrol->value.integer.value[0] = 0;
  2098. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2099. ucontrol->value.integer.value[0]);
  2100. return 0;
  2101. }
  2102. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2103. struct snd_ctl_elem_value *ucontrol)
  2104. {
  2105. struct snd_soc_dapm_widget *widget =
  2106. snd_soc_dapm_kcontrol_widget(kcontrol);
  2107. struct soc_mixer_control *mc =
  2108. (struct soc_mixer_control *)kcontrol->private_value;
  2109. struct snd_soc_dapm_update *update = NULL;
  2110. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2111. ucontrol->value.integer.value[0]);
  2112. if (ucontrol->value.integer.value[0]) {
  2113. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2114. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2115. snd_soc_dapm_mixer_update_power(widget->dapm,
  2116. kcontrol, 1, update);
  2117. } else if (!ucontrol->value.integer.value[0]) {
  2118. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2119. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2120. snd_soc_dapm_mixer_update_power(widget->dapm,
  2121. kcontrol, 0, update);
  2122. }
  2123. return 1;
  2124. }
  2125. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2126. {
  2127. u32 session_id = 0;
  2128. u16 path_type;
  2129. struct media_format_info voc_be_media_format;
  2130. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2131. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2132. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2133. __func__, val, session_id);
  2134. mutex_lock(&routing_lock);
  2135. if (set)
  2136. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2137. else
  2138. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2139. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2140. afe_get_port_type(msm_bedais[reg].port_id) ==
  2141. MSM_AFE_PORT_TYPE_RX) {
  2142. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2143. __func__, set, msm_bedais[reg].port_id);
  2144. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2145. }
  2146. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2147. MSM_AFE_PORT_TYPE_RX)
  2148. path_type = RX_PATH;
  2149. else
  2150. path_type = TX_PATH;
  2151. if (set) {
  2152. if (msm_bedais[reg].active) {
  2153. voc_set_route_flag(session_id, path_type, 1);
  2154. memset(&voc_be_media_format, 0,
  2155. sizeof(struct media_format_info));
  2156. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2157. voc_be_media_format.num_channels =
  2158. msm_bedais[reg].channel;
  2159. voc_be_media_format.sample_rate =
  2160. msm_bedais[reg].sample_rate;
  2161. voc_be_media_format.bits_per_sample =
  2162. msm_bedais[reg].format;
  2163. /* Defaulting this to 1 for voice call usecases */
  2164. voc_be_media_format.channel_mapping[0] = 1;
  2165. voc_set_device_config(session_id, path_type,
  2166. &voc_be_media_format);
  2167. if (voc_get_route_flag(session_id, TX_PATH) &&
  2168. voc_get_route_flag(session_id, RX_PATH))
  2169. voc_enable_device(session_id);
  2170. } else {
  2171. pr_debug("%s BE is not active\n", __func__);
  2172. }
  2173. } else {
  2174. voc_set_route_flag(session_id, path_type, 0);
  2175. voc_disable_device(session_id);
  2176. }
  2177. mutex_unlock(&routing_lock);
  2178. }
  2179. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2180. struct snd_ctl_elem_value *ucontrol)
  2181. {
  2182. struct soc_mixer_control *mc =
  2183. (struct soc_mixer_control *)kcontrol->private_value;
  2184. mutex_lock(&routing_lock);
  2185. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2186. ucontrol->value.integer.value[0] = 1;
  2187. else
  2188. ucontrol->value.integer.value[0] = 0;
  2189. mutex_unlock(&routing_lock);
  2190. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2191. ucontrol->value.integer.value[0]);
  2192. return 0;
  2193. }
  2194. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2195. struct snd_ctl_elem_value *ucontrol)
  2196. {
  2197. struct snd_soc_dapm_widget *widget =
  2198. snd_soc_dapm_kcontrol_widget(kcontrol);
  2199. struct soc_mixer_control *mc =
  2200. (struct soc_mixer_control *)kcontrol->private_value;
  2201. struct snd_soc_dapm_update *update = NULL;
  2202. if (ucontrol->value.integer.value[0]) {
  2203. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2204. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2205. update);
  2206. } else {
  2207. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2209. update);
  2210. }
  2211. return 1;
  2212. }
  2213. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2214. struct snd_ctl_elem_value *ucontrol)
  2215. {
  2216. struct soc_mixer_control *mc =
  2217. (struct soc_mixer_control *)kcontrol->private_value;
  2218. mutex_lock(&routing_lock);
  2219. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2220. ucontrol->value.integer.value[0] = 1;
  2221. else
  2222. ucontrol->value.integer.value[0] = 0;
  2223. mutex_unlock(&routing_lock);
  2224. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2225. ucontrol->value.integer.value[0]);
  2226. return 0;
  2227. }
  2228. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2229. struct snd_ctl_elem_value *ucontrol)
  2230. {
  2231. struct snd_soc_dapm_widget *widget =
  2232. snd_soc_dapm_kcontrol_widget(kcontrol);
  2233. struct soc_mixer_control *mc =
  2234. (struct soc_mixer_control *)kcontrol->private_value;
  2235. struct snd_soc_dapm_update *update = NULL;
  2236. if (ucontrol->value.integer.value[0]) {
  2237. mutex_lock(&routing_lock);
  2238. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2239. mutex_unlock(&routing_lock);
  2240. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2241. update);
  2242. } else {
  2243. mutex_lock(&routing_lock);
  2244. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2245. mutex_unlock(&routing_lock);
  2246. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2247. update);
  2248. }
  2249. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2250. ucontrol->value.integer.value[0]);
  2251. return 1;
  2252. }
  2253. /*
  2254. * Return the mapping between port ID and backend ID to enable the AFE callback
  2255. * to determine the acdb_dev_id from the port id
  2256. */
  2257. int msm_pcm_get_be_id_from_port_id(int port_id)
  2258. {
  2259. int i;
  2260. int be_id = -EINVAL;
  2261. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2262. if (msm_bedais[i].port_id == port_id) {
  2263. be_id = i;
  2264. break;
  2265. }
  2266. }
  2267. return be_id;
  2268. }
  2269. /*
  2270. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2271. * correct AFE calibration information by comparing the header information.
  2272. */
  2273. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2274. {
  2275. int acdb_id = -EINVAL;
  2276. int i = 0;
  2277. int session;
  2278. int port_type = afe_get_port_type(port_id);
  2279. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2280. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2281. __func__, port_id, be_id, port_type);
  2282. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2283. session = SESSION_TYPE_TX;
  2284. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2285. session = SESSION_TYPE_RX;
  2286. } else {
  2287. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2288. acdb_id = -EINVAL;
  2289. goto exit;
  2290. }
  2291. if (be_id < 0) {
  2292. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2293. goto exit;
  2294. }
  2295. mutex_lock(&routing_lock);
  2296. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2297. MSM_FRONTEND_DAI_MAX);
  2298. if (i < MSM_FRONTEND_DAI_MAX)
  2299. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2300. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2301. __func__, i, session, be_id, acdb_id);
  2302. mutex_unlock(&routing_lock);
  2303. exit:
  2304. return acdb_id;
  2305. }
  2306. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2307. struct snd_ctl_elem_value *ucontrol)
  2308. {
  2309. ucontrol->value.integer.value[0] = fm_switch_enable;
  2310. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2311. ucontrol->value.integer.value[0]);
  2312. return 0;
  2313. }
  2314. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2315. struct snd_ctl_elem_value *ucontrol)
  2316. {
  2317. struct snd_soc_dapm_widget *widget =
  2318. snd_soc_dapm_kcontrol_widget(kcontrol);
  2319. struct snd_soc_dapm_update *update = NULL;
  2320. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2321. ucontrol->value.integer.value[0]);
  2322. if (ucontrol->value.integer.value[0])
  2323. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2324. update);
  2325. else
  2326. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2327. update);
  2328. fm_switch_enable = ucontrol->value.integer.value[0];
  2329. return 1;
  2330. }
  2331. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2332. struct snd_ctl_elem_value *ucontrol)
  2333. {
  2334. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2335. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2336. ucontrol->value.integer.value[0]);
  2337. return 0;
  2338. }
  2339. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2340. struct snd_ctl_elem_value *ucontrol)
  2341. {
  2342. struct snd_soc_dapm_widget *widget =
  2343. snd_soc_dapm_kcontrol_widget(kcontrol);
  2344. struct snd_soc_dapm_update *update = NULL;
  2345. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2346. ucontrol->value.integer.value[0]);
  2347. if (ucontrol->value.integer.value[0])
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2349. 1, update);
  2350. else
  2351. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2352. 0, update);
  2353. hfp_switch_enable = ucontrol->value.integer.value[0];
  2354. return 1;
  2355. }
  2356. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2360. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2361. ucontrol->value.integer.value[0]);
  2362. return 0;
  2363. }
  2364. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2365. struct snd_ctl_elem_value *ucontrol)
  2366. {
  2367. struct snd_soc_dapm_widget *widget =
  2368. snd_soc_dapm_kcontrol_widget(kcontrol);
  2369. struct snd_soc_dapm_update *update = NULL;
  2370. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2371. ucontrol->value.integer.value[0]);
  2372. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2373. if (a2dp_switch_enable)
  2374. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2375. 1, update);
  2376. else
  2377. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2378. 0, update);
  2379. return 1;
  2380. }
  2381. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2382. struct snd_ctl_elem_value *ucontrol)
  2383. {
  2384. ucontrol->value.integer.value[0] = sco_switch_enable;
  2385. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2386. ucontrol->value.integer.value[0]);
  2387. return 0;
  2388. }
  2389. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. struct snd_soc_dapm_widget *widget =
  2393. snd_soc_dapm_kcontrol_widget(kcontrol);
  2394. struct snd_soc_dapm_update *update = NULL;
  2395. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2396. ucontrol->value.integer.value[0]);
  2397. sco_switch_enable = ucontrol->value.integer.value[0];
  2398. if (sco_switch_enable)
  2399. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2400. 1, update);
  2401. else
  2402. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2403. 0, update);
  2404. return 1;
  2405. }
  2406. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2407. struct snd_ctl_elem_value *ucontrol)
  2408. {
  2409. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2410. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2411. ucontrol->value.integer.value[0]);
  2412. return 0;
  2413. }
  2414. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2415. struct snd_ctl_elem_value *ucontrol)
  2416. {
  2417. struct snd_soc_dapm_widget *widget =
  2418. snd_soc_dapm_kcontrol_widget(kcontrol);
  2419. struct snd_soc_dapm_update *update = NULL;
  2420. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2421. ucontrol->value.integer.value[0]);
  2422. if (ucontrol->value.integer.value[0])
  2423. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2424. update);
  2425. else
  2426. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2427. update);
  2428. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2429. return 1;
  2430. }
  2431. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2435. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2436. ucontrol->value.integer.value[0]);
  2437. return 0;
  2438. }
  2439. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2440. struct snd_ctl_elem_value *ucontrol)
  2441. {
  2442. struct snd_soc_dapm_widget *widget =
  2443. snd_soc_dapm_kcontrol_widget(kcontrol);
  2444. struct snd_soc_dapm_update *update = NULL;
  2445. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2446. ucontrol->value.integer.value[0]);
  2447. if (ucontrol->value.integer.value[0])
  2448. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2449. update);
  2450. else
  2451. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2452. update);
  2453. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2454. return 1;
  2455. }
  2456. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2457. struct snd_ctl_elem_value *ucontrol)
  2458. {
  2459. ucontrol->value.integer.value[0] = usb_switch_enable;
  2460. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2461. ucontrol->value.integer.value[0]);
  2462. return 0;
  2463. }
  2464. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. struct snd_soc_dapm_widget *widget =
  2468. snd_soc_dapm_kcontrol_widget(kcontrol);
  2469. struct snd_soc_dapm_update *update = NULL;
  2470. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2471. ucontrol->value.integer.value[0]);
  2472. if (ucontrol->value.integer.value[0])
  2473. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2474. 1, update);
  2475. else
  2476. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2477. 0, update);
  2478. usb_switch_enable = ucontrol->value.integer.value[0];
  2479. return 1;
  2480. }
  2481. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2482. struct snd_ctl_elem_value *ucontrol)
  2483. {
  2484. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2485. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2486. ucontrol->value.integer.value[0]);
  2487. return 0;
  2488. }
  2489. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2490. struct snd_ctl_elem_value *ucontrol)
  2491. {
  2492. struct snd_soc_dapm_widget *widget =
  2493. snd_soc_dapm_kcontrol_widget(kcontrol);
  2494. struct snd_soc_dapm_update *update = NULL;
  2495. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2496. ucontrol->value.integer.value[0]);
  2497. if (ucontrol->value.integer.value[0])
  2498. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2499. update);
  2500. else
  2501. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2502. update);
  2503. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2504. return 1;
  2505. }
  2506. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2510. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2511. ucontrol->value.integer.value[0]);
  2512. return 0;
  2513. }
  2514. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2515. struct snd_ctl_elem_value *ucontrol)
  2516. {
  2517. struct snd_soc_dapm_widget *widget =
  2518. snd_soc_dapm_kcontrol_widget(kcontrol);
  2519. struct snd_soc_dapm_update *update = NULL;
  2520. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2521. ucontrol->value.integer.value[0]);
  2522. if (ucontrol->value.integer.value[0])
  2523. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2524. update);
  2525. else
  2526. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2527. update);
  2528. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2529. return 1;
  2530. }
  2531. static int msm_routing_get_tert_mi2s_switch_mixer(
  2532. struct snd_kcontrol *kcontrol,
  2533. struct snd_ctl_elem_value *ucontrol)
  2534. {
  2535. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2536. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2537. ucontrol->value.integer.value[0]);
  2538. return 0;
  2539. }
  2540. static int msm_routing_put_tert_mi2s_switch_mixer(
  2541. struct snd_kcontrol *kcontrol,
  2542. struct snd_ctl_elem_value *ucontrol)
  2543. {
  2544. struct snd_soc_dapm_widget *widget =
  2545. snd_soc_dapm_kcontrol_widget(kcontrol);
  2546. struct snd_soc_dapm_update *update = NULL;
  2547. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2548. ucontrol->value.integer.value[0]);
  2549. if (ucontrol->value.integer.value[0])
  2550. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2551. update);
  2552. else
  2553. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2554. update);
  2555. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2556. return 1;
  2557. }
  2558. static int msm_routing_get_quat_mi2s_switch_mixer(
  2559. struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2563. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2564. ucontrol->value.integer.value[0]);
  2565. return 0;
  2566. }
  2567. static int msm_routing_put_quat_mi2s_switch_mixer(
  2568. struct snd_kcontrol *kcontrol,
  2569. struct snd_ctl_elem_value *ucontrol)
  2570. {
  2571. struct snd_soc_dapm_widget *widget =
  2572. snd_soc_dapm_kcontrol_widget(kcontrol);
  2573. struct snd_soc_dapm_update *update = NULL;
  2574. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2575. ucontrol->value.integer.value[0]);
  2576. if (ucontrol->value.integer.value[0])
  2577. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2578. update);
  2579. else
  2580. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2581. update);
  2582. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2583. return 1;
  2584. }
  2585. static int msm_routing_get_quin_mi2s_switch_mixer(
  2586. struct snd_kcontrol *kcontrol,
  2587. struct snd_ctl_elem_value *ucontrol)
  2588. {
  2589. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2590. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2591. ucontrol->value.integer.value[0]);
  2592. return 0;
  2593. }
  2594. static int msm_routing_put_quin_mi2s_switch_mixer(
  2595. struct snd_kcontrol *kcontrol,
  2596. struct snd_ctl_elem_value *ucontrol)
  2597. {
  2598. struct snd_soc_dapm_widget *widget =
  2599. snd_soc_dapm_kcontrol_widget(kcontrol);
  2600. struct snd_soc_dapm_update *update = NULL;
  2601. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. if (ucontrol->value.integer.value[0])
  2604. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2605. update);
  2606. else
  2607. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2608. update);
  2609. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2610. return 1;
  2611. }
  2612. static int msm_routing_get_sen_mi2s_switch_mixer(
  2613. struct snd_kcontrol *kcontrol,
  2614. struct snd_ctl_elem_value *ucontrol)
  2615. {
  2616. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2617. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2618. ucontrol->value.integer.value[0]);
  2619. return 0;
  2620. }
  2621. static int msm_routing_put_sen_mi2s_switch_mixer(
  2622. struct snd_kcontrol *kcontrol,
  2623. struct snd_ctl_elem_value *ucontrol)
  2624. {
  2625. struct snd_soc_dapm_widget *widget =
  2626. snd_soc_dapm_kcontrol_widget(kcontrol);
  2627. struct snd_soc_dapm_update *update = NULL;
  2628. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2629. ucontrol->value.integer.value[0]);
  2630. if (ucontrol->value.integer.value[0])
  2631. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2632. update);
  2633. else
  2634. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2635. update);
  2636. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2637. return 1;
  2638. }
  2639. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2640. struct snd_ctl_elem_value *ucontrol)
  2641. {
  2642. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2643. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2644. ucontrol->value.integer.value[0]);
  2645. return 0;
  2646. }
  2647. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2648. struct snd_ctl_elem_value *ucontrol)
  2649. {
  2650. struct snd_soc_dapm_widget *widget =
  2651. snd_soc_dapm_kcontrol_widget(kcontrol);
  2652. struct snd_soc_dapm_update *update = NULL;
  2653. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2654. ucontrol->value.integer.value[0]);
  2655. if (ucontrol->value.integer.value[0])
  2656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2657. update);
  2658. else
  2659. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2660. update);
  2661. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2662. return 1;
  2663. }
  2664. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2665. struct snd_ctl_elem_value *ucontrol)
  2666. {
  2667. ucontrol->value.integer.value[0] = lsm_port_index;
  2668. return 0;
  2669. }
  2670. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2674. int mux = ucontrol->value.enumerated.item[0];
  2675. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2676. if (mux >= e->items) {
  2677. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2678. return -EINVAL;
  2679. }
  2680. pr_debug("%s: LSM enable %ld\n", __func__,
  2681. ucontrol->value.integer.value[0]);
  2682. switch (ucontrol->value.integer.value[0]) {
  2683. case 1:
  2684. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2685. break;
  2686. case 2:
  2687. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2688. break;
  2689. case 3:
  2690. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2691. break;
  2692. case 4:
  2693. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2694. break;
  2695. case 5:
  2696. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2697. break;
  2698. case 6:
  2699. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2700. break;
  2701. case 7:
  2702. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2703. break;
  2704. case 8:
  2705. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2706. break;
  2707. case 9:
  2708. lsm_port = ADM_LSM_PORT_ID;
  2709. break;
  2710. case 10:
  2711. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2712. break;
  2713. case 11:
  2714. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2715. break;
  2716. case 12:
  2717. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2718. break;
  2719. case 13:
  2720. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2721. break;
  2722. case 14:
  2723. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2724. break;
  2725. case 15:
  2726. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2727. break;
  2728. default:
  2729. pr_err("Default lsm port");
  2730. break;
  2731. }
  2732. set_lsm_port(lsm_port);
  2733. lsm_port_index = ucontrol->value.integer.value[0];
  2734. return 0;
  2735. }
  2736. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2737. struct snd_ctl_elem_value *ucontrol)
  2738. {
  2739. int i;
  2740. u16 port_id;
  2741. enum afe_mad_type mad_type;
  2742. pr_debug("%s: enter\n", __func__);
  2743. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2744. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2745. strlen(lsm_port_text[i])))
  2746. break;
  2747. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2748. pr_warn("%s: Invalid id name %s\n", __func__,
  2749. kcontrol->id.name);
  2750. return -EINVAL;
  2751. }
  2752. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2753. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2754. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2755. strlen(lsm_port_text[7])))
  2756. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2757. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2758. strlen(lsm_port_text[8])))
  2759. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2760. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2761. strlen(lsm_port_text[10])))
  2762. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2763. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2764. strlen(lsm_port_text[13])))
  2765. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2766. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2767. strlen(lsm_port_text[14])))
  2768. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2769. mad_type = afe_port_get_mad_type(port_id);
  2770. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2771. mad_type);
  2772. switch (mad_type) {
  2773. case MAD_HW_NONE:
  2774. ucontrol->value.integer.value[0] = MADNONE;
  2775. break;
  2776. case MAD_HW_AUDIO:
  2777. ucontrol->value.integer.value[0] = MADAUDIO;
  2778. break;
  2779. case MAD_HW_BEACON:
  2780. ucontrol->value.integer.value[0] = MADBEACON;
  2781. break;
  2782. case MAD_HW_ULTRASOUND:
  2783. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2784. break;
  2785. case MAD_SW_AUDIO:
  2786. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2787. break;
  2788. default:
  2789. pr_warn("%s: Unknown\n", __func__);
  2790. return -EINVAL;
  2791. }
  2792. return 0;
  2793. }
  2794. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2795. struct snd_ctl_elem_value *ucontrol)
  2796. {
  2797. int i;
  2798. u16 port_id;
  2799. enum afe_mad_type mad_type;
  2800. pr_debug("%s: enter\n", __func__);
  2801. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2802. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2803. strlen(lsm_port_text[i])))
  2804. break;
  2805. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2806. pr_warn("%s: Invalid id name %s\n", __func__,
  2807. kcontrol->id.name);
  2808. return -EINVAL;
  2809. }
  2810. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2811. switch (ucontrol->value.integer.value[0]) {
  2812. case MADNONE:
  2813. mad_type = MAD_HW_NONE;
  2814. break;
  2815. case MADAUDIO:
  2816. mad_type = MAD_HW_AUDIO;
  2817. break;
  2818. case MADBEACON:
  2819. mad_type = MAD_HW_BEACON;
  2820. break;
  2821. case MADULTRASOUND:
  2822. mad_type = MAD_HW_ULTRASOUND;
  2823. break;
  2824. case MADSWAUDIO:
  2825. mad_type = MAD_SW_AUDIO;
  2826. break;
  2827. default:
  2828. pr_warn("%s: Unknown\n", __func__);
  2829. return -EINVAL;
  2830. }
  2831. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2832. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2833. strlen(lsm_port_text[7])))
  2834. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2835. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2836. strlen(lsm_port_text[8])))
  2837. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2838. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2839. strlen(lsm_port_text[10])))
  2840. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2841. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2842. strlen(lsm_port_text[13])))
  2843. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2844. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2845. strlen(lsm_port_text[14])))
  2846. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2847. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2848. mad_type);
  2849. return afe_port_set_mad_type(port_id, mad_type);
  2850. }
  2851. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2852. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2853. adm_override_chs_text);
  2854. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2855. {
  2856. int backend_id;
  2857. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2858. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2859. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2860. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2861. } else {
  2862. pr_err("%s: unsupported backend id: %s",
  2863. __func__, kcontrol->id.name);
  2864. return -EINVAL;
  2865. }
  2866. return backend_id;
  2867. }
  2868. static int msm_routing_adm_channel_config_get(
  2869. struct snd_kcontrol *kcontrol,
  2870. struct snd_ctl_elem_value *ucontrol)
  2871. {
  2872. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2873. if (backend_id >= 0) {
  2874. mutex_lock(&routing_lock);
  2875. ucontrol->value.integer.value[0] =
  2876. msm_bedais[backend_id].adm_override_ch;
  2877. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2878. ucontrol->value.integer.value[0], backend_id);
  2879. mutex_unlock(&routing_lock);
  2880. }
  2881. return 0;
  2882. }
  2883. static int msm_routing_adm_channel_config_put(
  2884. struct snd_kcontrol *kcontrol,
  2885. struct snd_ctl_elem_value *ucontrol)
  2886. {
  2887. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2888. if (backend_id >= 0) {
  2889. mutex_lock(&routing_lock);
  2890. msm_bedais[backend_id].adm_override_ch =
  2891. ucontrol->value.integer.value[0];
  2892. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2893. __func__, backend_id,
  2894. msm_bedais[backend_id].adm_override_ch);
  2895. mutex_unlock(&routing_lock);
  2896. }
  2897. return 0;
  2898. }
  2899. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2900. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2901. msm_routing_adm_channel_config_get,
  2902. msm_routing_adm_channel_config_put),
  2903. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2904. msm_routing_adm_channel_config_get,
  2905. msm_routing_adm_channel_config_put),
  2906. };
  2907. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2908. struct snd_ctl_elem_value *ucontrol)
  2909. {
  2910. mutex_lock(&routing_lock);
  2911. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2912. mutex_unlock(&routing_lock);
  2913. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2914. ucontrol->value.integer.value[0]);
  2915. return 0;
  2916. };
  2917. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2918. struct snd_ctl_elem_value *ucontrol)
  2919. {
  2920. struct aanc_data aanc_info;
  2921. mutex_lock(&routing_lock);
  2922. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2923. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2924. ucontrol->value.integer.value[0]);
  2925. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2926. if (ucontrol->value.integer.value[0] == 0) {
  2927. aanc_info.aanc_active = false;
  2928. aanc_info.aanc_tx_port = 0;
  2929. aanc_info.aanc_rx_port = 0;
  2930. } else {
  2931. aanc_info.aanc_active = true;
  2932. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2933. aanc_info.aanc_tx_port =
  2934. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2935. }
  2936. afe_set_aanc_info(&aanc_info);
  2937. mutex_unlock(&routing_lock);
  2938. return 0;
  2939. };
  2940. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2941. struct snd_ctl_elem_value *ucontrol)
  2942. {
  2943. int idx = 0, shift = 0;
  2944. struct soc_mixer_control *mc =
  2945. (struct soc_mixer_control *)kcontrol->private_value;
  2946. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2947. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2948. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2949. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2950. return -EINVAL;
  2951. }
  2952. if (test_bit(shift,
  2953. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2954. ucontrol->value.integer.value[0] = 1;
  2955. else
  2956. ucontrol->value.integer.value[0] = 0;
  2957. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2958. ucontrol->value.integer.value[0]);
  2959. return 0;
  2960. }
  2961. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2962. struct snd_ctl_elem_value *ucontrol)
  2963. {
  2964. int idx = 0, shift = 0;
  2965. struct soc_mixer_control *mc =
  2966. (struct soc_mixer_control *)kcontrol->private_value;
  2967. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2968. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2969. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2970. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2971. return -EINVAL;
  2972. }
  2973. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2974. __func__, mc->shift, mc->rshift,
  2975. ucontrol->value.integer.value[0], idx, shift);
  2976. if (ucontrol->value.integer.value[0]) {
  2977. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2978. msm_bedais[mc->rshift].port_id);
  2979. set_bit(shift,
  2980. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2981. } else {
  2982. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2983. msm_bedais[mc->rshift].port_id);
  2984. clear_bit(shift,
  2985. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2986. }
  2987. return 1;
  2988. }
  2989. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2990. struct snd_ctl_elem_value *ucontrol)
  2991. {
  2992. u16 fe_id = 0;
  2993. fe_id = ((struct soc_mixer_control *)
  2994. kcontrol->private_value)->shift;
  2995. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2996. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2997. return -EINVAL;
  2998. }
  2999. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3000. return 0;
  3001. }
  3002. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3003. struct snd_ctl_elem_value *ucontrol)
  3004. {
  3005. u16 fe_id = 0;
  3006. fe_id = ((struct soc_mixer_control *)
  3007. kcontrol->private_value)->shift;
  3008. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3009. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3010. return -EINVAL;
  3011. }
  3012. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3013. return 1;
  3014. }
  3015. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3016. struct snd_ctl_elem_value *ucontrol)
  3017. {
  3018. u16 fe_id = 0;
  3019. fe_id = ((struct soc_multi_mixer_control *)
  3020. kcontrol->private_value)->shift;
  3021. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3022. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3023. return -EINVAL;
  3024. }
  3025. ucontrol->value.integer.value[0] =
  3026. channel_mixer[fe_id].output_channel;
  3027. return 0;
  3028. }
  3029. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3030. struct snd_ctl_elem_value *ucontrol)
  3031. {
  3032. u16 fe_id = 0;
  3033. fe_id = ((struct soc_multi_mixer_control *)
  3034. kcontrol->private_value)->shift;
  3035. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3036. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3037. return -EINVAL;
  3038. }
  3039. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3040. fe_id,
  3041. (unsigned int)(ucontrol->value.integer.value[0]));
  3042. channel_mixer[fe_id].output_channel =
  3043. (unsigned int)(ucontrol->value.integer.value[0]);
  3044. return 1;
  3045. }
  3046. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3047. /* If new backend is added, need update this array */
  3048. static const char *const be_name[] = {
  3049. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3050. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3051. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3052. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3053. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3054. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3055. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3056. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3057. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3058. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3059. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3060. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3061. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3062. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3063. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3064. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3065. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3066. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3067. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3068. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3069. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3070. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3071. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3072. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3073. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3074. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3075. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3076. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3077. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3078. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3079. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3080. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3081. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3082. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3083. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3084. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3085. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3086. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3087. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3088. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3089. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3090. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3091. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3092. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3093. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3094. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3095. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3096. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3097. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3098. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3099. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3100. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3101. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3102. "SEC_META_MI2S_RX"
  3103. };
  3104. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3105. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3106. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3107. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3108. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3109. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3110. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3111. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3112. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3113. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3114. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3115. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3116. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3117. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3118. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3119. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3120. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3121. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3122. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3123. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3124. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3126. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3128. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3130. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3132. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3134. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3136. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3138. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3140. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3142. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3146. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3148. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3158. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3159. unsigned int channels,
  3160. unsigned int items, const char *const names[])
  3161. {
  3162. if (uinfo->value.enumerated.item >= items)
  3163. uinfo->value.enumerated.item = items - 1;
  3164. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3165. sizeof(uinfo->value.enumerated.name),
  3166. "ALSA: too long item name '%s'\n",
  3167. names[uinfo->value.enumerated.item]);
  3168. strlcpy(uinfo->value.enumerated.name,
  3169. names[uinfo->value.enumerated.item],
  3170. sizeof(uinfo->value.enumerated.name));
  3171. return 0;
  3172. }
  3173. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3174. struct snd_ctl_elem_info *uinfo)
  3175. {
  3176. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3177. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3178. uinfo->count = 1;
  3179. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3180. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3181. return 0;
  3182. }
  3183. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3184. struct snd_ctl_elem_value *ucontrol)
  3185. {
  3186. u16 fe_id = 0;
  3187. fe_id = ((struct soc_enum *)
  3188. kcontrol->private_value)->shift_l;
  3189. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3190. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3191. return -EINVAL;
  3192. }
  3193. pr_debug("%s: FE %d %s\n", __func__,
  3194. fe_id,
  3195. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3196. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3197. return 0;
  3198. }
  3199. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3200. struct snd_ctl_elem_value *ucontrol)
  3201. {
  3202. u16 fe_id = 0;
  3203. fe_id = ((struct soc_enum *)
  3204. kcontrol->private_value)->shift_l;
  3205. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3206. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3207. return -EINVAL;
  3208. }
  3209. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3210. pr_debug("%s: %s FE %d\n", __func__,
  3211. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3212. fe_id);
  3213. return 0;
  3214. }
  3215. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3216. struct snd_ctl_elem_info *uinfo)
  3217. {
  3218. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3219. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3220. uinfo->count = 1;
  3221. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3222. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3223. return 0;
  3224. }
  3225. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3229. u16 fe_id = 0, in_ch = 0;
  3230. fe_id = e->shift_l;
  3231. in_ch = e->shift_r;
  3232. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3233. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3234. return -EINVAL;
  3235. }
  3236. if (in_ch >= ADM_MAX_CHANNELS) {
  3237. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3238. return -EINVAL;
  3239. }
  3240. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3241. return 1;
  3242. }
  3243. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3247. u16 fe_id = 0, in_ch = 0;
  3248. fe_id = e->shift_l;
  3249. in_ch = e->shift_r;
  3250. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3251. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3252. return -EINVAL;
  3253. }
  3254. if (in_ch >= ADM_MAX_CHANNELS) {
  3255. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3256. return -EINVAL;
  3257. }
  3258. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3259. return 1;
  3260. }
  3261. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3262. struct snd_ctl_elem_info *uinfo)
  3263. {
  3264. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3265. uinfo->count = ADM_MAX_CHANNELS;
  3266. uinfo->value.integer.min = 0;
  3267. uinfo->value.integer.max = WEIGHT_0_DB;
  3268. return 0;
  3269. }
  3270. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3271. struct snd_ctl_elem_value *ucontrol)
  3272. {
  3273. u16 fe_id = 0, out_ch = 0;
  3274. int i, weight;
  3275. fe_id = ((struct soc_multi_mixer_control *)
  3276. kcontrol->private_value)->shift;
  3277. out_ch = ((struct soc_multi_mixer_control *)
  3278. kcontrol->private_value)->rshift;
  3279. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3280. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3281. return -EINVAL;
  3282. }
  3283. if (out_ch >= ADM_MAX_CHANNELS) {
  3284. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3285. return -EINVAL;
  3286. }
  3287. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3288. __func__, fe_id,
  3289. ucontrol->value.integer.value[0],
  3290. ucontrol->value.integer.value[1],
  3291. ucontrol->value.integer.value[2],
  3292. ucontrol->value.integer.value[3],
  3293. ucontrol->value.integer.value[4],
  3294. ucontrol->value.integer.value[5],
  3295. ucontrol->value.integer.value[6],
  3296. ucontrol->value.integer.value[7]);
  3297. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3298. weight = ucontrol->value.integer.value[i];
  3299. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3300. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3301. __func__, fe_id, out_ch, i,
  3302. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3303. }
  3304. return 0;
  3305. }
  3306. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3307. struct snd_ctl_elem_value *ucontrol)
  3308. {
  3309. u16 fe_id = 0, out_ch = 0;
  3310. int i;
  3311. fe_id = ((struct soc_multi_mixer_control *)
  3312. kcontrol->private_value)->shift;
  3313. out_ch = ((struct soc_multi_mixer_control *)
  3314. kcontrol->private_value)->rshift;
  3315. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3316. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3317. return -EINVAL;
  3318. }
  3319. if (out_ch >= ADM_MAX_CHANNELS) {
  3320. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3321. return -EINVAL;
  3322. }
  3323. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3324. ucontrol->value.integer.value[i] =
  3325. channel_mixer[fe_id].channel_weight[out_ch][i];
  3326. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3327. __func__, fe_id,
  3328. ucontrol->value.integer.value[0],
  3329. ucontrol->value.integer.value[1],
  3330. ucontrol->value.integer.value[2],
  3331. ucontrol->value.integer.value[3],
  3332. ucontrol->value.integer.value[4],
  3333. ucontrol->value.integer.value[5],
  3334. ucontrol->value.integer.value[6],
  3335. ucontrol->value.integer.value[7]);
  3336. return 0;
  3337. }
  3338. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3339. struct snd_ctl_elem_info *uinfo)
  3340. {
  3341. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3342. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3343. /* Valid channel map value ranges from 1 to 64 */
  3344. uinfo->value.integer.min = 0;
  3345. uinfo->value.integer.max = 64;
  3346. return 0;
  3347. }
  3348. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3349. struct snd_ctl_elem_value *ucontrol)
  3350. {
  3351. u16 fe_id = 0;
  3352. int i, ch_map;
  3353. fe_id = ((struct soc_multi_mixer_control *)
  3354. kcontrol->private_value)->shift;
  3355. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3356. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3357. return -EINVAL;
  3358. }
  3359. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3360. ch_map = ucontrol->value.integer.value[i];
  3361. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3362. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3363. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3364. }
  3365. /* Make override_out_ch_map false if ch map is reset */
  3366. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3367. channel_mixer[fe_id].override_out_ch_map = false;
  3368. else
  3369. channel_mixer[fe_id].override_out_ch_map = true;
  3370. return 0;
  3371. }
  3372. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3373. struct snd_ctl_elem_value *ucontrol)
  3374. {
  3375. u16 fe_id = 0;
  3376. int i;
  3377. fe_id = ((struct soc_multi_mixer_control *)
  3378. kcontrol->private_value)->shift;
  3379. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3380. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3381. return -EINVAL;
  3382. }
  3383. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3384. ucontrol->value.integer.value[i] =
  3385. channel_mixer[fe_id].out_ch_map[i];
  3386. return 0;
  3387. }
  3388. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3389. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3390. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3391. msm_pcm_get_channel_rule_index,
  3392. msm_pcm_put_channel_rule_index),
  3393. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3394. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3395. msm_pcm_get_channel_rule_index,
  3396. msm_pcm_put_channel_rule_index),
  3397. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3398. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3399. msm_pcm_get_channel_rule_index,
  3400. msm_pcm_put_channel_rule_index),
  3401. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3402. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3403. msm_pcm_get_channel_rule_index,
  3404. msm_pcm_put_channel_rule_index),
  3405. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3406. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3407. msm_pcm_get_channel_rule_index,
  3408. msm_pcm_put_channel_rule_index),
  3409. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3410. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3411. msm_pcm_get_channel_rule_index,
  3412. msm_pcm_put_channel_rule_index),
  3413. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3415. msm_pcm_get_channel_rule_index,
  3416. msm_pcm_put_channel_rule_index),
  3417. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3419. msm_pcm_get_channel_rule_index,
  3420. msm_pcm_put_channel_rule_index),
  3421. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3423. msm_pcm_get_channel_rule_index,
  3424. msm_pcm_put_channel_rule_index),
  3425. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3427. msm_pcm_get_channel_rule_index,
  3428. msm_pcm_put_channel_rule_index),
  3429. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3431. msm_pcm_get_channel_rule_index,
  3432. msm_pcm_put_channel_rule_index),
  3433. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3435. msm_pcm_get_out_chs,
  3436. msm_pcm_put_out_chs),
  3437. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3439. msm_pcm_get_out_chs,
  3440. msm_pcm_put_out_chs),
  3441. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3443. msm_pcm_get_out_chs,
  3444. msm_pcm_put_out_chs),
  3445. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3447. msm_pcm_get_out_chs,
  3448. msm_pcm_put_out_chs),
  3449. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3451. msm_pcm_get_out_chs,
  3452. msm_pcm_put_out_chs),
  3453. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3455. msm_pcm_get_out_chs,
  3456. msm_pcm_put_out_chs),
  3457. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3459. msm_pcm_get_out_chs,
  3460. msm_pcm_put_out_chs),
  3461. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3463. msm_pcm_get_out_chs,
  3464. msm_pcm_put_out_chs),
  3465. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3467. msm_pcm_get_out_chs,
  3468. msm_pcm_put_out_chs),
  3469. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3471. msm_pcm_get_out_chs,
  3472. msm_pcm_put_out_chs),
  3473. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3475. msm_pcm_get_out_chs,
  3476. msm_pcm_put_out_chs),
  3477. {
  3478. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3479. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3480. .name = "MultiMedia1 Channel Mixer",
  3481. .info = msm_pcm_channel_mixer_info,
  3482. .get = msm_pcm_channel_mixer_get,
  3483. .put = msm_pcm_channel_mixer_put,
  3484. .private_value = (unsigned long)&(mm1_channel_mux)
  3485. },
  3486. {
  3487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3489. .name = "MultiMedia2 Channel Mixer",
  3490. .info = msm_pcm_channel_mixer_info,
  3491. .get = msm_pcm_channel_mixer_get,
  3492. .put = msm_pcm_channel_mixer_put,
  3493. .private_value = (unsigned long)&(mm2_channel_mux)
  3494. },
  3495. {
  3496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3498. .name = "MultiMedia3 Channel Mixer",
  3499. .info = msm_pcm_channel_mixer_info,
  3500. .get = msm_pcm_channel_mixer_get,
  3501. .put = msm_pcm_channel_mixer_put,
  3502. .private_value = (unsigned long)&(mm3_channel_mux)
  3503. },
  3504. {
  3505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3507. .name = "MultiMedia4 Channel Mixer",
  3508. .info = msm_pcm_channel_mixer_info,
  3509. .get = msm_pcm_channel_mixer_get,
  3510. .put = msm_pcm_channel_mixer_put,
  3511. .private_value = (unsigned long)&(mm4_channel_mux)
  3512. },
  3513. {
  3514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3515. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3516. .name = "MultiMedia18 Channel Mixer",
  3517. .info = msm_pcm_channel_mixer_info,
  3518. .get = msm_pcm_channel_mixer_get,
  3519. .put = msm_pcm_channel_mixer_put,
  3520. .private_value = (unsigned long)&(mm18_channel_mux)
  3521. },
  3522. {
  3523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3525. .name = "MultiMedia19 Channel Mixer",
  3526. .info = msm_pcm_channel_mixer_info,
  3527. .get = msm_pcm_channel_mixer_get,
  3528. .put = msm_pcm_channel_mixer_put,
  3529. .private_value = (unsigned long)&(mm19_channel_mux)
  3530. },
  3531. {
  3532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3533. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3534. .name = "MultiMedia28 Channel Mixer",
  3535. .info = msm_pcm_channel_mixer_info,
  3536. .get = msm_pcm_channel_mixer_get,
  3537. .put = msm_pcm_channel_mixer_put,
  3538. .private_value = (unsigned long)&(mm28_channel_mux)
  3539. },
  3540. {
  3541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3543. .name = "MultiMedia29 Channel Mixer",
  3544. .info = msm_pcm_channel_mixer_info,
  3545. .get = msm_pcm_channel_mixer_get,
  3546. .put = msm_pcm_channel_mixer_put,
  3547. .private_value = (unsigned long)&(mm29_channel_mux)
  3548. },
  3549. {
  3550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3552. .name = "MultiMedia30 Channel Mixer",
  3553. .info = msm_pcm_channel_mixer_info,
  3554. .get = msm_pcm_channel_mixer_get,
  3555. .put = msm_pcm_channel_mixer_put,
  3556. .private_value = (unsigned long)&(mm30_channel_mux)
  3557. },
  3558. {
  3559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3561. .name = "MultiMedia1 Output Channel1",
  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 = 0,}
  3567. },
  3568. {
  3569. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3571. .name = "MultiMedia1 Output Channel2",
  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 = 1, }
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel3",
  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 = 2,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel4",
  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 = 3,}
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel5",
  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 = 4,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel6",
  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 = 5,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel7",
  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 = 6,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel8",
  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 = 7,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel9",
  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 = 8,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel10",
  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 = 9,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel11",
  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 = 10,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia1 Output Channel12",
  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_MULTIMEDIA1, .rshift = 11,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia1 Output Channel13",
  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_MULTIMEDIA1, .rshift = 12,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia1 Output Channel14",
  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_MULTIMEDIA1, .rshift = 13,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia2 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_MULTIMEDIA2, .rshift = 0,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia2 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_MULTIMEDIA2, .rshift = 1,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia2 Output Channel3",
  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_MULTIMEDIA2, .rshift = 2,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia3 Output Channel1",
  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_MULTIMEDIA3, .rshift = 0,}
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia3 Output Channel2",
  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_MULTIMEDIA3, .rshift = 1,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia18 Output Channel1",
  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 = 0,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia18 Output Channel2",
  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 = 1, }
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel3",
  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 = 2,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel4",
  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 = 3,}
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel5",
  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 = 4,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel6",
  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 = 5,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel7",
  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 = 6,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel8",
  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 = 7,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel9",
  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 = 8,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel10",
  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 = 9,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel11",
  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 = 10,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia18 Output Channel12",
  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_MULTIMEDIA18, .rshift = 11,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia18 Output Channel13",
  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_MULTIMEDIA18, .rshift = 12,}
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia18 Output Channel14",
  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_MULTIMEDIA18, .rshift = 13,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia19 Output Channel1",
  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 = 0,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia19 Output Channel2",
  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 = 1, }
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel3",
  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 = 2,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel4",
  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 = 3,}
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel5",
  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 = 4,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel6",
  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 = 5,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel7",
  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 = 6,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel8",
  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 = 7,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel9",
  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 = 8,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel10",
  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 = 9,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel11",
  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 = 10,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia19 Output Channel12",
  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_MULTIMEDIA19, .rshift = 11,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia19 Output Channel13",
  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_MULTIMEDIA19, .rshift = 12,}
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia19 Output Channel14",
  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_MULTIMEDIA19, .rshift = 13,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia28 Output Channel1",
  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 = 0,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia28 Output Channel2",
  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 = 1, }
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel3",
  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 = 2,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel4",
  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 = 3,}
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel5",
  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 = 4,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel6",
  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 = 5,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel7",
  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 = 6,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel8",
  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 = 7,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel9",
  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 = 8,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel10",
  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 = 9,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel11",
  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 = 10,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia28 Output Channel12",
  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_MULTIMEDIA28, .rshift = 11,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia28 Output Channel13",
  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_MULTIMEDIA28, .rshift = 12,}
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia28 Output Channel14",
  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_MULTIMEDIA28, .rshift = 13,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia29 Output Channel1",
  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 = 0,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia29 Output Channel2",
  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 = 1, }
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel3",
  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 = 2,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel4",
  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 = 3,}
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel5",
  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 = 4,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel6",
  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 = 5,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel7",
  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 = 6,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel8",
  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 = 7,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel9",
  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 = 8,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel10",
  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 = 9,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel11",
  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 = 10,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia29 Output Channel12",
  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_MULTIMEDIA29, .rshift = 11,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia29 Output Channel13",
  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_MULTIMEDIA29, .rshift = 12,}
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia29 Output Channel14",
  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_MULTIMEDIA29, .rshift = 13,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia30 Output Channel1",
  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 = 0,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia30 Output Channel2",
  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 = 1, }
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel3",
  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 = 2,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel4",
  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 = 3,}
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel5",
  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 = 4,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel6",
  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 = 5,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel7",
  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 = 6,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel8",
  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 = 7,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel9",
  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 = 8,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel10",
  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 = 9,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel11",
  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 = 10,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia30 Output Channel12",
  4422. .info = msm_pcm_channel_weight_info,
  4423. .get = msm_pcm_channel_weight_get,
  4424. .put = msm_pcm_channel_weight_put,
  4425. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4426. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4427. },
  4428. {
  4429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4430. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4431. .name = "MultiMedia30 Output Channel13",
  4432. .info = msm_pcm_channel_weight_info,
  4433. .get = msm_pcm_channel_weight_get,
  4434. .put = msm_pcm_channel_weight_put,
  4435. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4436. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4437. },
  4438. {
  4439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4441. .name = "MultiMedia30 Output Channel14",
  4442. .info = msm_pcm_channel_weight_info,
  4443. .get = msm_pcm_channel_weight_get,
  4444. .put = msm_pcm_channel_weight_put,
  4445. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4446. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4447. },
  4448. {
  4449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4451. .name = "MultiMedia1 Channel1",
  4452. .info = msm_pcm_channel_input_be_info,
  4453. .get = msm_pcm_channel_input_be_get,
  4454. .put = msm_pcm_channel_input_be_put,
  4455. .private_value = (unsigned long)&(mm1_ch1_enum)
  4456. },
  4457. {
  4458. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4459. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4460. .name = "MultiMedia1 Channel2",
  4461. .info = msm_pcm_channel_input_be_info,
  4462. .get = msm_pcm_channel_input_be_get,
  4463. .put = msm_pcm_channel_input_be_put,
  4464. .private_value = (unsigned long)&(mm1_ch2_enum)
  4465. },
  4466. {
  4467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4468. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4469. .name = "MultiMedia1 Channel3",
  4470. .info = msm_pcm_channel_input_be_info,
  4471. .get = msm_pcm_channel_input_be_get,
  4472. .put = msm_pcm_channel_input_be_put,
  4473. .private_value = (unsigned long)&(mm1_ch3_enum)
  4474. },
  4475. {
  4476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4478. .name = "MultiMedia1 Channel4",
  4479. .info = msm_pcm_channel_input_be_info,
  4480. .get = msm_pcm_channel_input_be_get,
  4481. .put = msm_pcm_channel_input_be_put,
  4482. .private_value = (unsigned long)&(mm1_ch4_enum)
  4483. },
  4484. {
  4485. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4486. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4487. .name = "MultiMedia1 Channel5",
  4488. .info = msm_pcm_channel_input_be_info,
  4489. .get = msm_pcm_channel_input_be_get,
  4490. .put = msm_pcm_channel_input_be_put,
  4491. .private_value = (unsigned long)&(mm1_ch5_enum)
  4492. },
  4493. {
  4494. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4495. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4496. .name = "MultiMedia1 Channel6",
  4497. .info = msm_pcm_channel_input_be_info,
  4498. .get = msm_pcm_channel_input_be_get,
  4499. .put = msm_pcm_channel_input_be_put,
  4500. .private_value = (unsigned long)&(mm1_ch6_enum)
  4501. },
  4502. {
  4503. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4504. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4505. .name = "MultiMedia1 Channel7",
  4506. .info = msm_pcm_channel_input_be_info,
  4507. .get = msm_pcm_channel_input_be_get,
  4508. .put = msm_pcm_channel_input_be_put,
  4509. .private_value = (unsigned long)&(mm1_ch7_enum)
  4510. },
  4511. {
  4512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4514. .name = "MultiMedia1 Channel8",
  4515. .info = msm_pcm_channel_input_be_info,
  4516. .get = msm_pcm_channel_input_be_get,
  4517. .put = msm_pcm_channel_input_be_put,
  4518. .private_value = (unsigned long)&(mm1_ch8_enum)
  4519. },
  4520. {
  4521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4523. .name = "MultiMedia18 Channel1",
  4524. .info = msm_pcm_channel_input_be_info,
  4525. .get = msm_pcm_channel_input_be_get,
  4526. .put = msm_pcm_channel_input_be_put,
  4527. .private_value = (unsigned long)&(mm18_ch1_enum)
  4528. },
  4529. {
  4530. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4531. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4532. .name = "MultiMedia18 Channel2",
  4533. .info = msm_pcm_channel_input_be_info,
  4534. .get = msm_pcm_channel_input_be_get,
  4535. .put = msm_pcm_channel_input_be_put,
  4536. .private_value = (unsigned long)&(mm18_ch2_enum)
  4537. },
  4538. {
  4539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4541. .name = "MultiMedia19 Channel1",
  4542. .info = msm_pcm_channel_input_be_info,
  4543. .get = msm_pcm_channel_input_be_get,
  4544. .put = msm_pcm_channel_input_be_put,
  4545. .private_value = (unsigned long)&(mm19_ch1_enum)
  4546. },
  4547. {
  4548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4549. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4550. .name = "MultiMedia19 Channel2",
  4551. .info = msm_pcm_channel_input_be_info,
  4552. .get = msm_pcm_channel_input_be_get,
  4553. .put = msm_pcm_channel_input_be_put,
  4554. .private_value = (unsigned long)&(mm19_ch2_enum)
  4555. },
  4556. {
  4557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4559. .name = "MultiMedia28 Channel1",
  4560. .info = msm_pcm_channel_input_be_info,
  4561. .get = msm_pcm_channel_input_be_get,
  4562. .put = msm_pcm_channel_input_be_put,
  4563. .private_value = (unsigned long)&(mm28_ch1_enum)
  4564. },
  4565. {
  4566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4568. .name = "MultiMedia28 Channel2",
  4569. .info = msm_pcm_channel_input_be_info,
  4570. .get = msm_pcm_channel_input_be_get,
  4571. .put = msm_pcm_channel_input_be_put,
  4572. .private_value = (unsigned long)&(mm28_ch2_enum)
  4573. },
  4574. {
  4575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4577. .name = "MultiMedia29 Channel1",
  4578. .info = msm_pcm_channel_input_be_info,
  4579. .get = msm_pcm_channel_input_be_get,
  4580. .put = msm_pcm_channel_input_be_put,
  4581. .private_value = (unsigned long)&(mm29_ch1_enum)
  4582. },
  4583. {
  4584. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4586. .name = "MultiMedia29 Channel2",
  4587. .info = msm_pcm_channel_input_be_info,
  4588. .get = msm_pcm_channel_input_be_get,
  4589. .put = msm_pcm_channel_input_be_put,
  4590. .private_value = (unsigned long)&(mm29_ch2_enum)
  4591. },
  4592. {
  4593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4594. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4595. .name = "MultiMedia30 Channel1",
  4596. .info = msm_pcm_channel_input_be_info,
  4597. .get = msm_pcm_channel_input_be_get,
  4598. .put = msm_pcm_channel_input_be_put,
  4599. .private_value = (unsigned long)&(mm30_ch1_enum)
  4600. },
  4601. {
  4602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4604. .name = "MultiMedia30 Channel2",
  4605. .info = msm_pcm_channel_input_be_info,
  4606. .get = msm_pcm_channel_input_be_get,
  4607. .put = msm_pcm_channel_input_be_put,
  4608. .private_value = (unsigned long)&(mm30_ch2_enum)
  4609. },
  4610. {
  4611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4613. .name = "MultiMedia1 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_MULTIMEDIA1,}
  4619. },
  4620. {
  4621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4623. .name = "MultiMedia2 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_MULTIMEDIA2,}
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia3 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_MULTIMEDIA3,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia4 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_MULTIMEDIA4,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia5 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_MULTIMEDIA5,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia6 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_MULTIMEDIA6,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia18 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_MULTIMEDIA18,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia19 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_MULTIMEDIA19,}
  4689. },
  4690. {
  4691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4693. .name = "MultiMedia28 Output Channel Map",
  4694. .info = msm_pcm_channel_output_map_info,
  4695. .get = msm_pcm_channel_output_map_get,
  4696. .put = msm_pcm_channel_output_map_put,
  4697. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4698. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4699. },
  4700. {
  4701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4703. .name = "MultiMedia29 Output Channel Map",
  4704. .info = msm_pcm_channel_output_map_info,
  4705. .get = msm_pcm_channel_output_map_get,
  4706. .put = msm_pcm_channel_output_map_put,
  4707. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4708. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4709. },
  4710. {
  4711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4713. .name = "MultiMedia30 Output Channel Map",
  4714. .info = msm_pcm_channel_output_map_info,
  4715. .get = msm_pcm_channel_output_map_get,
  4716. .put = msm_pcm_channel_output_map_put,
  4717. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4718. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4719. },
  4720. };
  4721. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4722. struct snd_ctl_elem_value *ucontrol)
  4723. {
  4724. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4725. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4726. ucontrol->value.integer.value[0]);
  4727. return 0;
  4728. }
  4729. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4730. struct snd_ctl_elem_value *ucontrol)
  4731. {
  4732. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4733. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4734. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4735. return 0;
  4736. }
  4737. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4738. struct snd_ctl_elem_value *ucontrol)
  4739. {
  4740. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4741. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4742. ucontrol->value.integer.value[0]);
  4743. return 0;
  4744. }
  4745. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4746. struct snd_ctl_elem_value *ucontrol)
  4747. {
  4748. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4749. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4750. __func__, msm_ec_ref_ch_downmixed);
  4751. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4752. return 0;
  4753. }
  4754. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4755. struct snd_ctl_elem_value *ucontrol)
  4756. {
  4757. int i = 0, ret = 0;
  4758. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4759. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4760. kcontrol->private_value)->shift;
  4761. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4762. weights[i] = ucontrol->value.integer.value[i];
  4763. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4764. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4765. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4766. return ret;
  4767. }
  4768. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4769. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4770. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4771. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4772. struct snd_ctl_elem_value *ucontrol)
  4773. {
  4774. switch (msm_ec_ref_bit_format) {
  4775. case SNDRV_PCM_FORMAT_S24_LE:
  4776. ucontrol->value.integer.value[0] = 2;
  4777. break;
  4778. case SNDRV_PCM_FORMAT_S16_LE:
  4779. ucontrol->value.integer.value[0] = 1;
  4780. break;
  4781. default:
  4782. ucontrol->value.integer.value[0] = 0;
  4783. break;
  4784. }
  4785. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4786. __func__, ucontrol->value.integer.value[0]);
  4787. return 0;
  4788. }
  4789. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4790. struct snd_ctl_elem_value *ucontrol)
  4791. {
  4792. u16 bit_width = 0;
  4793. switch (ucontrol->value.integer.value[0]) {
  4794. case 2:
  4795. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4796. break;
  4797. case 1:
  4798. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4799. break;
  4800. default:
  4801. msm_ec_ref_bit_format = 0;
  4802. break;
  4803. }
  4804. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4805. bit_width = 16;
  4806. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4807. bit_width = 24;
  4808. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4809. __func__, msm_ec_ref_bit_format);
  4810. adm_ec_ref_rx_bit_width(bit_width);
  4811. return 0;
  4812. }
  4813. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4814. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4815. struct snd_ctl_elem_value *ucontrol)
  4816. {
  4817. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4818. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4819. __func__, ucontrol->value.integer.value[0]);
  4820. return 0;
  4821. }
  4822. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4823. struct snd_ctl_elem_value *ucontrol)
  4824. {
  4825. switch (ucontrol->value.integer.value[0]) {
  4826. case 0:
  4827. msm_ec_ref_sampling_rate = 0;
  4828. break;
  4829. case 1:
  4830. msm_ec_ref_sampling_rate = 8000;
  4831. break;
  4832. case 2:
  4833. msm_ec_ref_sampling_rate = 16000;
  4834. break;
  4835. case 3:
  4836. msm_ec_ref_sampling_rate = 32000;
  4837. break;
  4838. case 4:
  4839. msm_ec_ref_sampling_rate = 44100;
  4840. break;
  4841. case 5:
  4842. msm_ec_ref_sampling_rate = 48000;
  4843. break;
  4844. case 6:
  4845. msm_ec_ref_sampling_rate = 96000;
  4846. break;
  4847. case 7:
  4848. msm_ec_ref_sampling_rate = 192000;
  4849. break;
  4850. case 8:
  4851. msm_ec_ref_sampling_rate = 384000;
  4852. break;
  4853. default:
  4854. msm_ec_ref_sampling_rate = 48000;
  4855. break;
  4856. }
  4857. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4858. __func__, msm_ec_ref_sampling_rate);
  4859. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4860. return 0;
  4861. }
  4862. static int get_ec_ref_port_id(int value, int *index)
  4863. {
  4864. int port_id;
  4865. switch (value) {
  4866. case 0:
  4867. *index = 0;
  4868. port_id = AFE_PORT_INVALID;
  4869. break;
  4870. case 1:
  4871. *index = 1;
  4872. port_id = SLIMBUS_0_RX;
  4873. break;
  4874. case 2:
  4875. *index = 2;
  4876. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4877. break;
  4878. case 3:
  4879. *index = 3;
  4880. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4881. break;
  4882. case 4:
  4883. *index = 4;
  4884. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4885. break;
  4886. case 5:
  4887. *index = 5;
  4888. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4889. break;
  4890. case 6:
  4891. *index = 6;
  4892. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4893. break;
  4894. case 7:
  4895. *index = 7;
  4896. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4897. break;
  4898. case 9:
  4899. *index = 9;
  4900. port_id = SLIMBUS_5_RX;
  4901. break;
  4902. case 10:
  4903. *index = 10;
  4904. port_id = SLIMBUS_1_TX;
  4905. break;
  4906. case 11:
  4907. *index = 11;
  4908. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4909. break;
  4910. case 12:
  4911. *index = 12;
  4912. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4913. break;
  4914. case 13:
  4915. *index = 13;
  4916. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4917. break;
  4918. case 14:
  4919. *index = 14;
  4920. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4921. break;
  4922. case 15:
  4923. *index = 15;
  4924. port_id = SLIMBUS_6_RX;
  4925. break;
  4926. case 16:
  4927. *index = 16;
  4928. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4929. break;
  4930. case 17:
  4931. *index = 17;
  4932. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4933. break;
  4934. case 18:
  4935. *index = 18;
  4936. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4937. break;
  4938. case 19:
  4939. *index = 19;
  4940. port_id = AFE_PORT_ID_USB_RX;
  4941. break;
  4942. case 20:
  4943. *index = 20;
  4944. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4945. break;
  4946. case 21:
  4947. *index = 21;
  4948. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4949. break;
  4950. case 22:
  4951. *index = 22;
  4952. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4953. break;
  4954. case 23:
  4955. *index = 23;
  4956. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4957. break;
  4958. case 24:
  4959. *index = 24;
  4960. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4961. break;
  4962. case 25:
  4963. *index = 25;
  4964. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4965. break;
  4966. case 26:
  4967. *index = 26;
  4968. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4969. break;
  4970. case 27:
  4971. *index = 27;
  4972. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4973. break;
  4974. case 28:
  4975. *index = 28;
  4976. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4977. break;
  4978. case 29:
  4979. *index = 29;
  4980. port_id = SLIMBUS_7_RX;
  4981. break;
  4982. case 30:
  4983. *index = 30;
  4984. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4985. break;
  4986. case 31:
  4987. *index = 31;
  4988. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4989. break;
  4990. case 32:
  4991. *index = 32;
  4992. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4993. break;
  4994. case 33:
  4995. *index = 33;
  4996. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4997. break;
  4998. case 34:
  4999. *index = 34;
  5000. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5001. break;
  5002. case 35:
  5003. *index = 35;
  5004. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5005. break;
  5006. case 36:
  5007. *index = 36;
  5008. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5009. break;
  5010. case 37:
  5011. *index = 37;
  5012. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5013. break;
  5014. default:
  5015. *index = 0; /* NONE */
  5016. pr_err("%s: Invalid value %d\n", __func__, value);
  5017. port_id = AFE_PORT_INVALID;
  5018. break;
  5019. }
  5020. return port_id;
  5021. }
  5022. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5023. struct snd_ctl_elem_value *ucontrol)
  5024. {
  5025. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5026. mutex_lock(&routing_lock);
  5027. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5028. mutex_unlock(&routing_lock);
  5029. return 0;
  5030. }
  5031. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5032. struct snd_ctl_elem_value *ucontrol)
  5033. {
  5034. int value = ucontrol->value.integer.value[0];
  5035. mutex_lock(&routing_lock);
  5036. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5037. &afe_loopback_tx_port_index);
  5038. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5039. __func__, afe_loopback_tx_port_index);
  5040. mutex_unlock(&routing_lock);
  5041. return 0;
  5042. }
  5043. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5044. "32000", "44100", "48000", "96000", "192000", "384000"};
  5045. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5046. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5047. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5048. ec_ref_bit_format_text),
  5049. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5050. };
  5051. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5052. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5053. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5054. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5055. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5056. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5057. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5058. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5059. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5060. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5061. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5062. "DISPLAY_PORT1",
  5063. };
  5064. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5065. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5066. };
  5067. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5068. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5069. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5070. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5071. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5072. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5073. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5074. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5075. msm_route_ec_ref_params_enum[0],
  5076. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5077. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5078. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5079. msm_ec_ref_chmixer_weights_put),
  5080. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5081. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5082. msm_ec_ref_chmixer_weights_put),
  5083. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5084. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5085. msm_ec_ref_chmixer_weights_put),
  5086. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5087. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5088. msm_ec_ref_chmixer_weights_put),
  5089. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5090. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5091. msm_ec_ref_chmixer_weights_put),
  5092. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5093. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5094. msm_ec_ref_chmixer_weights_put),
  5095. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5096. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5097. };
  5098. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5099. struct snd_ctl_elem_value *ucontrol)
  5100. {
  5101. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5102. mutex_lock(&routing_lock);
  5103. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5104. mutex_unlock(&routing_lock);
  5105. return 0;
  5106. }
  5107. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5108. struct snd_ctl_elem_value *ucontrol)
  5109. {
  5110. int value = ucontrol->value.integer.value[0];
  5111. struct snd_soc_dapm_widget *widget =
  5112. snd_soc_dapm_kcontrol_widget(kcontrol);
  5113. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5114. struct snd_soc_dapm_update *update = NULL;
  5115. mutex_lock(&routing_lock);
  5116. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5117. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5118. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5119. __func__, msm_route_ec_ref_rx);
  5120. mutex_unlock(&routing_lock);
  5121. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5122. msm_route_ec_ref_rx, e, update);
  5123. return 0;
  5124. }
  5125. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5126. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 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_ul2 =
  5130. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 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_ul3 =
  5134. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 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_ul4 =
  5138. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 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_ul5 =
  5142. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 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_ul6 =
  5146. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 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 const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5150. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5151. msm_route_ec_ref_rx_enum[0],
  5152. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5153. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5154. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5155. msm_route_ec_ref_rx_enum[0],
  5156. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5157. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5158. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5159. msm_route_ec_ref_rx_enum[0],
  5160. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5161. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5162. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5163. msm_route_ec_ref_rx_enum[0],
  5164. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5174. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5175. msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5177. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5178. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5179. msm_route_ec_ref_rx_enum[0],
  5180. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5181. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5182. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5183. msm_route_ec_ref_rx_enum[0],
  5184. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5185. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5186. struct snd_ctl_elem_value *ucontrol)
  5187. {
  5188. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5189. mutex_lock(&routing_lock);
  5190. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5191. mutex_unlock(&routing_lock);
  5192. return 0;
  5193. }
  5194. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5195. struct snd_ctl_elem_value *ucontrol)
  5196. {
  5197. struct snd_soc_dapm_widget *widget =
  5198. snd_soc_dapm_kcontrol_widget(kcontrol);
  5199. int mux = ucontrol->value.enumerated.item[0];
  5200. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5201. int ret = 1;
  5202. bool state = true;
  5203. uint16_t ext_ec_ref_port_id;
  5204. struct snd_soc_dapm_update *update = NULL;
  5205. if (mux >= e->items) {
  5206. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5207. return -EINVAL;
  5208. }
  5209. mutex_lock(&routing_lock);
  5210. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5211. switch (msm_route_ext_ec_ref) {
  5212. case EXT_EC_REF_PRI_MI2S_TX:
  5213. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5214. break;
  5215. case EXT_EC_REF_SEC_MI2S_TX:
  5216. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5217. break;
  5218. case EXT_EC_REF_TERT_MI2S_TX:
  5219. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5220. break;
  5221. case EXT_EC_REF_QUAT_MI2S_TX:
  5222. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5223. break;
  5224. case EXT_EC_REF_QUIN_MI2S_TX:
  5225. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5226. break;
  5227. case EXT_EC_REF_SLIM_1_TX:
  5228. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5229. break;
  5230. case EXT_EC_REF_PRI_TDM_TX:
  5231. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5232. break;
  5233. case EXT_EC_REF_SEC_TDM_TX:
  5234. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5235. break;
  5236. case EXT_EC_REF_NONE:
  5237. default:
  5238. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5239. state = false;
  5240. break;
  5241. }
  5242. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5243. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5244. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5245. mutex_unlock(&routing_lock);
  5246. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5247. update);
  5248. } else {
  5249. ret = -EINVAL;
  5250. mutex_unlock(&routing_lock);
  5251. }
  5252. return ret;
  5253. }
  5254. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5255. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5256. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5257. "SLIM_1_TX", "PRI_TDM_TX",
  5258. "SEC_TDM_TX"};
  5259. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5260. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5261. };
  5262. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5263. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5264. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5265. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_PRI_I2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_PRI_I2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_PRI_I2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_PRI_I2S_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_PRI_I2S_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_PRI_I2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. };
  5359. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5360. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SEC_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SEC_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_SEC_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_SEC_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_SEC_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_SEC_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. };
  5453. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5454. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. };
  5547. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5548. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. };
  5641. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. };
  5711. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5712. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. };
  5805. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5806. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. };
  5899. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5900. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_MI2S_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_MI2S_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_MI2S_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_MI2S_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_MI2S_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_MI2S_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. };
  5993. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5994. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. };
  6087. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. };
  6181. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6182. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. };
  6271. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6272. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. };
  6357. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6358. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. };
  6363. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6364. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. };
  6457. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6458. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. };
  6551. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6552. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. };
  6617. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6618. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. };
  6683. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6684. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. };
  6773. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. };
  6863. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6864. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_HDMI_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_HDMI_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_HDMI_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_HDMI_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_HDMI_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_HDMI_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_HDMI_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_HDMI_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_HDMI_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_HDMI_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_HDMI_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_HDMI_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_HDMI_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_HDMI_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. };
  6957. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6958. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. };
  7027. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7028. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. };
  7097. /* incall music delivery mixer */
  7098. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. };
  7120. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. };
  7138. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7139. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. };
  7156. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7157. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. };
  7226. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. };
  7296. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. };
  7366. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7367. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. };
  7436. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7437. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. };
  7506. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7507. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. };
  7576. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7577. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. };
  7646. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7647. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. };
  7716. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7717. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. };
  7786. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. };
  7856. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. };
  7926. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7927. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. };
  7996. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7997. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. };
  8066. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8067. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_USB_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_USB_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_USB_RX,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_USB_RX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_USB_RX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_USB_RX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_USB_RX,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_USB_RX,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_USB_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_USB_RX,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_USB_RX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_USB_RX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_USB_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_USB_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_USB_RX,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. };
  8136. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8137. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. };
  8230. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8231. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. };
  8300. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8301. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_INT_FM_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_FM_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_INT_FM_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_INT_FM_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_INT_FM_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_INT_FM_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_INT_FM_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_INT_FM_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_FM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_FM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_FM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INT_FM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_FM_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_FM_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_FM_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_INT_FM_RX,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. };
  8394. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8395. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_AFE_PCM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_AFE_PCM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_AFE_PCM_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_AFE_PCM_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_AFE_PCM_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_AFE_PCM_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_AFE_PCM_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_AFE_PCM_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_AFE_PCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_AFE_PCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_AFE_PCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_AFE_PCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_AFE_PCM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_AFE_PCM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_AFE_PCM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_AFE_PCM_RX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. };
  8488. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8489. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_AUXPCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_AUXPCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_AUXPCM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_AUXPCM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_AUXPCM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_AUXPCM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_AUXPCM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_AUXPCM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_AUXPCM_RX,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_AUXPCM_RX,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AUXPCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AUXPCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AUXPCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_AUXPCM_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. };
  8586. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8587. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. };
  8684. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8685. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. };
  8754. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8755. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. };
  8824. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. };
  8894. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8895. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. };
  8964. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8965. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. };
  9038. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9039. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. };
  9112. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9113. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. };
  9186. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. };
  9260. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. };
  9326. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9327. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. };
  9400. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9401. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. };
  9474. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9475. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. };
  9548. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9549. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. };
  9622. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9623. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. };
  9688. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9689. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. };
  9762. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9763. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. };
  9828. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9829. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. };
  9902. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9903. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. };
  9976. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9977. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. };
  10050. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10051. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10120. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10121. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10122. msm_routing_put_audio_mixer),
  10123. };
  10124. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10125. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. };
  10202. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10203. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. };
  10268. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10269. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10343. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10344. msm_routing_put_audio_mixer),
  10345. };
  10346. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10347. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. };
  10424. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10425. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10499. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10500. msm_routing_put_audio_mixer),
  10501. };
  10502. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. };
  10580. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10581. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. };
  10646. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10647. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  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_QUIN_TDM_RX_1,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. };
  10724. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10725. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. };
  10802. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10803. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. };
  10880. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10881. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. };
  10954. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10955. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. };
  11020. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11021. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. };
  11094. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11095. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. };
  11168. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11169. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11238. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11239. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11240. msm_routing_put_audio_mixer),
  11241. };
  11242. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11243. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_PRI_I2S_TX,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_MI2S_TX,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_AUXPCM_TX,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_INT_FM_TX,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_AFE_PCM_TX,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11429. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11430. msm_routing_put_audio_mixer),
  11431. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_USB_TX,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. };
  11516. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11517. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_INT_FM_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_MI2S_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_USB_TX,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. };
  11742. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11743. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_INT_FM_TX,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_MI2S_TX,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_AFE_PCM_TX,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_AUXPCM_TX,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. };
  11964. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11965. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_INT_FM_TX,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_AFE_PCM_TX,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_USB_TX,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. };
  12178. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12179. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_INT_FM_TX,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_MI2S_TX,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_AFE_PCM_TX,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_AUXPCM_TX,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_USB_TX,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. };
  12424. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12425. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_INT_FM_TX,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_AUXPCM_TX,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_USB_TX,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12632. msm_routing_put_audio_mixer),
  12633. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12643. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12644. msm_routing_put_audio_mixer),
  12645. };
  12646. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12647. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_INT_FM_TX,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_AFE_PCM_TX,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_USB_TX,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12870. msm_routing_put_audio_mixer),
  12871. };
  12872. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12873. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_INT_FM_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_AFE_PCM_TX,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_USB_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_MI2S_TX,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_AUXPCM_TX,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13040. msm_routing_put_audio_mixer),
  13041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13044. msm_routing_get_audio_mixer,
  13045. msm_routing_put_audio_mixer),
  13046. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13049. msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13054. msm_routing_get_audio_mixer,
  13055. msm_routing_put_audio_mixer),
  13056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13058. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13059. msm_routing_get_audio_mixer,
  13060. msm_routing_put_audio_mixer),
  13061. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13064. msm_routing_get_audio_mixer,
  13065. msm_routing_put_audio_mixer),
  13066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13069. msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13085. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. };
  13088. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13089. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_INT_FM_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_AFE_PCM_TX,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. };
  13250. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13251. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_INT_FM_TX,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_AFE_PCM_TX,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_USB_TX,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_MI2S_TX,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_AUXPCM_TX,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13386. msm_routing_get_audio_mixer,
  13387. msm_routing_put_audio_mixer),
  13388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13390. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13391. msm_routing_get_audio_mixer,
  13392. msm_routing_put_audio_mixer),
  13393. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13396. msm_routing_get_audio_mixer,
  13397. msm_routing_put_audio_mixer),
  13398. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13399. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13400. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13401. msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13406. msm_routing_get_audio_mixer,
  13407. msm_routing_put_audio_mixer),
  13408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13410. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13411. msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13426. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13427. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13428. msm_routing_put_audio_mixer),
  13429. };
  13430. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13431. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_INT_FM_TX,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_AFE_PCM_TX,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13502. msm_routing_get_audio_mixer,
  13503. msm_routing_put_audio_mixer),
  13504. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13506. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13507. msm_routing_get_audio_mixer,
  13508. msm_routing_put_audio_mixer),
  13509. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13511. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13512. msm_routing_get_audio_mixer,
  13513. msm_routing_put_audio_mixer),
  13514. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13516. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13517. msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13522. msm_routing_get_audio_mixer,
  13523. msm_routing_put_audio_mixer),
  13524. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13526. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13527. msm_routing_get_audio_mixer,
  13528. msm_routing_put_audio_mixer),
  13529. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13531. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13532. msm_routing_put_audio_mixer),
  13533. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13535. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13536. msm_routing_put_audio_mixer),
  13537. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13539. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13540. msm_routing_put_audio_mixer),
  13541. };
  13542. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13543. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_INT_FM_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_AFE_PCM_TX,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13602. msm_routing_put_audio_mixer),
  13603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13614. msm_routing_put_audio_mixer),
  13615. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13617. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13618. msm_routing_get_audio_mixer,
  13619. msm_routing_put_audio_mixer),
  13620. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13622. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13623. msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13628. msm_routing_get_audio_mixer,
  13629. msm_routing_put_audio_mixer),
  13630. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13632. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13633. msm_routing_get_audio_mixer,
  13634. msm_routing_put_audio_mixer),
  13635. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13637. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13638. msm_routing_get_audio_mixer,
  13639. msm_routing_put_audio_mixer),
  13640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13642. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13643. msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. };
  13658. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13659. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_INT_FM_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_AFE_PCM_TX,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13718. msm_routing_put_audio_mixer),
  13719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13730. msm_routing_put_audio_mixer),
  13731. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13733. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13734. msm_routing_get_audio_mixer,
  13735. msm_routing_put_audio_mixer),
  13736. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13737. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13738. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13739. msm_routing_get_audio_mixer,
  13740. msm_routing_put_audio_mixer),
  13741. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13743. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13744. msm_routing_get_audio_mixer,
  13745. msm_routing_put_audio_mixer),
  13746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13748. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13749. msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13754. msm_routing_get_audio_mixer,
  13755. msm_routing_put_audio_mixer),
  13756. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13758. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13759. msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. };
  13774. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13775. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13809. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13942. msm_routing_put_audio_mixer),
  13943. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13945. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13954. msm_routing_put_audio_mixer),
  13955. };
  13956. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13957. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_AUXPCM_TX,
  13959. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13964. msm_routing_put_audio_mixer),
  13965. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13966. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13967. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13968. msm_routing_put_audio_mixer),
  13969. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13972. msm_routing_put_audio_mixer),
  13973. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13975. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13976. msm_routing_put_audio_mixer),
  13977. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13979. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13980. msm_routing_put_audio_mixer),
  13981. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13983. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13984. msm_routing_put_audio_mixer),
  13985. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14064. msm_routing_put_audio_mixer),
  14065. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14067. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14068. msm_routing_put_audio_mixer),
  14069. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14071. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14072. msm_routing_put_audio_mixer),
  14073. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14075. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14080. msm_routing_put_audio_mixer),
  14081. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14083. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14084. msm_routing_put_audio_mixer),
  14085. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14087. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14088. msm_routing_put_audio_mixer),
  14089. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14091. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14092. msm_routing_put_audio_mixer),
  14093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14095. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14096. msm_routing_put_audio_mixer),
  14097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14099. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14100. msm_routing_put_audio_mixer),
  14101. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. };
  14122. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14123. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14197. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14198. msm_routing_put_audio_mixer),
  14199. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14201. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14202. msm_routing_put_audio_mixer),
  14203. };
  14204. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14205. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. };
  14262. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14263. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14265. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14266. msm_routing_put_audio_mixer),
  14267. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14269. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14270. msm_routing_put_audio_mixer),
  14271. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14273. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14274. msm_routing_put_audio_mixer),
  14275. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14277. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14278. msm_routing_put_audio_mixer),
  14279. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_INT_FM_TX,
  14281. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14282. msm_routing_put_audio_mixer),
  14283. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14285. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14286. msm_routing_put_audio_mixer),
  14287. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_AFE_PCM_TX,
  14289. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14290. msm_routing_put_audio_mixer),
  14291. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14293. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14294. msm_routing_put_audio_mixer),
  14295. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14301. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14314. msm_routing_put_audio_mixer),
  14315. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14317. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14318. msm_routing_put_audio_mixer),
  14319. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14321. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14322. msm_routing_put_audio_mixer),
  14323. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14325. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14330. msm_routing_put_audio_mixer),
  14331. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14334. msm_routing_put_audio_mixer),
  14335. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14337. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14338. msm_routing_get_audio_mixer,
  14339. msm_routing_put_audio_mixer),
  14340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14342. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14343. msm_routing_get_audio_mixer,
  14344. msm_routing_put_audio_mixer),
  14345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14348. msm_routing_get_audio_mixer,
  14349. msm_routing_put_audio_mixer),
  14350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14352. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14353. msm_routing_get_audio_mixer,
  14354. msm_routing_put_audio_mixer),
  14355. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14357. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14358. msm_routing_get_audio_mixer,
  14359. msm_routing_put_audio_mixer),
  14360. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14362. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14363. msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14374. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14375. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14376. msm_routing_put_audio_mixer),
  14377. };
  14378. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14379. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14389. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14390. msm_routing_put_audio_mixer),
  14391. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14393. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14394. msm_routing_put_audio_mixer),
  14395. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_INT_FM_TX,
  14397. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14398. msm_routing_put_audio_mixer),
  14399. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_AFE_PCM_TX,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14413. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14414. msm_routing_put_audio_mixer),
  14415. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14417. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14418. msm_routing_put_audio_mixer),
  14419. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14421. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14422. msm_routing_put_audio_mixer),
  14423. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14425. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14430. msm_routing_put_audio_mixer),
  14431. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14433. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14438. msm_routing_put_audio_mixer),
  14439. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14441. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14442. msm_routing_put_audio_mixer),
  14443. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14444. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14445. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14446. msm_routing_put_audio_mixer),
  14447. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14449. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14450. msm_routing_put_audio_mixer),
  14451. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14452. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14453. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14454. msm_routing_get_audio_mixer,
  14455. msm_routing_put_audio_mixer),
  14456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14458. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14459. msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14464. msm_routing_get_audio_mixer,
  14465. msm_routing_put_audio_mixer),
  14466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14468. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14469. msm_routing_get_audio_mixer,
  14470. msm_routing_put_audio_mixer),
  14471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14473. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14474. msm_routing_get_audio_mixer,
  14475. msm_routing_put_audio_mixer),
  14476. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14477. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14478. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14479. msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14491. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. };
  14494. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14495. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14497. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14498. msm_routing_put_audio_mixer),
  14499. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14501. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14502. msm_routing_put_audio_mixer),
  14503. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14505. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14506. msm_routing_put_audio_mixer),
  14507. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14509. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14510. msm_routing_put_audio_mixer),
  14511. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_INT_FM_TX,
  14513. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14514. msm_routing_put_audio_mixer),
  14515. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14517. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14518. msm_routing_put_audio_mixer),
  14519. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_AFE_PCM_TX,
  14521. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14557. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14562. msm_routing_put_audio_mixer),
  14563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14565. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14566. msm_routing_get_audio_mixer,
  14567. msm_routing_put_audio_mixer),
  14568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14570. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14571. msm_routing_get_audio_mixer,
  14572. msm_routing_put_audio_mixer),
  14573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14575. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14576. msm_routing_get_audio_mixer,
  14577. msm_routing_put_audio_mixer),
  14578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14580. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14581. msm_routing_get_audio_mixer,
  14582. msm_routing_put_audio_mixer),
  14583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14585. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14586. msm_routing_get_audio_mixer,
  14587. msm_routing_put_audio_mixer),
  14588. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14590. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14591. msm_routing_get_audio_mixer,
  14592. msm_routing_put_audio_mixer),
  14593. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14595. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14596. msm_routing_put_audio_mixer),
  14597. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14599. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14600. msm_routing_put_audio_mixer),
  14601. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14603. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14604. msm_routing_put_audio_mixer),
  14605. };
  14606. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14607. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_PRI_I2S_RX,
  14609. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14610. msm_routing_put_voice_mixer),
  14611. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_PRI_I2S_RX,
  14613. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14614. msm_routing_put_voice_mixer),
  14615. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_PRI_I2S_RX,
  14617. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14618. msm_routing_put_voice_mixer),
  14619. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_PRI_I2S_RX,
  14621. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14622. msm_routing_put_voice_mixer),
  14623. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_PRI_I2S_RX,
  14625. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14626. msm_routing_put_voice_mixer),
  14627. };
  14628. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14629. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_SEC_I2S_RX,
  14631. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14632. msm_routing_put_voice_mixer),
  14633. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_SEC_I2S_RX,
  14635. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14636. msm_routing_put_voice_mixer),
  14637. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_SEC_I2S_RX,
  14639. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14640. msm_routing_put_voice_mixer),
  14641. };
  14642. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14643. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14645. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14646. msm_routing_put_voice_mixer),
  14647. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14649. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14650. msm_routing_put_voice_mixer),
  14651. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14653. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14654. msm_routing_put_voice_mixer),
  14655. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14657. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14658. msm_routing_put_voice_mixer),
  14659. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14661. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14662. msm_routing_put_voice_mixer),
  14663. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14665. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14666. msm_routing_put_voice_mixer),
  14667. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14668. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14669. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14670. msm_routing_put_voice_mixer),
  14671. };
  14672. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14673. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14675. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14676. msm_routing_put_voice_mixer),
  14677. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14679. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14680. msm_routing_put_voice_mixer),
  14681. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14683. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14684. msm_routing_put_voice_mixer),
  14685. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14687. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14688. msm_routing_put_voice_mixer),
  14689. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14691. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14692. msm_routing_put_voice_mixer),
  14693. };
  14694. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14695. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14697. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14698. msm_routing_put_voice_mixer),
  14699. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14701. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14702. msm_routing_put_voice_mixer),
  14703. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14705. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14706. msm_routing_put_voice_mixer),
  14707. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14709. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14710. msm_routing_put_voice_mixer),
  14711. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14713. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14714. msm_routing_put_voice_mixer),
  14715. };
  14716. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14717. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_USB_RX,
  14719. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14720. msm_routing_put_voice_mixer),
  14721. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_USB_RX,
  14723. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14724. msm_routing_put_voice_mixer),
  14725. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_USB_RX,
  14727. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14728. msm_routing_put_voice_mixer),
  14729. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_USB_RX,
  14731. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14732. msm_routing_put_voice_mixer),
  14733. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_USB_RX,
  14735. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14736. msm_routing_put_voice_mixer),
  14737. };
  14738. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14739. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14741. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14742. msm_routing_put_voice_mixer),
  14743. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14745. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14746. msm_routing_put_voice_mixer),
  14747. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14749. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14750. msm_routing_put_voice_mixer),
  14751. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14753. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14754. msm_routing_put_voice_mixer),
  14755. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14757. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14758. msm_routing_put_voice_mixer),
  14759. };
  14760. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14761. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14763. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14764. msm_routing_put_voice_mixer),
  14765. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14767. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14768. msm_routing_put_voice_mixer),
  14769. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14770. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14771. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14772. msm_routing_put_voice_mixer),
  14773. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14775. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14776. msm_routing_put_voice_mixer),
  14777. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14778. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14779. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14780. msm_routing_put_voice_mixer),
  14781. };
  14782. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14783. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14785. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14786. msm_routing_put_voice_mixer),
  14787. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14789. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14790. msm_routing_put_voice_mixer),
  14791. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14793. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14794. msm_routing_put_voice_mixer),
  14795. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14797. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14798. msm_routing_put_voice_mixer),
  14799. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14801. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14802. msm_routing_put_voice_mixer),
  14803. };
  14804. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14805. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_MI2S_RX,
  14807. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14808. msm_routing_put_voice_mixer),
  14809. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_MI2S_RX,
  14811. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14812. msm_routing_put_voice_mixer),
  14813. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_MI2S_RX,
  14815. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14816. msm_routing_put_voice_mixer),
  14817. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_MI2S_RX,
  14819. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14820. msm_routing_put_voice_mixer),
  14821. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_MI2S_RX,
  14823. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14824. msm_routing_put_voice_mixer),
  14825. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_MI2S_RX,
  14827. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14828. msm_routing_put_voice_mixer),
  14829. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14830. MSM_BACKEND_DAI_MI2S_RX,
  14831. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14832. msm_routing_put_voice_mixer),
  14833. };
  14834. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14835. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14837. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14838. msm_routing_put_voice_mixer),
  14839. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14841. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14842. msm_routing_put_voice_mixer),
  14843. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14845. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14846. msm_routing_put_voice_mixer),
  14847. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14849. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14850. msm_routing_put_voice_mixer),
  14851. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14853. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14854. msm_routing_put_voice_mixer),
  14855. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14857. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14858. msm_routing_put_voice_mixer),
  14859. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14860. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14861. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14862. msm_routing_put_voice_mixer),
  14863. };
  14864. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14865. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14867. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14868. msm_routing_put_voice_mixer),
  14869. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14871. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14872. msm_routing_put_voice_mixer),
  14873. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14875. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14876. msm_routing_put_voice_mixer),
  14877. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14879. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14880. msm_routing_put_voice_mixer),
  14881. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14883. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14884. msm_routing_put_voice_mixer),
  14885. };
  14886. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14887. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14889. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14890. msm_routing_put_voice_mixer),
  14891. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14892. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14893. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14894. msm_routing_put_voice_mixer),
  14895. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14897. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14898. msm_routing_put_voice_mixer),
  14899. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14901. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14902. msm_routing_put_voice_mixer),
  14903. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14905. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14906. msm_routing_put_voice_mixer),
  14907. };
  14908. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14909. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14911. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14912. msm_routing_put_voice_mixer),
  14913. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14915. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14916. msm_routing_put_voice_mixer),
  14917. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14919. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14920. msm_routing_put_voice_mixer),
  14921. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14923. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14924. msm_routing_put_voice_mixer),
  14925. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14927. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14928. msm_routing_put_voice_mixer),
  14929. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14932. msm_routing_put_voice_mixer),
  14933. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14935. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14936. msm_routing_put_voice_mixer),
  14937. };
  14938. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14939. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14941. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14942. msm_routing_put_voice_mixer),
  14943. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14945. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14946. msm_routing_put_voice_mixer),
  14947. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14949. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14950. msm_routing_put_voice_mixer),
  14951. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14953. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14954. msm_routing_put_voice_mixer),
  14955. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14957. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14958. msm_routing_put_voice_mixer),
  14959. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14961. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14962. msm_routing_put_voice_mixer),
  14963. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14965. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14966. msm_routing_put_voice_mixer),
  14967. };
  14968. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14969. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14971. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14972. msm_routing_put_voice_mixer),
  14973. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14975. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14976. msm_routing_put_voice_stub_mixer),
  14977. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14979. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14980. msm_routing_put_voice_stub_mixer),
  14981. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14983. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14984. msm_routing_put_voice_mixer),
  14985. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14987. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14988. msm_routing_put_voice_mixer),
  14989. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14991. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14992. msm_routing_put_voice_mixer),
  14993. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14994. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14995. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14996. msm_routing_put_voice_mixer),
  14997. };
  14998. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  14999. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15001. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15002. msm_routing_put_voice_mixer),
  15003. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15005. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15006. msm_routing_put_voice_mixer),
  15007. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15009. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15010. msm_routing_put_voice_mixer),
  15011. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15013. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15014. msm_routing_put_voice_mixer),
  15015. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15017. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15018. msm_routing_put_voice_mixer),
  15019. };
  15020. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15021. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_AFE_PCM_RX,
  15023. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15024. msm_routing_put_voice_mixer),
  15025. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_AFE_PCM_RX,
  15027. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15028. msm_routing_put_voice_mixer),
  15029. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_AFE_PCM_RX,
  15031. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15032. msm_routing_put_voice_mixer),
  15033. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_AFE_PCM_RX,
  15035. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15036. msm_routing_put_voice_mixer),
  15037. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_AFE_PCM_RX,
  15039. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15040. msm_routing_put_voice_mixer),
  15041. };
  15042. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15043. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_AUXPCM_RX,
  15045. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15046. msm_routing_put_voice_mixer),
  15047. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_AUXPCM_RX,
  15049. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15050. msm_routing_put_voice_mixer),
  15051. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_AUXPCM_RX,
  15053. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15054. msm_routing_put_voice_mixer),
  15055. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_AUXPCM_RX,
  15057. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15058. msm_routing_put_voice_mixer),
  15059. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_AUXPCM_RX,
  15061. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15062. msm_routing_put_voice_mixer),
  15063. };
  15064. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15065. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15067. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15068. msm_routing_put_voice_mixer),
  15069. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15071. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15072. msm_routing_put_voice_mixer),
  15073. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15075. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15076. msm_routing_put_voice_mixer),
  15077. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15079. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15080. msm_routing_put_voice_mixer),
  15081. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15083. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15084. msm_routing_put_voice_mixer),
  15085. };
  15086. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15087. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15089. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15090. msm_routing_put_voice_mixer),
  15091. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15093. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15094. msm_routing_put_voice_mixer),
  15095. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15097. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15098. msm_routing_put_voice_mixer),
  15099. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15101. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15102. msm_routing_put_voice_mixer),
  15103. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15105. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15106. msm_routing_put_voice_mixer),
  15107. };
  15108. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15109. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15111. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15112. msm_routing_put_voice_mixer),
  15113. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15115. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15116. msm_routing_put_voice_mixer),
  15117. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15119. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15120. msm_routing_put_voice_mixer),
  15121. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15123. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15124. msm_routing_put_voice_mixer),
  15125. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15127. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15128. msm_routing_put_voice_mixer),
  15129. };
  15130. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15131. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15133. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15134. msm_routing_put_voice_mixer),
  15135. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15137. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15138. msm_routing_put_voice_mixer),
  15139. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15141. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15142. msm_routing_put_voice_mixer),
  15143. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15145. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15146. msm_routing_put_voice_mixer),
  15147. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15148. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15149. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15150. msm_routing_put_voice_mixer),
  15151. };
  15152. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15153. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15154. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15155. msm_routing_put_voice_mixer),
  15156. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15157. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15158. msm_routing_put_voice_mixer),
  15159. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  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_SEN_AUXPCM_RX,
  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_SEN_AUXPCM_RX,
  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 hdmi_rx_voice_mixer_controls[] = {
  15172. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_HDMI_RX,
  15174. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15175. msm_routing_put_voice_mixer),
  15176. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_HDMI_RX,
  15178. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15179. msm_routing_put_voice_mixer),
  15180. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_HDMI_RX,
  15182. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15183. msm_routing_put_voice_mixer),
  15184. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_HDMI_RX,
  15186. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15187. msm_routing_put_voice_mixer),
  15188. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_HDMI_RX,
  15190. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15191. msm_routing_put_voice_mixer),
  15192. };
  15193. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15194. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15196. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15197. msm_routing_put_voice_mixer),
  15198. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15200. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15201. msm_routing_put_voice_mixer),
  15202. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15203. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15204. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15205. msm_routing_put_voice_mixer),
  15206. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_SLIMBUS_7_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_SLIMBUS_7_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_8_rx_voice_mixer_controls[] = {
  15216. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15218. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15219. msm_routing_put_voice_mixer),
  15220. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15222. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15223. msm_routing_put_voice_mixer),
  15224. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15226. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15227. msm_routing_put_voice_mixer),
  15228. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15229. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15230. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15231. msm_routing_put_voice_mixer),
  15232. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15233. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15234. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15235. msm_routing_put_voice_mixer),
  15236. };
  15237. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15238. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15239. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15240. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15241. msm_routing_put_voice_mixer),
  15242. };
  15243. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15244. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15246. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15247. msm_routing_put_voice_mixer),
  15248. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15250. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15251. msm_routing_put_voice_mixer),
  15252. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15255. msm_routing_put_voice_mixer),
  15256. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15258. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15259. msm_routing_put_voice_mixer),
  15260. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15262. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15263. msm_routing_put_voice_mixer),
  15264. };
  15265. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15266. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15268. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15269. msm_routing_put_voice_mixer),
  15270. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15272. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15273. msm_routing_put_voice_mixer),
  15274. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15276. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15277. msm_routing_put_voice_mixer),
  15278. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15280. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15281. msm_routing_put_voice_mixer),
  15282. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15283. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15284. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15285. msm_routing_put_voice_mixer),
  15286. };
  15287. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15288. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15291. msm_routing_put_voice_mixer),
  15292. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15294. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15295. msm_routing_put_voice_mixer),
  15296. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15299. msm_routing_put_voice_mixer),
  15300. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15302. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15303. msm_routing_put_voice_mixer),
  15304. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15305. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15306. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15307. msm_routing_put_voice_mixer),
  15308. };
  15309. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15310. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15312. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15313. msm_routing_put_voice_mixer),
  15314. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15316. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15317. msm_routing_put_voice_mixer),
  15318. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15320. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15321. msm_routing_put_voice_mixer),
  15322. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15324. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15325. msm_routing_put_voice_mixer),
  15326. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15327. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15328. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15329. msm_routing_put_voice_mixer),
  15330. };
  15331. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15332. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15334. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15335. msm_routing_put_voice_mixer),
  15336. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15338. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15339. msm_routing_put_voice_mixer),
  15340. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15342. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15343. msm_routing_put_voice_mixer),
  15344. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15346. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15347. msm_routing_put_voice_mixer),
  15348. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15350. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15351. msm_routing_put_voice_mixer),
  15352. };
  15353. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15354. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15356. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15357. msm_routing_put_voice_mixer),
  15358. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15360. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15361. msm_routing_put_voice_mixer),
  15362. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15364. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15365. msm_routing_put_voice_mixer),
  15366. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15368. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15369. msm_routing_put_voice_mixer),
  15370. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15371. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15372. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15373. msm_routing_put_voice_mixer),
  15374. };
  15375. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15376. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15378. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15379. msm_routing_put_voice_mixer),
  15380. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15382. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15383. msm_routing_put_voice_mixer),
  15384. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15386. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15387. msm_routing_put_voice_mixer),
  15388. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15390. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15391. msm_routing_put_voice_mixer),
  15392. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15394. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15395. msm_routing_put_voice_mixer),
  15396. };
  15397. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15398. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15400. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15401. msm_routing_put_voice_mixer),
  15402. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15404. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15405. msm_routing_put_voice_mixer),
  15406. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15408. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15409. msm_routing_put_voice_mixer),
  15410. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15412. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15413. msm_routing_put_voice_mixer),
  15414. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15416. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15417. msm_routing_put_voice_mixer),
  15418. };
  15419. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15420. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15422. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15423. msm_routing_put_voice_mixer),
  15424. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15426. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15427. msm_routing_put_voice_mixer),
  15428. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15430. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15431. msm_routing_put_voice_mixer),
  15432. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15434. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15435. msm_routing_put_voice_mixer),
  15436. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15438. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15439. msm_routing_put_voice_mixer),
  15440. };
  15441. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15442. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15443. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15444. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15445. msm_routing_put_voice_mixer),
  15446. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15447. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15448. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15449. msm_routing_put_voice_mixer),
  15450. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15451. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15452. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15453. msm_routing_put_voice_mixer),
  15454. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15455. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15456. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15457. msm_routing_put_voice_mixer),
  15458. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15459. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15460. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15461. msm_routing_put_voice_mixer),
  15462. };
  15463. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15464. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15466. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15467. msm_routing_put_voice_mixer),
  15468. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15470. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15471. msm_routing_put_voice_stub_mixer),
  15472. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15474. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15475. msm_routing_put_voice_stub_mixer),
  15476. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15478. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15479. msm_routing_put_voice_mixer),
  15480. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15482. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15483. msm_routing_put_voice_mixer),
  15484. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15486. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15487. msm_routing_put_voice_mixer),
  15488. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15490. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15491. msm_routing_put_voice_mixer),
  15492. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15494. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15495. msm_routing_put_voice_mixer),
  15496. };
  15497. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15498. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15500. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15501. msm_routing_put_voice_mixer),
  15502. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15504. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15505. msm_routing_put_voice_stub_mixer),
  15506. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15508. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15509. msm_routing_put_voice_stub_mixer),
  15510. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15512. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15513. msm_routing_put_voice_mixer),
  15514. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15516. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15517. msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15520. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15521. msm_routing_put_voice_mixer),
  15522. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15524. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15525. msm_routing_put_voice_mixer),
  15526. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15527. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15528. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15529. msm_routing_put_voice_mixer),
  15530. };
  15531. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15532. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15534. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15535. msm_routing_put_voice_mixer),
  15536. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  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("Voice2 Stub", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15542. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15543. msm_routing_put_voice_stub_mixer),
  15544. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15546. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15547. msm_routing_put_voice_mixer),
  15548. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15550. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15551. msm_routing_put_voice_mixer),
  15552. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15554. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15555. msm_routing_put_voice_mixer),
  15556. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15558. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15559. msm_routing_put_voice_mixer),
  15560. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15561. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15562. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15563. msm_routing_put_voice_mixer),
  15564. };
  15565. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15566. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15568. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15569. msm_routing_put_voice_mixer),
  15570. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15572. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15573. msm_routing_put_voice_stub_mixer),
  15574. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15575. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15576. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15577. msm_routing_put_voice_stub_mixer),
  15578. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15580. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15581. msm_routing_put_voice_mixer),
  15582. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15584. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15585. msm_routing_put_voice_mixer),
  15586. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15588. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15589. msm_routing_put_voice_mixer),
  15590. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15592. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15593. msm_routing_put_voice_mixer),
  15594. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15595. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15596. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15597. msm_routing_put_voice_mixer),
  15598. };
  15599. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15600. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_EXTPROC_RX,
  15602. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15603. msm_routing_put_voice_mixer),
  15604. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_EXTPROC_RX,
  15606. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15607. msm_routing_put_voice_mixer),
  15608. };
  15609. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15610. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15612. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15616. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. };
  15619. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15620. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15622. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15623. msm_routing_put_voice_mixer),
  15624. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15626. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15627. msm_routing_put_voice_mixer),
  15628. };
  15629. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15630. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_PRI_I2S_TX,
  15632. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15633. msm_routing_put_voice_mixer),
  15634. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_MI2S_TX,
  15636. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15637. msm_routing_put_voice_mixer),
  15638. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15640. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15641. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15642. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15643. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15644. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15646. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15647. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15649. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15650. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15652. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15653. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15654. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15655. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15656. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15657. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15658. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15659. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15661. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15662. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15664. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15665. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15666. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15667. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15668. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15670. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15671. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15673. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15674. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15676. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15677. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15678. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15679. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15680. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15682. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15683. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_USB_TX,
  15685. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15686. msm_routing_put_voice_mixer),
  15687. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15688. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15689. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15690. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15691. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15692. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15693. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15695. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15696. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15697. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15698. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15699. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15701. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15702. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15704. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15707. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15708. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15709. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15710. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15713. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15714. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15716. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15717. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15718. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15719. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15720. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15722. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15723. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15725. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15726. };
  15727. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15728. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_PRI_I2S_TX,
  15730. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15731. msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_MI2S_TX,
  15734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15735. msm_routing_put_voice_mixer),
  15736. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15738. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15739. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15741. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15742. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15744. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15745. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15746. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15747. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15748. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15749. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15750. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15751. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15753. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15754. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15756. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15757. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15758. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15759. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15760. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15761. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15762. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15763. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15765. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15766. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15768. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15769. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15770. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15771. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15772. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15774. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15775. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15776. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15777. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15778. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15779. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15780. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15781. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15783. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15784. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15786. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15787. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15788. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15789. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15790. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15791. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15792. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15793. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15795. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15796. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15798. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15799. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15800. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15801. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15802. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15804. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15805. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15806. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15807. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15808. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15809. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15810. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15811. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15813. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15814. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15816. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15817. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15818. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15819. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15820. };
  15821. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15822. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_PRI_I2S_TX,
  15824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15825. msm_routing_put_voice_mixer),
  15826. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15827. MSM_BACKEND_DAI_MI2S_TX,
  15828. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15829. msm_routing_put_voice_mixer),
  15830. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15833. msm_routing_put_voice_mixer),
  15834. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15836. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_AFE_PCM_TX,
  15840. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15841. msm_routing_put_voice_mixer),
  15842. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_AUXPCM_TX,
  15844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15848. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15852. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15856. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15860. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15864. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15868. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15872. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15873. msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15880. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15881. msm_routing_put_voice_mixer),
  15882. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15884. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15885. msm_routing_put_voice_mixer),
  15886. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15888. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15889. msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_USB_TX,
  15892. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15893. msm_routing_put_voice_mixer),
  15894. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15896. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15897. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15898. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15899. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15900. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15901. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15902. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15903. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15905. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15906. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15908. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15909. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15910. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15911. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15912. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15914. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15917. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15920. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15921. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15922. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15923. msm_routing_put_voice_mixer),
  15924. };
  15925. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15926. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_EXTPROC_TX,
  15928. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15929. msm_routing_put_voice_stub_mixer),
  15930. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15932. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15933. msm_routing_put_voice_stub_mixer),
  15934. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15935. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15936. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15937. msm_routing_put_voice_stub_mixer),
  15938. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15940. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15941. msm_routing_put_voice_stub_mixer),
  15942. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_MI2S_TX,
  15944. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15945. msm_routing_put_voice_stub_mixer),
  15946. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15947. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15948. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15949. msm_routing_put_voice_stub_mixer),
  15950. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15952. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15953. msm_routing_put_voice_stub_mixer),
  15954. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15956. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15957. msm_routing_put_voice_stub_mixer),
  15958. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15960. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15961. msm_routing_put_voice_stub_mixer),
  15962. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_AUXPCM_TX,
  15964. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15965. msm_routing_put_voice_stub_mixer),
  15966. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15968. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15969. msm_routing_put_voice_stub_mixer),
  15970. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15972. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15973. msm_routing_put_voice_stub_mixer),
  15974. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15976. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15977. msm_routing_put_voice_stub_mixer),
  15978. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15980. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15981. msm_routing_put_voice_stub_mixer),
  15982. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15984. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15985. msm_routing_put_voice_stub_mixer),
  15986. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15988. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15989. msm_routing_put_voice_stub_mixer),
  15990. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15992. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15993. msm_routing_put_voice_stub_mixer),
  15994. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_AFE_PCM_TX,
  15996. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15997. msm_routing_put_voice_stub_mixer),
  15998. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16000. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16001. msm_routing_put_voice_stub_mixer),
  16002. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16004. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16005. msm_routing_put_voice_stub_mixer),
  16006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16008. 1, 0, msm_routing_get_voice_stub_mixer,
  16009. msm_routing_put_voice_stub_mixer),
  16010. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16012. 1, 0, msm_routing_get_voice_stub_mixer,
  16013. msm_routing_put_voice_stub_mixer),
  16014. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16016. 1, 0, msm_routing_get_voice_stub_mixer,
  16017. msm_routing_put_voice_stub_mixer),
  16018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16020. 1, 0, msm_routing_get_voice_stub_mixer,
  16021. msm_routing_put_voice_stub_mixer),
  16022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16024. 1, 0, msm_routing_get_voice_stub_mixer,
  16025. msm_routing_put_voice_stub_mixer),
  16026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16028. 1, 0, msm_routing_get_voice_stub_mixer,
  16029. msm_routing_put_voice_stub_mixer),
  16030. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16032. 1, 0, msm_routing_get_voice_stub_mixer,
  16033. msm_routing_put_voice_stub_mixer),
  16034. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16035. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16036. 1, 0, msm_routing_get_voice_stub_mixer,
  16037. msm_routing_put_voice_stub_mixer),
  16038. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16039. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16040. 1, 0, msm_routing_get_voice_stub_mixer,
  16041. msm_routing_put_voice_stub_mixer),
  16042. };
  16043. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16044. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_EXTPROC_TX,
  16046. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16047. msm_routing_put_voice_stub_mixer),
  16048. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16050. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16051. msm_routing_put_voice_stub_mixer),
  16052. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16054. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16055. msm_routing_put_voice_stub_mixer),
  16056. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_AUXPCM_TX,
  16058. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16059. msm_routing_put_voice_stub_mixer),
  16060. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16062. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16063. msm_routing_put_voice_stub_mixer),
  16064. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16066. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16067. msm_routing_put_voice_stub_mixer),
  16068. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16070. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16071. msm_routing_put_voice_stub_mixer),
  16072. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16074. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16075. msm_routing_put_voice_stub_mixer),
  16076. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16078. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16079. msm_routing_put_voice_stub_mixer),
  16080. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16082. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16083. msm_routing_put_voice_stub_mixer),
  16084. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16086. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16087. msm_routing_put_voice_stub_mixer),
  16088. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_AFE_PCM_TX,
  16090. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16091. msm_routing_put_voice_stub_mixer),
  16092. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16094. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16095. msm_routing_put_voice_stub_mixer),
  16096. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16098. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16099. msm_routing_put_voice_stub_mixer),
  16100. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16102. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16103. msm_routing_put_voice_stub_mixer),
  16104. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16106. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16107. msm_routing_put_voice_stub_mixer),
  16108. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16110. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16111. msm_routing_put_voice_stub_mixer),
  16112. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16114. 1, 0, msm_routing_get_voice_stub_mixer,
  16115. msm_routing_put_voice_stub_mixer),
  16116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16118. 1, 0, msm_routing_get_voice_stub_mixer,
  16119. msm_routing_put_voice_stub_mixer),
  16120. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16122. 1, 0, msm_routing_get_voice_stub_mixer,
  16123. msm_routing_put_voice_stub_mixer),
  16124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16126. 1, 0, msm_routing_get_voice_stub_mixer,
  16127. msm_routing_put_voice_stub_mixer),
  16128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16130. 1, 0, msm_routing_get_voice_stub_mixer,
  16131. msm_routing_put_voice_stub_mixer),
  16132. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16134. 1, 0, msm_routing_get_voice_stub_mixer,
  16135. msm_routing_put_voice_stub_mixer),
  16136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16138. 1, 0, msm_routing_get_voice_stub_mixer,
  16139. msm_routing_put_voice_stub_mixer),
  16140. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16142. 1, 0, msm_routing_get_voice_stub_mixer,
  16143. msm_routing_put_voice_stub_mixer),
  16144. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16146. 1, 0, msm_routing_get_voice_stub_mixer,
  16147. msm_routing_put_voice_stub_mixer),
  16148. };
  16149. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16150. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_EXTPROC_TX,
  16152. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16153. msm_routing_put_voice_stub_mixer),
  16154. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16156. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16157. msm_routing_put_voice_stub_mixer),
  16158. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16160. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16161. msm_routing_put_voice_stub_mixer),
  16162. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_AUXPCM_TX,
  16164. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16165. msm_routing_put_voice_stub_mixer),
  16166. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16168. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16169. msm_routing_put_voice_stub_mixer),
  16170. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16172. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16173. msm_routing_put_voice_stub_mixer),
  16174. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16176. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16177. msm_routing_put_voice_stub_mixer),
  16178. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16179. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16180. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16181. msm_routing_put_voice_stub_mixer),
  16182. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16184. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16185. msm_routing_put_voice_stub_mixer),
  16186. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16188. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16189. msm_routing_put_voice_stub_mixer),
  16190. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16192. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16193. msm_routing_put_voice_stub_mixer),
  16194. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_AFE_PCM_TX,
  16196. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16197. msm_routing_put_voice_stub_mixer),
  16198. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16200. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16201. msm_routing_put_voice_stub_mixer),
  16202. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16204. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16205. msm_routing_put_voice_stub_mixer),
  16206. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16208. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16209. msm_routing_put_voice_stub_mixer),
  16210. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16212. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16213. msm_routing_put_voice_stub_mixer),
  16214. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16216. 1, 0, msm_routing_get_voice_stub_mixer,
  16217. msm_routing_put_voice_stub_mixer),
  16218. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16220. 1, 0, msm_routing_get_voice_stub_mixer,
  16221. msm_routing_put_voice_stub_mixer),
  16222. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16224. 1, 0, msm_routing_get_voice_stub_mixer,
  16225. msm_routing_put_voice_stub_mixer),
  16226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16228. 1, 0, msm_routing_get_voice_stub_mixer,
  16229. msm_routing_put_voice_stub_mixer),
  16230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16232. 1, 0, msm_routing_get_voice_stub_mixer,
  16233. msm_routing_put_voice_stub_mixer),
  16234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16236. 1, 0, msm_routing_get_voice_stub_mixer,
  16237. msm_routing_put_voice_stub_mixer),
  16238. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16240. 1, 0, msm_routing_get_voice_stub_mixer,
  16241. msm_routing_put_voice_stub_mixer),
  16242. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16244. 1, 0, msm_routing_get_voice_stub_mixer,
  16245. msm_routing_put_voice_stub_mixer),
  16246. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16248. 1, 0, msm_routing_get_voice_stub_mixer,
  16249. msm_routing_put_voice_stub_mixer),
  16250. };
  16251. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16252. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_PRI_I2S_TX,
  16254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16258. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16259. msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16262. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16263. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_AFE_PCM_TX,
  16266. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_AUXPCM_TX,
  16270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16274. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16278. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16282. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16283. msm_routing_put_voice_mixer),
  16284. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16287. msm_routing_put_voice_mixer),
  16288. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16290. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16291. msm_routing_put_voice_mixer),
  16292. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_MI2S_TX,
  16294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16299. msm_routing_put_voice_mixer),
  16300. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16302. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16306. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16307. msm_routing_put_voice_mixer),
  16308. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16309. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16310. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16311. msm_routing_put_voice_mixer),
  16312. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16314. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16315. msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_USB_TX,
  16318. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16319. msm_routing_put_voice_mixer),
  16320. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16321. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16322. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16323. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16324. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16325. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16326. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16328. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16331. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16332. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16334. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16335. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16337. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16338. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16339. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16340. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16343. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16346. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16347. };
  16348. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16349. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16351. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16352. msm_routing_put_port_mixer),
  16353. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16355. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16356. msm_routing_put_port_mixer),
  16357. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16358. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16359. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16363. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16364. msm_routing_put_port_mixer),
  16365. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16367. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16368. msm_routing_put_port_mixer),
  16369. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16371. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16372. msm_routing_put_port_mixer),
  16373. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16375. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16376. msm_routing_put_port_mixer),
  16377. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16378. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16379. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16383. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16384. msm_routing_put_port_mixer),
  16385. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16387. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16388. msm_routing_put_port_mixer),
  16389. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16391. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16392. msm_routing_put_port_mixer),
  16393. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16394. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16395. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16396. msm_routing_put_port_mixer),
  16397. };
  16398. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16399. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16401. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16402. msm_routing_put_port_mixer),
  16403. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16405. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16406. msm_routing_put_port_mixer),
  16407. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16409. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16410. msm_routing_put_port_mixer),
  16411. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16413. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16414. msm_routing_put_port_mixer),
  16415. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16417. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16418. msm_routing_put_port_mixer),
  16419. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16421. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16422. msm_routing_put_port_mixer),
  16423. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16425. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16426. msm_routing_put_port_mixer),
  16427. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16429. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16430. msm_routing_put_port_mixer),
  16431. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16433. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16434. msm_routing_put_port_mixer),
  16435. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16437. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16438. msm_routing_put_port_mixer),
  16439. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16440. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16441. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16442. msm_routing_put_port_mixer),
  16443. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16445. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16446. msm_routing_put_port_mixer),
  16447. };
  16448. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16449. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16450. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16451. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16452. msm_routing_put_port_mixer),
  16453. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16456. msm_routing_put_port_mixer),
  16457. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16459. MSM_BACKEND_DAI_SLIMBUS_8_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_WSA_CDC_DMA_RX_0,
  16463. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16464. msm_routing_put_port_mixer),
  16465. };
  16466. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16470. msm_routing_put_port_mixer),
  16471. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16473. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16474. msm_routing_put_port_mixer),
  16475. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16477. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16478. msm_routing_put_port_mixer),
  16479. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16481. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16482. msm_routing_put_port_mixer),
  16483. };
  16484. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16485. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16487. MSM_BACKEND_DAI_INT_FM_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_SLIMBUS_0_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_1_TX", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16495. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16496. msm_routing_put_port_mixer),
  16497. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16499. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16500. msm_routing_put_port_mixer),
  16501. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16503. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16504. msm_routing_put_port_mixer),
  16505. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16507. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16508. msm_routing_put_port_mixer),
  16509. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16511. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16512. msm_routing_put_port_mixer),
  16513. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16515. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16516. msm_routing_put_port_mixer),
  16517. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16519. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16520. msm_routing_put_port_mixer),
  16521. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16523. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16527. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16528. msm_routing_put_port_mixer),
  16529. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16531. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16532. msm_routing_put_port_mixer),
  16533. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16535. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16536. msm_routing_put_port_mixer),
  16537. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16539. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16540. msm_routing_put_port_mixer),
  16541. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16543. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16547. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16548. msm_routing_put_port_mixer),
  16549. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16551. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16552. msm_routing_put_port_mixer),
  16553. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16555. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16556. msm_routing_put_port_mixer),
  16557. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16559. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16560. msm_routing_put_port_mixer),
  16561. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16563. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16564. msm_routing_put_port_mixer),
  16565. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16567. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16568. msm_routing_put_port_mixer),
  16569. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16571. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16572. msm_routing_put_port_mixer),
  16573. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16574. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16575. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16576. msm_routing_put_port_mixer),
  16577. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16579. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16580. msm_routing_put_port_mixer),
  16581. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16582. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16583. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16584. msm_routing_put_port_mixer),
  16585. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16587. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16588. msm_routing_put_port_mixer),
  16589. };
  16590. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16591. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16592. MSM_BACKEND_DAI_AUXPCM_RX,
  16593. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16594. msm_routing_put_port_mixer),
  16595. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_AUXPCM_RX,
  16597. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16598. msm_routing_put_port_mixer),
  16599. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_AUXPCM_RX,
  16601. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16602. msm_routing_put_port_mixer),
  16603. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16604. MSM_BACKEND_DAI_AUXPCM_RX,
  16605. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16606. msm_routing_put_port_mixer),
  16607. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_AUXPCM_RX,
  16609. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16610. msm_routing_put_port_mixer),
  16611. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_AUXPCM_RX,
  16613. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16614. msm_routing_put_port_mixer),
  16615. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16616. MSM_BACKEND_DAI_AUXPCM_RX,
  16617. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16618. msm_routing_put_port_mixer),
  16619. };
  16620. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16621. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16622. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16623. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16624. msm_routing_put_port_mixer),
  16625. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16627. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16628. msm_routing_put_port_mixer),
  16629. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16631. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16632. msm_routing_put_port_mixer),
  16633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16634. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16635. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16636. msm_routing_put_port_mixer),
  16637. };
  16638. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16639. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16641. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16642. msm_routing_put_port_mixer),
  16643. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16644. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16645. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16646. msm_routing_put_port_mixer),
  16647. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16648. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16649. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16650. msm_routing_put_port_mixer),
  16651. };
  16652. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16653. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16655. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16656. msm_routing_put_port_mixer),
  16657. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16659. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16660. msm_routing_put_port_mixer),
  16661. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16662. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16663. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16664. msm_routing_put_port_mixer),
  16665. };
  16666. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16667. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16669. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16670. msm_routing_put_port_mixer),
  16671. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16673. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16674. msm_routing_put_port_mixer),
  16675. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16677. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16678. msm_routing_put_port_mixer),
  16679. };
  16680. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16681. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16683. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16684. msm_routing_put_port_mixer),
  16685. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16687. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16691. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16692. msm_routing_put_port_mixer),
  16693. };
  16694. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16695. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16696. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16697. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16701. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16702. msm_routing_put_port_mixer),
  16703. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16704. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16705. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16706. msm_routing_put_port_mixer),
  16707. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16708. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16709. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16710. msm_routing_put_port_mixer),
  16711. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16713. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16714. msm_routing_put_port_mixer),
  16715. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16717. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16718. msm_routing_put_port_mixer),
  16719. };
  16720. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16721. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16723. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16724. msm_routing_put_port_mixer),
  16725. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16726. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16727. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16731. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16732. msm_routing_put_port_mixer),
  16733. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16734. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16735. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16736. msm_routing_put_port_mixer),
  16737. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16738. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16739. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16740. msm_routing_put_port_mixer),
  16741. };
  16742. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16743. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16745. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16746. msm_routing_put_port_mixer),
  16747. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16749. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16753. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16754. msm_routing_put_port_mixer),
  16755. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16757. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16758. msm_routing_put_port_mixer),
  16759. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16761. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16762. msm_routing_put_port_mixer),
  16763. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16765. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16766. msm_routing_put_port_mixer),
  16767. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16769. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16770. msm_routing_put_port_mixer),
  16771. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16773. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16774. msm_routing_put_port_mixer),
  16775. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16777. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16781. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16782. msm_routing_put_port_mixer),
  16783. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16785. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16786. msm_routing_put_port_mixer),
  16787. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16789. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16793. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16794. msm_routing_put_port_mixer),
  16795. };
  16796. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16797. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16799. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16800. msm_routing_put_port_mixer),
  16801. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16803. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16804. msm_routing_put_port_mixer),
  16805. };
  16806. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16807. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_AFE_PCM_RX,
  16809. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_AFE_PCM_RX,
  16813. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16814. msm_routing_put_port_mixer),
  16815. };
  16816. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16817. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_HDMI_RX,
  16819. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16820. msm_routing_put_port_mixer),
  16821. };
  16822. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16823. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16824. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16825. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16826. msm_routing_put_port_mixer),
  16827. };
  16828. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16829. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16831. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16832. msm_routing_put_port_mixer),
  16833. };
  16834. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16835. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16836. MSM_BACKEND_DAI_SEC_I2S_RX,
  16837. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16838. msm_routing_put_port_mixer),
  16839. };
  16840. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16841. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_MI2S_RX,
  16843. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16844. msm_routing_put_port_mixer),
  16845. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16846. MSM_BACKEND_DAI_MI2S_RX,
  16847. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16848. msm_routing_put_port_mixer),
  16849. };
  16850. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16854. msm_routing_put_port_mixer),
  16855. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16857. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16858. msm_routing_put_port_mixer),
  16859. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16861. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16862. msm_routing_put_port_mixer),
  16863. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16865. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16866. msm_routing_put_port_mixer),
  16867. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16869. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16873. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16874. msm_routing_put_port_mixer),
  16875. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16877. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16880. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16881. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16882. msm_routing_put_port_mixer),
  16883. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16885. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16886. msm_routing_put_port_mixer),
  16887. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16888. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16889. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16890. msm_routing_put_port_mixer),
  16891. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16892. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16893. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16894. msm_routing_put_port_mixer),
  16895. };
  16896. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16897. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16898. MSM_BACKEND_DAI_USB_RX,
  16899. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16900. msm_routing_put_port_mixer),
  16901. };
  16902. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16903. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16905. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16906. msm_routing_put_port_mixer),
  16907. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16909. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16913. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16917. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16918. msm_routing_put_port_mixer),
  16919. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16920. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16921. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16925. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16926. msm_routing_put_port_mixer),
  16927. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16928. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16929. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16930. msm_routing_put_port_mixer),
  16931. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16932. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16933. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16934. msm_routing_put_port_mixer),
  16935. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16936. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16937. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16938. msm_routing_put_port_mixer),
  16939. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16940. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16941. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16942. msm_routing_put_port_mixer),
  16943. };
  16944. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16945. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16947. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16948. msm_routing_put_port_mixer),
  16949. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16951. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16955. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16956. msm_routing_put_port_mixer),
  16957. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16959. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16963. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16964. msm_routing_put_port_mixer),
  16965. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16967. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16968. msm_routing_put_port_mixer),
  16969. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16971. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16975. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16976. msm_routing_put_port_mixer),
  16977. };
  16978. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16979. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16981. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16985. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16986. msm_routing_put_port_mixer),
  16987. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16988. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16989. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16990. msm_routing_put_port_mixer),
  16991. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16993. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16996. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16997. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16998. msm_routing_put_port_mixer),
  16999. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17000. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17001. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17002. msm_routing_put_port_mixer),
  17003. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17005. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17006. msm_routing_put_port_mixer),
  17007. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17008. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17009. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17010. msm_routing_put_port_mixer),
  17011. };
  17012. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17013. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17015. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17016. msm_routing_get_port_mixer,
  17017. msm_routing_put_port_mixer),
  17018. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17019. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17020. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17021. msm_routing_get_port_mixer,
  17022. msm_routing_put_port_mixer),
  17023. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17025. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17026. msm_routing_get_port_mixer,
  17027. msm_routing_put_port_mixer),
  17028. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17030. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17031. msm_routing_get_port_mixer,
  17032. msm_routing_put_port_mixer),
  17033. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17035. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17036. msm_routing_get_port_mixer,
  17037. msm_routing_put_port_mixer),
  17038. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17040. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17041. msm_routing_get_port_mixer,
  17042. msm_routing_put_port_mixer),
  17043. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17045. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17046. msm_routing_get_port_mixer,
  17047. msm_routing_put_port_mixer),
  17048. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17050. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17051. msm_routing_get_port_mixer,
  17052. msm_routing_put_port_mixer),
  17053. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17054. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17055. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17056. msm_routing_get_port_mixer,
  17057. msm_routing_put_port_mixer),
  17058. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17059. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17060. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17061. msm_routing_get_port_mixer,
  17062. msm_routing_put_port_mixer),
  17063. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17065. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17066. msm_routing_get_port_mixer,
  17067. msm_routing_put_port_mixer),
  17068. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17069. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17070. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17071. msm_routing_get_port_mixer,
  17072. msm_routing_put_port_mixer),
  17073. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17074. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17075. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17076. msm_routing_get_port_mixer,
  17077. msm_routing_put_port_mixer),
  17078. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17080. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17081. msm_routing_get_port_mixer,
  17082. msm_routing_put_port_mixer),
  17083. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17085. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17086. msm_routing_get_port_mixer,
  17087. msm_routing_put_port_mixer),
  17088. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17089. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17090. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17091. msm_routing_get_port_mixer,
  17092. msm_routing_put_port_mixer),
  17093. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17094. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17095. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17096. msm_routing_get_port_mixer,
  17097. msm_routing_put_port_mixer),
  17098. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17099. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17100. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17101. msm_routing_get_port_mixer,
  17102. msm_routing_put_port_mixer),
  17103. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17105. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17106. msm_routing_get_port_mixer,
  17107. msm_routing_put_port_mixer),
  17108. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17109. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17110. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17111. msm_routing_get_port_mixer,
  17112. msm_routing_put_port_mixer),
  17113. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17114. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17115. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17116. msm_routing_get_port_mixer,
  17117. msm_routing_put_port_mixer),
  17118. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17119. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17120. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17121. msm_routing_get_port_mixer,
  17122. msm_routing_put_port_mixer),
  17123. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17124. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17125. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17126. msm_routing_get_port_mixer,
  17127. msm_routing_put_port_mixer),
  17128. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17129. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17130. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17131. msm_routing_get_port_mixer,
  17132. msm_routing_put_port_mixer),
  17133. };
  17134. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17135. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17137. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17138. msm_routing_get_port_mixer,
  17139. msm_routing_put_port_mixer),
  17140. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17141. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17142. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17143. msm_routing_get_port_mixer,
  17144. msm_routing_put_port_mixer),
  17145. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17147. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17148. msm_routing_get_port_mixer,
  17149. msm_routing_put_port_mixer),
  17150. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17151. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17152. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17153. msm_routing_get_port_mixer,
  17154. msm_routing_put_port_mixer),
  17155. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17157. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17158. msm_routing_get_port_mixer,
  17159. msm_routing_put_port_mixer),
  17160. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17162. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17163. msm_routing_get_port_mixer,
  17164. msm_routing_put_port_mixer),
  17165. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17167. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17168. msm_routing_get_port_mixer,
  17169. msm_routing_put_port_mixer),
  17170. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17171. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17172. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17173. msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17177. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17178. msm_routing_get_port_mixer,
  17179. msm_routing_put_port_mixer),
  17180. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17182. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17183. msm_routing_get_port_mixer,
  17184. msm_routing_put_port_mixer),
  17185. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17186. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17187. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17188. msm_routing_get_port_mixer,
  17189. msm_routing_put_port_mixer),
  17190. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17191. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17192. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17193. msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17197. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17198. msm_routing_get_port_mixer,
  17199. msm_routing_put_port_mixer),
  17200. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17202. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17203. msm_routing_get_port_mixer,
  17204. msm_routing_put_port_mixer),
  17205. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17206. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17207. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17208. msm_routing_get_port_mixer,
  17209. msm_routing_put_port_mixer),
  17210. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17211. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17212. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17213. msm_routing_get_port_mixer,
  17214. msm_routing_put_port_mixer),
  17215. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17217. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17218. msm_routing_get_port_mixer,
  17219. msm_routing_put_port_mixer),
  17220. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17222. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17223. msm_routing_get_port_mixer,
  17224. msm_routing_put_port_mixer),
  17225. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17226. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17227. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17228. msm_routing_get_port_mixer,
  17229. msm_routing_put_port_mixer),
  17230. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17231. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17232. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17233. msm_routing_get_port_mixer,
  17234. msm_routing_put_port_mixer),
  17235. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17237. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17238. msm_routing_get_port_mixer,
  17239. msm_routing_put_port_mixer),
  17240. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17241. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17242. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17243. msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17246. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17247. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17248. msm_routing_get_port_mixer,
  17249. msm_routing_put_port_mixer),
  17250. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17251. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17252. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17253. msm_routing_get_port_mixer,
  17254. msm_routing_put_port_mixer),
  17255. };
  17256. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17257. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17258. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17259. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17260. msm_routing_get_port_mixer,
  17261. msm_routing_put_port_mixer),
  17262. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17263. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17264. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17265. msm_routing_get_port_mixer,
  17266. msm_routing_put_port_mixer),
  17267. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17269. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17270. msm_routing_get_port_mixer,
  17271. msm_routing_put_port_mixer),
  17272. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17273. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17274. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17275. msm_routing_get_port_mixer,
  17276. msm_routing_put_port_mixer),
  17277. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17278. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17279. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17280. msm_routing_get_port_mixer,
  17281. msm_routing_put_port_mixer),
  17282. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17283. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17284. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17285. msm_routing_get_port_mixer,
  17286. msm_routing_put_port_mixer),
  17287. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17288. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17289. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17290. msm_routing_get_port_mixer,
  17291. msm_routing_put_port_mixer),
  17292. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17293. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17294. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17295. msm_routing_get_port_mixer,
  17296. msm_routing_put_port_mixer),
  17297. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17298. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17299. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17300. msm_routing_get_port_mixer,
  17301. msm_routing_put_port_mixer),
  17302. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17303. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17304. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17305. msm_routing_get_port_mixer,
  17306. msm_routing_put_port_mixer),
  17307. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17308. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17309. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17310. msm_routing_get_port_mixer,
  17311. msm_routing_put_port_mixer),
  17312. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17313. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17314. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17315. msm_routing_get_port_mixer,
  17316. msm_routing_put_port_mixer),
  17317. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17318. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17319. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17320. msm_routing_get_port_mixer,
  17321. msm_routing_put_port_mixer),
  17322. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17323. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17324. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17325. msm_routing_get_port_mixer,
  17326. msm_routing_put_port_mixer),
  17327. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17328. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17329. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17330. msm_routing_get_port_mixer,
  17331. msm_routing_put_port_mixer),
  17332. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17333. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17334. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17335. msm_routing_get_port_mixer,
  17336. msm_routing_put_port_mixer),
  17337. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17339. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17340. msm_routing_get_port_mixer,
  17341. msm_routing_put_port_mixer),
  17342. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17343. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17344. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17345. msm_routing_get_port_mixer,
  17346. msm_routing_put_port_mixer),
  17347. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17348. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17349. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17350. msm_routing_get_port_mixer,
  17351. msm_routing_put_port_mixer),
  17352. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17353. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17354. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17355. msm_routing_get_port_mixer,
  17356. msm_routing_put_port_mixer),
  17357. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17359. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17360. msm_routing_get_port_mixer,
  17361. msm_routing_put_port_mixer),
  17362. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17363. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17364. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17365. msm_routing_get_port_mixer,
  17366. msm_routing_put_port_mixer),
  17367. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17368. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17369. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17370. msm_routing_get_port_mixer,
  17371. msm_routing_put_port_mixer),
  17372. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17373. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17374. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17375. msm_routing_get_port_mixer,
  17376. msm_routing_put_port_mixer),
  17377. };
  17378. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17379. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17381. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17382. msm_routing_get_port_mixer,
  17383. msm_routing_put_port_mixer),
  17384. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17385. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17386. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17387. msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17392. msm_routing_get_port_mixer,
  17393. msm_routing_put_port_mixer),
  17394. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17395. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17396. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17397. msm_routing_get_port_mixer,
  17398. msm_routing_put_port_mixer),
  17399. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17400. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17401. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17402. msm_routing_get_port_mixer,
  17403. msm_routing_put_port_mixer),
  17404. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17406. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17407. msm_routing_get_port_mixer,
  17408. msm_routing_put_port_mixer),
  17409. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17410. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17411. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17412. msm_routing_get_port_mixer,
  17413. msm_routing_put_port_mixer),
  17414. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17415. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17416. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17417. msm_routing_get_port_mixer,
  17418. msm_routing_put_port_mixer),
  17419. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17421. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17422. msm_routing_get_port_mixer,
  17423. msm_routing_put_port_mixer),
  17424. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17425. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17426. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17427. msm_routing_get_port_mixer,
  17428. msm_routing_put_port_mixer),
  17429. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17430. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17431. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17432. msm_routing_get_port_mixer,
  17433. msm_routing_put_port_mixer),
  17434. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17435. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17436. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17437. msm_routing_get_port_mixer,
  17438. msm_routing_put_port_mixer),
  17439. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17441. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17442. msm_routing_get_port_mixer,
  17443. msm_routing_put_port_mixer),
  17444. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17446. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17447. msm_routing_get_port_mixer,
  17448. msm_routing_put_port_mixer),
  17449. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17450. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17451. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17452. msm_routing_get_port_mixer,
  17453. msm_routing_put_port_mixer),
  17454. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17455. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17456. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17457. msm_routing_get_port_mixer,
  17458. msm_routing_put_port_mixer),
  17459. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17460. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17461. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17462. msm_routing_get_port_mixer,
  17463. msm_routing_put_port_mixer),
  17464. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17465. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17466. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17467. msm_routing_get_port_mixer,
  17468. msm_routing_put_port_mixer),
  17469. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17470. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17471. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17472. msm_routing_get_port_mixer,
  17473. msm_routing_put_port_mixer),
  17474. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17475. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17476. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17477. msm_routing_get_port_mixer,
  17478. msm_routing_put_port_mixer),
  17479. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17480. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17481. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17482. msm_routing_get_port_mixer,
  17483. msm_routing_put_port_mixer),
  17484. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17485. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17486. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17487. msm_routing_get_port_mixer,
  17488. msm_routing_put_port_mixer),
  17489. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17490. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17491. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17492. msm_routing_get_port_mixer,
  17493. msm_routing_put_port_mixer),
  17494. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17495. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17496. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17497. msm_routing_get_port_mixer,
  17498. msm_routing_put_port_mixer),
  17499. };
  17500. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17501. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17502. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17503. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17504. msm_routing_get_port_mixer,
  17505. msm_routing_put_port_mixer),
  17506. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17507. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17508. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17509. msm_routing_get_port_mixer,
  17510. msm_routing_put_port_mixer),
  17511. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17512. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17513. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17514. msm_routing_get_port_mixer,
  17515. msm_routing_put_port_mixer),
  17516. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17517. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17518. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17519. msm_routing_get_port_mixer,
  17520. msm_routing_put_port_mixer),
  17521. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17523. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17524. msm_routing_get_port_mixer,
  17525. msm_routing_put_port_mixer),
  17526. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17527. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17528. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17529. msm_routing_get_port_mixer,
  17530. msm_routing_put_port_mixer),
  17531. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17532. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17533. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17534. msm_routing_get_port_mixer,
  17535. msm_routing_put_port_mixer),
  17536. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17537. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17538. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17539. msm_routing_get_port_mixer,
  17540. msm_routing_put_port_mixer),
  17541. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17542. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17543. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17544. msm_routing_get_port_mixer,
  17545. msm_routing_put_port_mixer),
  17546. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17547. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17548. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17549. msm_routing_get_port_mixer,
  17550. msm_routing_put_port_mixer),
  17551. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17552. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17553. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17554. msm_routing_get_port_mixer,
  17555. msm_routing_put_port_mixer),
  17556. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17557. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17558. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17559. msm_routing_get_port_mixer,
  17560. msm_routing_put_port_mixer),
  17561. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17562. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17563. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17564. msm_routing_get_port_mixer,
  17565. msm_routing_put_port_mixer),
  17566. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17567. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17568. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17569. msm_routing_get_port_mixer,
  17570. msm_routing_put_port_mixer),
  17571. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17572. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17573. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17574. msm_routing_get_port_mixer,
  17575. msm_routing_put_port_mixer),
  17576. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17577. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17578. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17579. msm_routing_get_port_mixer,
  17580. msm_routing_put_port_mixer),
  17581. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17582. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17583. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17584. msm_routing_get_port_mixer,
  17585. msm_routing_put_port_mixer),
  17586. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17587. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17588. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17589. msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17592. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17593. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17594. msm_routing_get_port_mixer,
  17595. msm_routing_put_port_mixer),
  17596. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17597. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17598. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17599. msm_routing_get_port_mixer,
  17600. msm_routing_put_port_mixer),
  17601. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17602. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17603. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17604. msm_routing_get_port_mixer,
  17605. msm_routing_put_port_mixer),
  17606. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17607. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17608. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17609. msm_routing_get_port_mixer,
  17610. msm_routing_put_port_mixer),
  17611. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17612. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17613. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17614. msm_routing_get_port_mixer,
  17615. msm_routing_put_port_mixer),
  17616. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17617. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17618. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17619. msm_routing_get_port_mixer,
  17620. msm_routing_put_port_mixer),
  17621. };
  17622. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17623. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17624. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17625. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17626. msm_routing_get_port_mixer,
  17627. msm_routing_put_port_mixer),
  17628. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17629. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17630. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17631. msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17635. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17636. msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17639. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17640. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17641. msm_routing_get_port_mixer,
  17642. msm_routing_put_port_mixer),
  17643. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17644. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17645. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17646. msm_routing_get_port_mixer,
  17647. msm_routing_put_port_mixer),
  17648. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17649. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17650. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17651. msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17655. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17656. msm_routing_get_port_mixer,
  17657. msm_routing_put_port_mixer),
  17658. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17659. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17660. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17661. msm_routing_get_port_mixer,
  17662. msm_routing_put_port_mixer),
  17663. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17664. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17665. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17666. msm_routing_get_port_mixer,
  17667. msm_routing_put_port_mixer),
  17668. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17669. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17670. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17671. msm_routing_get_port_mixer,
  17672. msm_routing_put_port_mixer),
  17673. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17674. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17675. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17676. msm_routing_get_port_mixer,
  17677. msm_routing_put_port_mixer),
  17678. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17679. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17680. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17681. msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17685. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17686. msm_routing_get_port_mixer,
  17687. msm_routing_put_port_mixer),
  17688. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17689. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17690. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17691. msm_routing_get_port_mixer,
  17692. msm_routing_put_port_mixer),
  17693. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17694. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17695. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17696. msm_routing_get_port_mixer,
  17697. msm_routing_put_port_mixer),
  17698. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17699. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17700. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17701. msm_routing_get_port_mixer,
  17702. msm_routing_put_port_mixer),
  17703. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17704. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17705. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17706. msm_routing_get_port_mixer,
  17707. msm_routing_put_port_mixer),
  17708. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17709. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17710. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17711. msm_routing_get_port_mixer,
  17712. msm_routing_put_port_mixer),
  17713. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17714. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17715. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17716. msm_routing_get_port_mixer,
  17717. msm_routing_put_port_mixer),
  17718. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17719. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17720. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17721. msm_routing_get_port_mixer,
  17722. msm_routing_put_port_mixer),
  17723. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17724. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17725. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17726. msm_routing_get_port_mixer,
  17727. msm_routing_put_port_mixer),
  17728. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17729. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17730. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17731. msm_routing_get_port_mixer,
  17732. msm_routing_put_port_mixer),
  17733. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17734. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17735. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17736. msm_routing_get_port_mixer,
  17737. msm_routing_put_port_mixer),
  17738. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17739. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17740. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17741. msm_routing_get_port_mixer,
  17742. msm_routing_put_port_mixer),
  17743. };
  17744. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17745. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17746. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17747. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17748. msm_routing_get_port_mixer,
  17749. msm_routing_put_port_mixer),
  17750. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17751. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17752. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17753. msm_routing_get_port_mixer,
  17754. msm_routing_put_port_mixer),
  17755. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17757. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17758. msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17761. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17762. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17763. msm_routing_get_port_mixer,
  17764. msm_routing_put_port_mixer),
  17765. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17766. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17767. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17768. msm_routing_get_port_mixer,
  17769. msm_routing_put_port_mixer),
  17770. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17771. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17772. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17773. msm_routing_get_port_mixer,
  17774. msm_routing_put_port_mixer),
  17775. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17776. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17777. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17778. msm_routing_get_port_mixer,
  17779. msm_routing_put_port_mixer),
  17780. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17781. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17782. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17783. msm_routing_get_port_mixer,
  17784. msm_routing_put_port_mixer),
  17785. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17786. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17787. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17788. msm_routing_get_port_mixer,
  17789. msm_routing_put_port_mixer),
  17790. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17791. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17792. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17793. msm_routing_get_port_mixer,
  17794. msm_routing_put_port_mixer),
  17795. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17796. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17797. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17798. msm_routing_get_port_mixer,
  17799. msm_routing_put_port_mixer),
  17800. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17801. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17802. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17803. msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17807. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17808. msm_routing_get_port_mixer,
  17809. msm_routing_put_port_mixer),
  17810. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17811. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17812. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17813. msm_routing_get_port_mixer,
  17814. msm_routing_put_port_mixer),
  17815. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17816. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17817. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17818. msm_routing_get_port_mixer,
  17819. msm_routing_put_port_mixer),
  17820. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17821. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17822. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17823. msm_routing_get_port_mixer,
  17824. msm_routing_put_port_mixer),
  17825. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17826. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17827. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17828. msm_routing_get_port_mixer,
  17829. msm_routing_put_port_mixer),
  17830. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17831. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17832. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17833. msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17837. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17838. msm_routing_get_port_mixer,
  17839. msm_routing_put_port_mixer),
  17840. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17841. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17842. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17843. msm_routing_get_port_mixer,
  17844. msm_routing_put_port_mixer),
  17845. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17846. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17847. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17848. msm_routing_get_port_mixer,
  17849. msm_routing_put_port_mixer),
  17850. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17851. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17852. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17853. msm_routing_get_port_mixer,
  17854. msm_routing_put_port_mixer),
  17855. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17856. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17857. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17858. msm_routing_get_port_mixer,
  17859. msm_routing_put_port_mixer),
  17860. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17861. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17862. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17863. msm_routing_get_port_mixer,
  17864. msm_routing_put_port_mixer),
  17865. };
  17866. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17867. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17868. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17869. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17870. msm_routing_get_port_mixer,
  17871. msm_routing_put_port_mixer),
  17872. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17873. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17874. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17875. msm_routing_get_port_mixer,
  17876. msm_routing_put_port_mixer),
  17877. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17878. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17879. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17880. msm_routing_get_port_mixer,
  17881. msm_routing_put_port_mixer),
  17882. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17883. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17884. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17885. msm_routing_get_port_mixer,
  17886. msm_routing_put_port_mixer),
  17887. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17888. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17889. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17890. msm_routing_get_port_mixer,
  17891. msm_routing_put_port_mixer),
  17892. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17893. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17894. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17895. msm_routing_get_port_mixer,
  17896. msm_routing_put_port_mixer),
  17897. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17898. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17899. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17900. msm_routing_get_port_mixer,
  17901. msm_routing_put_port_mixer),
  17902. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17903. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17904. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17905. msm_routing_get_port_mixer,
  17906. msm_routing_put_port_mixer),
  17907. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17908. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17909. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17910. msm_routing_get_port_mixer,
  17911. msm_routing_put_port_mixer),
  17912. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17913. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17914. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17915. msm_routing_get_port_mixer,
  17916. msm_routing_put_port_mixer),
  17917. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17918. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17919. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17920. msm_routing_get_port_mixer,
  17921. msm_routing_put_port_mixer),
  17922. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17923. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17924. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17925. msm_routing_get_port_mixer,
  17926. msm_routing_put_port_mixer),
  17927. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17928. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17929. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17930. msm_routing_get_port_mixer,
  17931. msm_routing_put_port_mixer),
  17932. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17933. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17934. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17935. msm_routing_get_port_mixer,
  17936. msm_routing_put_port_mixer),
  17937. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17938. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17939. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17940. msm_routing_get_port_mixer,
  17941. msm_routing_put_port_mixer),
  17942. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17943. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17944. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17945. msm_routing_get_port_mixer,
  17946. msm_routing_put_port_mixer),
  17947. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17948. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17949. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17950. msm_routing_get_port_mixer,
  17951. msm_routing_put_port_mixer),
  17952. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17953. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17954. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17955. msm_routing_get_port_mixer,
  17956. msm_routing_put_port_mixer),
  17957. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17958. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17959. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17960. msm_routing_get_port_mixer,
  17961. msm_routing_put_port_mixer),
  17962. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17963. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17964. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17965. msm_routing_get_port_mixer,
  17966. msm_routing_put_port_mixer),
  17967. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17968. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17969. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17970. msm_routing_get_port_mixer,
  17971. msm_routing_put_port_mixer),
  17972. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17973. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17974. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17975. msm_routing_get_port_mixer,
  17976. msm_routing_put_port_mixer),
  17977. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17978. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17979. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17980. msm_routing_get_port_mixer,
  17981. msm_routing_put_port_mixer),
  17982. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17983. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17984. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17985. msm_routing_get_port_mixer,
  17986. msm_routing_put_port_mixer),
  17987. };
  17988. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17989. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  17990. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  17991. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  17992. msm_routing_get_port_mixer,
  17993. msm_routing_put_port_mixer),
  17994. };
  17995. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  17996. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17998. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18003. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18004. msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18008. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18013. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18018. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18023. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18028. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18033. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18038. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18043. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18048. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18053. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18058. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18063. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18064. msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18067. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18068. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18069. msm_routing_get_port_mixer,
  18070. msm_routing_put_port_mixer),
  18071. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18072. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18073. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18074. msm_routing_get_port_mixer,
  18075. msm_routing_put_port_mixer),
  18076. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18077. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18078. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18079. msm_routing_get_port_mixer,
  18080. msm_routing_put_port_mixer),
  18081. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18083. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18084. msm_routing_get_port_mixer,
  18085. msm_routing_put_port_mixer),
  18086. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18088. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18089. msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18093. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18094. msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18097. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18098. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18099. msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18103. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18104. msm_routing_get_port_mixer,
  18105. msm_routing_put_port_mixer),
  18106. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18107. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18108. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18109. msm_routing_get_port_mixer,
  18110. msm_routing_put_port_mixer),
  18111. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18112. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18113. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18114. msm_routing_get_port_mixer,
  18115. msm_routing_put_port_mixer),
  18116. };
  18117. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18118. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18120. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18124. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18125. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18126. msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18130. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18135. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18140. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18145. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18150. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18155. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18160. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18165. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18170. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18175. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18180. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18184. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18185. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18186. msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18190. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18191. msm_routing_get_port_mixer,
  18192. msm_routing_put_port_mixer),
  18193. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18194. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18195. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18196. msm_routing_get_port_mixer,
  18197. msm_routing_put_port_mixer),
  18198. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18199. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18200. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18201. msm_routing_get_port_mixer,
  18202. msm_routing_put_port_mixer),
  18203. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18205. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18206. msm_routing_get_port_mixer,
  18207. msm_routing_put_port_mixer),
  18208. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18209. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18210. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18211. msm_routing_get_port_mixer,
  18212. msm_routing_put_port_mixer),
  18213. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18214. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18215. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18216. msm_routing_get_port_mixer,
  18217. msm_routing_put_port_mixer),
  18218. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18219. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18220. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18221. msm_routing_get_port_mixer,
  18222. msm_routing_put_port_mixer),
  18223. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18224. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18225. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18226. msm_routing_get_port_mixer,
  18227. msm_routing_put_port_mixer),
  18228. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18229. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18230. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18231. msm_routing_get_port_mixer,
  18232. msm_routing_put_port_mixer),
  18233. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18234. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18235. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18236. msm_routing_get_port_mixer,
  18237. msm_routing_put_port_mixer),
  18238. };
  18239. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18240. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18242. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18247. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18248. msm_routing_get_port_mixer,
  18249. msm_routing_put_port_mixer),
  18250. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18252. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18257. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18262. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18267. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18272. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18277. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18282. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18287. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18292. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18297. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18302. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18307. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18308. msm_routing_get_port_mixer,
  18309. msm_routing_put_port_mixer),
  18310. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18311. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18312. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18313. msm_routing_get_port_mixer,
  18314. msm_routing_put_port_mixer),
  18315. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18316. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18317. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18318. msm_routing_get_port_mixer,
  18319. msm_routing_put_port_mixer),
  18320. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18322. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18323. msm_routing_get_port_mixer,
  18324. msm_routing_put_port_mixer),
  18325. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18326. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18327. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18328. msm_routing_get_port_mixer,
  18329. msm_routing_put_port_mixer),
  18330. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18331. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18332. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18333. msm_routing_get_port_mixer,
  18334. msm_routing_put_port_mixer),
  18335. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18336. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18337. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18338. msm_routing_get_port_mixer,
  18339. msm_routing_put_port_mixer),
  18340. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18341. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18342. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18343. msm_routing_get_port_mixer,
  18344. msm_routing_put_port_mixer),
  18345. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18346. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18347. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18348. msm_routing_get_port_mixer,
  18349. msm_routing_put_port_mixer),
  18350. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18351. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18352. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18353. msm_routing_get_port_mixer,
  18354. msm_routing_put_port_mixer),
  18355. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18356. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18357. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18358. msm_routing_get_port_mixer,
  18359. msm_routing_put_port_mixer),
  18360. };
  18361. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18362. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18364. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18369. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18374. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18379. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18384. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18389. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18394. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18399. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18404. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18409. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18414. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18419. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18424. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18429. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18430. msm_routing_get_port_mixer,
  18431. msm_routing_put_port_mixer),
  18432. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18433. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18434. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18435. msm_routing_get_port_mixer,
  18436. msm_routing_put_port_mixer),
  18437. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18438. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18439. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18440. msm_routing_get_port_mixer,
  18441. msm_routing_put_port_mixer),
  18442. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18443. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18444. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18445. msm_routing_get_port_mixer,
  18446. msm_routing_put_port_mixer),
  18447. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18449. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18450. msm_routing_get_port_mixer,
  18451. msm_routing_put_port_mixer),
  18452. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18453. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18454. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18455. msm_routing_get_port_mixer,
  18456. msm_routing_put_port_mixer),
  18457. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18458. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18459. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18460. msm_routing_get_port_mixer,
  18461. msm_routing_put_port_mixer),
  18462. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18463. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18464. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18465. msm_routing_get_port_mixer,
  18466. msm_routing_put_port_mixer),
  18467. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18468. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18469. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18470. msm_routing_get_port_mixer,
  18471. msm_routing_put_port_mixer),
  18472. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18473. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18474. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18475. msm_routing_get_port_mixer,
  18476. msm_routing_put_port_mixer),
  18477. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18478. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18479. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18480. msm_routing_get_port_mixer,
  18481. msm_routing_put_port_mixer),
  18482. };
  18483. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18484. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18485. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18486. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18487. msm_routing_get_port_mixer,
  18488. msm_routing_put_port_mixer),
  18489. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18491. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18492. msm_routing_get_port_mixer,
  18493. msm_routing_put_port_mixer),
  18494. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18495. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18496. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18497. msm_routing_get_port_mixer,
  18498. msm_routing_put_port_mixer),
  18499. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18500. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18501. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18502. msm_routing_get_port_mixer,
  18503. msm_routing_put_port_mixer),
  18504. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18505. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18506. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18507. msm_routing_get_port_mixer,
  18508. msm_routing_put_port_mixer),
  18509. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18510. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18511. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18512. msm_routing_get_port_mixer,
  18513. msm_routing_put_port_mixer),
  18514. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18516. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18517. msm_routing_get_port_mixer,
  18518. msm_routing_put_port_mixer),
  18519. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18521. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18522. msm_routing_get_port_mixer,
  18523. msm_routing_put_port_mixer),
  18524. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18525. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18526. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18527. msm_routing_get_port_mixer,
  18528. msm_routing_put_port_mixer),
  18529. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18530. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18531. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18532. msm_routing_get_port_mixer,
  18533. msm_routing_put_port_mixer),
  18534. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18535. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18536. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18537. msm_routing_get_port_mixer,
  18538. msm_routing_put_port_mixer),
  18539. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18540. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18541. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18542. msm_routing_get_port_mixer,
  18543. msm_routing_put_port_mixer),
  18544. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18545. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18546. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18547. msm_routing_get_port_mixer,
  18548. msm_routing_put_port_mixer),
  18549. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18550. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18551. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18552. msm_routing_get_port_mixer,
  18553. msm_routing_put_port_mixer),
  18554. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18555. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18556. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18557. msm_routing_get_port_mixer,
  18558. msm_routing_put_port_mixer),
  18559. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18560. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18561. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18562. msm_routing_get_port_mixer,
  18563. msm_routing_put_port_mixer),
  18564. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18565. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18566. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18567. msm_routing_get_port_mixer,
  18568. msm_routing_put_port_mixer),
  18569. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18570. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18571. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18572. msm_routing_get_port_mixer,
  18573. msm_routing_put_port_mixer),
  18574. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18575. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18576. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18577. msm_routing_get_port_mixer,
  18578. msm_routing_put_port_mixer),
  18579. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18580. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18581. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18582. msm_routing_get_port_mixer,
  18583. msm_routing_put_port_mixer),
  18584. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18585. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18586. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18587. msm_routing_get_port_mixer,
  18588. msm_routing_put_port_mixer),
  18589. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18590. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18591. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18592. msm_routing_get_port_mixer,
  18593. msm_routing_put_port_mixer),
  18594. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18595. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18596. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18597. msm_routing_get_port_mixer,
  18598. msm_routing_put_port_mixer),
  18599. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18600. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18601. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18602. msm_routing_get_port_mixer,
  18603. msm_routing_put_port_mixer),
  18604. };
  18605. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18606. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18608. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18609. msm_routing_get_port_mixer,
  18610. msm_routing_put_port_mixer),
  18611. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18612. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18613. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18614. msm_routing_get_port_mixer,
  18615. msm_routing_put_port_mixer),
  18616. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18618. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18619. msm_routing_get_port_mixer,
  18620. msm_routing_put_port_mixer),
  18621. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18623. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18624. msm_routing_get_port_mixer,
  18625. msm_routing_put_port_mixer),
  18626. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18628. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18629. msm_routing_get_port_mixer,
  18630. msm_routing_put_port_mixer),
  18631. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18632. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18633. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18634. msm_routing_get_port_mixer,
  18635. msm_routing_put_port_mixer),
  18636. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18638. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18643. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18648. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18649. msm_routing_get_port_mixer,
  18650. msm_routing_put_port_mixer),
  18651. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18653. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18654. msm_routing_get_port_mixer,
  18655. msm_routing_put_port_mixer),
  18656. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18658. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18659. msm_routing_get_port_mixer,
  18660. msm_routing_put_port_mixer),
  18661. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18663. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18664. msm_routing_get_port_mixer,
  18665. msm_routing_put_port_mixer),
  18666. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18668. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18669. msm_routing_get_port_mixer,
  18670. msm_routing_put_port_mixer),
  18671. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18673. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18674. msm_routing_get_port_mixer,
  18675. msm_routing_put_port_mixer),
  18676. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18678. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18679. msm_routing_get_port_mixer,
  18680. msm_routing_put_port_mixer),
  18681. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18683. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18684. msm_routing_get_port_mixer,
  18685. msm_routing_put_port_mixer),
  18686. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18688. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18689. msm_routing_get_port_mixer,
  18690. msm_routing_put_port_mixer),
  18691. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18693. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18694. msm_routing_get_port_mixer,
  18695. msm_routing_put_port_mixer),
  18696. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18697. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18698. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18699. msm_routing_get_port_mixer,
  18700. msm_routing_put_port_mixer),
  18701. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18702. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18703. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18704. msm_routing_get_port_mixer,
  18705. msm_routing_put_port_mixer),
  18706. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18707. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18708. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18709. msm_routing_get_port_mixer,
  18710. msm_routing_put_port_mixer),
  18711. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18712. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18713. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18714. msm_routing_get_port_mixer,
  18715. msm_routing_put_port_mixer),
  18716. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18717. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18718. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18719. msm_routing_get_port_mixer,
  18720. msm_routing_put_port_mixer),
  18721. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18722. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18723. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18724. msm_routing_get_port_mixer,
  18725. msm_routing_put_port_mixer),
  18726. };
  18727. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18728. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18730. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18731. msm_routing_get_port_mixer,
  18732. msm_routing_put_port_mixer),
  18733. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18735. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18736. msm_routing_get_port_mixer,
  18737. msm_routing_put_port_mixer),
  18738. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18740. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18741. msm_routing_get_port_mixer,
  18742. msm_routing_put_port_mixer),
  18743. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18744. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18745. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18746. msm_routing_get_port_mixer,
  18747. msm_routing_put_port_mixer),
  18748. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18750. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18751. msm_routing_get_port_mixer,
  18752. msm_routing_put_port_mixer),
  18753. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18755. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18756. msm_routing_get_port_mixer,
  18757. msm_routing_put_port_mixer),
  18758. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18760. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18765. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18770. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18771. msm_routing_get_port_mixer,
  18772. msm_routing_put_port_mixer),
  18773. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18775. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18776. msm_routing_get_port_mixer,
  18777. msm_routing_put_port_mixer),
  18778. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18780. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18781. msm_routing_get_port_mixer,
  18782. msm_routing_put_port_mixer),
  18783. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18784. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18785. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18786. msm_routing_get_port_mixer,
  18787. msm_routing_put_port_mixer),
  18788. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18789. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18790. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18791. msm_routing_get_port_mixer,
  18792. msm_routing_put_port_mixer),
  18793. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18795. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18796. msm_routing_get_port_mixer,
  18797. msm_routing_put_port_mixer),
  18798. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18800. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18801. msm_routing_get_port_mixer,
  18802. msm_routing_put_port_mixer),
  18803. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18804. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18805. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18806. msm_routing_get_port_mixer,
  18807. msm_routing_put_port_mixer),
  18808. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18809. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18810. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18811. msm_routing_get_port_mixer,
  18812. msm_routing_put_port_mixer),
  18813. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18815. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18816. msm_routing_get_port_mixer,
  18817. msm_routing_put_port_mixer),
  18818. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18820. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18821. msm_routing_get_port_mixer,
  18822. msm_routing_put_port_mixer),
  18823. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18824. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18825. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18826. msm_routing_get_port_mixer,
  18827. msm_routing_put_port_mixer),
  18828. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18829. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18830. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18831. msm_routing_get_port_mixer,
  18832. msm_routing_put_port_mixer),
  18833. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18834. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18835. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18836. msm_routing_get_port_mixer,
  18837. msm_routing_put_port_mixer),
  18838. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18839. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18840. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18841. msm_routing_get_port_mixer,
  18842. msm_routing_put_port_mixer),
  18843. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18844. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18845. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18846. msm_routing_get_port_mixer,
  18847. msm_routing_put_port_mixer),
  18848. };
  18849. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18850. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18851. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18852. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18853. msm_routing_get_port_mixer,
  18854. msm_routing_put_port_mixer),
  18855. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18856. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18857. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18858. msm_routing_get_port_mixer,
  18859. msm_routing_put_port_mixer),
  18860. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18862. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18863. msm_routing_get_port_mixer,
  18864. msm_routing_put_port_mixer),
  18865. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18866. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18867. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18868. msm_routing_get_port_mixer,
  18869. msm_routing_put_port_mixer),
  18870. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18871. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18872. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18873. msm_routing_get_port_mixer,
  18874. msm_routing_put_port_mixer),
  18875. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18876. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18877. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18878. msm_routing_get_port_mixer,
  18879. msm_routing_put_port_mixer),
  18880. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18882. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18883. msm_routing_get_port_mixer,
  18884. msm_routing_put_port_mixer),
  18885. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18887. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18888. msm_routing_get_port_mixer,
  18889. msm_routing_put_port_mixer),
  18890. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18891. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18892. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18893. msm_routing_get_port_mixer,
  18894. msm_routing_put_port_mixer),
  18895. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18896. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18897. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18898. msm_routing_get_port_mixer,
  18899. msm_routing_put_port_mixer),
  18900. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18901. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18902. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18903. msm_routing_get_port_mixer,
  18904. msm_routing_put_port_mixer),
  18905. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18906. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18907. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18908. msm_routing_get_port_mixer,
  18909. msm_routing_put_port_mixer),
  18910. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18912. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18913. msm_routing_get_port_mixer,
  18914. msm_routing_put_port_mixer),
  18915. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18916. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18917. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18918. msm_routing_get_port_mixer,
  18919. msm_routing_put_port_mixer),
  18920. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18921. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18922. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18923. msm_routing_get_port_mixer,
  18924. msm_routing_put_port_mixer),
  18925. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18926. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18927. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18928. msm_routing_get_port_mixer,
  18929. msm_routing_put_port_mixer),
  18930. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18931. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18932. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18933. msm_routing_get_port_mixer,
  18934. msm_routing_put_port_mixer),
  18935. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18936. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18937. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18938. msm_routing_get_port_mixer,
  18939. msm_routing_put_port_mixer),
  18940. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18941. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18942. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18943. msm_routing_get_port_mixer,
  18944. msm_routing_put_port_mixer),
  18945. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18946. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18947. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18948. msm_routing_get_port_mixer,
  18949. msm_routing_put_port_mixer),
  18950. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18951. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18952. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18953. msm_routing_get_port_mixer,
  18954. msm_routing_put_port_mixer),
  18955. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18956. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18957. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18958. msm_routing_get_port_mixer,
  18959. msm_routing_put_port_mixer),
  18960. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18961. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18962. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18963. msm_routing_get_port_mixer,
  18964. msm_routing_put_port_mixer),
  18965. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18966. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18967. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18968. msm_routing_get_port_mixer,
  18969. msm_routing_put_port_mixer),
  18970. };
  18971. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18972. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18973. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18974. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18975. msm_routing_get_port_mixer,
  18976. msm_routing_put_port_mixer),
  18977. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  18978. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18979. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  18980. msm_routing_get_port_mixer,
  18981. msm_routing_put_port_mixer),
  18982. };
  18983. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18984. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18986. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18990. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18991. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18992. msm_routing_get_port_mixer,
  18993. msm_routing_put_port_mixer),
  18994. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18996. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18997. msm_routing_get_port_mixer,
  18998. msm_routing_put_port_mixer),
  18999. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19000. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19001. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19002. msm_routing_get_port_mixer,
  19003. msm_routing_put_port_mixer),
  19004. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19005. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19006. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19007. msm_routing_get_port_mixer,
  19008. msm_routing_put_port_mixer),
  19009. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19010. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19011. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19012. msm_routing_get_port_mixer,
  19013. msm_routing_put_port_mixer),
  19014. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19016. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19021. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19026. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19031. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19036. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19041. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19046. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19047. msm_routing_get_port_mixer,
  19048. msm_routing_put_port_mixer),
  19049. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19050. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19051. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19052. msm_routing_get_port_mixer,
  19053. msm_routing_put_port_mixer),
  19054. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19055. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19056. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19057. msm_routing_get_port_mixer,
  19058. msm_routing_put_port_mixer),
  19059. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19060. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19061. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19062. msm_routing_get_port_mixer,
  19063. msm_routing_put_port_mixer),
  19064. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19065. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19066. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19067. msm_routing_get_port_mixer,
  19068. msm_routing_put_port_mixer),
  19069. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19070. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19071. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19072. msm_routing_get_port_mixer,
  19073. msm_routing_put_port_mixer),
  19074. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19075. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19076. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19077. msm_routing_get_port_mixer,
  19078. msm_routing_put_port_mixer),
  19079. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19080. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19081. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19082. msm_routing_get_port_mixer,
  19083. msm_routing_put_port_mixer),
  19084. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19085. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19086. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19087. msm_routing_get_port_mixer,
  19088. msm_routing_put_port_mixer),
  19089. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19090. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19091. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19092. msm_routing_get_port_mixer,
  19093. msm_routing_put_port_mixer),
  19094. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19095. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19096. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19097. msm_routing_get_port_mixer,
  19098. msm_routing_put_port_mixer),
  19099. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19100. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19101. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19102. msm_routing_get_port_mixer,
  19103. msm_routing_put_port_mixer),
  19104. };
  19105. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19106. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19108. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19112. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19113. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19114. msm_routing_get_port_mixer,
  19115. msm_routing_put_port_mixer),
  19116. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19118. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19119. msm_routing_get_port_mixer,
  19120. msm_routing_put_port_mixer),
  19121. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19122. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19123. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19124. msm_routing_get_port_mixer,
  19125. msm_routing_put_port_mixer),
  19126. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19127. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19128. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19129. msm_routing_get_port_mixer,
  19130. msm_routing_put_port_mixer),
  19131. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19132. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19133. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19134. msm_routing_get_port_mixer,
  19135. msm_routing_put_port_mixer),
  19136. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19138. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19143. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19148. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19153. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19158. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19163. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19168. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19169. msm_routing_get_port_mixer,
  19170. msm_routing_put_port_mixer),
  19171. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19172. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19173. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19174. msm_routing_get_port_mixer,
  19175. msm_routing_put_port_mixer),
  19176. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19177. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19178. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19179. msm_routing_get_port_mixer,
  19180. msm_routing_put_port_mixer),
  19181. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19182. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19183. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19184. msm_routing_get_port_mixer,
  19185. msm_routing_put_port_mixer),
  19186. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19187. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19188. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19189. msm_routing_get_port_mixer,
  19190. msm_routing_put_port_mixer),
  19191. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19192. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19193. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19194. msm_routing_get_port_mixer,
  19195. msm_routing_put_port_mixer),
  19196. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19197. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19198. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19199. msm_routing_get_port_mixer,
  19200. msm_routing_put_port_mixer),
  19201. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19202. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19203. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19204. msm_routing_get_port_mixer,
  19205. msm_routing_put_port_mixer),
  19206. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19207. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19208. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19209. msm_routing_get_port_mixer,
  19210. msm_routing_put_port_mixer),
  19211. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19212. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19213. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19214. msm_routing_get_port_mixer,
  19215. msm_routing_put_port_mixer),
  19216. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19217. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19218. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19219. msm_routing_get_port_mixer,
  19220. msm_routing_put_port_mixer),
  19221. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19222. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19223. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19224. msm_routing_get_port_mixer,
  19225. msm_routing_put_port_mixer),
  19226. };
  19227. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19228. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19230. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19234. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19235. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19236. msm_routing_get_port_mixer,
  19237. msm_routing_put_port_mixer),
  19238. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19240. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19241. msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19245. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19246. msm_routing_get_port_mixer,
  19247. msm_routing_put_port_mixer),
  19248. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19249. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19250. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19251. msm_routing_get_port_mixer,
  19252. msm_routing_put_port_mixer),
  19253. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19255. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19260. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19265. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19270. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19275. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19280. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19285. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19289. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19290. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19291. msm_routing_get_port_mixer,
  19292. msm_routing_put_port_mixer),
  19293. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19295. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19296. msm_routing_get_port_mixer,
  19297. msm_routing_put_port_mixer),
  19298. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19299. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19300. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19301. msm_routing_get_port_mixer,
  19302. msm_routing_put_port_mixer),
  19303. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19305. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19306. msm_routing_get_port_mixer,
  19307. msm_routing_put_port_mixer),
  19308. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19309. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19310. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19311. msm_routing_get_port_mixer,
  19312. msm_routing_put_port_mixer),
  19313. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19314. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19315. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19316. msm_routing_get_port_mixer,
  19317. msm_routing_put_port_mixer),
  19318. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19319. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19320. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19321. msm_routing_get_port_mixer,
  19322. msm_routing_put_port_mixer),
  19323. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19324. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19325. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19326. msm_routing_get_port_mixer,
  19327. msm_routing_put_port_mixer),
  19328. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19329. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19330. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19331. msm_routing_get_port_mixer,
  19332. msm_routing_put_port_mixer),
  19333. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19334. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19335. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19336. msm_routing_get_port_mixer,
  19337. msm_routing_put_port_mixer),
  19338. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19339. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19340. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19341. msm_routing_get_port_mixer,
  19342. msm_routing_put_port_mixer),
  19343. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19344. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19345. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19346. msm_routing_get_port_mixer,
  19347. msm_routing_put_port_mixer),
  19348. };
  19349. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19350. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19351. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19352. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19353. msm_routing_get_port_mixer,
  19354. msm_routing_put_port_mixer),
  19355. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19357. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19358. msm_routing_get_port_mixer,
  19359. msm_routing_put_port_mixer),
  19360. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19362. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19367. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19372. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19377. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19382. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19387. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19392. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19397. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19402. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19407. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19411. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19412. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19413. msm_routing_get_port_mixer,
  19414. msm_routing_put_port_mixer),
  19415. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19417. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19418. msm_routing_get_port_mixer,
  19419. msm_routing_put_port_mixer),
  19420. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19421. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19422. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19423. msm_routing_get_port_mixer,
  19424. msm_routing_put_port_mixer),
  19425. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19426. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19427. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19428. msm_routing_get_port_mixer,
  19429. msm_routing_put_port_mixer),
  19430. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19431. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19432. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19433. msm_routing_get_port_mixer,
  19434. msm_routing_put_port_mixer),
  19435. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19436. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19437. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19438. msm_routing_get_port_mixer,
  19439. msm_routing_put_port_mixer),
  19440. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19441. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19442. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19443. msm_routing_get_port_mixer,
  19444. msm_routing_put_port_mixer),
  19445. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19446. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19447. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19448. msm_routing_get_port_mixer,
  19449. msm_routing_put_port_mixer),
  19450. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19451. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19452. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19453. msm_routing_get_port_mixer,
  19454. msm_routing_put_port_mixer),
  19455. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19456. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19457. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19458. msm_routing_get_port_mixer,
  19459. msm_routing_put_port_mixer),
  19460. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19461. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19462. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19463. msm_routing_get_port_mixer,
  19464. msm_routing_put_port_mixer),
  19465. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19466. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19467. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19468. msm_routing_get_port_mixer,
  19469. msm_routing_put_port_mixer),
  19470. };
  19471. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19472. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19473. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19474. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19475. msm_routing_get_port_mixer,
  19476. msm_routing_put_port_mixer),
  19477. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19478. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19479. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19480. msm_routing_get_port_mixer,
  19481. msm_routing_put_port_mixer),
  19482. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19483. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19484. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19485. msm_routing_get_port_mixer,
  19486. msm_routing_put_port_mixer),
  19487. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19488. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19489. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19490. msm_routing_get_port_mixer,
  19491. msm_routing_put_port_mixer),
  19492. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19493. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19494. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19495. msm_routing_get_port_mixer,
  19496. msm_routing_put_port_mixer),
  19497. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19498. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19499. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19500. msm_routing_get_port_mixer,
  19501. msm_routing_put_port_mixer),
  19502. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19504. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19505. msm_routing_get_port_mixer,
  19506. msm_routing_put_port_mixer),
  19507. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19508. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19509. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19510. msm_routing_get_port_mixer,
  19511. msm_routing_put_port_mixer),
  19512. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19513. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19514. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19515. msm_routing_get_port_mixer,
  19516. msm_routing_put_port_mixer),
  19517. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19518. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19519. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19520. msm_routing_get_port_mixer,
  19521. msm_routing_put_port_mixer),
  19522. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19523. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19524. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19525. msm_routing_get_port_mixer,
  19526. msm_routing_put_port_mixer),
  19527. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19528. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19529. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19530. msm_routing_get_port_mixer,
  19531. msm_routing_put_port_mixer),
  19532. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19533. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19534. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19535. msm_routing_get_port_mixer,
  19536. msm_routing_put_port_mixer),
  19537. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19538. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19539. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19540. msm_routing_get_port_mixer,
  19541. msm_routing_put_port_mixer),
  19542. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19543. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19544. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19545. msm_routing_get_port_mixer,
  19546. msm_routing_put_port_mixer),
  19547. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19548. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19549. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19550. msm_routing_get_port_mixer,
  19551. msm_routing_put_port_mixer),
  19552. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19553. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19554. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19555. msm_routing_get_port_mixer,
  19556. msm_routing_put_port_mixer),
  19557. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19558. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19559. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19560. msm_routing_get_port_mixer,
  19561. msm_routing_put_port_mixer),
  19562. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19563. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19564. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19565. msm_routing_get_port_mixer,
  19566. msm_routing_put_port_mixer),
  19567. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19568. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19569. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19570. msm_routing_get_port_mixer,
  19571. msm_routing_put_port_mixer),
  19572. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19573. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19574. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19575. msm_routing_get_port_mixer,
  19576. msm_routing_put_port_mixer),
  19577. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19578. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19579. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19580. msm_routing_get_port_mixer,
  19581. msm_routing_put_port_mixer),
  19582. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19583. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19584. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19585. msm_routing_get_port_mixer,
  19586. msm_routing_put_port_mixer),
  19587. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19588. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19589. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19590. msm_routing_get_port_mixer,
  19591. msm_routing_put_port_mixer),
  19592. };
  19593. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19594. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19595. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19596. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19597. msm_routing_get_port_mixer,
  19598. msm_routing_put_port_mixer),
  19599. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19600. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19601. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19602. msm_routing_get_port_mixer,
  19603. msm_routing_put_port_mixer),
  19604. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19605. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19606. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19607. msm_routing_get_port_mixer,
  19608. msm_routing_put_port_mixer),
  19609. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19610. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19611. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19612. msm_routing_get_port_mixer,
  19613. msm_routing_put_port_mixer),
  19614. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19616. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19617. msm_routing_get_port_mixer,
  19618. msm_routing_put_port_mixer),
  19619. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19620. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19621. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19622. msm_routing_get_port_mixer,
  19623. msm_routing_put_port_mixer),
  19624. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19625. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19626. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19627. msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19630. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19631. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19632. msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19636. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19637. msm_routing_get_port_mixer,
  19638. msm_routing_put_port_mixer),
  19639. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19640. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19641. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19642. msm_routing_get_port_mixer,
  19643. msm_routing_put_port_mixer),
  19644. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19646. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19647. msm_routing_get_port_mixer,
  19648. msm_routing_put_port_mixer),
  19649. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19650. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19651. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19652. msm_routing_get_port_mixer,
  19653. msm_routing_put_port_mixer),
  19654. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19655. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19656. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19657. msm_routing_get_port_mixer,
  19658. msm_routing_put_port_mixer),
  19659. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19660. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19661. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19662. msm_routing_get_port_mixer,
  19663. msm_routing_put_port_mixer),
  19664. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19666. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19667. msm_routing_get_port_mixer,
  19668. msm_routing_put_port_mixer),
  19669. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19670. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19671. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19672. msm_routing_get_port_mixer,
  19673. msm_routing_put_port_mixer),
  19674. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19675. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19676. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19677. msm_routing_get_port_mixer,
  19678. msm_routing_put_port_mixer),
  19679. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19680. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19681. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19682. msm_routing_get_port_mixer,
  19683. msm_routing_put_port_mixer),
  19684. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19685. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19686. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19687. msm_routing_get_port_mixer,
  19688. msm_routing_put_port_mixer),
  19689. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19690. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19691. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19692. msm_routing_get_port_mixer,
  19693. msm_routing_put_port_mixer),
  19694. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19695. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19696. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19697. msm_routing_get_port_mixer,
  19698. msm_routing_put_port_mixer),
  19699. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19700. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19701. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19702. msm_routing_get_port_mixer,
  19703. msm_routing_put_port_mixer),
  19704. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19705. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19706. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19707. msm_routing_get_port_mixer,
  19708. msm_routing_put_port_mixer),
  19709. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19710. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19711. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19712. msm_routing_get_port_mixer,
  19713. msm_routing_put_port_mixer),
  19714. };
  19715. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19716. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19717. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19718. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19719. msm_routing_get_port_mixer,
  19720. msm_routing_put_port_mixer),
  19721. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19722. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19723. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19724. msm_routing_get_port_mixer,
  19725. msm_routing_put_port_mixer),
  19726. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19728. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19729. msm_routing_get_port_mixer,
  19730. msm_routing_put_port_mixer),
  19731. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19733. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19734. msm_routing_get_port_mixer,
  19735. msm_routing_put_port_mixer),
  19736. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19737. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19738. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19739. msm_routing_get_port_mixer,
  19740. msm_routing_put_port_mixer),
  19741. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19742. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19743. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19744. msm_routing_get_port_mixer,
  19745. msm_routing_put_port_mixer),
  19746. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19748. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19749. msm_routing_get_port_mixer,
  19750. msm_routing_put_port_mixer),
  19751. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19752. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19753. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19754. msm_routing_get_port_mixer,
  19755. msm_routing_put_port_mixer),
  19756. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19757. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19758. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19759. msm_routing_get_port_mixer,
  19760. msm_routing_put_port_mixer),
  19761. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19762. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19763. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19764. msm_routing_get_port_mixer,
  19765. msm_routing_put_port_mixer),
  19766. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19767. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19768. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19769. msm_routing_get_port_mixer,
  19770. msm_routing_put_port_mixer),
  19771. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19772. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19773. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19774. msm_routing_get_port_mixer,
  19775. msm_routing_put_port_mixer),
  19776. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19777. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19778. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19779. msm_routing_get_port_mixer,
  19780. msm_routing_put_port_mixer),
  19781. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19783. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19784. msm_routing_get_port_mixer,
  19785. msm_routing_put_port_mixer),
  19786. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19787. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19788. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19789. msm_routing_get_port_mixer,
  19790. msm_routing_put_port_mixer),
  19791. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19792. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19793. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19794. msm_routing_get_port_mixer,
  19795. msm_routing_put_port_mixer),
  19796. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19797. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19798. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19799. msm_routing_get_port_mixer,
  19800. msm_routing_put_port_mixer),
  19801. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19803. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19804. msm_routing_get_port_mixer,
  19805. msm_routing_put_port_mixer),
  19806. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19807. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19808. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19809. msm_routing_get_port_mixer,
  19810. msm_routing_put_port_mixer),
  19811. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19812. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19813. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19814. msm_routing_get_port_mixer,
  19815. msm_routing_put_port_mixer),
  19816. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19817. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19818. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19819. msm_routing_get_port_mixer,
  19820. msm_routing_put_port_mixer),
  19821. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19822. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19823. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19824. msm_routing_get_port_mixer,
  19825. msm_routing_put_port_mixer),
  19826. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19827. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19828. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19829. msm_routing_get_port_mixer,
  19830. msm_routing_put_port_mixer),
  19831. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19832. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19833. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19834. msm_routing_get_port_mixer,
  19835. msm_routing_put_port_mixer),
  19836. };
  19837. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19838. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19839. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19840. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19841. msm_routing_get_port_mixer,
  19842. msm_routing_put_port_mixer),
  19843. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19844. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19845. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19846. msm_routing_get_port_mixer,
  19847. msm_routing_put_port_mixer),
  19848. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19849. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19850. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19851. msm_routing_get_port_mixer,
  19852. msm_routing_put_port_mixer),
  19853. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19854. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19855. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19856. msm_routing_get_port_mixer,
  19857. msm_routing_put_port_mixer),
  19858. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19859. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19860. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19861. msm_routing_get_port_mixer,
  19862. msm_routing_put_port_mixer),
  19863. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19865. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19866. msm_routing_get_port_mixer,
  19867. msm_routing_put_port_mixer),
  19868. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19869. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19870. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19871. msm_routing_get_port_mixer,
  19872. msm_routing_put_port_mixer),
  19873. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19874. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19875. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19876. msm_routing_get_port_mixer,
  19877. msm_routing_put_port_mixer),
  19878. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19879. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19880. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19881. msm_routing_get_port_mixer,
  19882. msm_routing_put_port_mixer),
  19883. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19884. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19885. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19886. msm_routing_get_port_mixer,
  19887. msm_routing_put_port_mixer),
  19888. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19889. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19890. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19891. msm_routing_get_port_mixer,
  19892. msm_routing_put_port_mixer),
  19893. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19895. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19896. msm_routing_get_port_mixer,
  19897. msm_routing_put_port_mixer),
  19898. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19899. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19900. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19901. msm_routing_get_port_mixer,
  19902. msm_routing_put_port_mixer),
  19903. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19904. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19905. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19906. msm_routing_get_port_mixer,
  19907. msm_routing_put_port_mixer),
  19908. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19909. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19910. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19911. msm_routing_get_port_mixer,
  19912. msm_routing_put_port_mixer),
  19913. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19914. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19915. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19916. msm_routing_get_port_mixer,
  19917. msm_routing_put_port_mixer),
  19918. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19919. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19920. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19921. msm_routing_get_port_mixer,
  19922. msm_routing_put_port_mixer),
  19923. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19924. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19925. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19926. msm_routing_get_port_mixer,
  19927. msm_routing_put_port_mixer),
  19928. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19929. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19930. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19931. msm_routing_get_port_mixer,
  19932. msm_routing_put_port_mixer),
  19933. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19934. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19935. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19936. msm_routing_get_port_mixer,
  19937. msm_routing_put_port_mixer),
  19938. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19939. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19940. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19941. msm_routing_get_port_mixer,
  19942. msm_routing_put_port_mixer),
  19943. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19944. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19945. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19946. msm_routing_get_port_mixer,
  19947. msm_routing_put_port_mixer),
  19948. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19949. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19950. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19951. msm_routing_get_port_mixer,
  19952. msm_routing_put_port_mixer),
  19953. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19954. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19955. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19956. msm_routing_get_port_mixer,
  19957. msm_routing_put_port_mixer),
  19958. };
  19959. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  19960. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19961. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19962. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19963. msm_routing_get_port_mixer,
  19964. msm_routing_put_port_mixer),
  19965. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19966. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19967. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19968. msm_routing_get_port_mixer,
  19969. msm_routing_put_port_mixer),
  19970. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19971. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19972. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19973. msm_routing_get_port_mixer,
  19974. msm_routing_put_port_mixer),
  19975. };
  19976. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19977. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19979. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19980. msm_routing_put_port_mixer),
  19981. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19983. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19984. msm_routing_put_port_mixer),
  19985. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19987. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19988. msm_routing_put_port_mixer),
  19989. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19991. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19992. msm_routing_put_port_mixer),
  19993. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19994. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19995. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19996. msm_routing_put_port_mixer),
  19997. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19999. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20000. msm_routing_put_port_mixer),
  20001. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20003. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20004. msm_routing_put_port_mixer),
  20005. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20006. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20007. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20008. msm_routing_put_port_mixer),
  20009. };
  20010. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20011. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20013. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20014. msm_routing_put_port_mixer),
  20015. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20016. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20017. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20018. msm_routing_put_port_mixer),
  20019. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20020. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20021. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20022. msm_routing_put_port_mixer),
  20023. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20024. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20025. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20029. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20033. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20034. msm_routing_put_port_mixer),
  20035. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20036. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20037. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20038. msm_routing_put_port_mixer),
  20039. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20041. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20042. msm_routing_put_port_mixer),
  20043. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20045. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20046. msm_routing_put_port_mixer),
  20047. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20048. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20049. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20050. msm_routing_put_port_mixer),
  20051. };
  20052. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20053. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20055. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20056. msm_routing_put_listen_mixer),
  20057. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20059. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20060. msm_routing_put_listen_mixer),
  20061. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20062. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20063. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20064. msm_routing_put_listen_mixer),
  20065. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20066. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20067. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20068. msm_routing_put_listen_mixer),
  20069. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20071. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20072. msm_routing_put_listen_mixer),
  20073. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20074. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20075. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20076. msm_routing_put_listen_mixer),
  20077. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20078. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20079. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20080. msm_routing_put_listen_mixer),
  20081. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20082. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20083. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20084. msm_routing_put_listen_mixer),
  20085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20087. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20088. msm_routing_put_listen_mixer),
  20089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20091. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20092. msm_routing_put_listen_mixer),
  20093. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20094. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20095. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20096. msm_routing_put_listen_mixer),
  20097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20099. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20100. msm_routing_put_listen_mixer),
  20101. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20102. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20103. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20104. msm_routing_put_listen_mixer),
  20105. };
  20106. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20107. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20108. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20109. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20110. msm_routing_put_listen_mixer),
  20111. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20112. SND_SOC_NOPM,
  20113. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20114. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20115. msm_routing_put_listen_mixer),
  20116. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20117. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20118. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20119. msm_routing_put_listen_mixer),
  20120. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20121. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20122. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20123. msm_routing_put_listen_mixer),
  20124. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20126. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20127. msm_routing_put_listen_mixer),
  20128. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20130. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20131. msm_routing_put_listen_mixer),
  20132. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20133. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20134. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20135. msm_routing_put_listen_mixer),
  20136. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20137. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20138. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20139. msm_routing_put_listen_mixer),
  20140. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20141. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20142. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20143. msm_routing_put_listen_mixer),
  20144. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20146. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20147. msm_routing_put_listen_mixer),
  20148. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20150. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20151. msm_routing_put_listen_mixer),
  20152. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20153. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20154. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20155. msm_routing_put_listen_mixer),
  20156. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20157. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20158. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20159. msm_routing_put_listen_mixer),
  20160. };
  20161. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20162. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20163. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20164. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20165. msm_routing_put_listen_mixer),
  20166. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20168. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20169. msm_routing_put_listen_mixer),
  20170. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20171. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20172. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20173. msm_routing_put_listen_mixer),
  20174. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20176. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20177. msm_routing_put_listen_mixer),
  20178. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20179. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20180. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20181. msm_routing_put_listen_mixer),
  20182. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20183. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20184. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20185. msm_routing_put_listen_mixer),
  20186. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20188. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20189. msm_routing_put_listen_mixer),
  20190. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20191. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20192. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20193. msm_routing_put_listen_mixer),
  20194. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20195. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20196. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20197. msm_routing_put_listen_mixer),
  20198. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20199. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20200. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20201. msm_routing_put_listen_mixer),
  20202. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20203. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20204. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20205. msm_routing_put_listen_mixer),
  20206. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20208. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20209. msm_routing_put_listen_mixer),
  20210. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20211. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20212. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20213. msm_routing_put_listen_mixer),
  20214. };
  20215. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20216. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20218. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20219. msm_routing_put_listen_mixer),
  20220. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20221. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20222. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20223. msm_routing_put_listen_mixer),
  20224. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20225. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20226. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20227. msm_routing_put_listen_mixer),
  20228. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20229. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20230. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20231. msm_routing_put_listen_mixer),
  20232. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20233. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20234. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20235. msm_routing_put_listen_mixer),
  20236. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20238. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20239. msm_routing_put_listen_mixer),
  20240. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20242. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20243. msm_routing_put_listen_mixer),
  20244. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20245. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20246. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20247. msm_routing_put_listen_mixer),
  20248. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20249. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20250. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20251. msm_routing_put_listen_mixer),
  20252. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20253. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20254. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20255. msm_routing_put_listen_mixer),
  20256. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20258. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20259. msm_routing_put_listen_mixer),
  20260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20262. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20263. msm_routing_put_listen_mixer),
  20264. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20265. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20266. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20267. msm_routing_put_listen_mixer),
  20268. };
  20269. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20270. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20272. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20273. msm_routing_put_listen_mixer),
  20274. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20275. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20276. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20277. msm_routing_put_listen_mixer),
  20278. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20279. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20280. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20281. msm_routing_put_listen_mixer),
  20282. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20283. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20284. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20285. msm_routing_put_listen_mixer),
  20286. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20288. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20289. msm_routing_put_listen_mixer),
  20290. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20292. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20293. msm_routing_put_listen_mixer),
  20294. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20295. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20296. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20297. msm_routing_put_listen_mixer),
  20298. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20299. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20300. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20301. msm_routing_put_listen_mixer),
  20302. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20303. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20304. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20305. msm_routing_put_listen_mixer),
  20306. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20307. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20308. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20309. msm_routing_put_listen_mixer),
  20310. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20311. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20312. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20313. msm_routing_put_listen_mixer),
  20314. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20315. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20316. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20317. msm_routing_put_listen_mixer),
  20318. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20319. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20320. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20321. msm_routing_put_listen_mixer),
  20322. };
  20323. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20324. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20325. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20326. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20327. msm_routing_put_listen_mixer),
  20328. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20330. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20331. msm_routing_put_listen_mixer),
  20332. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20333. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20334. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20335. msm_routing_put_listen_mixer),
  20336. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20337. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20338. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20339. msm_routing_put_listen_mixer),
  20340. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20341. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20342. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20343. msm_routing_put_listen_mixer),
  20344. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20345. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20346. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20347. msm_routing_put_listen_mixer),
  20348. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20350. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20351. msm_routing_put_listen_mixer),
  20352. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20354. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20355. msm_routing_put_listen_mixer),
  20356. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20357. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20358. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20359. msm_routing_put_listen_mixer),
  20360. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20361. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20362. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20363. msm_routing_put_listen_mixer),
  20364. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20365. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20366. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20367. msm_routing_put_listen_mixer),
  20368. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20370. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20371. msm_routing_put_listen_mixer),
  20372. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20373. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20374. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20375. msm_routing_put_listen_mixer),
  20376. };
  20377. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20378. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20380. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20381. msm_routing_put_listen_mixer),
  20382. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20384. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20385. msm_routing_put_listen_mixer),
  20386. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20387. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20388. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20389. msm_routing_put_listen_mixer),
  20390. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20391. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20392. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20393. msm_routing_put_listen_mixer),
  20394. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20395. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20396. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20397. msm_routing_put_listen_mixer),
  20398. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20400. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20401. msm_routing_put_listen_mixer),
  20402. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20404. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20405. msm_routing_put_listen_mixer),
  20406. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20407. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20408. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20409. msm_routing_put_listen_mixer),
  20410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20412. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20413. msm_routing_put_listen_mixer),
  20414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20416. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20417. msm_routing_put_listen_mixer),
  20418. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20419. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20420. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20421. msm_routing_put_listen_mixer),
  20422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20423. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20424. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20425. msm_routing_put_listen_mixer),
  20426. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20427. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20428. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20429. msm_routing_put_listen_mixer),
  20430. };
  20431. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20432. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20434. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20435. msm_routing_put_listen_mixer),
  20436. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20437. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20438. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20439. msm_routing_put_listen_mixer),
  20440. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20441. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20442. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20443. msm_routing_put_listen_mixer),
  20444. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20445. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20446. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20447. msm_routing_put_listen_mixer),
  20448. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20449. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20450. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20451. msm_routing_put_listen_mixer),
  20452. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20453. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20454. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20455. msm_routing_put_listen_mixer),
  20456. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20457. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20458. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20459. msm_routing_put_listen_mixer),
  20460. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20462. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20463. msm_routing_put_listen_mixer),
  20464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20466. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20467. msm_routing_put_listen_mixer),
  20468. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20469. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20470. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20471. msm_routing_put_listen_mixer),
  20472. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20473. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20474. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20475. msm_routing_put_listen_mixer),
  20476. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20477. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20478. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20479. msm_routing_put_listen_mixer),
  20480. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20481. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20482. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20483. msm_routing_put_listen_mixer),
  20484. };
  20485. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20486. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20487. 0, 1, 0, msm_routing_get_switch_mixer,
  20488. msm_routing_put_switch_mixer);
  20489. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20490. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20491. 0, 1, 0, msm_routing_get_switch_mixer,
  20492. msm_routing_put_switch_mixer);
  20493. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20494. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20495. 0, 1, 0, msm_routing_get_switch_mixer,
  20496. msm_routing_put_switch_mixer);
  20497. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20498. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20499. 0, 1, 0, msm_routing_get_switch_mixer,
  20500. msm_routing_put_switch_mixer);
  20501. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20502. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20503. 0, 1, 0, msm_routing_get_switch_mixer,
  20504. msm_routing_put_switch_mixer);
  20505. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20506. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20507. 0, 1, 0, msm_routing_get_switch_mixer,
  20508. msm_routing_put_switch_mixer);
  20509. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20510. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20511. 0, 1, 0, msm_routing_get_switch_mixer,
  20512. msm_routing_put_switch_mixer);
  20513. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20514. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20515. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20516. msm_routing_put_fm_pcmrx_switch_mixer);
  20517. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20518. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20519. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20520. msm_routing_put_int0_mi2s_switch_mixer);
  20521. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20522. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20523. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20524. msm_routing_put_int4_mi2s_switch_mixer);
  20525. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20526. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20527. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20528. msm_routing_put_pri_mi2s_switch_mixer);
  20529. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20530. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20531. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20532. msm_routing_put_sec_mi2s_switch_mixer);
  20533. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20534. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20535. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20536. msm_routing_put_tert_mi2s_switch_mixer);
  20537. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20538. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20539. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20540. msm_routing_put_quat_mi2s_switch_mixer);
  20541. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20542. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20543. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20544. msm_routing_put_quin_mi2s_switch_mixer);
  20545. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20546. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20547. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20548. msm_routing_put_sen_mi2s_switch_mixer);
  20549. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20550. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20551. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20552. msm_routing_put_hfp_switch_mixer);
  20553. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20554. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20555. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20556. msm_routing_put_hfp_switch_mixer);
  20557. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20558. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20559. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20560. msm_routing_put_hfp_switch_mixer);
  20561. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20562. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20563. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20564. msm_routing_put_hfp_switch_mixer);
  20565. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20566. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20567. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20568. msm_routing_put_usb_switch_mixer);
  20569. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20570. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20571. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20572. msm_routing_a2dp_switch_mixer_put);
  20573. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20574. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20575. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20576. msm_routing_sco_switch_mixer_put);
  20577. static const struct soc_enum lsm_port_enum =
  20578. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20579. static const char * const lsm_func_text[] = {
  20580. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20581. };
  20582. static const struct soc_enum lsm_func_enum =
  20583. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20584. static const struct snd_kcontrol_new lsm_controls[] = {
  20585. /* kcontrol of lsm_function */
  20586. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20587. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20588. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20589. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20590. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20591. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20592. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20593. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20594. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20595. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20596. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20597. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20598. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20599. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20600. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20601. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20602. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20603. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20604. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20605. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20606. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20607. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20608. /* kcontrol of lsm_port */
  20609. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20610. msm_routing_lsm_port_get,
  20611. msm_routing_lsm_port_put),
  20612. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20613. msm_routing_lsm_port_get,
  20614. msm_routing_lsm_port_put),
  20615. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20616. msm_routing_lsm_port_get,
  20617. msm_routing_lsm_port_put),
  20618. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20619. msm_routing_lsm_port_get,
  20620. msm_routing_lsm_port_put),
  20621. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20622. msm_routing_lsm_port_get,
  20623. msm_routing_lsm_port_put),
  20624. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20625. msm_routing_lsm_port_get,
  20626. msm_routing_lsm_port_put),
  20627. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20628. msm_routing_lsm_port_get,
  20629. msm_routing_lsm_port_put),
  20630. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20631. msm_routing_lsm_port_get,
  20632. msm_routing_lsm_port_put),
  20633. };
  20634. static const char * const aanc_slim_0_rx_text[] = {
  20635. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20636. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20637. };
  20638. static const struct soc_enum aanc_slim_0_rx_enum =
  20639. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20640. aanc_slim_0_rx_text);
  20641. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20642. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20643. msm_routing_slim_0_rx_aanc_mux_get,
  20644. msm_routing_slim_0_rx_aanc_mux_put)
  20645. };
  20646. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20647. struct snd_ctl_elem_value *ucontrol)
  20648. {
  20649. ucontrol->value.integer.value[0] = aanc_level;
  20650. return 0;
  20651. }
  20652. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20653. struct snd_ctl_elem_value *ucontrol)
  20654. {
  20655. int ret = 0;
  20656. mutex_lock(&routing_lock);
  20657. aanc_level = ucontrol->value.integer.value[0];
  20658. pr_debug("%s: value: %ld\n",
  20659. __func__, ucontrol->value.integer.value[0]);
  20660. ret = afe_set_aanc_noise_level(aanc_level);
  20661. mutex_unlock(&routing_lock);
  20662. return ret;
  20663. }
  20664. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20665. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20666. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20667. };
  20668. static int msm_routing_get_stereo_to_custom_stereo_control(
  20669. struct snd_kcontrol *kcontrol,
  20670. struct snd_ctl_elem_value *ucontrol)
  20671. {
  20672. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20673. return 0;
  20674. }
  20675. static int msm_routing_put_stereo_to_custom_stereo_control(
  20676. struct snd_kcontrol *kcontrol,
  20677. struct snd_ctl_elem_value *ucontrol)
  20678. {
  20679. int flag = 0, i = 0, rc = 0, idx = 0;
  20680. int be_index = 0, port_id, topo_id;
  20681. unsigned int session_id = 0;
  20682. uint16_t op_FL_ip_FL_weight = 0;
  20683. uint16_t op_FL_ip_FR_weight = 0;
  20684. uint16_t op_FR_ip_FL_weight = 0;
  20685. uint16_t op_FR_ip_FR_weight = 0;
  20686. flag = ucontrol->value.integer.value[0];
  20687. pr_debug("%s E flag %d\n", __func__, flag);
  20688. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20689. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20690. __func__, is_custom_stereo_on, flag);
  20691. return 0;
  20692. }
  20693. is_custom_stereo_on = flag ? true : false;
  20694. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20695. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20696. port_id = msm_bedais[be_index].port_id;
  20697. if (!msm_bedais[be_index].active)
  20698. continue;
  20699. if ((port_id != SLIMBUS_0_RX) &&
  20700. (port_id != RT_PROXY_PORT_001_RX) &&
  20701. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20702. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20703. continue;
  20704. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20705. MSM_FRONTEND_DAI_MM_SIZE) {
  20706. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20707. LEGACY_PCM_MODE)
  20708. goto skip_send_custom_stereo;
  20709. session_id =
  20710. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20711. if (is_custom_stereo_on) {
  20712. op_FL_ip_FL_weight =
  20713. Q14_GAIN_ZERO_POINT_FIVE;
  20714. op_FL_ip_FR_weight =
  20715. Q14_GAIN_ZERO_POINT_FIVE;
  20716. op_FR_ip_FL_weight =
  20717. Q14_GAIN_ZERO_POINT_FIVE;
  20718. op_FR_ip_FR_weight =
  20719. Q14_GAIN_ZERO_POINT_FIVE;
  20720. } else {
  20721. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20722. op_FL_ip_FR_weight = 0;
  20723. op_FR_ip_FL_weight = 0;
  20724. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20725. }
  20726. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20727. unsigned long copp =
  20728. session_copp_map[i]
  20729. [SESSION_TYPE_RX][be_index];
  20730. if (!test_bit(idx, &copp))
  20731. goto skip_send_custom_stereo;
  20732. topo_id = adm_get_topology_for_port_copp_idx(
  20733. msm_bedais[be_index].port_id, idx);
  20734. if (topo_id < 0)
  20735. pr_debug("%s:Err:custom stereo topo %d",
  20736. __func__, topo_id);
  20737. pr_debug("idx %d\n", idx);
  20738. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20739. rc = msm_ds2_dap_set_custom_stereo_onoff
  20740. (msm_bedais[be_index].port_id,
  20741. idx, is_custom_stereo_on);
  20742. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20743. rc = dolby_dap_set_custom_stereo_onoff(
  20744. msm_bedais[be_index].port_id,
  20745. idx, is_custom_stereo_on);
  20746. else
  20747. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20748. (msm_bedais[be_index].port_id,
  20749. idx, session_id,
  20750. op_FL_ip_FL_weight,
  20751. op_FL_ip_FR_weight,
  20752. op_FR_ip_FL_weight,
  20753. op_FR_ip_FR_weight);
  20754. if (rc < 0)
  20755. skip_send_custom_stereo:
  20756. pr_err("%s: err setting custom stereo\n",
  20757. __func__);
  20758. }
  20759. }
  20760. }
  20761. return 0;
  20762. }
  20763. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20764. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20765. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20766. msm_routing_put_stereo_to_custom_stereo_control),
  20767. };
  20768. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20769. struct snd_ctl_elem_value *ucontrol)
  20770. {
  20771. return 0;
  20772. }
  20773. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20774. struct snd_ctl_elem_value *ucontrol)
  20775. {
  20776. int i = 0, j;
  20777. int num_app_types = ucontrol->value.integer.value[i++];
  20778. pr_debug("%s\n", __func__);
  20779. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20780. sizeof(struct msm_pcm_routing_app_type_data));
  20781. if (num_app_types > MAX_APP_TYPES) {
  20782. pr_err("%s: number of app types exceed the max supported\n",
  20783. __func__);
  20784. return -EINVAL;
  20785. }
  20786. for (j = 0; j < num_app_types; j++) {
  20787. app_type_cfg[j].app_type =
  20788. ucontrol->value.integer.value[i++];
  20789. app_type_cfg[j].sample_rate =
  20790. ucontrol->value.integer.value[i++];
  20791. app_type_cfg[j].bit_width =
  20792. ucontrol->value.integer.value[i++];
  20793. }
  20794. return 0;
  20795. }
  20796. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20797. struct snd_ctl_elem_value *ucontrol)
  20798. {
  20799. int j, fe_id, be_id, port_type;
  20800. int ret = 0;
  20801. unsigned long copp;
  20802. struct msm_pcm_routing_bdai_data *bedai;
  20803. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20804. SESSION_TYPE_RX;
  20805. int app_type = ucontrol->value.integer.value[1];
  20806. int gain = (ucontrol->value.integer.value[2] +
  20807. ucontrol->value.integer.value[3])/2;
  20808. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20809. MSM_AFE_PORT_TYPE_TX;
  20810. mutex_lock(&routing_lock);
  20811. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20812. if (is_be_dai_extproc(be_id))
  20813. continue;
  20814. bedai = &msm_bedais[be_id];
  20815. if (afe_get_port_type(bedai->port_id) != port_type)
  20816. continue;
  20817. if (!bedai->active)
  20818. continue;
  20819. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20820. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20821. continue;
  20822. if (app_type !=
  20823. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20824. continue;
  20825. copp = session_copp_map[fe_id][dir][be_id];
  20826. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20827. if (!test_bit(j, &copp))
  20828. continue;
  20829. ret |= adm_set_volume(bedai->port_id, j, gain);
  20830. }
  20831. }
  20832. }
  20833. mutex_unlock(&routing_lock);
  20834. return ret ? -EINVAL : 0;
  20835. }
  20836. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20837. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20838. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20839. msm_routing_put_app_type_cfg_control),
  20840. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20841. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20842. };
  20843. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20844. struct snd_ctl_elem_value *ucontrol)
  20845. {
  20846. int copp_idx, fe_id, be_id, port_type;
  20847. int ret = 0;
  20848. unsigned long copp;
  20849. struct msm_pcm_routing_bdai_data *bedai;
  20850. u8 *packed_params = NULL;
  20851. struct param_hdr_v3 param_hdr;
  20852. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20853. sizeof(uint32_t));
  20854. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20855. SESSION_TYPE_RX;
  20856. int app_type = ucontrol->value.integer.value[1];
  20857. int module_id = ucontrol->value.integer.value[2];
  20858. int instance_id = ucontrol->value.integer.value[3];
  20859. int param_id = ucontrol->value.integer.value[4];
  20860. int param_value = ucontrol->value.integer.value[5];
  20861. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20862. MSM_AFE_PORT_TYPE_TX;
  20863. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20864. __func__, app_type, module_id,
  20865. instance_id, param_id, param_value);
  20866. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20867. if (!packed_params)
  20868. return -ENOMEM;
  20869. memset(&param_hdr, 0, sizeof(param_hdr));
  20870. param_hdr.module_id = module_id;
  20871. param_hdr.instance_id = instance_id;
  20872. param_hdr.param_id = param_id;
  20873. param_hdr.param_size = sizeof(uint32_t);
  20874. packed_param_size = 0;
  20875. mutex_lock(&routing_lock);
  20876. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20877. if (is_be_dai_extproc(be_id))
  20878. continue;
  20879. bedai = &msm_bedais[be_id];
  20880. if (afe_get_port_type(bedai->port_id) != port_type)
  20881. continue;
  20882. if (!bedai->active)
  20883. continue;
  20884. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20885. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20886. continue;
  20887. if (app_type !=
  20888. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20889. continue;
  20890. copp = session_copp_map[fe_id][dir][be_id];
  20891. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20892. copp_idx++) {
  20893. if (!test_bit(copp_idx, &copp))
  20894. continue;
  20895. ret = q6common_pack_pp_params(packed_params,
  20896. &param_hdr,
  20897. (u8 *) &param_value,
  20898. &packed_param_size);
  20899. if (ret) {
  20900. pr_err("%s: Failed to pack params, error %d\n",
  20901. __func__, ret);
  20902. goto done;
  20903. }
  20904. ret = adm_set_pp_params(bedai->port_id,
  20905. copp_idx, NULL,
  20906. packed_params,
  20907. packed_param_size);
  20908. if (ret) {
  20909. pr_err("%s: Setting param failed with err=%d\n",
  20910. __func__, ret);
  20911. ret = -EINVAL;
  20912. goto done;
  20913. }
  20914. }
  20915. }
  20916. }
  20917. done:
  20918. mutex_unlock(&routing_lock);
  20919. kfree(packed_params);
  20920. return ret;
  20921. }
  20922. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20923. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20924. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20925. };
  20926. static int msm_routing_get_lsm_app_type_cfg_control(
  20927. struct snd_kcontrol *kcontrol,
  20928. struct snd_ctl_elem_value *ucontrol)
  20929. {
  20930. int shift = ((struct soc_multi_mixer_control *)
  20931. kcontrol->private_value)->shift;
  20932. int i = 0, j = 0;
  20933. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20934. for (j = 0; j < num_app_cfg_types; ++j) {
  20935. ucontrol->value.integer.value[++i] =
  20936. lsm_app_type_cfg[j].app_type;
  20937. ucontrol->value.integer.value[++i] =
  20938. lsm_app_type_cfg[j].sample_rate;
  20939. ucontrol->value.integer.value[++i] =
  20940. lsm_app_type_cfg[j].bit_width;
  20941. if (shift == 1)
  20942. ucontrol->value.integer.value[++i] =
  20943. lsm_app_type_cfg[j].num_out_channels;
  20944. }
  20945. return 0;
  20946. }
  20947. static int msm_routing_put_lsm_app_type_cfg_control(
  20948. struct snd_kcontrol *kcontrol,
  20949. struct snd_ctl_elem_value *ucontrol)
  20950. {
  20951. int shift = ((struct soc_multi_mixer_control *)
  20952. kcontrol->private_value)->shift;
  20953. int i = 0, j;
  20954. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  20955. pr_err("%s: number of app types exceed the max supported\n",
  20956. __func__);
  20957. return -EINVAL;
  20958. }
  20959. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20960. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20961. sizeof(struct msm_pcm_routing_app_type_data));
  20962. for (j = 0; j < num_app_cfg_types; j++) {
  20963. lsm_app_type_cfg[j].app_type =
  20964. ucontrol->value.integer.value[i++];
  20965. lsm_app_type_cfg[j].sample_rate =
  20966. ucontrol->value.integer.value[i++];
  20967. lsm_app_type_cfg[j].bit_width =
  20968. ucontrol->value.integer.value[i++];
  20969. /* Shift of 1 indicates this is V2 mixer control */
  20970. if (shift == 1)
  20971. lsm_app_type_cfg[j].num_out_channels =
  20972. ucontrol->value.integer.value[i++];
  20973. }
  20974. return 0;
  20975. }
  20976. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20977. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20978. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20979. msm_routing_put_lsm_app_type_cfg_control),
  20980. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20981. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20982. msm_routing_put_lsm_app_type_cfg_control),
  20983. };
  20984. static int msm_routing_get_use_ds1_or_ds2_control(
  20985. struct snd_kcontrol *kcontrol,
  20986. struct snd_ctl_elem_value *ucontrol)
  20987. {
  20988. ucontrol->value.integer.value[0] = is_ds2_on;
  20989. return 0;
  20990. }
  20991. static int msm_routing_put_use_ds1_or_ds2_control(
  20992. struct snd_kcontrol *kcontrol,
  20993. struct snd_ctl_elem_value *ucontrol)
  20994. {
  20995. is_ds2_on = ucontrol->value.integer.value[0];
  20996. return 0;
  20997. }
  20998. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  20999. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21000. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21001. msm_routing_put_use_ds1_or_ds2_control),
  21002. };
  21003. static int msm_routing_get_hifi_filter_control(
  21004. struct snd_kcontrol *kcontrol,
  21005. struct snd_ctl_elem_value *ucontrol)
  21006. {
  21007. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21008. return 0;
  21009. }
  21010. static int msm_routing_put_hifi_filter_control(
  21011. struct snd_kcontrol *kcontrol,
  21012. struct snd_ctl_elem_value *ucontrol)
  21013. {
  21014. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21015. return 0;
  21016. }
  21017. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21018. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21019. 1, 0, msm_routing_get_hifi_filter_control,
  21020. msm_routing_put_hifi_filter_control),
  21021. };
  21022. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21023. struct snd_ctl_elem_value *ucontrol) {
  21024. int rc = 0;
  21025. int be_idx = 0;
  21026. char *param_value;
  21027. int *update_param_value;
  21028. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21029. struct param_hdr_v3 param_hdr;
  21030. param_value = kzalloc(param_size, GFP_KERNEL);
  21031. if (!param_value)
  21032. return -ENOMEM;
  21033. memset(&param_hdr, 0, sizeof(param_hdr));
  21034. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21035. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21036. break;
  21037. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21038. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21039. param_hdr.instance_id = INSTANCE_ID_0;
  21040. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21041. param_hdr.param_size = param_size;
  21042. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21043. NULL, &param_hdr, (u8 *) param_value);
  21044. if (rc) {
  21045. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21046. kfree(param_value);
  21047. return -EINVAL;
  21048. }
  21049. update_param_value = (int *)param_value;
  21050. ucontrol->value.integer.value[0] = update_param_value[0];
  21051. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21052. __func__, update_param_value[0]);
  21053. }
  21054. kfree(param_value);
  21055. return 0;
  21056. }
  21057. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21058. struct snd_ctl_elem_value *ucontrol)
  21059. {
  21060. voc_session_id = ucontrol->value.integer.value[0];
  21061. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21062. return 0;
  21063. }
  21064. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21065. struct snd_ctl_elem_value *ucontrol)
  21066. {
  21067. ucontrol->value.integer.value[0] = voc_session_id;
  21068. return 0;
  21069. }
  21070. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21071. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21072. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21073. msm_voc_session_id_put),
  21074. };
  21075. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21076. struct snd_ctl_elem_info *uinfo)
  21077. {
  21078. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21079. uinfo->count = sizeof(struct sound_focus_param);
  21080. return 0;
  21081. }
  21082. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21083. struct snd_ctl_elem_value *ucontrol)
  21084. {
  21085. int ret = 0;
  21086. struct sound_focus_param soundFocusData;
  21087. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21088. sizeof(struct sound_focus_param));
  21089. ret = voc_set_sound_focus(soundFocusData);
  21090. if (ret) {
  21091. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21092. __func__, ret);
  21093. ret = -EINVAL;
  21094. }
  21095. return ret;
  21096. }
  21097. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21098. struct snd_ctl_elem_value *ucontrol)
  21099. {
  21100. int ret = 0;
  21101. struct sound_focus_param soundFocusData;
  21102. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21103. ret = voc_get_sound_focus(&soundFocusData);
  21104. if (ret) {
  21105. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21106. __func__, ret);
  21107. ret = -EINVAL;
  21108. goto done;
  21109. }
  21110. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21111. sizeof(struct sound_focus_param));
  21112. done:
  21113. return ret;
  21114. }
  21115. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21116. struct snd_ctl_elem_info *uinfo)
  21117. {
  21118. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21119. uinfo->count = sizeof(struct source_tracking_param);
  21120. return 0;
  21121. }
  21122. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21123. struct snd_ctl_elem_value *ucontrol)
  21124. {
  21125. int ret = 0;
  21126. struct source_tracking_param sourceTrackingData;
  21127. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21128. ret = voc_get_source_tracking(&sourceTrackingData);
  21129. if (ret) {
  21130. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21131. __func__, ret);
  21132. ret = -EINVAL;
  21133. goto done;
  21134. }
  21135. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21136. sizeof(struct source_tracking_param));
  21137. done:
  21138. return ret;
  21139. }
  21140. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21141. int *copp_idx)
  21142. {
  21143. int i, idx, be_idx;
  21144. int ret = 0;
  21145. unsigned long copp;
  21146. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21147. ret = q6audio_validate_port(port_id);
  21148. if (ret < 0) {
  21149. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21150. __func__, port_id, ret);
  21151. ret = -EINVAL;
  21152. goto done;
  21153. }
  21154. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21155. if (msm_bedais[be_idx].port_id == port_id)
  21156. break;
  21157. }
  21158. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21159. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21160. ret = -EINVAL;
  21161. goto done;
  21162. }
  21163. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21164. MSM_FRONTEND_DAI_MAX) {
  21165. if (!(is_mm_lsm_fe_id(i) &&
  21166. route_check_fe_id_adm_support(i)))
  21167. continue;
  21168. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21169. copp = session_copp_map[i]
  21170. [session_type][be_idx];
  21171. if (test_bit(idx, &copp))
  21172. break;
  21173. }
  21174. if (idx >= MAX_COPPS_PER_PORT)
  21175. continue;
  21176. else
  21177. break;
  21178. }
  21179. if (i >= MSM_FRONTEND_DAI_MAX) {
  21180. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21181. ret = -EINVAL;
  21182. goto done;
  21183. }
  21184. *copp_idx = idx;
  21185. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21186. done:
  21187. return ret;
  21188. }
  21189. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21190. const char *prefix, int *port_id)
  21191. {
  21192. int ret = 0;
  21193. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21194. /*
  21195. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21196. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21197. * and compare the string with the backend name to derive the port id.
  21198. */
  21199. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21200. "SLIMBUS_0")) {
  21201. *port_id = SLIMBUS_0_TX;
  21202. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21203. "TERT_MI2S")) {
  21204. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21205. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21206. "INT3_MI2S")) {
  21207. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21208. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21209. "VA_CDC_DMA_TX_0")) {
  21210. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21211. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21212. "TX_CDC_DMA_TX_3")) {
  21213. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21214. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21215. "QUIN_TDM_TX_0")) {
  21216. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21217. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21218. "PRIMARY_TDM")) {
  21219. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21220. } else {
  21221. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21222. __func__, kcontrol->id.name);
  21223. ret = -EINVAL;
  21224. goto done;
  21225. }
  21226. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21227. __func__, kcontrol->id.name, *port_id);
  21228. done:
  21229. return ret;
  21230. }
  21231. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21232. struct snd_ctl_elem_value *ucontrol)
  21233. {
  21234. int ret = 0;
  21235. struct sound_focus_param soundFocusData;
  21236. int port_id, copp_idx;
  21237. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21238. "Sound Focus Audio Tx ", &port_id);
  21239. if (ret != 0) {
  21240. pr_err("%s: Error in deriving port id, err=%d\n",
  21241. __func__, ret);
  21242. ret = -EINVAL;
  21243. goto done;
  21244. }
  21245. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21246. &copp_idx);
  21247. if (ret) {
  21248. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21249. __func__, port_id);
  21250. ret = -EINVAL;
  21251. goto done;
  21252. }
  21253. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21254. sizeof(struct sound_focus_param));
  21255. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21256. if (ret) {
  21257. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21258. __func__, ret);
  21259. ret = -EINVAL;
  21260. goto done;
  21261. }
  21262. done:
  21263. return ret;
  21264. }
  21265. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21266. struct snd_ctl_elem_value *ucontrol)
  21267. {
  21268. int ret = 0;
  21269. struct sound_focus_param soundFocusData;
  21270. int port_id, copp_idx;
  21271. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21272. "Sound Focus Audio Tx ", &port_id);
  21273. if (ret) {
  21274. pr_err("%s: Error in deriving port id, err=%d\n",
  21275. __func__, ret);
  21276. ret = -EINVAL;
  21277. goto done;
  21278. }
  21279. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21280. &copp_idx);
  21281. if (ret) {
  21282. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21283. __func__, port_id);
  21284. ret = -EINVAL;
  21285. goto done;
  21286. }
  21287. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21288. if (ret) {
  21289. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21290. __func__, ret);
  21291. ret = -EINVAL;
  21292. goto done;
  21293. }
  21294. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21295. sizeof(struct sound_focus_param));
  21296. done:
  21297. return ret;
  21298. }
  21299. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21300. struct snd_ctl_elem_value *ucontrol)
  21301. {
  21302. int ret = 0;
  21303. struct source_tracking_param sourceTrackingData;
  21304. int port_id, copp_idx;
  21305. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21306. "Source Tracking Audio Tx ", &port_id);
  21307. if (ret) {
  21308. pr_err("%s: Error in deriving port id, err=%d\n",
  21309. __func__, ret);
  21310. ret = -EINVAL;
  21311. goto done;
  21312. }
  21313. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21314. &copp_idx);
  21315. if (ret) {
  21316. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21317. __func__, port_id);
  21318. ret = -EINVAL;
  21319. goto done;
  21320. }
  21321. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21322. if (ret) {
  21323. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21324. __func__, ret);
  21325. ret = -EINVAL;
  21326. goto done;
  21327. }
  21328. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21329. sizeof(struct source_tracking_param));
  21330. done:
  21331. return ret;
  21332. }
  21333. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21334. struct snd_ctl_elem_info *uinfo)
  21335. {
  21336. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21337. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21338. return 0;
  21339. }
  21340. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21341. struct snd_ctl_elem_value *ucontrol)
  21342. {
  21343. int ret = 0;
  21344. struct doa_tracking_mon_param doa_tracking_data;
  21345. int port_id, copp_idx;
  21346. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21347. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21348. "Doa Tracking Monitor Listen ", &port_id);
  21349. if (ret) {
  21350. pr_err("%s: Error in deriving port id, err=%d\n",
  21351. __func__, ret);
  21352. ret = -EINVAL;
  21353. goto done;
  21354. }
  21355. /*
  21356. * If copp id exists for given port id, query adm to get doa data.
  21357. * Else query afe for doa tracking params.
  21358. * This is to support in cases where LSM directly connects to
  21359. * AFE for FFNS.
  21360. */
  21361. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21362. &copp_idx);
  21363. if (!ret)
  21364. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21365. &doa_tracking_data);
  21366. else
  21367. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21368. if (ret) {
  21369. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21370. __func__, ret);
  21371. ret = -EINVAL;
  21372. goto done;
  21373. }
  21374. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21375. sizeof(struct doa_tracking_mon_param));
  21376. done:
  21377. return ret;
  21378. }
  21379. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21380. {
  21381. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21382. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21383. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21384. .info = msm_sound_focus_info,
  21385. .get = msm_voice_sound_focus_get,
  21386. .put = msm_voice_sound_focus_put,
  21387. },
  21388. {
  21389. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21390. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21391. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21392. .info = msm_source_tracking_info,
  21393. .get = msm_voice_source_tracking_get,
  21394. },
  21395. {
  21396. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21397. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21398. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21399. .info = msm_sound_focus_info,
  21400. .get = msm_audio_sound_focus_get,
  21401. .put = msm_audio_sound_focus_put,
  21402. },
  21403. {
  21404. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21405. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21406. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21407. .info = msm_source_tracking_info,
  21408. .get = msm_audio_source_tracking_get,
  21409. },
  21410. {
  21411. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21412. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21413. .name = "Sound Focus Voice Tx TERT_MI2S",
  21414. .info = msm_sound_focus_info,
  21415. .get = msm_voice_sound_focus_get,
  21416. .put = msm_voice_sound_focus_put,
  21417. },
  21418. {
  21419. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21420. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21421. .name = "Source Tracking Voice Tx TERT_MI2S",
  21422. .info = msm_source_tracking_info,
  21423. .get = msm_voice_source_tracking_get,
  21424. },
  21425. {
  21426. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21427. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21428. .name = "Sound Focus Audio Tx TERT_MI2S",
  21429. .info = msm_sound_focus_info,
  21430. .get = msm_audio_sound_focus_get,
  21431. .put = msm_audio_sound_focus_put,
  21432. },
  21433. {
  21434. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21435. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21436. .name = "Source Tracking Audio Tx TERT_MI2S",
  21437. .info = msm_source_tracking_info,
  21438. .get = msm_audio_source_tracking_get,
  21439. },
  21440. {
  21441. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21442. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21443. .name = "Sound Focus Voice Tx INT3_MI2S",
  21444. .info = msm_sound_focus_info,
  21445. .get = msm_voice_sound_focus_get,
  21446. .put = msm_voice_sound_focus_put,
  21447. },
  21448. {
  21449. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21450. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21451. .name = "Source Tracking Voice Tx INT3_MI2S",
  21452. .info = msm_source_tracking_info,
  21453. .get = msm_voice_source_tracking_get,
  21454. },
  21455. {
  21456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21457. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21458. .name = "Sound Focus Audio Tx INT3_MI2S",
  21459. .info = msm_sound_focus_info,
  21460. .get = msm_audio_sound_focus_get,
  21461. .put = msm_audio_sound_focus_put,
  21462. },
  21463. {
  21464. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21465. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21466. .name = "Source Tracking Audio Tx INT3_MI2S",
  21467. .info = msm_source_tracking_info,
  21468. .get = msm_audio_source_tracking_get,
  21469. },
  21470. {
  21471. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21472. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21473. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21474. .info = msm_sound_focus_info,
  21475. .get = msm_voice_sound_focus_get,
  21476. .put = msm_voice_sound_focus_put,
  21477. },
  21478. {
  21479. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21480. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21481. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21482. .info = msm_source_tracking_info,
  21483. .get = msm_voice_source_tracking_get,
  21484. },
  21485. {
  21486. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21488. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21489. .info = msm_sound_focus_info,
  21490. .get = msm_audio_sound_focus_get,
  21491. .put = msm_audio_sound_focus_put,
  21492. },
  21493. {
  21494. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21495. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21496. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21497. .info = msm_source_tracking_info,
  21498. .get = msm_audio_source_tracking_get,
  21499. },
  21500. {
  21501. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21503. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21504. .info = msm_sound_focus_info,
  21505. .get = msm_voice_sound_focus_get,
  21506. .put = msm_voice_sound_focus_put,
  21507. },
  21508. {
  21509. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21510. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21511. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21512. .info = msm_source_tracking_info,
  21513. .get = msm_voice_source_tracking_get,
  21514. },
  21515. {
  21516. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21517. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21518. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21519. .info = msm_sound_focus_info,
  21520. .get = msm_audio_sound_focus_get,
  21521. .put = msm_audio_sound_focus_put,
  21522. },
  21523. {
  21524. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21525. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21526. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21527. .info = msm_source_tracking_info,
  21528. .get = msm_audio_source_tracking_get,
  21529. },
  21530. {
  21531. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21533. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21534. .info = msm_sound_focus_info,
  21535. .get = msm_voice_sound_focus_get,
  21536. .put = msm_voice_sound_focus_put,
  21537. },
  21538. {
  21539. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21540. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21541. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21542. .info = msm_source_tracking_info,
  21543. .get = msm_voice_source_tracking_get,
  21544. },
  21545. {
  21546. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21548. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21549. .info = msm_sound_focus_info,
  21550. .get = msm_audio_sound_focus_get,
  21551. .put = msm_audio_sound_focus_put,
  21552. },
  21553. {
  21554. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21555. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21556. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21557. .info = msm_source_tracking_info,
  21558. .get = msm_audio_source_tracking_get,
  21559. },
  21560. {
  21561. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21562. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21563. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21564. .info = msm_sound_focus_info,
  21565. .get = msm_audio_sound_focus_get,
  21566. .put = msm_audio_sound_focus_put,
  21567. },
  21568. {
  21569. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21570. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21571. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21572. .info = msm_source_tracking_info,
  21573. .get = msm_audio_source_tracking_get,
  21574. },
  21575. {
  21576. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21577. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21578. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21579. .info = msm_doa_tracking_mon_info,
  21580. .get = msm_doa_tracking_mon_get,
  21581. },
  21582. };
  21583. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21584. struct snd_ctl_elem_value *ucontrol)
  21585. {
  21586. int ret = 0;
  21587. int item;
  21588. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21589. pr_debug("%s item is %d\n", __func__,
  21590. ucontrol->value.enumerated.item[0]);
  21591. mutex_lock(&routing_lock);
  21592. item = ucontrol->value.enumerated.item[0];
  21593. if (item < e->items) {
  21594. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21595. __func__, e->shift_l, e->values[item]);
  21596. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21597. e->values[item] < MSM_BACKEND_DAI_MAX)
  21598. /* Enable feedback TX path */
  21599. ret = afe_spk_prot_feed_back_cfg(
  21600. msm_bedais[e->values[item]].port_id,
  21601. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21602. else {
  21603. pr_debug("%s values are out of range item %d\n",
  21604. __func__, e->values[item]);
  21605. /* Disable feedback TX path */
  21606. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21607. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21608. else
  21609. ret = -EINVAL;
  21610. }
  21611. } else {
  21612. pr_err("%s item value is out of range item\n", __func__);
  21613. ret = -EINVAL;
  21614. }
  21615. mutex_unlock(&routing_lock);
  21616. return ret;
  21617. }
  21618. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21619. struct snd_ctl_elem_value *ucontrol)
  21620. {
  21621. int ret = 0;
  21622. int item;
  21623. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21624. pr_debug("%s item is %d\n", __func__,
  21625. ucontrol->value.enumerated.item[0]);
  21626. mutex_lock(&routing_lock);
  21627. item = ucontrol->value.enumerated.item[0];
  21628. if (item < e->items) {
  21629. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21630. __func__, e->shift_l, e->values[item]);
  21631. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21632. e->values[item] < MSM_BACKEND_DAI_MAX)
  21633. /* Enable feedback TX path */
  21634. ret = afe_spk_prot_feed_back_cfg(
  21635. msm_bedais[e->values[item]].port_id,
  21636. msm_bedais[e->shift_l].port_id,
  21637. 1, 1, 1);
  21638. else {
  21639. pr_debug("%s values are out of range item %d\n",
  21640. __func__, e->values[item]);
  21641. /* Disable feedback TX path */
  21642. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21643. ret = afe_spk_prot_feed_back_cfg(0,
  21644. 0, 0, 0, 0);
  21645. else
  21646. ret = -EINVAL;
  21647. }
  21648. } else {
  21649. pr_err("%s item value is out of range item\n", __func__);
  21650. ret = -EINVAL;
  21651. }
  21652. mutex_unlock(&routing_lock);
  21653. return ret;
  21654. }
  21655. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21656. struct snd_ctl_elem_value *ucontrol)
  21657. {
  21658. pr_debug("%s\n", __func__);
  21659. return 0;
  21660. }
  21661. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21662. struct snd_ctl_elem_value *ucontrol)
  21663. {
  21664. pr_debug("%s\n", __func__);
  21665. ucontrol->value.enumerated.item[0] = 0;
  21666. return 0;
  21667. }
  21668. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21669. "ZERO", "SLIM4_TX"
  21670. };
  21671. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21672. "ZERO", "SLIM4_TX"
  21673. };
  21674. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21675. "ZERO", "WSA_CDC_DMA_TX_0"
  21676. };
  21677. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21678. "ZERO", "WSA_CDC_DMA_TX_0"
  21679. };
  21680. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21681. "ZERO", "SENARY_TX"
  21682. };
  21683. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21684. "ZERO", "INT5_MI2S_TX"
  21685. };
  21686. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21687. "ZERO", "INT5_MI2S_TX"
  21688. };
  21689. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21690. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21691. };
  21692. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21693. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21694. };
  21695. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21696. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21697. };
  21698. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21699. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21700. };
  21701. static const int mi2s_rx_vi_fb_tx_value[] = {
  21702. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21703. };
  21704. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21705. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21706. };
  21707. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21708. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21709. };
  21710. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21711. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21712. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21713. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21714. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21715. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21716. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21717. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21718. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21719. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21720. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21721. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21722. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21723. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21724. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21725. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21726. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21727. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21728. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21729. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21730. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21731. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21732. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21733. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21734. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21735. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21736. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21737. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21738. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21739. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21740. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21741. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21742. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21743. spkr_prot_put_vi_lch_port);
  21744. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21745. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21746. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21747. spkr_prot_put_vi_rch_port);
  21748. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21749. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21750. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21751. spkr_prot_put_vi_lch_port);
  21752. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21753. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21754. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21755. spkr_prot_put_vi_rch_port);
  21756. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21757. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21758. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21759. spkr_prot_put_vi_lch_port);
  21760. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21761. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21762. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21763. spkr_prot_put_vi_lch_port);
  21764. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21765. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21766. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21767. spkr_prot_put_vi_rch_port);
  21768. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21769. /* Frontend AIF */
  21770. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21771. * Stream name must contains substring of front-end dai name
  21772. */
  21773. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21774. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21775. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21776. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21777. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21778. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21779. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21780. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21781. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21782. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21783. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21784. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21785. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21786. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21787. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21788. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21789. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21790. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21791. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  21792. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21793. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21794. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21795. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21796. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21797. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21798. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21799. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  21800. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  21801. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  21802. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  21803. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  21804. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  21805. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  21806. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  21807. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  21808. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  21809. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  21810. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  21811. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  21812. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  21813. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  21814. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  21815. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  21816. "VoiceMMode1 Playback", 0, 0, 0, 0),
  21817. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  21818. "VoiceMMode1 Capture", 0, 0, 0, 0),
  21819. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  21820. "VoiceMMode2 Playback", 0, 0, 0, 0),
  21821. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  21822. "VoiceMMode2 Capture", 0, 0, 0, 0),
  21823. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  21824. 0, 0, 0, 0),
  21825. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21826. 0, 0, 0, 0),
  21827. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21828. 0, 0, 0, 0),
  21829. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21830. 0, 0, 0, 0),
  21831. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21832. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21833. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21834. 0, 0, 0, 0),
  21835. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21836. 0, 0, 0, 0),
  21837. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21838. 0, 0, 0, 0),
  21839. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21840. 0, 0, 0, 0),
  21841. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21842. 0, 0, 0, 0),
  21843. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21844. 0, 0, 0, 0),
  21845. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21846. 0, 0, 0, 0),
  21847. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21848. 0, 0, 0, 0),
  21849. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21850. 0, 0, 0, 0),
  21851. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21852. 0, 0, 0, 0),
  21853. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21854. 0, 0, 0, 0),
  21855. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21856. 0, 0, 0, 0),
  21857. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21858. 0, 0, 0, 0),
  21859. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21860. 0, 0, 0, 0),
  21861. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21862. 0, 0, 0, 0),
  21863. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21864. 0, 0, 0, 0),
  21865. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21866. 0, 0, 0, 0),
  21867. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21868. 0, 0, 0, 0),
  21869. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21870. 0, 0, 0, 0),
  21871. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21872. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21873. 0, 0, 0, 0),
  21874. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21875. "INT0 MI2S_RX Hostless Playback",
  21876. 0, 0, 0, 0),
  21877. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21878. "INT4 MI2S_RX Hostless Playback",
  21879. 0, 0, 0, 0),
  21880. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21881. "Primary MI2S_RX Hostless Playback",
  21882. 0, 0, 0, 0),
  21883. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21884. "Secondary MI2S_RX Hostless Playback",
  21885. 0, 0, 0, 0),
  21886. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21887. "Tertiary MI2S_RX Hostless Playback",
  21888. 0, 0, 0, 0),
  21889. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21890. "Quaternary MI2S_RX Hostless Playback",
  21891. 0, 0, 0, 0),
  21892. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21893. "Quinary MI2S_RX Hostless Playback",
  21894. 0, 0, 0, 0),
  21895. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21896. "Senary MI2S_RX Hostless Playback",
  21897. 0, 0, 0, 0),
  21898. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21899. 0, 0, 0, 0),
  21900. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21901. 0, 0, 0, 0),
  21902. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21903. 0, 0, 0, 0),
  21904. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21905. 0, 0, 0, 0),
  21906. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21907. 0, 0, 0, 0),
  21908. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21909. "INT3 MI2S_TX Hostless Capture",
  21910. 0, 0, 0, 0),
  21911. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21912. "Tertiary MI2S_TX Hostless Capture",
  21913. 0, 0, 0, 0),
  21914. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21915. "Secondary MI2S_TX Hostless Capture",
  21916. 0, 0, 0, 0),
  21917. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21918. "Primary MI2S_TX Hostless Capture",
  21919. 0, 0, 0, 0),
  21920. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21921. 0, 0, 0, 0),
  21922. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21923. 0, 0, 0, 0),
  21924. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21925. "Quaternary MI2S_TX Hostless Capture",
  21926. 0, 0, 0, 0),
  21927. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21928. "Quinary MI2S_TX Hostless Capture",
  21929. 0, 0, 0, 0),
  21930. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21931. "Senary MI2S_TX Hostless Capture",
  21932. 0, 0, 0, 0),
  21933. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21934. "Primary TDM0 Hostless Playback",
  21935. 0, 0, 0, 0),
  21936. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21937. "Primary TDM0 Hostless Capture",
  21938. 0, 0, 0, 0),
  21939. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21940. "Primary TDM1 Hostless Playback",
  21941. 0, 0, 0, 0),
  21942. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21943. "Primary TDM1 Hostless Capture",
  21944. 0, 0, 0, 0),
  21945. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21946. "Primary TDM2 Hostless Playback",
  21947. 0, 0, 0, 0),
  21948. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21949. "Primary TDM2 Hostless Capture",
  21950. 0, 0, 0, 0),
  21951. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21952. "Primary TDM3 Hostless Playback",
  21953. 0, 0, 0, 0),
  21954. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21955. "Primary TDM3 Hostless Capture",
  21956. 0, 0, 0, 0),
  21957. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21958. "Primary TDM4 Hostless Playback",
  21959. 0, 0, 0, 0),
  21960. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21961. "Primary TDM4 Hostless Capture",
  21962. 0, 0, 0, 0),
  21963. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21964. "Primary TDM5 Hostless Playback",
  21965. 0, 0, 0, 0),
  21966. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21967. "Primary TDM5 Hostless Capture",
  21968. 0, 0, 0, 0),
  21969. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21970. "Primary TDM6 Hostless Playback",
  21971. 0, 0, 0, 0),
  21972. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21973. "Primary TDM6 Hostless Capture",
  21974. 0, 0, 0, 0),
  21975. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21976. "Primary TDM7 Hostless Playback",
  21977. 0, 0, 0, 0),
  21978. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21979. "Primary TDM7 Hostless Capture",
  21980. 0, 0, 0, 0),
  21981. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21982. "Secondary TDM0 Hostless Playback",
  21983. 0, 0, 0, 0),
  21984. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21985. "Secondary TDM0 Hostless Capture",
  21986. 0, 0, 0, 0),
  21987. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21988. "Secondary TDM1 Hostless Playback",
  21989. 0, 0, 0, 0),
  21990. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  21991. "Secondary TDM1 Hostless Capture",
  21992. 0, 0, 0, 0),
  21993. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  21994. "Secondary TDM2 Hostless Playback",
  21995. 0, 0, 0, 0),
  21996. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  21997. "Secondary TDM2 Hostless Capture",
  21998. 0, 0, 0, 0),
  21999. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22000. "Secondary TDM3 Hostless Playback",
  22001. 0, 0, 0, 0),
  22002. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22003. "Secondary TDM3 Hostless Capture",
  22004. 0, 0, 0, 0),
  22005. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22006. "Secondary TDM4 Hostless Playback",
  22007. 0, 0, 0, 0),
  22008. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22009. "Secondary TDM4 Hostless Capture",
  22010. 0, 0, 0, 0),
  22011. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22012. "Secondary TDM5 Hostless Playback",
  22013. 0, 0, 0, 0),
  22014. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22015. "Secondary TDM5 Hostless Capture",
  22016. 0, 0, 0, 0),
  22017. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22018. "Secondary TDM6 Hostless Playback",
  22019. 0, 0, 0, 0),
  22020. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22021. "Secondary TDM6 Hostless Capture",
  22022. 0, 0, 0, 0),
  22023. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22024. "Secondary TDM7 Hostless Playback",
  22025. 0, 0, 0, 0),
  22026. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22027. "Secondary TDM7 Hostless Capture",
  22028. 0, 0, 0, 0),
  22029. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22030. "Tertiary TDM0 Hostless Playback",
  22031. 0, 0, 0, 0),
  22032. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22033. "Tertiary TDM0 Hostless Capture",
  22034. 0, 0, 0, 0),
  22035. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22036. "Tertiary TDM1 Hostless Playback",
  22037. 0, 0, 0, 0),
  22038. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22039. "Tertiary TDM1 Hostless Capture",
  22040. 0, 0, 0, 0),
  22041. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22042. "Tertiary TDM2 Hostless Playback",
  22043. 0, 0, 0, 0),
  22044. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22045. "Tertiary TDM2 Hostless Capture",
  22046. 0, 0, 0, 0),
  22047. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22048. "Tertiary TDM3 Hostless Playback",
  22049. 0, 0, 0, 0),
  22050. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22051. "Tertiary TDM3 Hostless Capture",
  22052. 0, 0, 0, 0),
  22053. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22054. "Tertiary TDM4 Hostless Playback",
  22055. 0, 0, 0, 0),
  22056. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22057. "Tertiary TDM4 Hostless Capture",
  22058. 0, 0, 0, 0),
  22059. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22060. "Tertiary TDM5 Hostless Playback",
  22061. 0, 0, 0, 0),
  22062. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22063. "Tertiary TDM5 Hostless Capture",
  22064. 0, 0, 0, 0),
  22065. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22066. "Tertiary TDM6 Hostless Playback",
  22067. 0, 0, 0, 0),
  22068. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22069. "Tertiary TDM6 Hostless Capture",
  22070. 0, 0, 0, 0),
  22071. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22072. "Tertiary TDM7 Hostless Playback",
  22073. 0, 0, 0, 0),
  22074. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22075. "Tertiary TDM7 Hostless Capture",
  22076. 0, 0, 0, 0),
  22077. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22078. "Quaternary TDM0 Hostless Playback",
  22079. 0, 0, 0, 0),
  22080. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22081. "Quaternary TDM0 Hostless Capture",
  22082. 0, 0, 0, 0),
  22083. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22084. "Quaternary TDM1 Hostless Playback",
  22085. 0, 0, 0, 0),
  22086. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22087. "Quaternary TDM1 Hostless Capture",
  22088. 0, 0, 0, 0),
  22089. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22090. "Quaternary TDM2 Hostless Playback",
  22091. 0, 0, 0, 0),
  22092. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22093. "Quaternary TDM2 Hostless Capture",
  22094. 0, 0, 0, 0),
  22095. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22096. "Quaternary TDM3 Hostless Playback",
  22097. 0, 0, 0, 0),
  22098. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22099. "Quaternary TDM3 Hostless Capture",
  22100. 0, 0, 0, 0),
  22101. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22102. "Quaternary TDM4 Hostless Playback",
  22103. 0, 0, 0, 0),
  22104. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22105. "Quaternary TDM4 Hostless Capture",
  22106. 0, 0, 0, 0),
  22107. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22108. "Quaternary TDM5 Hostless Playback",
  22109. 0, 0, 0, 0),
  22110. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22111. "Quaternary TDM5 Hostless Capture",
  22112. 0, 0, 0, 0),
  22113. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22114. "Quaternary TDM6 Hostless Playback",
  22115. 0, 0, 0, 0),
  22116. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22117. "Quaternary TDM6 Hostless Capture",
  22118. 0, 0, 0, 0),
  22119. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22120. "Quaternary TDM7 Hostless Playback",
  22121. 0, 0, 0, 0),
  22122. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22123. "Quaternary TDM7 Hostless Capture",
  22124. 0, 0, 0, 0),
  22125. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22126. "Quinary TDM0 Hostless Playback",
  22127. 0, 0, 0, 0),
  22128. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22129. "Quinary TDM0 Hostless Capture",
  22130. 0, 0, 0, 0),
  22131. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22132. "Quinary TDM1 Hostless Playback",
  22133. 0, 0, 0, 0),
  22134. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22135. "Quinary TDM1 Hostless Capture",
  22136. 0, 0, 0, 0),
  22137. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22138. "Quinary TDM2 Hostless Playback",
  22139. 0, 0, 0, 0),
  22140. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22141. "Quinary TDM2 Hostless Capture",
  22142. 0, 0, 0, 0),
  22143. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22144. "Quinary TDM3 Hostless Playback",
  22145. 0, 0, 0, 0),
  22146. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22147. "Quinary TDM3 Hostless Capture",
  22148. 0, 0, 0, 0),
  22149. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22150. "Quinary TDM4 Hostless Playback",
  22151. 0, 0, 0, 0),
  22152. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22153. "Quinary TDM4 Hostless Capture",
  22154. 0, 0, 0, 0),
  22155. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22156. "Quinary TDM5 Hostless Playback",
  22157. 0, 0, 0, 0),
  22158. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22159. "Quinary TDM5 Hostless Capture",
  22160. 0, 0, 0, 0),
  22161. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22162. "Quinary TDM6 Hostless Playback",
  22163. 0, 0, 0, 0),
  22164. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22165. "Quinary TDM6 Hostless Capture",
  22166. 0, 0, 0, 0),
  22167. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22168. "Quinary TDM7 Hostless Playback",
  22169. 0, 0, 0, 0),
  22170. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22171. "Quinary TDM7 Hostless Capture",
  22172. 0, 0, 0, 0),
  22173. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22174. "Senary TDM0 Hostless Playback",
  22175. 0, 0, 0, 0),
  22176. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22177. "Senary TDM0 Hostless Capture",
  22178. 0, 0, 0, 0),
  22179. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22180. "Senary TDM1 Hostless Playback",
  22181. 0, 0, 0, 0),
  22182. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22183. "Senary TDM1 Hostless Capture",
  22184. 0, 0, 0, 0),
  22185. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22186. "Senary TDM2 Hostless Playback",
  22187. 0, 0, 0, 0),
  22188. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22189. "Senary TDM2 Hostless Capture",
  22190. 0, 0, 0, 0),
  22191. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22192. "Senary TDM3 Hostless Playback",
  22193. 0, 0, 0, 0),
  22194. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22195. "Senary TDM3 Hostless Capture",
  22196. 0, 0, 0, 0),
  22197. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22198. "Senary TDM4 Hostless Playback",
  22199. 0, 0, 0, 0),
  22200. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22201. "Senary TDM4 Hostless Capture",
  22202. 0, 0, 0, 0),
  22203. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22204. "Senary TDM5 Hostless Playback",
  22205. 0, 0, 0, 0),
  22206. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22207. "Senary TDM5 Hostless Capture",
  22208. 0, 0, 0, 0),
  22209. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22210. "Senary TDM6 Hostless Playback",
  22211. 0, 0, 0, 0),
  22212. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22213. "Senary TDM6 Hostless Capture",
  22214. 0, 0, 0, 0),
  22215. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22216. "Senary TDM7 Hostless Playback",
  22217. 0, 0, 0, 0),
  22218. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22219. "Senary TDM7 Hostless Capture",
  22220. 0, 0, 0, 0),
  22221. /* LSM */
  22222. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22223. 0, 0, 0, 0),
  22224. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22225. 0, 0, 0, 0),
  22226. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22227. 0, 0, 0, 0),
  22228. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22229. 0, 0, 0, 0),
  22230. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22231. 0, 0, 0, 0),
  22232. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22233. 0, 0, 0, 0),
  22234. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22235. 0, 0, 0, 0),
  22236. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22237. 0, 0, 0, 0),
  22238. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22239. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22240. /* Backend AIF */
  22241. /* Stream name equals to backend dai link stream name */
  22242. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22243. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22244. 0, 0, 0, 0),
  22245. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22246. 0, 0, 0, 0),
  22247. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22248. 0, 0, 0, 0),
  22249. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22250. 0, 0, 0, 0),
  22251. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22252. 0, 0, 0, 0),
  22253. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22254. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22255. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22256. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22257. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22258. 0, 0, 0, 0),
  22259. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22260. 0, 0, 0, 0),
  22261. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22262. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22263. 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22265. 0, 0, 0, 0),
  22266. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22267. 0, 0, 0, 0),
  22268. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22269. "Secondary MI2S Playback SD1",
  22270. 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22272. 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22274. 0, 0, 0, 0),
  22275. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22276. 0, 0, 0, 0),
  22277. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22278. 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22280. 0, 0, 0, 0),
  22281. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22282. 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22284. 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22286. 0, 0, 0, 0),
  22287. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22288. 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22290. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22292. 0, 0, 0, 0),
  22293. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22294. 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22296. 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22298. 0, 0, 0, 0),
  22299. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22300. 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22302. 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22304. 0, 0, 0, 0),
  22305. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22306. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22308. 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22310. 0, 0, 0, 0),
  22311. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22312. 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22316. 0, 0, 0, 0),
  22317. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22322. 0, 0, 0, 0),
  22323. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22328. 0, 0, 0, 0),
  22329. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22334. 0, 0, 0, 0),
  22335. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22340. 0, 0, 0, 0),
  22341. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22346. 0, 0, 0, 0),
  22347. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22348. 0, 0, 0, 0),
  22349. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22352. 0, 0, 0, 0),
  22353. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22354. 0, 0, 0, 0),
  22355. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22356. 0, 0, 0, 0),
  22357. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22358. 0, 0, 0, 0),
  22359. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22360. 0, 0, 0, 0),
  22361. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22362. 0, 0, 0, 0),
  22363. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22364. 0, 0, 0, 0),
  22365. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22366. 0, 0, 0, 0),
  22367. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22368. 0, 0, 0, 0),
  22369. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22370. 0, 0, 0, 0),
  22371. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22372. 0, 0, 0, 0),
  22373. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22374. 0, 0, 0, 0),
  22375. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22376. 0, 0, 0, 0),
  22377. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22378. 0, 0, 0, 0),
  22379. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22380. 0, 0, 0, 0),
  22381. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22382. 0, 0, 0, 0),
  22383. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22384. 0, 0, 0, 0),
  22385. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22386. 0, 0, 0, 0),
  22387. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22388. 0, 0, 0, 0),
  22389. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22390. 0, 0, 0, 0),
  22391. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22392. 0, 0, 0, 0),
  22393. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22394. 0, 0, 0, 0),
  22395. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22396. 0, 0, 0, 0),
  22397. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22398. 0, 0, 0, 0),
  22399. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22400. 0, 0, 0, 0),
  22401. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22402. 0, 0, 0, 0),
  22403. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22404. 0, 0, 0, 0),
  22405. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22406. 0, 0, 0, 0),
  22407. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22408. 0, 0, 0, 0),
  22409. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22410. 0, 0, 0, 0),
  22411. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22412. 0, 0, 0, 0),
  22413. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22414. 0, 0, 0, 0),
  22415. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22418. 0, 0, 0, 0),
  22419. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22420. 0, 0, 0, 0),
  22421. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22424. 0, 0, 0, 0),
  22425. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22426. 0, 0, 0, 0),
  22427. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22430. 0, 0, 0, 0),
  22431. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22432. 0, 0, 0, 0),
  22433. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22434. 0, 0, 0, 0),
  22435. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22436. 0, 0, 0, 0),
  22437. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22438. 0, 0, 0, 0),
  22439. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22440. 0, 0, 0, 0),
  22441. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22442. 0, 0, 0, 0),
  22443. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22444. 0, 0, 0, 0),
  22445. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22448. 0, 0, 0, 0),
  22449. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22450. 0, 0, 0, 0),
  22451. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22454. 0, 0, 0, 0),
  22455. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22456. 0, 0, 0, 0),
  22457. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22460. 0, 0, 0, 0),
  22461. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22462. 0, 0, 0, 0),
  22463. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22466. 0, 0, 0, 0),
  22467. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22468. 0, 0, 0, 0),
  22469. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22472. 0, 0, 0, 0),
  22473. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22474. 0, 0, 0, 0),
  22475. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22478. 0, 0, 0, 0),
  22479. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22480. 0, 0, 0, 0),
  22481. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22484. 0, 0, 0, 0),
  22485. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22490. 0, 0, 0, 0),
  22491. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22496. 0, 0, 0, 0),
  22497. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22498. 0, 0, 0, 0),
  22499. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22502. 0, 0, 0, 0),
  22503. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22504. 0, 0, 0, 0),
  22505. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22506. 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22508. 0, 0, 0, 0),
  22509. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22510. 0, 0, 0, 0),
  22511. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22514. 0, 0, 0, 0),
  22515. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22516. 0, 0, 0, 0),
  22517. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22520. 0, 0, 0, 0),
  22521. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22526. 0, 0, 0, 0),
  22527. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22528. 0, 0, 0, 0),
  22529. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22532. 0, 0, 0, 0),
  22533. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22534. 0, 0, 0, 0),
  22535. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22538. 0, 0, 0, 0),
  22539. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22540. 0, 0, 0, 0),
  22541. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22544. 0, 0, 0, 0),
  22545. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22546. 0, 0, 0, 0),
  22547. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22548. 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22550. 0, 0, 0, 0),
  22551. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22552. 0, 0, 0, 0),
  22553. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22554. 0, 0, 0, 0),
  22555. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22556. 0, 0, 0, 0),
  22557. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22558. 0, 0, 0, 0),
  22559. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22560. 0, 0, 0, 0),
  22561. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22562. 0, 0, 0, 0),
  22563. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22564. 0, 0, 0, 0),
  22565. /* incall */
  22566. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22567. 0, 0, 0, 0),
  22568. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22569. 0, 0, 0, 0),
  22570. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22571. 0, 0, 0, 0),
  22572. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22573. 0, 0, 0, 0),
  22574. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22575. 0, 0, 0, 0),
  22576. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22577. 0, 0, 0, 0),
  22578. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22579. 0, 0, 0, 0),
  22580. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22581. 0, 0, 0, 0),
  22582. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22583. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22584. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22585. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22586. 0, 0, 0, 0),
  22587. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22588. 0, 0, 0, 0),
  22589. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22590. 0, 0, 0, 0),
  22591. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22592. 0, 0, 0, 0),
  22593. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22594. 0, 0, 0, 0),
  22595. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22596. 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22598. 0, 0, 0, 0),
  22599. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22600. 0, 0, 0, 0),
  22601. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22602. 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22604. 0, 0, 0, 0),
  22605. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22606. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22607. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22608. 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22610. 0, 0, 0, 0),
  22611. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22612. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22613. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22614. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22616. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22617. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22618. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22619. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22620. /* In- call recording */
  22621. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22622. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22623. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22624. 0, 0, 0, 0),
  22625. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22626. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22627. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22628. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22629. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22630. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22631. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22632. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22633. /* Switch Definitions */
  22634. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22635. &slim_fm_switch_mixer_controls),
  22636. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22637. &slim1_fm_switch_mixer_controls),
  22638. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22639. &slim3_fm_switch_mixer_controls),
  22640. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22641. &slim4_fm_switch_mixer_controls),
  22642. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22643. &slim6_fm_switch_mixer_controls),
  22644. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22645. &pcm_rx_switch_mixer_controls),
  22646. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22647. &int0_mi2s_rx_switch_mixer_controls),
  22648. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22649. &int4_mi2s_rx_switch_mixer_controls),
  22650. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22651. &pri_mi2s_rx_switch_mixer_controls),
  22652. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22653. &sec_mi2s_rx_switch_mixer_controls),
  22654. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22655. &tert_mi2s_rx_switch_mixer_controls),
  22656. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22657. &quat_mi2s_rx_switch_mixer_controls),
  22658. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22659. &quin_mi2s_rx_switch_mixer_controls),
  22660. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22661. &sco_slim7_switch_mixer_controls),
  22662. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22663. &sen_mi2s_rx_switch_mixer_controls),
  22664. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22665. &hfp_pri_aux_switch_mixer_controls),
  22666. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22667. &hfp_aux_switch_mixer_controls),
  22668. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22669. &hfp_int_switch_mixer_controls),
  22670. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22671. &hfp_slim7_switch_mixer_controls),
  22672. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22673. &usb_switch_mixer_controls),
  22674. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22675. &a2dp_slim7_switch_mixer_controls),
  22676. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22677. &cdc_dma_wsa_switch_mixer_controls),
  22678. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22679. &cdc_dma_rx_switch_mixer_controls),
  22680. /* Mixer definitions */
  22681. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22682. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22683. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22684. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22685. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22686. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22687. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22688. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22689. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22690. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22691. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22692. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22693. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22694. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22695. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22696. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22697. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22698. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22699. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22700. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22701. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22702. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22703. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22704. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22705. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22706. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22707. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22708. quaternary_mi2s_rx_mixer_controls,
  22709. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22710. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22711. tertiary_mi2s_rx_mixer_controls,
  22712. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22713. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22714. secondary_mi2s_rx_mixer_controls,
  22715. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22716. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22717. secondary_mi2s_rx2_mixer_controls,
  22718. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22719. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22720. primary_mi2s_rx_mixer_controls,
  22721. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22722. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22723. int0_mi2s_rx_mixer_controls,
  22724. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22725. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22726. int4_mi2s_rx_mixer_controls,
  22727. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22728. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22729. quinary_mi2s_rx_mixer_controls,
  22730. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22731. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22732. senary_mi2s_rx_mixer_controls,
  22733. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22734. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22735. pri_tdm_rx_0_mixer_controls,
  22736. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22737. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22738. pri_tdm_rx_1_mixer_controls,
  22739. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22740. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22741. pri_tdm_rx_2_mixer_controls,
  22742. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22743. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22744. pri_tdm_rx_3_mixer_controls,
  22745. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22746. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22747. pri_tdm_tx_0_mixer_controls,
  22748. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22749. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22750. sec_tdm_rx_0_mixer_controls,
  22751. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22752. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22753. sec_tdm_rx_1_mixer_controls,
  22754. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22755. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22756. sec_tdm_rx_2_mixer_controls,
  22757. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22758. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22759. sec_tdm_rx_3_mixer_controls,
  22760. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22761. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22762. sec_tdm_tx_0_mixer_controls,
  22763. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22764. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22765. tert_tdm_rx_0_mixer_controls,
  22766. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22767. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22768. tert_tdm_tx_0_mixer_controls,
  22769. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22770. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22771. tert_tdm_rx_1_mixer_controls,
  22772. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22773. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22774. tert_tdm_rx_2_mixer_controls,
  22775. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22776. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22777. tert_tdm_rx_3_mixer_controls,
  22778. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22779. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22780. tert_tdm_rx_4_mixer_controls,
  22781. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22782. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22783. quat_tdm_rx_0_mixer_controls,
  22784. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22785. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22786. quat_tdm_tx_0_mixer_controls,
  22787. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22788. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22789. quat_tdm_rx_1_mixer_controls,
  22790. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22791. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22792. quat_tdm_rx_2_mixer_controls,
  22793. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22794. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22795. quat_tdm_rx_3_mixer_controls,
  22796. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22797. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22798. quin_tdm_rx_0_mixer_controls,
  22799. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  22800. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22801. quin_tdm_tx_0_mixer_controls,
  22802. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  22803. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22804. quin_tdm_rx_1_mixer_controls,
  22805. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  22806. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22807. quin_tdm_rx_2_mixer_controls,
  22808. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  22809. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22810. quin_tdm_rx_3_mixer_controls,
  22811. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  22812. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22813. sen_tdm_tx_0_mixer_controls,
  22814. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  22815. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22816. sen_tdm_rx_0_mixer_controls,
  22817. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  22818. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22819. sen_tdm_rx_1_mixer_controls,
  22820. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  22821. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22822. sen_tdm_rx_2_mixer_controls,
  22823. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  22824. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22825. sen_tdm_rx_3_mixer_controls,
  22826. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  22827. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22828. pri_meta_mi2s_rx_mixer_controls,
  22829. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  22830. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22831. sec_meta_mi2s_rx_mixer_controls,
  22832. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  22833. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22834. wsa_cdc_dma_rx_0_mixer_controls,
  22835. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22836. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22837. wsa_cdc_dma_rx_1_mixer_controls,
  22838. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22839. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22840. rx_cdc_dma_rx_0_mixer_controls,
  22841. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22842. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22843. rx_cdc_dma_rx_1_mixer_controls,
  22844. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22845. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22846. rx_cdc_dma_rx_2_mixer_controls,
  22847. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22848. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22849. rx_cdc_dma_rx_3_mixer_controls,
  22850. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22851. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22852. rx_cdc_dma_rx_4_mixer_controls,
  22853. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22854. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22855. rx_cdc_dma_rx_5_mixer_controls,
  22856. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22857. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22858. rx_cdc_dma_rx_6_mixer_controls,
  22859. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22860. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22861. rx_cdc_dma_rx_7_mixer_controls,
  22862. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22863. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22864. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22865. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22866. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22867. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22868. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22869. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22870. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22871. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22872. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22873. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22874. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22875. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22876. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22877. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22878. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22879. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22880. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22881. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22882. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22883. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22884. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22885. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22886. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22887. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22888. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22889. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22890. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22891. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22892. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22893. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  22894. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  22895. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22896. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22897. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22898. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22899. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22900. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22901. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  22902. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  22903. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22904. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22905. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22906. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22907. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22908. tert_auxpcm_rx_mixer_controls,
  22909. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22910. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22911. quat_auxpcm_rx_mixer_controls,
  22912. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22913. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22914. quin_auxpcm_rx_mixer_controls,
  22915. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22916. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22917. sen_auxpcm_rx_mixer_controls,
  22918. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22919. /* incall */
  22920. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22921. incall_music_delivery_mixer_controls,
  22922. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22923. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22924. incall_music2_delivery_mixer_controls,
  22925. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22926. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22927. slimbus_4_rx_mixer_controls,
  22928. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22929. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22930. slimbus_6_rx_mixer_controls,
  22931. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22932. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22933. usb_audio_rx_mixer_controls,
  22934. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22935. /* Voice Mixer */
  22936. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22937. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22938. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22939. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22940. SND_SOC_NOPM, 0, 0,
  22941. sec_i2s_rx_voice_mixer_controls,
  22942. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22943. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22944. SND_SOC_NOPM, 0, 0,
  22945. sec_mi2s_rx_voice_mixer_controls,
  22946. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22947. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22948. SND_SOC_NOPM, 0, 0,
  22949. slimbus_rx_voice_mixer_controls,
  22950. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22951. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22952. SND_SOC_NOPM, 0, 0,
  22953. bt_sco_rx_voice_mixer_controls,
  22954. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22955. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22956. SND_SOC_NOPM, 0, 0,
  22957. afe_pcm_rx_voice_mixer_controls,
  22958. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22959. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22960. SND_SOC_NOPM, 0, 0,
  22961. aux_pcm_rx_voice_mixer_controls,
  22962. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22963. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22964. SND_SOC_NOPM, 0, 0,
  22965. sec_aux_pcm_rx_voice_mixer_controls,
  22966. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22967. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22968. SND_SOC_NOPM, 0, 0,
  22969. tert_aux_pcm_rx_voice_mixer_controls,
  22970. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22971. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22972. SND_SOC_NOPM, 0, 0,
  22973. quat_aux_pcm_rx_voice_mixer_controls,
  22974. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22975. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22976. SND_SOC_NOPM, 0, 0,
  22977. quin_aux_pcm_rx_voice_mixer_controls,
  22978. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22979. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22980. SND_SOC_NOPM, 0, 0,
  22981. sen_aux_pcm_rx_voice_mixer_controls,
  22982. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22983. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22984. SND_SOC_NOPM, 0, 0,
  22985. hdmi_rx_voice_mixer_controls,
  22986. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22987. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22988. SND_SOC_NOPM, 0, 0,
  22989. mi2s_rx_voice_mixer_controls,
  22990. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  22991. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  22992. SND_SOC_NOPM, 0, 0,
  22993. pri_mi2s_rx_voice_mixer_controls,
  22994. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  22995. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  22996. SND_SOC_NOPM, 0, 0,
  22997. int0_mi2s_rx_voice_mixer_controls,
  22998. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  22999. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23000. SND_SOC_NOPM, 0, 0,
  23001. int4_mi2s_rx_voice_mixer_controls,
  23002. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23003. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23004. SND_SOC_NOPM, 0, 0,
  23005. tert_mi2s_rx_voice_mixer_controls,
  23006. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23007. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23008. SND_SOC_NOPM, 0, 0,
  23009. quat_mi2s_rx_voice_mixer_controls,
  23010. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23011. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23012. SND_SOC_NOPM, 0, 0,
  23013. quin_mi2s_rx_voice_mixer_controls,
  23014. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23015. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23016. SND_SOC_NOPM, 0, 0,
  23017. pri_tdm_rx_0_voice_mixer_controls,
  23018. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23019. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23020. SND_SOC_NOPM, 0, 0,
  23021. pri_tdm_rx_1_voice_mixer_controls,
  23022. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23023. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23024. SND_SOC_NOPM, 0, 0,
  23025. pri_tdm_rx_2_voice_mixer_controls,
  23026. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23027. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23028. SND_SOC_NOPM, 0, 0,
  23029. pri_tdm_rx_3_voice_mixer_controls,
  23030. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23031. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23032. SND_SOC_NOPM, 0, 0,
  23033. sen_mi2s_rx_voice_mixer_controls,
  23034. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23035. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23036. SND_SOC_NOPM, 0, 0,
  23037. quat_tdm_rx_2_voice_mixer_controls,
  23038. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23039. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23040. SND_SOC_NOPM, 0, 0,
  23041. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23042. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23043. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23044. SND_SOC_NOPM, 0, 0,
  23045. rx_cdc_dma_rx_0_voice_mixer_controls,
  23046. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23047. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23048. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23049. ARRAY_SIZE(tx_voip_mixer_controls)),
  23050. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23051. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23052. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23053. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23054. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23055. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23056. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23057. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23058. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23059. int_bt_a2dp_rx_mixer_controls,
  23060. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23061. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23062. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23063. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23064. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23065. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23066. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23067. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23068. tx_voice2_stub_mixer_controls,
  23069. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23070. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23071. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23072. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23073. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23074. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23075. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23076. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23077. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23078. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23079. SND_SOC_NOPM, 0, 0,
  23080. slimbus_6_rx_voice_mixer_controls,
  23081. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23082. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23083. slimbus_7_rx_voice_mixer_controls,
  23084. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23085. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23086. slimbus_8_rx_voice_mixer_controls,
  23087. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23088. /* port mixer */
  23089. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23090. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23091. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23092. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23093. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23094. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23095. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23096. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23097. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23098. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23099. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23100. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23101. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23102. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23103. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23104. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23105. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23106. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23107. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23108. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23109. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23110. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23111. sbus_1_rx_port_mixer_controls,
  23112. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23113. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23114. bt_sco_rx_port_mixer_controls,
  23115. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23116. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23117. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23118. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23119. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23120. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23121. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23122. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23123. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23124. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23125. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23126. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23127. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23128. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23129. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23130. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23131. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23132. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23133. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23134. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23135. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23136. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23137. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23138. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23139. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23140. primary_mi2s_rx_port_mixer_controls,
  23141. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23142. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23143. sec_mi2s_rx_port_mixer_controls,
  23144. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23145. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23146. tert_mi2s_rx_port_mixer_controls,
  23147. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23148. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23149. quat_mi2s_rx_port_mixer_controls,
  23150. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23151. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23152. quin_mi2s_rx_port_mixer_controls,
  23153. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23154. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23155. sen_mi2s_rx_port_mixer_controls,
  23156. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23157. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23158. pri_tdm_rx_0_port_mixer_controls,
  23159. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23160. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23161. pri_tdm_rx_1_port_mixer_controls,
  23162. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23163. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23164. pri_tdm_rx_2_port_mixer_controls,
  23165. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23166. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23167. pri_tdm_rx_3_port_mixer_controls,
  23168. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23169. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23170. sec_tdm_rx_0_port_mixer_controls,
  23171. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23172. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23173. sec_tdm_rx_1_port_mixer_controls,
  23174. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23175. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23176. sec_tdm_rx_2_port_mixer_controls,
  23177. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23178. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23179. sec_tdm_rx_3_port_mixer_controls,
  23180. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23181. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23182. sec_tdm_rx_7_port_mixer_controls,
  23183. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23184. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23185. tert_tdm_rx_0_port_mixer_controls,
  23186. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23187. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23188. tert_tdm_rx_1_port_mixer_controls,
  23189. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23190. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23191. tert_tdm_rx_2_port_mixer_controls,
  23192. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23193. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23194. tert_tdm_rx_3_port_mixer_controls,
  23195. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23196. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23197. quat_tdm_rx_0_port_mixer_controls,
  23198. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23199. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23200. quat_tdm_rx_1_port_mixer_controls,
  23201. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23202. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23203. quat_tdm_rx_2_port_mixer_controls,
  23204. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23205. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23206. quat_tdm_rx_3_port_mixer_controls,
  23207. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23208. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23209. quat_tdm_rx_7_port_mixer_controls,
  23210. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23211. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23212. quin_tdm_rx_0_port_mixer_controls,
  23213. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23214. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23215. quin_tdm_rx_1_port_mixer_controls,
  23216. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23217. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23218. quin_tdm_rx_2_port_mixer_controls,
  23219. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23220. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23221. quin_tdm_rx_3_port_mixer_controls,
  23222. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23223. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23224. quin_tdm_rx_7_port_mixer_controls,
  23225. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23226. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23227. sen_tdm_rx_0_port_mixer_controls,
  23228. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23229. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23230. sen_tdm_rx_1_port_mixer_controls,
  23231. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23232. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23233. sen_tdm_rx_2_port_mixer_controls,
  23234. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23235. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23236. sen_tdm_rx_3_port_mixer_controls,
  23237. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23238. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23239. int0_mi2s_rx_port_mixer_controls,
  23240. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23241. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23242. int4_mi2s_rx_port_mixer_controls,
  23243. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23244. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23245. wsa_cdc_dma_rx_0_port_mixer_controls,
  23246. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23247. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23248. rx_cdc_dma_rx_0_port_mixer_controls,
  23249. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23250. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23251. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23252. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23253. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23254. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23255. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23256. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23257. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23258. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23259. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23260. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23261. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23262. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23263. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23264. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23265. /* lsm mixer definitions */
  23266. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23267. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23268. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23269. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23270. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23271. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23272. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23273. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23274. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23275. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23276. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23277. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23278. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23279. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23280. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23281. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23282. /* Virtual Pins to force backends ON atm */
  23283. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23284. SND_SOC_DAPM_INPUT("BE_IN"),
  23285. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23286. &slim0_rx_vi_fb_lch_mux),
  23287. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23288. &slim0_rx_vi_fb_rch_mux),
  23289. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23290. &wsa_rx_0_vi_fb_lch_mux),
  23291. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23292. &wsa_rx_0_vi_fb_rch_mux),
  23293. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23294. &mi2s_rx_vi_fb_mux),
  23295. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23296. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23297. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23298. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23299. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23300. &voc_ext_ec_mux),
  23301. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23302. &ext_ec_ref_mux_ul1),
  23303. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23304. &ext_ec_ref_mux_ul2),
  23305. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23306. &ext_ec_ref_mux_ul3),
  23307. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23308. &ext_ec_ref_mux_ul4),
  23309. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23310. &ext_ec_ref_mux_ul5),
  23311. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23312. &ext_ec_ref_mux_ul6),
  23313. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23314. &ext_ec_ref_mux_ul8),
  23315. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23316. &ext_ec_ref_mux_ul9),
  23317. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23318. &ext_ec_ref_mux_ul10),
  23319. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23320. &ext_ec_ref_mux_ul16),
  23321. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23322. &ext_ec_ref_mux_ul17),
  23323. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23324. &ext_ec_ref_mux_ul18),
  23325. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23326. &ext_ec_ref_mux_ul19),
  23327. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23328. &ext_ec_ref_mux_ul28),
  23329. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23330. &ext_ec_ref_mux_ul29),
  23331. };
  23332. static const struct snd_soc_dapm_route intercon[] = {
  23333. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23334. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23335. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23336. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23337. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23338. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23339. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23340. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23341. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23342. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23343. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23344. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23345. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23346. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23347. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23348. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23349. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23350. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23351. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23352. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23353. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23354. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23355. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23356. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23357. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23358. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23359. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23360. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23361. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23362. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23363. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23364. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23365. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23366. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23367. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23368. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23369. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23370. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23371. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23372. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23373. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23374. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23375. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23376. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23377. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23378. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23379. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23380. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23381. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23382. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23383. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23384. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23385. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23386. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23387. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23388. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23389. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23390. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23391. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23392. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23393. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23394. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23395. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23396. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23397. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23398. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23399. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23400. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23401. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23402. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23403. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23404. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23405. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23406. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23407. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23408. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23409. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23410. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23411. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23412. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23413. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23414. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23415. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23416. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23417. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23418. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23419. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23420. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23421. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23422. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23423. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23424. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23425. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23426. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23427. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23428. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23429. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23430. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23431. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23432. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23433. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23434. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23435. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23436. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23437. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23438. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23439. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23440. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23441. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23442. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23443. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23444. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23445. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23446. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23447. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23448. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23449. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23450. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23451. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23452. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23453. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23454. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23455. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23456. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23457. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23458. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23459. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23460. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23461. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23462. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23463. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23464. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23465. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23466. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23467. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23468. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23469. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23470. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23471. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23472. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23473. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23474. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23475. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23476. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23477. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23478. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23479. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23480. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23481. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23482. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23483. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23484. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23485. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23486. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23487. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23488. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23489. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23490. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23491. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23492. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23493. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23494. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23495. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23496. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23497. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23498. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23499. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23500. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23501. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23502. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23503. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23504. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23505. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23506. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23507. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23508. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23509. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23510. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23511. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23512. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23513. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23514. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23515. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23516. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23517. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23518. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23519. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23520. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23521. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23522. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23523. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23524. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23525. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23526. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23527. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23528. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23529. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23530. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23531. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23532. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23533. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23534. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23535. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23536. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23537. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23538. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23539. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23540. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23541. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23542. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23543. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23544. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23545. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23546. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23547. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23548. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23549. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23550. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23551. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23552. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23553. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23554. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23555. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23556. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23557. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23558. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23559. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23560. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23561. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23562. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23563. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23564. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23565. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23566. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23567. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23568. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23569. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23570. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23571. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23572. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23573. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23574. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23575. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23576. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23577. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23578. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23579. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23580. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23581. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23582. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23583. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23584. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23585. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23586. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23587. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23588. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23589. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23590. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23591. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23592. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23593. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23594. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23595. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23596. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23597. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23598. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23599. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23600. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23601. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23602. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23603. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23604. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23605. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23606. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23607. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23608. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23609. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23610. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23611. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23612. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23613. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23614. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23615. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23616. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23617. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23618. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23619. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23620. {"HDMI", NULL, "HDMI Mixer"},
  23621. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23622. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23623. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23624. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23625. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23626. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23627. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23628. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23629. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23630. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23631. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23632. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23633. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23634. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23635. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23636. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23637. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23638. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23639. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23640. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23641. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23642. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23643. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23644. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23645. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23646. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23647. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23648. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23649. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23650. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23651. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23652. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23653. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23654. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23655. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23656. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23657. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23658. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23659. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23660. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23661. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23662. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23663. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23664. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23665. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23666. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23667. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23668. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23669. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23670. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23671. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23672. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23673. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23674. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23675. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23676. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23677. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23678. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23679. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23680. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23681. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23682. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23683. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23684. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23685. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23686. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23687. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23688. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23689. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23690. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23691. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23692. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23693. /* incall */
  23694. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23695. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23696. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  23697. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23698. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23699. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23700. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23701. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23702. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23703. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23704. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23705. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23706. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23707. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23708. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23709. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23710. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23711. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23712. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23713. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23714. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23715. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23716. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23717. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23718. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23719. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23720. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23721. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23722. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23723. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23724. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23725. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23726. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23727. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23728. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23729. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23730. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23731. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23732. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23733. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23734. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23735. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23736. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23737. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23738. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23739. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23740. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23741. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23742. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23743. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23744. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23745. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23746. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23747. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23748. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23749. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23750. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23751. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23752. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23753. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23754. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23755. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23756. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23757. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23758. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23759. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23760. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23761. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23762. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23763. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23764. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23765. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23766. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23767. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23768. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23769. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23770. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23771. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23772. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23773. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23774. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23775. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23776. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23777. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23778. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23779. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23780. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23781. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23782. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23783. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23784. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23785. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23786. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23787. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23788. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  23789. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23790. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23791. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23792. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23793. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23794. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23795. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23796. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23797. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23798. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23799. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23800. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23801. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23802. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23803. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23804. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23805. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23806. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23807. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23808. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23809. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23810. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23811. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23812. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23813. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23814. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23815. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23816. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23817. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23818. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23819. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23820. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23821. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23822. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23823. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23824. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23825. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23826. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23827. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23828. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23829. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23830. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23831. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23832. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23833. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23834. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23835. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23836. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23837. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23838. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23839. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23840. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23841. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23842. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23843. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23844. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23845. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23846. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23847. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23848. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23849. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23850. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23851. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23852. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23853. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23854. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23855. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23856. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23857. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23858. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23859. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23860. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23861. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23862. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23863. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23864. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23865. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23866. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23867. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23868. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23869. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23870. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23871. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23872. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23873. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23874. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23875. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23876. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23877. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23878. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23879. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23880. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23881. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23882. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23883. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23884. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23885. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23886. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23887. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23888. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23889. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23890. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23891. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23892. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23893. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23894. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23895. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23896. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23897. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23898. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23899. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23900. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23901. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23902. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23903. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23904. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23905. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23906. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23907. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23908. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23909. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23910. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23911. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23912. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23913. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23914. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23915. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23916. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23917. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23918. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23919. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23920. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23921. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23922. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23923. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23924. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23925. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23926. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23927. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23928. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23929. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23930. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23931. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23932. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23933. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23934. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23935. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23936. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23937. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23938. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23939. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23940. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23941. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23942. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23943. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23944. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23945. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23946. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23947. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23948. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23949. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23950. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23951. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23952. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23953. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23954. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23955. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23956. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23957. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23958. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23959. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23960. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23961. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23962. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23963. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23964. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23965. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23966. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23967. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23968. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23969. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23970. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23971. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23972. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23973. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23974. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23975. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23976. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23977. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23978. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23979. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23980. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23981. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23982. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23983. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23984. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23985. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23986. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23987. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23988. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23989. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23990. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23991. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23992. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23993. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23994. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23995. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23996. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23997. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23998. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23999. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24000. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24001. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24002. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24003. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24004. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24005. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24006. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24007. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24008. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24009. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24010. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24011. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24012. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24013. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24014. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24015. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24016. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24017. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24018. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24019. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24020. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24021. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24022. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24023. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24024. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24025. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24026. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24027. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24028. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24029. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24030. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24031. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24032. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24033. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24034. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24035. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24036. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24037. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24038. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24039. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24040. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24041. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24042. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24043. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24044. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24045. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24046. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24047. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24048. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24049. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24050. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24051. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24052. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24053. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24054. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24055. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24056. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24057. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24058. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24059. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24060. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24061. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24062. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24063. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24064. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24065. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24066. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24067. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24068. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24069. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24070. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24071. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24072. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24073. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24074. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24075. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24076. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24077. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24078. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24079. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24080. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24081. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24082. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24083. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24084. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24085. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24086. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24087. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24088. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24089. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24090. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24091. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24092. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24093. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24094. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24095. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24096. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24097. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24098. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24099. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24100. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24101. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24102. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24103. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24104. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24105. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24106. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24107. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24108. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24109. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24110. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24111. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24112. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24113. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24114. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24115. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24116. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24117. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24118. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24119. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24120. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24121. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24122. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24123. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24124. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24125. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24126. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24127. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24128. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24129. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24130. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24131. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24132. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24133. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24134. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24135. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24136. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24137. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24138. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24139. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24140. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24141. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24142. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24143. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24144. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24145. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24146. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24147. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24148. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24149. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24150. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24151. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24152. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24153. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24154. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24155. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24156. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24157. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24158. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24159. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24160. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24161. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24162. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24163. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24164. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24165. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24166. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24167. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24168. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24169. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24170. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24171. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24172. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24173. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24174. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24175. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24176. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24177. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24178. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24179. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24180. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24181. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24182. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24183. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24184. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24185. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24186. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24187. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24188. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24189. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24190. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24191. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24192. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24193. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24194. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24195. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24196. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24197. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24198. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24199. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24200. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24201. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24202. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24203. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24204. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24205. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24206. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24207. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24208. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24209. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24210. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24211. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24212. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24213. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24214. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24215. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24216. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24217. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24218. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24219. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24220. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24221. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24222. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24223. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24224. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24225. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24226. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24227. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24228. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24229. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24230. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24231. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24232. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24233. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24234. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24235. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24236. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24237. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24238. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24239. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24240. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24241. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24242. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24243. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24244. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24245. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24246. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24247. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24248. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24249. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24250. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24251. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24252. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24253. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24254. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24255. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24256. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24257. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24258. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24259. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24260. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24261. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24262. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24263. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24264. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24265. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24266. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24267. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24268. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24269. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24270. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24271. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24272. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24273. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24274. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24275. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24276. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24277. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24278. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24279. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24280. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24281. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24282. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24283. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24284. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24285. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24286. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24287. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24288. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24289. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24290. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24291. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24292. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24293. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24294. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24295. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24296. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24297. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24298. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24299. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24300. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24301. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24302. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24303. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24304. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24305. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24306. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24307. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24308. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24309. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24310. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24311. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24312. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24313. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24314. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24315. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24316. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24317. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24318. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24319. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24320. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24321. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24322. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24323. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24324. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24325. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24326. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24327. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24328. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24329. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24330. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24331. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24332. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24333. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24334. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24335. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24336. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24337. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24338. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24339. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24340. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24341. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24342. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24343. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24344. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24345. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24346. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24347. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24348. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24349. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24350. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24351. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24352. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24353. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24354. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24355. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24356. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24357. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24358. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24359. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24360. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24361. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24362. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24363. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24364. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24365. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24366. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24367. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24368. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24369. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24370. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24371. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24372. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24373. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24374. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24375. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24376. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24377. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24378. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24379. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24380. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24381. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24382. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24383. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24384. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24385. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24386. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24387. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24388. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24389. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24390. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24391. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24392. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24393. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24394. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24395. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24396. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24397. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24398. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24399. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24400. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24401. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24402. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24403. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24404. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24405. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24406. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24407. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24408. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24409. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24410. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24411. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24412. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24413. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24414. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24415. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24416. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24417. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24418. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24419. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24420. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24421. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24422. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24423. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24424. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24425. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24426. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24427. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24428. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24429. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24430. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24431. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24432. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24433. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24434. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24435. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24436. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24437. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24438. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24439. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24440. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24441. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24442. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24443. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24444. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24445. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24446. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24447. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24448. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24449. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24450. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24451. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24452. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24453. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24454. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24455. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24456. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24457. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24458. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24459. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24460. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24461. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24462. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24463. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24464. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24465. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24466. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24467. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24468. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24469. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24470. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24471. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24472. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24473. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24474. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24475. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24476. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24477. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24478. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24479. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24480. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24481. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24482. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24483. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24484. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24485. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24486. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24487. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24488. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24489. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24490. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24491. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24492. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24493. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24494. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24495. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24496. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24497. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24498. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24499. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24500. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24501. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24502. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24503. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24504. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24505. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24506. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24507. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24508. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24509. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24510. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24511. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24512. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24513. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24514. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24515. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24516. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24517. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24518. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24519. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24520. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24521. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24522. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24523. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24524. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24525. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24526. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24527. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24528. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24529. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24530. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24531. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24532. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24533. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24534. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24535. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24536. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24537. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24538. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24539. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24540. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24541. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24542. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24543. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24544. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24545. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24546. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24547. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24548. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24549. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24550. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24551. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24552. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24553. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24554. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24555. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24556. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24557. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24558. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24559. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24560. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24561. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24562. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24563. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24564. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24565. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24566. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24567. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24568. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24569. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24570. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24571. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24572. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24573. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24574. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24575. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24576. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24577. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24578. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24579. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24580. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24581. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24582. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24583. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24584. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24585. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24586. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24587. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24588. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24589. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24590. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24591. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24592. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24593. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24594. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24595. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24596. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24597. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24598. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24599. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24600. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24601. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24602. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24603. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24604. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24605. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24606. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24607. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24608. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24609. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24610. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24611. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24612. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24613. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24614. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24615. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24616. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24617. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24618. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24619. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24620. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24621. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24622. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24623. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24624. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24625. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24626. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24627. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24628. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24629. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24630. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24631. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24632. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24633. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24634. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24635. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24636. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24637. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24638. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24639. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24640. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24641. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24642. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24643. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24644. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24645. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24646. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24647. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24648. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24649. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24650. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24651. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24652. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24653. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24654. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24655. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24656. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24657. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24658. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24659. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24660. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24661. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24662. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24663. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24664. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24665. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24666. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24667. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24668. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24669. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24670. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24671. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24672. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24673. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24674. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24675. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24676. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24677. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24678. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24679. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24680. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24681. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24682. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24683. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24684. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24685. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24686. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24687. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24688. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24689. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24690. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24691. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24692. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24693. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24694. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24695. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24696. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24697. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24698. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24699. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24700. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24701. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24702. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24703. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24704. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24705. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24706. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24707. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24708. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24709. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24710. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24711. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24712. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24713. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24714. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24715. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24716. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24717. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24718. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24719. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24720. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24721. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24722. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24723. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24724. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24725. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24726. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24727. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24728. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24729. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24730. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24731. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24732. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24733. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24734. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24735. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24736. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24737. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24738. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24739. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24740. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24741. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24742. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24743. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24744. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24745. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24746. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24747. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24748. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24749. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24750. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24751. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24752. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24753. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24754. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24755. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24756. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24757. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24758. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24759. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24760. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24761. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24762. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24763. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24764. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24765. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24766. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24767. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24768. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24769. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24770. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24771. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24772. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24773. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24774. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24775. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24776. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24777. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24778. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24779. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24780. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24781. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24782. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24783. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24784. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24785. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24786. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24787. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24788. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24789. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24790. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24791. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24792. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24793. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24794. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24795. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24796. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24797. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24798. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24799. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24800. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24801. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24802. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24803. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24804. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24805. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24806. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24807. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24808. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24809. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24810. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24811. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24812. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24813. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24814. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24815. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24816. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24817. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24818. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24819. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24820. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24821. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24822. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24823. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24824. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24825. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24826. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24827. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24828. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24829. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24830. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24831. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24832. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24833. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24834. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24835. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24836. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24837. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24838. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24839. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24840. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24841. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24842. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24843. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24844. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24845. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24846. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24847. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24848. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24849. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24850. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24851. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24852. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24853. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24854. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24855. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24856. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24857. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24858. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24859. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24860. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24861. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24862. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24863. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24864. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24865. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24866. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24867. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24868. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24869. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24870. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24871. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24872. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24873. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24874. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24875. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24876. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24877. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24878. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24879. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24880. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24881. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24882. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24883. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24884. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24885. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24886. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24887. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24888. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24889. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24890. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24891. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24892. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24893. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24894. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24895. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24896. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24897. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24898. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24899. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24900. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24901. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24902. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24903. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24904. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24905. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24906. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24907. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24908. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24909. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24910. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24911. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24912. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24913. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24914. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24915. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24916. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24917. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24918. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24919. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24920. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24921. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24922. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24923. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24924. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24925. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24926. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24927. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24928. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24929. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24930. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24931. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24932. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24933. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24934. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24935. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24936. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24937. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24938. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24939. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24940. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24941. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24942. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24943. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24944. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24945. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24946. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24947. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24948. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24949. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24950. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24951. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24952. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24953. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24954. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24955. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24956. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24957. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24958. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24959. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24960. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24961. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24962. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24963. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24964. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24965. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24966. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24967. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24968. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24969. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24970. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24971. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24972. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24973. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24974. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24975. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24976. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24977. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24978. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24979. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24980. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24981. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24982. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24983. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24984. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24985. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24986. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24987. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24988. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24989. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24990. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24991. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24992. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24993. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24994. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24995. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24996. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24997. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24998. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24999. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25000. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25001. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25002. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25003. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25004. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25005. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25006. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25007. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25008. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25009. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25010. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25011. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25012. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25013. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25014. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25015. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25016. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25017. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25018. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25019. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25020. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25021. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25022. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25023. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25024. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25025. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25026. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25027. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25028. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25029. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25030. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25031. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25032. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25033. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25034. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25035. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25036. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25037. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25038. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25039. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25040. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25041. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25042. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25043. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25044. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25045. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25046. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25047. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25048. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25049. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25050. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25051. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25052. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25053. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25054. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25055. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25056. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25057. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25058. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25059. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25060. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25061. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25062. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25063. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25064. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25065. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25066. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25067. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25068. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25069. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25070. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25071. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25072. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25073. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25074. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25075. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25076. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25077. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25078. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25079. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25080. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25081. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25082. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25083. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25084. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25085. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25086. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25087. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25088. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25089. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25090. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25091. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25092. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25093. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25094. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25095. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25096. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25097. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25098. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25099. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25100. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25101. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25102. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25103. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25104. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25105. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25106. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25107. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25108. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25109. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25110. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25111. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25112. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25113. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25114. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25115. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25116. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25117. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25118. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25119. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25120. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25121. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25122. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25123. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25124. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25125. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25126. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25127. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25128. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25129. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25130. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25131. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25132. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25133. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25134. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25135. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25136. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25137. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25138. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25139. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25140. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25141. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25142. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25143. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25144. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25145. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25146. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25147. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25148. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25149. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25150. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25151. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25152. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25153. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25154. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25155. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25156. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25157. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25158. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25159. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25160. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25161. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25162. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25163. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25164. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25165. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25166. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25167. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25168. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25169. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25170. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25171. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25172. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25173. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25174. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25175. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25176. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25177. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25178. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25179. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25180. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25181. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25182. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25183. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25184. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25185. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25186. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25187. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25188. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25189. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25190. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25191. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25192. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25193. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25194. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25195. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25196. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25197. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25198. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25199. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25200. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25201. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25202. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25203. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25204. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25205. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25206. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25207. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25208. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25209. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25210. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25211. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25212. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25213. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25214. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25215. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25216. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25217. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25218. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25219. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25220. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25221. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25222. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25223. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25224. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25225. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25226. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25227. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25228. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25229. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25230. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25231. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25232. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25233. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25234. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25235. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25236. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25237. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25238. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25239. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25240. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25241. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25242. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25243. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25244. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25245. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25246. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25247. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25248. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25249. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25250. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25251. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25252. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25253. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25254. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25255. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25256. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25257. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25258. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25259. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25260. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25261. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25262. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25263. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25264. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25265. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25266. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25267. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25268. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25269. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25270. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25271. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25272. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25273. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25274. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25275. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25276. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25277. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25278. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25279. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25280. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25281. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25282. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25283. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25284. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25285. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25286. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25287. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25288. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25289. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25290. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25291. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25292. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25293. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25294. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25295. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25296. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25297. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25298. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25299. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25300. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25301. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25302. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25303. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25304. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25305. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25306. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25307. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25308. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25309. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25310. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25311. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25312. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25313. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25314. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25315. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25316. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25317. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25318. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25319. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25320. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25321. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25322. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25323. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25324. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25325. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25326. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25327. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25328. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25329. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25330. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25331. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25332. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25333. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25334. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25335. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25336. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25337. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25338. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25339. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25340. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25341. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25342. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25343. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25344. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25345. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25346. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25347. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25348. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25349. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25350. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25351. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25352. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25353. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25354. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25355. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25356. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25357. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25358. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25359. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25360. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25361. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25362. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25363. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25364. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25365. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25366. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25367. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25368. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25369. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25370. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25371. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25372. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25373. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25374. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25375. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25376. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25377. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25378. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25379. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25380. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25381. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25382. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25383. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25384. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25385. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25386. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25387. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25388. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25389. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25390. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25391. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25392. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25393. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25394. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25395. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25396. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25397. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25398. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25399. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25400. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25401. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25402. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25403. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25404. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25405. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25406. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25407. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25408. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25409. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25410. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25411. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25412. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25413. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25414. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25415. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25416. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25417. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25418. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25419. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25420. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25421. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25422. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25423. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25424. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25425. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25426. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25427. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25428. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25429. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25430. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25431. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25432. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25433. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25434. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25435. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25436. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25437. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25438. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25439. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25440. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25441. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25442. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25443. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25444. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25445. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25446. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25447. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25448. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25449. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25450. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  25451. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25452. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25453. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25454. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25455. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25456. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25457. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25458. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25459. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25460. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25461. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25462. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25463. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25464. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25465. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25466. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25467. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  25468. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25469. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25470. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25471. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25472. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25473. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25474. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25475. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25476. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25477. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25478. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25479. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25480. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25481. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25482. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25483. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25484. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  25485. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25486. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25487. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25488. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25489. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25490. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  25491. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25492. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25493. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25494. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  25495. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25496. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25497. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25498. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25499. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25500. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25501. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25502. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  25503. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25504. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25505. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25506. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25507. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25508. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25509. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25510. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25511. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25512. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25513. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25514. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25515. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25516. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25517. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25518. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25519. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25520. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25521. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25522. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25523. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25524. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25525. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25526. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25527. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25528. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25529. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25530. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25531. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25532. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25533. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25534. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25535. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25536. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25537. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25538. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25539. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25540. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25541. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25542. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25543. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25544. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25545. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25546. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25547. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25548. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25549. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25550. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25551. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25552. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25553. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25554. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25555. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25556. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25557. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25558. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25559. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25560. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25561. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25562. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25563. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25564. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25565. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25566. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25567. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25568. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25569. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25570. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25571. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25572. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25573. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25574. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25575. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25576. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25577. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25578. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25579. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25580. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25581. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25582. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25583. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25584. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25585. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25586. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25587. {"HDMI", NULL, "HDMI_DL_HL"},
  25588. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25589. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25590. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25591. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25592. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25593. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25594. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25595. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25596. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25597. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25598. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25599. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25600. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25601. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25602. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25603. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25604. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25605. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25606. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25607. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25608. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25609. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25610. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25611. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25612. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25613. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25614. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25615. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25616. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25617. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25618. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25619. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25620. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25621. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25622. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25623. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25624. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25625. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25626. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25627. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25628. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25629. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25630. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25631. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25632. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25633. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25634. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25635. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25636. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25637. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25638. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25639. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25640. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25641. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25642. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25643. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25644. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25645. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25646. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25647. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25648. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25649. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25650. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25651. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25652. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25653. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25654. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25655. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25656. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25657. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25658. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25659. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25660. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25661. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25662. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25663. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25664. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25665. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25666. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25667. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25668. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25669. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25670. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25671. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25672. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25673. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25674. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25675. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25676. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25677. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25678. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25679. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25680. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25681. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25682. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25683. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25684. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25685. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25686. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25687. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25688. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25689. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25690. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25691. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25692. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25693. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25694. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25695. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  25696. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25697. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25698. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25699. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25700. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25701. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25702. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25703. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25704. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25705. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25706. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25707. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25708. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25709. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25710. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25711. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25712. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25713. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25714. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25715. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25716. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25717. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25718. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25719. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25720. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25721. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25722. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25723. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25724. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25725. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25726. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25727. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25728. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25729. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25730. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25731. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25732. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25733. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25734. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25735. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25736. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25737. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25738. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25739. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25740. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25741. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25742. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25743. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25744. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25745. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25746. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25747. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25748. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25749. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25750. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25751. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25752. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25753. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25754. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25755. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25756. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25757. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25758. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25759. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25760. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25761. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25762. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25763. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25764. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25765. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25766. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25767. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25768. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25769. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25770. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25771. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25772. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25773. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25774. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25775. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25776. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25777. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25778. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25779. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25780. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25781. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25782. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25783. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25784. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25785. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  25786. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  25787. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  25788. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  25789. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  25790. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  25791. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  25792. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  25793. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  25794. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  25795. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  25796. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  25797. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  25798. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  25799. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  25800. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  25801. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  25802. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  25803. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  25804. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  25805. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  25806. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  25807. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  25808. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  25809. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  25810. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  25811. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  25812. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  25813. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  25814. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  25815. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  25816. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  25817. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  25818. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  25819. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  25820. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  25821. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  25822. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  25823. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  25824. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  25825. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  25826. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  25827. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  25828. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  25829. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  25830. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  25831. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  25832. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  25833. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  25834. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  25835. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  25836. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  25837. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  25838. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  25839. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  25840. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  25841. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  25842. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  25843. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  25844. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  25845. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  25846. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  25847. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  25848. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  25849. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  25850. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  25851. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  25852. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  25853. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  25854. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  25855. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  25856. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  25857. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  25858. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  25859. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  25860. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  25861. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  25862. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  25863. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  25864. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  25865. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  25866. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  25867. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  25868. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  25869. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  25870. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  25871. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  25872. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  25873. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  25874. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  25875. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  25876. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  25877. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  25878. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  25879. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  25880. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  25881. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  25882. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  25883. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  25884. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  25885. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  25886. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  25887. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  25888. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  25889. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  25890. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  25891. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  25892. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  25893. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  25894. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  25895. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  25896. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  25897. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  25898. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  25899. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  25900. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25901. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  25902. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  25903. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25904. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25905. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25906. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  25907. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25908. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25909. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25910. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25911. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25912. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25913. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25914. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25915. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25916. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25917. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25918. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25919. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25920. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  25921. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25922. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25923. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25924. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25925. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25926. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25927. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25928. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25929. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25930. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25931. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25932. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25933. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25934. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  25935. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25936. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25937. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25938. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25939. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25940. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25941. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25942. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25943. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25944. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25945. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25946. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25947. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25948. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  25949. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25950. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25951. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25952. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25953. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25954. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25955. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25956. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25957. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25958. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25959. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25960. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25961. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25962. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25963. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25964. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25965. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25966. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25967. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25968. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25969. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25970. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25971. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25972. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25973. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25974. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25975. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25976. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25977. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25978. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25979. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25980. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25981. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25982. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25983. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25984. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25985. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25986. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25987. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25988. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  25989. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25990. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25991. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25992. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25993. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25994. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25995. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25996. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25997. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25998. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25999. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26000. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26001. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26002. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26003. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26004. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26005. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26006. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26007. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26008. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26009. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26010. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26011. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26012. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26013. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26014. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26015. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26016. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26017. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26018. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26019. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26020. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26021. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26022. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26023. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26024. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26025. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26026. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26027. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26028. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26029. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26030. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26031. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26032. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26033. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26034. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26035. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26036. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26037. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26038. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26039. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26040. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26041. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26042. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26043. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26044. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26045. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26046. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26047. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26048. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26049. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26050. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26051. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26052. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26053. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26054. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26055. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26056. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26057. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26058. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26059. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26060. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26061. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26062. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26063. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26064. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26065. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26066. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26067. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26068. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26069. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26070. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26071. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26072. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26073. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26074. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26075. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26076. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26077. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26078. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26079. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26080. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26081. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26082. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26083. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26084. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26085. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26086. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26087. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26088. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26089. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26090. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26091. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26092. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26093. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26094. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26095. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26096. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26097. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26098. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26099. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26100. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26101. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26102. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26103. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26104. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26105. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26106. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26107. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26108. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26109. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26110. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26111. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26112. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26113. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26114. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26115. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26116. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26117. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26118. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26119. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26120. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26121. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26122. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26123. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26124. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26125. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26126. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26127. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26128. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26129. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26130. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26131. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26132. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26133. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26134. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26135. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26136. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26137. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26138. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26139. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26140. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26141. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26142. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26143. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26144. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26145. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26146. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26147. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26148. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26149. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26150. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26151. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26152. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26153. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26154. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26155. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26156. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26157. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26158. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26159. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26160. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26161. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26162. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26163. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26164. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26165. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26166. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26167. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26168. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26169. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26170. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26171. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26172. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26173. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26174. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26175. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26176. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26177. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26178. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26179. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26180. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26181. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26182. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26183. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26184. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26185. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26186. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26187. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26188. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26189. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26190. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26191. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26192. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26193. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26194. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26195. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26196. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26197. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26198. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26199. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26200. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26201. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26202. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26203. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26204. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26205. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26206. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26207. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26208. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26209. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26210. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26211. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26212. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26213. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26214. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26215. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26216. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26217. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26218. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26219. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26220. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26221. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26222. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26223. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26224. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26225. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26226. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26227. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26228. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26229. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26230. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26231. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26232. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26233. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26234. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26235. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26236. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26237. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26238. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26239. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26240. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26241. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26242. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26243. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26244. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26245. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26246. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26247. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26248. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26249. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26250. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26251. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26252. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26253. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26254. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26255. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26256. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26257. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26258. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26259. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26260. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26261. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26262. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26263. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26264. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26265. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26266. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26267. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26268. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26269. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26270. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26271. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26272. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26273. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26274. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26275. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26276. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26277. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26278. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26279. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26280. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26281. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26282. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26283. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26284. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26285. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26286. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26287. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26288. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26289. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26290. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26291. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26292. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26293. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26294. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26295. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26296. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26297. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26298. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26299. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26300. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26301. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26302. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26303. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26304. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26305. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26306. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26307. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26308. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26309. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26310. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26311. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26312. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26313. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26314. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26315. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26316. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26317. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26318. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26319. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26320. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26321. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26322. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26323. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26324. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26325. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26326. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26327. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26328. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26329. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26330. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26331. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26332. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26333. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26334. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26335. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26336. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26337. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26338. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26339. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26340. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26341. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26342. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26343. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26344. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26345. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26346. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26347. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26348. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26349. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26350. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26351. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26352. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26353. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26354. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26355. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26356. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26357. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26358. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26359. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26360. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26361. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26362. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26363. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26364. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26365. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26366. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26367. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26368. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26369. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26370. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26371. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26372. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26373. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26374. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26375. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26376. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26377. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26378. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26379. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26380. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26381. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26382. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26383. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26384. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26385. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26386. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26387. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26388. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26389. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26390. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26391. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26392. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26393. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26394. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26395. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26396. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26397. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26398. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26399. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26400. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26401. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26402. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26403. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26404. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26405. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26406. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26407. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26408. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26409. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26410. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26411. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26412. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26413. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26414. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26415. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26416. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26417. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26418. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26419. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26420. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26421. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26422. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26423. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26424. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26425. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26426. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26427. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26428. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26429. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26430. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26431. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26432. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26433. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26434. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26435. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26436. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26437. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26438. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26439. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26440. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26441. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26442. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26443. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26444. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26445. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26446. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26447. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26448. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26449. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26450. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26451. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26452. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26453. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26454. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26455. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26456. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26457. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26458. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26459. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26460. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  26461. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26462. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26463. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26464. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26465. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26466. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26467. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26468. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26469. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26470. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26471. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26472. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26473. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26474. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26475. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26476. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26477. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26478. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26479. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26480. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26481. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26482. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26483. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26484. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26485. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  26486. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26487. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26488. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26489. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26490. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26491. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26492. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26493. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26494. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26495. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26496. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26497. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26498. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26499. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26500. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26501. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26502. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26503. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26504. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26505. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26506. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26507. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26508. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26509. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26510. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  26511. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26512. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26513. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26514. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26515. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26516. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26517. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26518. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26519. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26520. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26521. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26522. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26523. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26524. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26525. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26526. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26527. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26528. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26529. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26530. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26531. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26532. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26533. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26534. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26535. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26536. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26537. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26538. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26539. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26540. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26541. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26542. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26543. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26544. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26545. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26546. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26547. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26548. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26549. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26550. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26551. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26552. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26553. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26554. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26555. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26556. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26557. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26558. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26559. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26560. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26561. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26562. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26563. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26564. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26565. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26566. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26567. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26568. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26569. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26570. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26571. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26572. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26573. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26574. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26575. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26576. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26577. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26578. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26579. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26580. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26581. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26582. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26583. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26584. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26585. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26586. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26587. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26588. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26589. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26590. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26591. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26592. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26593. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26594. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26595. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26596. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26597. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26598. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26599. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26600. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26601. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26602. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26603. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26604. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26605. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26606. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26607. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26608. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26609. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26610. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26611. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26612. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26613. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26614. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26615. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26616. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26617. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26618. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26619. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26620. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26621. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26622. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26623. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26624. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26625. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26626. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26627. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26628. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26629. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26630. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26631. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26632. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26633. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26634. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26635. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26636. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26637. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26638. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26639. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26640. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26641. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26642. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26643. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26644. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26645. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26646. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26647. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26648. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26649. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26650. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26651. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26652. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26653. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26654. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26655. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26656. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26657. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26658. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26659. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26660. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26661. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26662. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26663. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26664. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26665. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26666. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26667. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26668. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26669. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26670. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26671. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26672. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26673. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26674. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26675. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26676. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26677. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26678. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26679. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26680. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26681. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26682. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26683. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26684. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26685. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26686. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26687. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26688. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26689. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26690. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26691. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26692. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26693. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26694. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26695. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26696. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26697. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26698. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26699. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26700. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26701. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26702. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26703. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26704. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26705. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26706. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26707. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26708. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26709. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26710. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26711. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26712. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26713. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26714. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26715. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26716. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26717. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26718. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26719. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26720. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26721. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26722. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26723. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26724. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26725. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26726. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26727. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26728. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26729. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26730. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26731. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26732. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26733. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26734. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26735. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26736. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26737. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26738. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26739. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26740. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26741. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26742. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26743. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26744. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26745. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26746. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26747. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26748. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26749. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26750. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26751. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26752. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26753. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26754. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26755. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26756. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26757. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26758. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26759. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26760. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26761. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26762. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26763. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26764. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26765. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26766. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26767. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26768. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26769. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26770. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26771. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26772. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26773. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26774. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26775. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26776. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26777. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26778. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26779. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26780. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26781. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26782. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26783. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26784. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26785. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26786. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26787. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26788. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26789. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26790. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26791. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26792. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26793. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26794. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26795. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26796. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26797. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26798. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26799. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26800. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26801. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26802. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26803. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26804. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26805. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26806. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26807. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26808. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26809. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26810. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26811. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26812. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26813. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26814. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26815. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26816. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26817. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26818. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26819. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26820. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26821. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26822. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26823. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26824. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26825. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26826. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  26827. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26828. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26829. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26830. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26831. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26832. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26833. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26834. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26835. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26836. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26837. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26838. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26839. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26840. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26841. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26842. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26843. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26844. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26845. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26846. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26847. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26848. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26849. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26850. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26851. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26852. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26853. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26854. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26855. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26856. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26857. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26858. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26859. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26860. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26861. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26862. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26863. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26864. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26865. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26866. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26867. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26868. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26869. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26870. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26871. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26872. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26873. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26874. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26875. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26876. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26877. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26878. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26879. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26880. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26881. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26882. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26883. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26884. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26885. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26886. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26887. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26888. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26889. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26890. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26891. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26892. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26893. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26894. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26895. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26896. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26897. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26898. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26899. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26900. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26901. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26902. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26903. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26904. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26905. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26906. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26907. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26908. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26909. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26910. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26911. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26912. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26913. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26914. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  26915. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26916. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26917. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  26918. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26919. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26920. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  26921. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26922. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26923. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26924. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26925. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26926. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26927. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26928. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26929. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26930. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26931. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26932. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  26933. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26934. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26935. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26936. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26937. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26938. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26939. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26940. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26941. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26942. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26943. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  26944. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26945. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26946. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26947. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26948. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26949. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26950. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26951. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26952. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  26953. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26954. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26955. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26956. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26957. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26958. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26959. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26960. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26961. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26962. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26963. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  26964. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26965. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26966. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26967. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26968. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26969. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26970. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26971. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26972. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26973. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26974. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26975. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26976. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26977. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26978. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26979. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26980. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26981. /* Backend Enablement */
  26982. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26983. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26984. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26985. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26986. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26987. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26988. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26989. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26990. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26991. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26992. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26993. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26994. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26995. {"BE_OUT", NULL, "HDMI"},
  26996. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26997. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26998. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26999. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  27000. {"BE_OUT", NULL, "MI2S_RX"},
  27001. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  27002. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  27003. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  27004. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27005. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27006. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27007. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27008. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27009. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27010. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27011. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27012. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27013. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27014. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27015. {"BE_OUT", NULL, "INT_FM_RX"},
  27016. {"BE_OUT", NULL, "PCM_RX"},
  27017. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27018. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27019. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27020. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27021. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27022. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27023. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27024. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27025. {"BE_OUT", NULL, "INT_FM_RX"},
  27026. {"BE_OUT", NULL, "PCM_RX"},
  27027. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27028. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27029. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27030. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27031. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27032. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27033. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27034. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27035. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27036. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27037. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27038. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27039. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27040. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27041. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27042. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27043. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27044. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27045. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27046. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27047. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27048. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27049. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27050. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27051. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27052. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27053. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27054. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27055. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27056. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27057. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27058. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27059. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27060. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27061. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27062. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27063. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27064. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27065. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27066. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27067. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27068. {"PRI_I2S_TX", NULL, "BE_IN"},
  27069. {"MI2S_TX", NULL, "BE_IN"},
  27070. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27071. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27072. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27073. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27074. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27075. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27076. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27077. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27078. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27079. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27080. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27081. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27082. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27083. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27084. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27085. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27086. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27087. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27088. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27089. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27090. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27091. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27092. {"INT_FM_TX", NULL, "BE_IN"},
  27093. {"PCM_TX", NULL, "BE_IN"},
  27094. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27095. {"BE_OUT", NULL, "STUB_RX"},
  27096. {"STUB_TX", NULL, "BE_IN"},
  27097. {"STUB_1_TX", NULL, "BE_IN"},
  27098. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27099. {"AUX_PCM_TX", NULL, "BE_IN"},
  27100. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27101. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27102. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27103. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27104. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27105. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27106. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27107. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27108. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27109. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27110. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27111. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27112. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27113. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27114. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27115. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27116. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27117. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27118. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27119. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27120. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27121. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27122. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27123. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27124. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27125. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27126. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27127. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27128. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27129. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27130. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27131. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27132. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27133. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27134. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27135. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27136. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27137. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27138. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27139. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27140. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27141. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27142. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27143. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27144. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27145. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27146. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27147. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27148. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27149. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27150. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27151. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27152. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27153. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27154. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27155. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27156. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27157. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27158. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27159. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27160. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27161. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27162. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27163. };
  27164. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27165. struct snd_pcm_hw_params *params)
  27166. {
  27167. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27168. unsigned int be_id = rtd->dai_link->id;
  27169. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27170. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27171. return -EINVAL;
  27172. }
  27173. mutex_lock(&routing_lock);
  27174. msm_bedais[be_id].sample_rate = params_rate(params);
  27175. msm_bedais[be_id].channel = params_channels(params);
  27176. msm_bedais[be_id].format = params_format(params);
  27177. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27178. __func__, msm_bedais[be_id].sample_rate,
  27179. msm_bedais[be_id].format, be_id);
  27180. mutex_unlock(&routing_lock);
  27181. return 0;
  27182. }
  27183. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27184. {
  27185. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27186. unsigned int be_id = rtd->dai_link->id;
  27187. int i, session_type, path_type, topology;
  27188. struct msm_pcm_routing_bdai_data *bedai;
  27189. struct msm_pcm_routing_fdai_data *fdai;
  27190. pr_debug("%s: substream->pcm->id:%s\n",
  27191. __func__, substream->pcm->id);
  27192. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27193. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27194. return -EINVAL;
  27195. }
  27196. bedai = &msm_bedais[be_id];
  27197. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27198. 0 : 1);
  27199. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27200. path_type = ADM_PATH_PLAYBACK;
  27201. else
  27202. path_type = ADM_PATH_LIVE_REC;
  27203. mutex_lock(&routing_lock);
  27204. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27205. if (!is_mm_lsm_fe_id(i))
  27206. continue;
  27207. fdai = &fe_dai_map[i][session_type];
  27208. if (fdai->strm_id != INVALID_SESSION) {
  27209. int idx;
  27210. int port_id;
  27211. unsigned long copp =
  27212. session_copp_map[i][session_type][be_id];
  27213. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27214. if (test_bit(idx, &copp))
  27215. break;
  27216. if (idx >= MAX_COPPS_PER_PORT) {
  27217. pr_debug("%s: copp idx is invalid, exiting\n",
  27218. __func__);
  27219. continue;
  27220. }
  27221. fdai->be_srate = bedai->sample_rate;
  27222. port_id = get_port_id(bedai->port_id);
  27223. topology = adm_get_topology_for_port_copp_idx(port_id,
  27224. idx);
  27225. msm_routing_unload_topology(topology);
  27226. adm_close(port_id, fdai->perf_mode, idx);
  27227. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27228. __func__, copp, i, session_type, be_id,
  27229. topology);
  27230. clear_bit(idx,
  27231. &session_copp_map[i][session_type][be_id]);
  27232. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27233. (fdai->passthr_mode == LEGACY_PCM))
  27234. msm_pcm_routing_deinit_pp(port_id,
  27235. topology);
  27236. }
  27237. }
  27238. bedai->active = 0;
  27239. bedai->sample_rate = 0;
  27240. bedai->channel = 0;
  27241. mutex_unlock(&routing_lock);
  27242. return 0;
  27243. }
  27244. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27245. {
  27246. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27247. unsigned int be_id = rtd->dai_link->id;
  27248. int i, path_type, topology;
  27249. int session_type = INVALID_SESSION;
  27250. struct msm_pcm_routing_bdai_data *bedai;
  27251. u32 channels, sample_rate;
  27252. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27253. struct msm_pcm_routing_fdai_data *fdai;
  27254. u32 session_id;
  27255. struct media_format_info voc_be_media_format;
  27256. bool is_lsm;
  27257. pr_debug("%s: substream->pcm->id:%s\n",
  27258. __func__, substream->pcm->id);
  27259. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27260. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27261. return -EINVAL;
  27262. }
  27263. bedai = &msm_bedais[be_id];
  27264. mutex_lock(&routing_lock);
  27265. if (bedai->active == 1)
  27266. goto done; /* Ignore prepare if back-end already active */
  27267. /* AFE port is not active at this point. However, still
  27268. * go ahead setting active flag under the notion that
  27269. * QDSP6 is able to handle ADM starting before AFE port
  27270. * is started.
  27271. */
  27272. bedai->active = 1;
  27273. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27274. if (!(is_mm_lsm_fe_id(i) &&
  27275. route_check_fe_id_adm_support(i)))
  27276. continue;
  27277. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27278. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27279. fdai = &fe_dai_map[i][session_type];
  27280. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27281. if (fdai->passthr_mode != LEGACY_PCM)
  27282. path_type = ADM_PATH_COMPRESSED_RX;
  27283. else
  27284. path_type = ADM_PATH_PLAYBACK;
  27285. } else {
  27286. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27287. (fdai->passthr_mode != LISTEN))
  27288. path_type = ADM_PATH_COMPRESSED_TX;
  27289. else
  27290. path_type = ADM_PATH_LIVE_REC;
  27291. }
  27292. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27293. (i <= MSM_FRONTEND_DAI_LSM8);
  27294. if (fdai->strm_id != INVALID_SESSION) {
  27295. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27296. int port_id = get_port_id(bedai->port_id);
  27297. if (session_type == SESSION_TYPE_TX &&
  27298. fdai->be_srate &&
  27299. (fdai->be_srate != bedai->sample_rate)) {
  27300. pr_debug("%s: flush strm %d diff BE rates\n",
  27301. __func__,
  27302. fdai->strm_id);
  27303. if (fdai->event_info.event_func)
  27304. fdai->event_info.event_func(
  27305. MSM_PCM_RT_EVT_BUF_RECFG,
  27306. fdai->event_info.priv_data);
  27307. fdai->be_srate = 0; /* might not need it */
  27308. }
  27309. bits_per_sample = msm_routing_get_bit_width(
  27310. bedai->format);
  27311. app_type =
  27312. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27313. if (app_type && is_lsm) {
  27314. app_type_idx =
  27315. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27316. sample_rate =
  27317. fe_dai_app_type_cfg[i][session_type][be_id]
  27318. .sample_rate;
  27319. bits_per_sample =
  27320. lsm_app_type_cfg[app_type_idx].bit_width;
  27321. } else if (app_type) {
  27322. app_type_idx =
  27323. msm_pcm_routing_get_app_type_idx(app_type);
  27324. sample_rate =
  27325. fe_dai_app_type_cfg[i][session_type]
  27326. [be_id].sample_rate;
  27327. bits_per_sample =
  27328. app_type_cfg[app_type_idx].bit_width;
  27329. } else
  27330. sample_rate = bedai->sample_rate;
  27331. /*
  27332. * check if ADM needs to be configured with different
  27333. * channel mapping than backend
  27334. */
  27335. if (!bedai->adm_override_ch)
  27336. channels = bedai->channel;
  27337. else
  27338. channels = bedai->adm_override_ch;
  27339. acdb_dev_id =
  27340. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27341. topology = msm_routing_get_adm_topology(i, session_type,
  27342. be_id);
  27343. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27344. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27345. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27346. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27347. be_bit_width = msm_routing_get_bit_width(
  27348. bedai->format);
  27349. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27350. || bedai->sample_rate == 352800) &&
  27351. be_bit_width == 32)
  27352. bits_per_sample = msm_routing_get_bit_width(
  27353. SNDRV_PCM_FORMAT_S32_LE);
  27354. copp_idx = adm_open(port_id, path_type,
  27355. sample_rate, channels, topology,
  27356. fdai->perf_mode, bits_per_sample,
  27357. app_type, acdb_dev_id,
  27358. session_type);
  27359. if ((copp_idx < 0) ||
  27360. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27361. pr_err("%s: adm open failed\n", __func__);
  27362. mutex_unlock(&routing_lock);
  27363. return -EINVAL;
  27364. }
  27365. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27366. __func__, i, session_type, be_id);
  27367. set_bit(copp_idx,
  27368. &session_copp_map[i][session_type][be_id]);
  27369. if (msm_is_resample_needed(
  27370. sample_rate,
  27371. bedai->sample_rate))
  27372. adm_copp_mfc_cfg(port_id, copp_idx,
  27373. bedai->sample_rate);
  27374. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27375. fdai->perf_mode, fdai->passthr_mode);
  27376. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27377. (fdai->passthr_mode == LEGACY_PCM))
  27378. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27379. topology, channels);
  27380. }
  27381. }
  27382. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27383. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27384. if (session_id) {
  27385. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27386. session_id);
  27387. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27388. voc_path_type = RX_PATH;
  27389. else
  27390. voc_path_type = TX_PATH;
  27391. voc_set_route_flag(session_id, voc_path_type, 1);
  27392. memset(&voc_be_media_format, 0,
  27393. sizeof(struct media_format_info));
  27394. voc_be_media_format.port_id = bedai->port_id;
  27395. voc_be_media_format.num_channels = bedai->channel;
  27396. voc_be_media_format.sample_rate = bedai->sample_rate;
  27397. voc_be_media_format.bits_per_sample = bedai->format;
  27398. /* Defaulting this to 1 for voice call usecases */
  27399. voc_be_media_format.channel_mapping[0] = 1;
  27400. voc_set_device_config(session_id, voc_path_type,
  27401. &voc_be_media_format);
  27402. if (voc_get_route_flag(session_id, RX_PATH) &&
  27403. voc_get_route_flag(session_id, TX_PATH))
  27404. voc_enable_device(session_id);
  27405. }
  27406. }
  27407. /* Check if backend is an external ec ref port and set as needed */
  27408. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27409. memset(&voc_be_media_format, 0,
  27410. sizeof(struct media_format_info));
  27411. /* Get format info for ec ref port from msm_bedais[] */
  27412. voc_be_media_format.port_id = bedai->port_id;
  27413. voc_be_media_format.num_channels = bedai->channel;
  27414. voc_be_media_format.bits_per_sample = bedai->format;
  27415. voc_be_media_format.sample_rate = bedai->sample_rate;
  27416. /* Defaulting this to 1 for voice call usecases */
  27417. voc_be_media_format.channel_mapping[0] = 1;
  27418. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27419. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27420. __func__, voc_be_media_format.port_id,
  27421. voc_be_media_format.num_channels,
  27422. voc_be_media_format.bits_per_sample,
  27423. voc_be_media_format.sample_rate);
  27424. }
  27425. done:
  27426. mutex_unlock(&routing_lock);
  27427. return 0;
  27428. }
  27429. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27430. int fe_id)
  27431. {
  27432. int index, topo_id, be_idx;
  27433. unsigned long pp_config = 0;
  27434. bool mute_on;
  27435. int latency, session_type;
  27436. bool compr_passthr_mode = true;
  27437. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  27438. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  27439. pr_err("%s: Device pp params on invalid port %d\n",
  27440. __func__, port_id);
  27441. return -EINVAL;
  27442. }
  27443. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27444. if (port_id == msm_bedais[be_idx].port_id)
  27445. break;
  27446. }
  27447. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27448. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27449. return -EINVAL;
  27450. }
  27451. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27452. if (msm_bedais_pp_params[index].port_id == port_id)
  27453. break;
  27454. }
  27455. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27456. pr_err("%s: Invalid backend pp params index %d\n",
  27457. __func__, index);
  27458. return -EINVAL;
  27459. }
  27460. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  27461. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  27462. pr_err("%s: Invalid passthrough topology 0x%x\n",
  27463. __func__, topo_id);
  27464. return -EINVAL;
  27465. }
  27466. session_type =
  27467. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27468. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27469. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  27470. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  27471. compr_passthr_mode = false;
  27472. pp_config = msm_bedais_pp_params[index].pp_params_config;
  27473. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  27474. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27475. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  27476. mute_on = msm_bedais_pp_params[index].mute_on;
  27477. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27478. adm_send_compressed_device_mute(port_id,
  27479. copp_idx,
  27480. mute_on);
  27481. }
  27482. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  27483. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27484. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  27485. &pp_config);
  27486. latency = msm_bedais_pp_params[index].latency;
  27487. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27488. adm_send_compressed_device_latency(port_id,
  27489. copp_idx,
  27490. latency);
  27491. }
  27492. return 0;
  27493. }
  27494. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  27495. {
  27496. uint32_t topology = NULL_COPP_TOPOLOGY;
  27497. void *cal_info = NULL;
  27498. uint32_t size = 0;
  27499. /* Retrieve cal_info size from cal data*/
  27500. if (data_size < sizeof(struct audio_cal_type_basic) +
  27501. sizeof(struct audio_cal_info_adm_top)) {
  27502. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  27503. goto done;
  27504. }
  27505. size = data_size - sizeof(struct audio_cal_type_basic);
  27506. cal_info = kzalloc(size, GFP_KERNEL);
  27507. if (!cal_info)
  27508. goto done;
  27509. memcpy(cal_info,
  27510. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  27511. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  27512. kfree(cal_info);
  27513. cal_info = NULL;
  27514. done:
  27515. pr_debug("%s: Using topology %d\n", __func__, topology);
  27516. return topology;
  27517. }
  27518. static void msm_routing_load_topology(size_t data_size, void *data)
  27519. {
  27520. uint32_t topology_id;
  27521. int ret = -EINVAL;
  27522. topology_id = msm_routing_get_topology(data_size, data);
  27523. if (topology_id != NULL_COPP_TOPOLOGY)
  27524. ret = q6core_load_unload_topo_modules(topology_id,
  27525. CORE_LOAD_TOPOLOGY);
  27526. if (ret < 0)
  27527. pr_debug("%s %d load topology failed\n",
  27528. __func__, topology_id);
  27529. }
  27530. static void msm_routing_unload_topology(uint32_t topology_id)
  27531. {
  27532. int ret = -EINVAL;
  27533. if (topology_id != NULL_COPP_TOPOLOGY)
  27534. ret = q6core_load_unload_topo_modules(topology_id,
  27535. CORE_UNLOAD_TOPOLOGY);
  27536. if (ret < 0)
  27537. pr_debug("%s %d unload topology failed\n",
  27538. __func__, topology_id);
  27539. }
  27540. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27541. struct snd_ctl_elem_value *ucontrol)
  27542. {
  27543. int pp_id = ucontrol->value.integer.value[0];
  27544. int port_id = 0;
  27545. int index, be_idx, i, topo_id, idx;
  27546. bool mute;
  27547. int latency, session_type;
  27548. bool compr_passthr_mode = true;
  27549. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27550. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27551. port_id = msm_bedais[be_idx].port_id;
  27552. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27553. break;
  27554. }
  27555. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27556. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27557. return -EINVAL;
  27558. }
  27559. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27560. if (msm_bedais_pp_params[index].port_id == port_id)
  27561. break;
  27562. }
  27563. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27564. pr_err("%s: Invalid pp params backend index %d\n",
  27565. __func__, index);
  27566. return -EINVAL;
  27567. }
  27568. session_type =
  27569. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27570. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27571. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27572. MSM_FRONTEND_DAI_MM_SIZE) {
  27573. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27574. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27575. compr_passthr_mode = false;
  27576. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27577. unsigned long copp =
  27578. session_copp_map[i]
  27579. [SESSION_TYPE_RX][be_idx];
  27580. if (!test_bit(idx, &copp))
  27581. continue;
  27582. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27583. idx);
  27584. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27585. continue;
  27586. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27587. __func__, port_id, copp, msm_bedais[be_idx].active,
  27588. fe_dai_map[i][session_type].passthr_mode);
  27589. switch (pp_id) {
  27590. case ADM_PP_PARAM_MUTE_ID:
  27591. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27592. mute = ucontrol->value.integer.value[1] ? true : false;
  27593. msm_bedais_pp_params[index].mute_on = mute;
  27594. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27595. &msm_bedais_pp_params[index].pp_params_config);
  27596. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27597. adm_send_compressed_device_mute(port_id,
  27598. idx, mute);
  27599. break;
  27600. case ADM_PP_PARAM_LATENCY_ID:
  27601. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27602. msm_bedais_pp_params[index].latency =
  27603. ucontrol->value.integer.value[1];
  27604. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27605. &msm_bedais_pp_params[index].pp_params_config);
  27606. latency = msm_bedais_pp_params[index].latency =
  27607. ucontrol->value.integer.value[1];
  27608. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27609. adm_send_compressed_device_latency(port_id,
  27610. idx, latency);
  27611. break;
  27612. default:
  27613. pr_info("%s, device pp param %d not supported\n",
  27614. __func__, pp_id);
  27615. break;
  27616. }
  27617. }
  27618. }
  27619. return 0;
  27620. }
  27621. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27622. struct snd_ctl_elem_value *ucontrol)
  27623. {
  27624. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27625. return 0;
  27626. }
  27627. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27628. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27629. 0, 3, msm_routing_get_device_pp_params_mixer,
  27630. msm_routing_put_device_pp_params_mixer),
  27631. };
  27632. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27633. struct snd_ctl_elem_value *ucontrol)
  27634. {
  27635. ucontrol->value.integer.value[0] =
  27636. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27637. pr_debug("%s: status %ld\n", __func__,
  27638. ucontrol->value.integer.value[0]);
  27639. return 0;
  27640. }
  27641. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27642. struct snd_ctl_elem_value *ucontrol)
  27643. {
  27644. int32_t status = 0;
  27645. status = core_set_license(ucontrol->value.integer.value[0],
  27646. APTX_CLASSIC_DEC_LICENSE_ID);
  27647. pr_debug("%s: status %d\n", __func__, status);
  27648. return status;
  27649. }
  27650. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27651. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27652. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27653. msm_aptx_dec_license_control_put),
  27654. };
  27655. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27656. struct snd_ctl_elem_value *ucontrol)
  27657. {
  27658. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27659. uint32_t be_idx = ucontrol->value.integer.value[0];
  27660. int i;
  27661. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27662. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27663. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27664. pr_err("%s: Invalid channel map %d\n",
  27665. __func__, channel_map[i]);
  27666. return -EINVAL;
  27667. }
  27668. }
  27669. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27670. return 0;
  27671. }
  27672. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27673. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27674. MSM_BACKEND_DAI_MAX, 0,
  27675. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27676. msm_routing_put_port_chmap_mixer),
  27677. };
  27678. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27679. struct snd_ctl_elem_info *uinfo)
  27680. {
  27681. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27682. uinfo->count = sizeof(be_dai_name_table);
  27683. return 0;
  27684. }
  27685. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27686. unsigned int __user *bytes,
  27687. unsigned int size)
  27688. {
  27689. int i;
  27690. int ret = 0;
  27691. if (size < sizeof(be_dai_name_table)) {
  27692. pr_err("%s: invalid size %d requested, returning\n",
  27693. __func__, size);
  27694. ret = -EINVAL;
  27695. goto done;
  27696. }
  27697. /*
  27698. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27699. * needed when adding new backends
  27700. */
  27701. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27702. be_dai_name_table[i].be_id = i;
  27703. strlcpy(be_dai_name_table[i].be_name,
  27704. msm_bedais[i].name,
  27705. LPASS_BE_NAME_MAX_LENGTH);
  27706. }
  27707. ret = copy_to_user(bytes, &be_dai_name_table,
  27708. sizeof(be_dai_name_table));
  27709. if (ret) {
  27710. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27711. ret = -EFAULT;
  27712. }
  27713. done:
  27714. return ret;
  27715. }
  27716. static const struct snd_kcontrol_new
  27717. msm_routing_be_dai_name_table_mixer_controls[] = {
  27718. {
  27719. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27720. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27721. .info = msm_routing_be_dai_name_table_info,
  27722. .name = "Backend DAI Name Table",
  27723. .tlv.c = snd_soc_bytes_tlv_callback,
  27724. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27725. .max = sizeof(be_dai_name_table),
  27726. .get = msm_routing_be_dai_name_table_tlv_get,
  27727. }
  27728. },
  27729. };
  27730. static int msm_routing_stereo_channel_reverse_control_get(
  27731. struct snd_kcontrol *kcontrol,
  27732. struct snd_ctl_elem_value *ucontrol)
  27733. {
  27734. ucontrol->value.integer.value[0] = swap_ch;
  27735. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27736. ucontrol->value.integer.value[0]);
  27737. return 0;
  27738. }
  27739. static int msm_routing_stereo_channel_reverse_control_put(
  27740. struct snd_kcontrol *kcontrol,
  27741. struct snd_ctl_elem_value *ucontrol)
  27742. {
  27743. int i, idx, be_index, port_id;
  27744. int ret = 0;
  27745. unsigned long copp;
  27746. pr_debug("%s Swap channel value:%ld\n", __func__,
  27747. ucontrol->value.integer.value[0]);
  27748. swap_ch = ucontrol->value.integer.value[0];
  27749. mutex_lock(&routing_lock);
  27750. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27751. port_id = msm_bedais[be_index].port_id;
  27752. if (!msm_bedais[be_index].active)
  27753. continue;
  27754. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27755. MSM_FRONTEND_DAI_MM_SIZE) {
  27756. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27757. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27758. if (!test_bit(idx, &copp))
  27759. continue;
  27760. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27761. __func__, port_id, idx);
  27762. ret = adm_swap_speaker_channels(
  27763. port_id, idx,
  27764. msm_bedais[be_index].sample_rate,
  27765. swap_ch);
  27766. if (ret) {
  27767. pr_err("%s:Swap_channel failed, err=%d\n",
  27768. __func__, ret);
  27769. goto done;
  27770. }
  27771. }
  27772. }
  27773. }
  27774. done:
  27775. mutex_unlock(&routing_lock);
  27776. return ret;
  27777. }
  27778. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27779. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27780. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27781. msm_routing_stereo_channel_reverse_control_put),
  27782. };
  27783. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27784. struct snd_ctl_elem_info *uinfo)
  27785. {
  27786. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  27787. uinfo->count = 1;
  27788. return 0;
  27789. }
  27790. static int msm_routing_instance_id_support_put(
  27791. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27792. {
  27793. bool supported = ucontrol->value.integer.value[0] ? true : false;
  27794. q6common_update_instance_id_support(supported);
  27795. return 0;
  27796. }
  27797. static int msm_routing_instance_id_support_get(
  27798. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27799. {
  27800. bool supported = false;
  27801. supported = q6common_is_instance_id_supported();
  27802. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  27803. return 0;
  27804. }
  27805. static const struct snd_kcontrol_new
  27806. msm_routing_feature_support_mixer_controls[] = {
  27807. {
  27808. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  27809. SNDRV_CTL_ELEM_ACCESS_WRITE,
  27810. .info = msm_routing_instance_id_support_info,
  27811. .name = "Instance ID Support",
  27812. .put = msm_routing_instance_id_support_put,
  27813. .get = msm_routing_instance_id_support_get,
  27814. },
  27815. };
  27816. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  27817. .hw_params = msm_pcm_routing_hw_params,
  27818. .close = msm_pcm_routing_close,
  27819. .prepare = msm_pcm_routing_prepare,
  27820. };
  27821. /* Not used but frame seems to require it */
  27822. static int msm_routing_probe(struct snd_soc_component *component)
  27823. {
  27824. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  27825. ARRAY_SIZE(msm_qdsp6_widgets));
  27826. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  27827. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  27828. snd_soc_dapm_add_routes(&component->dapm, intercon,
  27829. ARRAY_SIZE(intercon));
  27830. snd_soc_dapm_new_widgets(component->dapm.card);
  27831. snd_soc_add_component_controls(component, lsm_controls,
  27832. ARRAY_SIZE(lsm_controls));
  27833. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  27834. ARRAY_SIZE(aanc_slim_0_rx_mux));
  27835. snd_soc_add_component_controls(component, aanc_noise_level,
  27836. ARRAY_SIZE(aanc_noise_level));
  27837. snd_soc_add_component_controls(component, msm_voc_session_controls,
  27838. ARRAY_SIZE(msm_voc_session_controls));
  27839. snd_soc_add_component_controls(component, app_type_cfg_controls,
  27840. ARRAY_SIZE(app_type_cfg_controls));
  27841. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  27842. ARRAY_SIZE(lsm_app_type_cfg_controls));
  27843. snd_soc_add_component_controls(component, module_cfg_controls,
  27844. ARRAY_SIZE(module_cfg_controls));
  27845. snd_soc_add_component_controls(component,
  27846. stereo_to_custom_stereo_controls,
  27847. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  27848. snd_soc_add_component_controls(component, ec_ref_param_controls,
  27849. ARRAY_SIZE(ec_ref_param_controls));
  27850. snd_soc_add_component_controls(component, channel_mixer_controls,
  27851. ARRAY_SIZE(channel_mixer_controls));
  27852. msm_qti_pp_add_controls(component);
  27853. msm_dts_srs_tm_add_controls(component);
  27854. msm_dolby_dap_add_controls(component);
  27855. snd_soc_add_component_controls(component,
  27856. use_ds1_or_ds2_controls,
  27857. ARRAY_SIZE(use_ds1_or_ds2_controls));
  27858. snd_soc_add_component_controls(component,
  27859. hifi_filter_controls,
  27860. ARRAY_SIZE(hifi_filter_controls));
  27861. snd_soc_add_component_controls(component,
  27862. device_pp_params_mixer_controls,
  27863. ARRAY_SIZE(device_pp_params_mixer_controls));
  27864. snd_soc_add_component_controls(component,
  27865. msm_routing_be_dai_name_table_mixer_controls,
  27866. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  27867. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  27868. ARRAY_SIZE(msm_source_tracking_controls));
  27869. snd_soc_add_component_controls(component, adm_channel_config_controls,
  27870. ARRAY_SIZE(adm_channel_config_controls));
  27871. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  27872. ARRAY_SIZE(aptx_dec_license_controls));
  27873. snd_soc_add_component_controls(component,
  27874. stereo_channel_reverse_control,
  27875. ARRAY_SIZE(stereo_channel_reverse_control));
  27876. snd_soc_add_component_controls(
  27877. component, msm_routing_feature_support_mixer_controls,
  27878. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  27879. snd_soc_add_component_controls(component,
  27880. port_multi_channel_map_mixer_controls,
  27881. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  27882. return 0;
  27883. }
  27884. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  27885. {
  27886. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  27887. }
  27888. void msm_routing_pcm_free(struct snd_pcm *pcm)
  27889. {
  27890. msm_pcm_routing_hwdep_free(pcm);
  27891. }
  27892. static struct snd_soc_component_driver msm_soc_routing_component = {
  27893. .name = DRV_NAME,
  27894. .ops = &msm_routing_pcm_ops,
  27895. .probe = msm_routing_probe,
  27896. .pcm_new = msm_routing_pcm_new,
  27897. .pcm_free = msm_routing_pcm_free,
  27898. };
  27899. static int msm_routing_pcm_probe(struct platform_device *pdev)
  27900. {
  27901. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  27902. return snd_soc_register_component(&pdev->dev,
  27903. &msm_soc_routing_component,
  27904. NULL, 0);
  27905. }
  27906. static int msm_routing_pcm_remove(struct platform_device *pdev)
  27907. {
  27908. snd_soc_unregister_component(&pdev->dev);
  27909. return 0;
  27910. }
  27911. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  27912. {.compatible = "qcom,msm-pcm-routing"},
  27913. {}
  27914. };
  27915. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  27916. static struct platform_driver msm_routing_pcm_driver = {
  27917. .driver = {
  27918. .name = "msm-pcm-routing",
  27919. .owner = THIS_MODULE,
  27920. .of_match_table = msm_pcm_routing_dt_match,
  27921. .suppress_bind_attrs = true,
  27922. },
  27923. .probe = msm_routing_pcm_probe,
  27924. .remove = msm_routing_pcm_remove,
  27925. };
  27926. int msm_routing_check_backend_enabled(int fedai_id)
  27927. {
  27928. int i;
  27929. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  27930. /* bad ID assigned in machine driver */
  27931. pr_err("%s: bad MM ID\n", __func__);
  27932. return 0;
  27933. }
  27934. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27935. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  27936. return msm_bedais[i].active;
  27937. }
  27938. return 0;
  27939. }
  27940. static int get_cal_type_index(int32_t cal_type)
  27941. {
  27942. int ret = -EINVAL;
  27943. switch (cal_type) {
  27944. case ADM_TOPOLOGY_CAL_TYPE:
  27945. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  27946. break;
  27947. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  27948. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  27949. break;
  27950. default:
  27951. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  27952. }
  27953. return ret;
  27954. }
  27955. static int msm_routing_set_cal(int32_t cal_type,
  27956. size_t data_size, void *data)
  27957. {
  27958. int ret = 0;
  27959. int cal_index;
  27960. pr_debug("%s\n", __func__);
  27961. cal_index = get_cal_type_index(cal_type);
  27962. if (cal_index < 0) {
  27963. pr_err("%s: Could not get cal index %d\n",
  27964. __func__, cal_index);
  27965. ret = -EINVAL;
  27966. goto done;
  27967. }
  27968. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  27969. if (ret < 0) {
  27970. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  27971. __func__, ret, cal_type);
  27972. ret = -EINVAL;
  27973. goto done;
  27974. }
  27975. /* Pre-load if it is ADM topology */
  27976. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  27977. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27978. msm_routing_load_topology(data_size, data);
  27979. }
  27980. done:
  27981. return ret;
  27982. }
  27983. static void msm_routing_delete_cal_data(void)
  27984. {
  27985. pr_debug("%s\n", __func__);
  27986. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27987. }
  27988. static int msm_routing_init_cal_data(void)
  27989. {
  27990. int ret = 0;
  27991. struct cal_type_info cal_type_info[] = {
  27992. {{ADM_TOPOLOGY_CAL_TYPE,
  27993. {NULL, NULL, NULL,
  27994. msm_routing_set_cal, NULL, NULL} },
  27995. {NULL, NULL, cal_utils_match_buf_num} },
  27996. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  27997. {NULL, NULL, NULL,
  27998. msm_routing_set_cal, NULL, NULL} },
  27999. {NULL, NULL, cal_utils_match_buf_num} },
  28000. };
  28001. pr_debug("%s\n", __func__);
  28002. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28003. &cal_type_info[0]);
  28004. if (ret < 0) {
  28005. pr_err("%s: could not create cal type!\n",
  28006. __func__);
  28007. ret = -EINVAL;
  28008. goto err;
  28009. }
  28010. return ret;
  28011. err:
  28012. msm_routing_delete_cal_data();
  28013. return ret;
  28014. }
  28015. int __init msm_soc_routing_platform_init(void)
  28016. {
  28017. mutex_init(&routing_lock);
  28018. if (msm_routing_init_cal_data())
  28019. pr_err("%s: could not init cal data!\n", __func__);
  28020. afe_set_routing_callback(
  28021. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28022. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28023. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28024. return platform_driver_register(&msm_routing_pcm_driver);
  28025. }
  28026. void msm_soc_routing_platform_exit(void)
  28027. {
  28028. msm_routing_delete_cal_data();
  28029. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28030. mutex_destroy(&routing_lock);
  28031. platform_driver_unregister(&msm_routing_pcm_driver);
  28032. }
  28033. MODULE_DESCRIPTION("MSM routing platform driver");
  28034. MODULE_LICENSE("GPL v2");