msm-pcm-routing-v2.c 949 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2018, 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 int0_mi2s_switch_enable;
  53. static int int4_mi2s_switch_enable;
  54. static int pri_mi2s_switch_enable;
  55. static int sec_mi2s_switch_enable;
  56. static int tert_mi2s_switch_enable;
  57. static int quat_mi2s_switch_enable;
  58. static int quin_mi2s_switch_enable;
  59. static int fm_pcmrx_switch_enable;
  60. static int usb_switch_enable;
  61. static int lsm_port_index;
  62. static int slim0_rx_aanc_fb_port;
  63. static int msm_route_ec_ref_rx;
  64. static int msm_ec_ref_ch = 4;
  65. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  66. static int msm_ec_ref_sampling_rate = 48000;
  67. static uint32_t voc_session_id = ALL_SESSION_VSID;
  68. static int msm_route_ext_ec_ref;
  69. static bool is_custom_stereo_on;
  70. static bool is_ds2_on;
  71. static bool swap_ch;
  72. static int aanc_level;
  73. static int num_app_cfg_types;
  74. static int msm_ec_ref_port_id;
  75. #define WEIGHT_0_DB 0x4000
  76. /* all the FEs which can support channel mixer */
  77. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  78. /* input BE for each FE */
  79. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  80. enum {
  81. MADNONE,
  82. MADAUDIO,
  83. MADBEACON,
  84. MADULTRASOUND,
  85. MADSWAUDIO,
  86. };
  87. #define ADM_LSM_PORT_INDEX 9
  88. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  89. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  90. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  91. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  92. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  93. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  94. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  95. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  96. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  97. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  98. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  99. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  100. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  101. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  102. #define LSM_FUNCTION_TEXT "LSM Function"
  103. static const char * const lsm_port_text[] = {
  104. "None",
  105. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  106. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  107. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  108. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  109. TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  110. };
  111. struct msm_pcm_route_bdai_pp_params {
  112. u16 port_id; /* AFE port ID */
  113. unsigned long pp_params_config;
  114. bool mute_on;
  115. int latency;
  116. };
  117. static struct msm_pcm_route_bdai_pp_params
  118. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  119. {HDMI_RX, 0, 0, 0},
  120. {DISPLAY_PORT_RX, 0, 0, 0},
  121. };
  122. /*
  123. * The be_dai_name_table is passed to HAL so that it can specify the
  124. * BE ID for the BE it wants to enable based on the name. Thus there
  125. * is a matching table and structure in HAL that need to be updated
  126. * if any changes to these are made.
  127. */
  128. struct msm_pcm_route_bdai_name {
  129. unsigned int be_id;
  130. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  131. };
  132. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  133. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  134. int fe_id);
  135. static void msm_routing_load_topology(size_t data_size, void *data);
  136. static void msm_routing_unload_topology(uint32_t topology_id);
  137. static int msm_routing_get_bit_width(unsigned int format)
  138. {
  139. int bit_width;
  140. switch (format) {
  141. case SNDRV_PCM_FORMAT_S32_LE:
  142. bit_width = 32;
  143. break;
  144. case SNDRV_PCM_FORMAT_S24_LE:
  145. case SNDRV_PCM_FORMAT_S24_3LE:
  146. bit_width = 24;
  147. break;
  148. case SNDRV_PCM_FORMAT_S16_LE:
  149. default:
  150. bit_width = 16;
  151. }
  152. return bit_width;
  153. }
  154. static bool msm_is_resample_needed(int input_sr, int output_sr)
  155. {
  156. bool rc = false;
  157. if (input_sr != output_sr)
  158. rc = true;
  159. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  160. (rc ? "oh yes" : "not really"),
  161. input_sr, output_sr);
  162. return rc;
  163. }
  164. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  165. int channels)
  166. {
  167. int rc = 0;
  168. switch (topology) {
  169. case SRS_TRUMEDIA_TOPOLOGY_ID:
  170. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  171. msm_dts_srs_tm_init(port_id, copp_idx);
  172. break;
  173. case DS2_ADM_COPP_TOPOLOGY_ID:
  174. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  175. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  176. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  177. is_custom_stereo_on);
  178. if (rc < 0)
  179. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  180. __func__, topology, port_id,
  181. is_custom_stereo_on, rc);
  182. break;
  183. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  184. if (is_ds2_on) {
  185. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  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, rc %d\n",
  190. __func__, topology, port_id, rc);
  191. } else {
  192. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  193. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  194. is_custom_stereo_on);
  195. if (rc < 0)
  196. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  197. __func__, topology, port_id, rc);
  198. }
  199. break;
  200. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  201. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  202. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  203. if (rc < 0)
  204. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  205. __func__, topology, port_id, copp_idx, rc);
  206. break;
  207. default:
  208. /* custom topology specific feature param handlers */
  209. break;
  210. }
  211. }
  212. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  213. {
  214. switch (topology) {
  215. case SRS_TRUMEDIA_TOPOLOGY_ID:
  216. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  217. msm_dts_srs_tm_deinit(port_id);
  218. break;
  219. case DS2_ADM_COPP_TOPOLOGY_ID:
  220. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  221. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  222. msm_ds2_dap_deinit(port_id);
  223. break;
  224. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  225. if (is_ds2_on) {
  226. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  227. msm_ds2_dap_deinit(port_id);
  228. } else {
  229. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  230. msm_dolby_dap_deinit(port_id);
  231. }
  232. break;
  233. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  234. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  235. msm_qti_pp_asphere_deinit(port_id);
  236. break;
  237. default:
  238. /* custom topology specific feature deinit handlers */
  239. break;
  240. }
  241. }
  242. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  243. int path_type, int perf_mode)
  244. {
  245. int itr = 0, rc = 0;
  246. if ((path_type == ADM_PATH_PLAYBACK) &&
  247. (perf_mode == LEGACY_PCM_MODE) &&
  248. is_custom_stereo_on) {
  249. for (itr = 0; itr < payload.num_copps; itr++) {
  250. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  251. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  252. continue;
  253. }
  254. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  255. payload.port_id[itr],
  256. payload.copp_idx[itr],
  257. payload.session_id,
  258. Q14_GAIN_ZERO_POINT_FIVE,
  259. Q14_GAIN_ZERO_POINT_FIVE,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE);
  262. if (rc < 0)
  263. pr_err("%s: err setting custom stereo\n",
  264. __func__);
  265. }
  266. }
  267. }
  268. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  269. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  270. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  271. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  272. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  273. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  274. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  275. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  276. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  277. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  278. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  279. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  280. LPASS_BE_AFE_PCM_RX},
  281. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  282. LPASS_BE_AFE_PCM_TX},
  283. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  284. LPASS_BE_AUXPCM_RX},
  285. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  286. LPASS_BE_AUXPCM_TX},
  287. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  288. LPASS_BE_VOICE_PLAYBACK_TX},
  289. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_VOICE2_PLAYBACK_TX},
  291. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_INCALL_RECORD_RX},
  293. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_INCALL_RECORD_TX},
  295. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  296. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  297. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  298. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  299. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  300. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  301. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  302. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  303. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  304. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  305. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  306. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  307. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  308. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  309. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  310. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  311. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  312. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  313. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  314. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  315. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  317. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  318. LPASS_BE_QUAT_MI2S_RX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  320. LPASS_BE_QUAT_MI2S_TX},
  321. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  322. LPASS_BE_SEC_MI2S_RX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  324. LPASS_BE_SEC_MI2S_TX},
  325. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  326. LPASS_BE_PRI_MI2S_RX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_PRI_MI2S_TX},
  329. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_TERT_MI2S_RX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_TERT_MI2S_TX},
  333. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_AUDIO_I2S_RX},
  335. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_AUXPCM_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_SEC_AUXPCM_TX},
  339. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_SPDIF_RX},
  341. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_SEC_MI2S_RX_SD1},
  343. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_QUIN_MI2S_RX},
  345. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_QUIN_MI2S_TX},
  347. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SENARY_MI2S_TX},
  349. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_PRI_TDM_RX_0},
  351. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_TDM_TX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_PRI_TDM_RX_1},
  355. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_PRI_TDM_TX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_PRI_TDM_RX_2},
  359. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_TX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_3},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_4},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_5},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_6},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_7},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_7},
  381. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_SEC_TDM_RX_0},
  383. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_SEC_TDM_TX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_SEC_TDM_RX_1},
  387. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_SEC_TDM_TX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_SEC_TDM_RX_2},
  391. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_TX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_3},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_4},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_5},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_6},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_7},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_7},
  413. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_TERT_TDM_RX_0},
  415. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_TERT_TDM_TX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_TERT_TDM_RX_1},
  419. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_TERT_TDM_TX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_TERT_TDM_RX_2},
  423. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_TX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_3},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_4},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_5},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_6},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_7},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_7},
  445. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_QUAT_TDM_RX_0},
  447. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_QUAT_TDM_TX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_QUAT_TDM_RX_1},
  451. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_QUAT_TDM_TX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_QUAT_TDM_RX_2},
  455. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_TX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_3},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_4},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_5},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_6},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_7},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_7},
  477. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUIN_TDM_RX_0},
  479. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUIN_TDM_TX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUIN_TDM_RX_1},
  483. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUIN_TDM_TX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUIN_TDM_RX_2},
  487. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_TX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_3},
  491. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_4},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_5},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_6},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_7},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_7},
  509. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_INT_BT_A2DP_RX},
  511. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_USB_AUDIO_RX},
  513. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_USB_AUDIO_TX},
  515. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_DISPLAY_PORT},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_DISPLAY_PORT1},
  519. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_TERT_AUXPCM_RX},
  521. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_TERT_AUXPCM_TX},
  523. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_QUAT_AUXPCM_RX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_QUAT_AUXPCM_TX},
  527. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_QUIN_AUXPCM_RX},
  529. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_QUIN_AUXPCM_TX},
  531. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_INT0_MI2S_RX},
  533. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_INT0_MI2S_TX},
  535. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_INT1_MI2S_RX},
  537. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_INT1_MI2S_TX},
  539. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_INT2_MI2S_RX},
  541. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_INT2_MI2S_TX},
  543. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_INT3_MI2S_RX},
  545. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_INT3_MI2S_TX},
  547. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_INT4_MI2S_RX},
  549. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_INT4_MI2S_TX},
  551. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT5_MI2S_RX},
  553. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT5_MI2S_TX},
  555. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_INT6_MI2S_RX},
  557. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_INT6_MI2S_TX},
  559. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_SEN_AUXPCM_RX},
  561. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_SEN_AUXPCM_TX},
  563. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_SENARY_MI2S_RX},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_WSA_CDC_DMA_RX_0},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_WSA_CDC_DMA_TX_0},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_WSA_CDC_DMA_RX_1},
  571. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_WSA_CDC_DMA_TX_1},
  573. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_WSA_CDC_DMA_TX_2},
  575. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_VA_CDC_DMA_TX_0},
  577. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_VA_CDC_DMA_TX_1},
  579. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_RX_CDC_DMA_RX_0},
  581. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_TX_CDC_DMA_TX_0},
  583. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_RX_CDC_DMA_RX_1},
  585. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_TX_CDC_DMA_TX_1},
  587. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_RX_CDC_DMA_RX_2},
  589. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_TX_CDC_DMA_TX_2},
  591. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_RX_CDC_DMA_RX_3},
  593. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_TX_CDC_DMA_TX_3},
  595. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_RX_CDC_DMA_RX_4},
  597. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_TX_CDC_DMA_TX_4},
  599. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_RX_CDC_DMA_RX_5},
  601. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_TX_CDC_DMA_TX_5},
  603. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_RX_CDC_DMA_RX_6},
  605. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_RX_CDC_DMA_RX_7},
  607. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_PRI_SPDIF_TX},
  609. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_SEC_SPDIF_RX},
  611. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_SEC_SPDIF_TX},
  613. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  614. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  615. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  616. };
  617. /* Track ASM playback & capture sessions of DAI
  618. * Track LSM listen sessions
  619. */
  620. static struct msm_pcm_routing_fdai_data
  621. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  622. /* MULTIMEDIA1 */
  623. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  624. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  625. /* MULTIMEDIA2 */
  626. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  627. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  628. /* MULTIMEDIA3 */
  629. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  630. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  631. /* MULTIMEDIA4 */
  632. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  633. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  634. /* MULTIMEDIA5 */
  635. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  636. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  637. /* MULTIMEDIA6 */
  638. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  639. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  640. /* MULTIMEDIA7*/
  641. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  642. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  643. /* MULTIMEDIA8 */
  644. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  645. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  646. /* MULTIMEDIA9 */
  647. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  648. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  649. /* MULTIMEDIA10 */
  650. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  651. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  652. /* MULTIMEDIA11 */
  653. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  654. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  655. /* MULTIMEDIA12 */
  656. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  657. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  658. /* MULTIMEDIA13 */
  659. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  660. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  661. /* MULTIMEDIA14 */
  662. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  663. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  664. /* MULTIMEDIA15 */
  665. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  666. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  667. /* MULTIMEDIA16 */
  668. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  669. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  670. /* MULTIMEDIA17 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  673. /* MULTIMEDIA18 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA19 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA20 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA21 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA26 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA27 */
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA28 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA29 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* VOIP */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* AFE_RX */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* AFE_TX */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* VOICE_STUB */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* DTMF_RX */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* QCHAT */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* VOLTE_STUB */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* LSM1 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* LSM2 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* LSM3 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* LSM4 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* LSM5 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* LSM6 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* LSM7 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* LSM8 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* VOICE2_STUB */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* VOICEMMODE1 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* VOICEMMODE2 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. };
  752. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  753. [MSM_BACKEND_DAI_MAX];
  754. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  755. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  756. static struct msm_pcm_stream_app_type_cfg
  757. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  758. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  759. /* The caller of this should acquire routing lock */
  760. void msm_pcm_routing_get_bedai_info(int be_idx,
  761. struct msm_pcm_routing_bdai_data *be_dai)
  762. {
  763. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  764. memcpy(be_dai, &msm_bedais[be_idx],
  765. sizeof(struct msm_pcm_routing_bdai_data));
  766. }
  767. /* The caller of this should acquire routing lock */
  768. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  769. struct msm_pcm_routing_fdai_data *fe_dai)
  770. {
  771. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  772. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  773. sizeof(struct msm_pcm_routing_fdai_data));
  774. }
  775. void msm_pcm_routing_acquire_lock(void)
  776. {
  777. mutex_lock(&routing_lock);
  778. }
  779. void msm_pcm_routing_release_lock(void)
  780. {
  781. mutex_unlock(&routing_lock);
  782. }
  783. static int msm_pcm_routing_get_app_type_idx(int app_type)
  784. {
  785. int idx;
  786. pr_debug("%s: app_type: %d\n", __func__, app_type);
  787. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  788. if (app_type_cfg[idx].app_type == app_type)
  789. return idx;
  790. }
  791. pr_info("%s: App type not available, fallback to default\n", __func__);
  792. return 0;
  793. }
  794. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  795. {
  796. int idx;
  797. pr_debug("%s: app_type: %d\n", __func__, app_type);
  798. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  799. if (lsm_app_type_cfg[idx].app_type == app_type)
  800. return idx;
  801. }
  802. pr_debug("%s: App type not available, fallback to default\n", __func__);
  803. return 0;
  804. }
  805. static int get_port_id(int port_id)
  806. {
  807. return (port_id == AFE_LOOPBACK_TX ? msm_ec_ref_port_id : port_id);
  808. }
  809. static bool is_mm_lsm_fe_id(int fe_id)
  810. {
  811. bool rc = true;
  812. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  813. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  814. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  815. rc = false;
  816. }
  817. return rc;
  818. }
  819. /*
  820. * msm_pcm_routing_send_chmix_cfg:
  821. * send the channel mixer command to mix the input channels
  822. * into output channels.
  823. *
  824. * @fe_id: front end id
  825. * @ip_channel_cnt: input channel count
  826. * @op_channel_cnt: output channel count
  827. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  828. * @session_type: indicates session is of type TX or RX
  829. * @stream_type: indicates either Audio or Listen stream type
  830. */
  831. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  832. int op_channel_cnt, int *ch_wght_coeff,
  833. int session_type, int stream_type)
  834. {
  835. int rc = 0, idx = 0;
  836. int be_index = 0, port_id;
  837. unsigned int session_id = 0;
  838. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  839. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  840. stream_type);
  841. if (!is_mm_lsm_fe_id(fe_id)) {
  842. /* bad ID assigned in machine driver */
  843. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  844. return -EINVAL;
  845. }
  846. if (ch_wght_coeff == NULL) {
  847. pr_err("%s: Null channel weightage coefficients passed\n",
  848. __func__);
  849. return -EINVAL;
  850. }
  851. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  852. port_id = msm_bedais[be_index].port_id;
  853. if (!msm_bedais[be_index].active ||
  854. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  855. continue;
  856. session_id = fe_dai_map[fe_id][session_type].strm_id;
  857. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  858. unsigned long copp =
  859. session_copp_map[fe_id][session_type][be_index];
  860. if (!test_bit(idx, &copp))
  861. continue;
  862. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  863. session_id, ip_channel_cnt,
  864. op_channel_cnt, ch_wght_coeff,
  865. session_type, stream_type);
  866. if (rc < 0)
  867. pr_err("%s: err setting channel mix config\n",
  868. __func__);
  869. }
  870. }
  871. return 0;
  872. }
  873. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  874. int msm_pcm_routing_reg_stream_app_type_cfg(
  875. int fedai_id, int session_type, int be_id,
  876. struct msm_pcm_stream_app_type_cfg *cfg_data)
  877. {
  878. int ret = 0;
  879. if (cfg_data == NULL) {
  880. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  881. ret = -EINVAL;
  882. goto done;
  883. }
  884. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  885. __func__, fedai_id, session_type, be_id,
  886. cfg_data->app_type, cfg_data->acdb_dev_id,
  887. cfg_data->sample_rate);
  888. if (!is_mm_lsm_fe_id(fedai_id)) {
  889. pr_err("%s: Invalid machine driver ID %d\n",
  890. __func__, fedai_id);
  891. ret = -EINVAL;
  892. goto done;
  893. }
  894. if (session_type != SESSION_TYPE_RX &&
  895. session_type != SESSION_TYPE_TX) {
  896. pr_err("%s: Invalid session type %d\n",
  897. __func__, session_type);
  898. ret = -EINVAL;
  899. goto done;
  900. }
  901. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  902. pr_err("%s: Received out of bounds be_id %d\n",
  903. __func__, be_id);
  904. ret = -EINVAL;
  905. goto done;
  906. }
  907. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  908. /*
  909. * Store the BE ID of the configuration information set as the latest so
  910. * the get mixer control knows what to return.
  911. */
  912. last_be_id_configured[fedai_id][session_type] = be_id;
  913. done:
  914. return ret;
  915. }
  916. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  917. /**
  918. * msm_pcm_routing_get_stream_app_type_cfg
  919. *
  920. * Receives fedai_id, session_type, be_id, and populates app_type,
  921. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  922. * -EINVAL and does not alter passed values.
  923. *
  924. * fedai_id - Passed value, front end ID for which app type config is wanted
  925. * session_type - Passed value, session type for which app type config
  926. * is wanted
  927. * be_id - Returned value, back end device id the app type config data is for
  928. * cfg_data - Returned value, configuration data used by app type config
  929. */
  930. int msm_pcm_routing_get_stream_app_type_cfg(
  931. int fedai_id, int session_type, int *bedai_id,
  932. struct msm_pcm_stream_app_type_cfg *cfg_data)
  933. {
  934. int be_id;
  935. int ret = 0;
  936. if (bedai_id == NULL) {
  937. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  938. ret = -EINVAL;
  939. goto done;
  940. } else if (cfg_data == NULL) {
  941. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  942. ret = -EINVAL;
  943. goto done;
  944. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  945. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  946. ret = -EINVAL;
  947. goto done;
  948. } else if (session_type != SESSION_TYPE_RX &&
  949. session_type != SESSION_TYPE_TX) {
  950. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  951. ret = -EINVAL;
  952. goto done;
  953. }
  954. be_id = last_be_id_configured[fedai_id][session_type];
  955. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  956. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  957. ret = -EINVAL;
  958. goto done;
  959. }
  960. *bedai_id = be_id;
  961. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  962. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  963. __func__, fedai_id, session_type, *bedai_id,
  964. cfg_data->app_type, cfg_data->acdb_dev_id,
  965. cfg_data->sample_rate);
  966. done:
  967. return ret;
  968. }
  969. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  970. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  971. int cal_index)
  972. {
  973. struct list_head *ptr, *next;
  974. struct cal_block_data *cal_block = NULL;
  975. pr_debug("%s\n", __func__);
  976. list_for_each_safe(ptr, next,
  977. &cal_data[cal_index]->cal_blocks) {
  978. cal_block = list_entry(ptr,
  979. struct cal_block_data, list);
  980. if (cal_utils_is_cal_stale(cal_block))
  981. continue;
  982. if (((struct audio_cal_info_adm_top *)cal_block
  983. ->cal_info)->path == path) {
  984. return cal_block;
  985. }
  986. }
  987. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  988. return NULL;
  989. }
  990. static struct cal_block_data *msm_routing_find_topology(int path,
  991. int app_type,
  992. int acdb_id,
  993. int cal_index)
  994. {
  995. struct list_head *ptr, *next;
  996. struct cal_block_data *cal_block = NULL;
  997. struct audio_cal_info_adm_top *cal_info;
  998. pr_debug("%s\n", __func__);
  999. list_for_each_safe(ptr, next,
  1000. &cal_data[cal_index]->cal_blocks) {
  1001. cal_block = list_entry(ptr,
  1002. struct cal_block_data, list);
  1003. if (cal_utils_is_cal_stale(cal_block))
  1004. continue;
  1005. cal_info = (struct audio_cal_info_adm_top *)
  1006. cal_block->cal_info;
  1007. if ((cal_info->path == path) &&
  1008. (cal_info->app_type == app_type) &&
  1009. (cal_info->acdb_id == acdb_id)) {
  1010. return cal_block;
  1011. }
  1012. }
  1013. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  1014. __func__, path, app_type, acdb_id);
  1015. return msm_routing_find_topology_by_path(path, cal_index);
  1016. }
  1017. /*
  1018. * Retrieving cal_block will mark cal_block as stale.
  1019. * Hence it cannot be reused or resent unless the flag
  1020. * is reset.
  1021. */
  1022. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1023. int be_id)
  1024. {
  1025. int topology = NULL_COPP_TOPOLOGY;
  1026. struct cal_block_data *cal_block = NULL;
  1027. int app_type = 0, acdb_dev_id = 0;
  1028. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1029. __func__, fedai_id, session_type, be_id);
  1030. if (cal_data == NULL)
  1031. goto done;
  1032. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1033. acdb_dev_id =
  1034. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1035. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1036. cal_block = msm_routing_find_topology(session_type, app_type,
  1037. acdb_dev_id,
  1038. ADM_TOPOLOGY_CAL_TYPE_IDX);
  1039. if (cal_block != NULL) {
  1040. topology = ((struct audio_cal_info_adm_top *)
  1041. cal_block->cal_info)->topology;
  1042. cal_utils_mark_cal_used(cal_block);
  1043. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1044. } else {
  1045. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1046. pr_debug("%s: Check for LSM topology\n", __func__);
  1047. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1048. cal_block = msm_routing_find_topology(session_type, app_type,
  1049. acdb_dev_id,
  1050. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  1051. if (cal_block != NULL) {
  1052. topology = ((struct audio_cal_info_adm_top *)
  1053. cal_block->cal_info)->topology;
  1054. cal_utils_mark_cal_used(cal_block);
  1055. }
  1056. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1057. }
  1058. done:
  1059. pr_debug("%s: Using topology %d\n", __func__, topology);
  1060. return topology;
  1061. }
  1062. static uint8_t is_be_dai_extproc(int be_dai)
  1063. {
  1064. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1065. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1066. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1067. return 1;
  1068. else
  1069. return 0;
  1070. }
  1071. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1072. int path_type, int perf_mode,
  1073. uint32_t passthr_mode)
  1074. {
  1075. int i, port_type, j, num_copps = 0;
  1076. struct route_payload payload;
  1077. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1078. path_type == ADM_PATH_COMPRESSED_RX) ?
  1079. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1080. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1081. if (!is_be_dai_extproc(i) &&
  1082. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1083. (msm_bedais[i].active) &&
  1084. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1085. int port_id = get_port_id(msm_bedais[i].port_id);
  1086. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1087. unsigned long copp =
  1088. session_copp_map[fedai_id][sess_type][i];
  1089. if (test_bit(j, &copp)) {
  1090. payload.port_id[num_copps] = port_id;
  1091. payload.copp_idx[num_copps] = j;
  1092. payload.app_type[num_copps] =
  1093. fe_dai_app_type_cfg
  1094. [fedai_id][sess_type][i]
  1095. .app_type;
  1096. payload.acdb_dev_id[num_copps] =
  1097. fe_dai_app_type_cfg
  1098. [fedai_id][sess_type][i]
  1099. .acdb_dev_id;
  1100. payload.sample_rate[num_copps] =
  1101. fe_dai_app_type_cfg
  1102. [fedai_id][sess_type][i]
  1103. .sample_rate;
  1104. num_copps++;
  1105. }
  1106. }
  1107. }
  1108. }
  1109. if (num_copps) {
  1110. payload.num_copps = num_copps;
  1111. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1112. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1113. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1114. }
  1115. }
  1116. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1117. int stream_type)
  1118. {
  1119. int i, session_type, path_type, port_type;
  1120. u32 mode = 0;
  1121. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1122. /* bad ID assigned in machine driver */
  1123. pr_err("%s: bad MM ID\n", __func__);
  1124. return;
  1125. }
  1126. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1127. session_type = SESSION_TYPE_RX;
  1128. path_type = ADM_PATH_PLAYBACK;
  1129. port_type = MSM_AFE_PORT_TYPE_RX;
  1130. } else {
  1131. session_type = SESSION_TYPE_TX;
  1132. path_type = ADM_PATH_LIVE_REC;
  1133. port_type = MSM_AFE_PORT_TYPE_TX;
  1134. }
  1135. mutex_lock(&routing_lock);
  1136. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1137. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1138. if (!is_be_dai_extproc(i) &&
  1139. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1140. (msm_bedais[i].active) &&
  1141. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1142. mode = afe_get_port_type(msm_bedais[i].port_id);
  1143. adm_connect_afe_port(mode, dspst_id,
  1144. msm_bedais[i].port_id);
  1145. break;
  1146. }
  1147. }
  1148. mutex_unlock(&routing_lock);
  1149. }
  1150. static bool route_check_fe_id_adm_support(int fe_id)
  1151. {
  1152. bool rc = true;
  1153. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1154. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1155. /* fe id is listen while port is set to afe */
  1156. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1157. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1158. __func__, fe_id, lsm_port_index);
  1159. rc = false;
  1160. }
  1161. }
  1162. return rc;
  1163. }
  1164. /*
  1165. * msm_pcm_routing_get_pp_ch_cnt:
  1166. * Read the processed channel count
  1167. *
  1168. * @fe_id: Front end ID
  1169. * @session_type: Inidicates RX or TX session type
  1170. */
  1171. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1172. {
  1173. struct msm_pcm_stream_app_type_cfg cfg_data;
  1174. int be_id = 0, app_type_idx = 0, app_type = 0;
  1175. int ret = -EINVAL;
  1176. memset(&cfg_data, 0, sizeof(cfg_data));
  1177. if (!is_mm_lsm_fe_id(fe_id)) {
  1178. pr_err("%s: bad MM ID\n", __func__);
  1179. return -EINVAL;
  1180. }
  1181. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1182. &be_id, &cfg_data);
  1183. if (ret) {
  1184. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1185. return ret;
  1186. }
  1187. app_type = cfg_data.app_type;
  1188. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1189. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1190. }
  1191. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1192. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1193. int dspst_id, int stream_type,
  1194. uint32_t passthr_mode)
  1195. {
  1196. int i, j, session_type, path_type, port_type, topology;
  1197. int num_copps = 0;
  1198. struct route_payload payload;
  1199. u32 channels, sample_rate;
  1200. u16 bit_width = 16;
  1201. bool is_lsm;
  1202. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1203. __func__, fe_id, perf_mode, dspst_id,
  1204. stream_type, passthr_mode);
  1205. if (!is_mm_lsm_fe_id(fe_id)) {
  1206. /* bad ID assigned in machine driver */
  1207. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1208. return -EINVAL;
  1209. }
  1210. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1211. session_type = SESSION_TYPE_RX;
  1212. if (passthr_mode != LEGACY_PCM)
  1213. path_type = ADM_PATH_COMPRESSED_RX;
  1214. else
  1215. path_type = ADM_PATH_PLAYBACK;
  1216. port_type = MSM_AFE_PORT_TYPE_RX;
  1217. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1218. session_type = SESSION_TYPE_TX;
  1219. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1220. path_type = ADM_PATH_COMPRESSED_TX;
  1221. else
  1222. path_type = ADM_PATH_LIVE_REC;
  1223. port_type = MSM_AFE_PORT_TYPE_TX;
  1224. } else {
  1225. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1226. return -EINVAL;
  1227. }
  1228. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1229. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1230. mutex_lock(&routing_lock);
  1231. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1232. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1233. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1234. if (!route_check_fe_id_adm_support(fe_id)) {
  1235. /* ignore adm open if not supported for fe_id */
  1236. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1237. mutex_unlock(&routing_lock);
  1238. return 0;
  1239. }
  1240. payload.num_copps = 0; /* only RX needs to use payload */
  1241. /* re-enable EQ if active */
  1242. msm_qti_pp_send_eq_values(fe_id);
  1243. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1244. if (!is_be_dai_extproc(i) &&
  1245. (afe_get_port_type(msm_bedais[i].port_id) ==
  1246. port_type) &&
  1247. (msm_bedais[i].active) &&
  1248. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1249. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1250. int port_id = get_port_id(msm_bedais[i].port_id);
  1251. /*
  1252. * check if ADM needs to be configured with different
  1253. * channel mapping than backend
  1254. */
  1255. if (!msm_bedais[i].adm_override_ch)
  1256. channels = msm_bedais[i].channel;
  1257. else
  1258. channels = msm_bedais[i].adm_override_ch;
  1259. bit_width = msm_routing_get_bit_width(
  1260. msm_bedais[i].format);
  1261. app_type =
  1262. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1263. if (app_type && is_lsm) {
  1264. app_type_idx =
  1265. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1266. sample_rate =
  1267. fe_dai_app_type_cfg[fe_id][session_type][i]
  1268. .sample_rate;
  1269. bit_width =
  1270. lsm_app_type_cfg[app_type_idx].bit_width;
  1271. } else if (app_type) {
  1272. app_type_idx =
  1273. msm_pcm_routing_get_app_type_idx(
  1274. app_type);
  1275. sample_rate =
  1276. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1277. bit_width =
  1278. app_type_cfg[app_type_idx].bit_width;
  1279. } else {
  1280. sample_rate = msm_bedais[i].sample_rate;
  1281. }
  1282. acdb_dev_id =
  1283. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1284. topology = msm_routing_get_adm_topology(fe_id,
  1285. session_type,
  1286. i);
  1287. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1288. || (passthr_mode ==
  1289. COMPRESSED_PASSTHROUGH_GEN)
  1290. || (passthr_mode ==
  1291. COMPRESSED_PASSTHROUGH_IEC61937))
  1292. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1293. pr_debug("%s: Before adm open topology %d\n", __func__,
  1294. topology);
  1295. copp_idx =
  1296. adm_open(port_id, path_type, sample_rate,
  1297. channels, topology, perf_mode,
  1298. bit_width, app_type, acdb_dev_id,
  1299. session_type);
  1300. if ((copp_idx < 0) ||
  1301. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1302. pr_err("%s:adm open failed coppid:%d\n",
  1303. __func__, copp_idx);
  1304. mutex_unlock(&routing_lock);
  1305. return -EINVAL;
  1306. }
  1307. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1308. __func__, fe_id, session_type, i);
  1309. set_bit(copp_idx,
  1310. &session_copp_map[fe_id][session_type][i]);
  1311. if (msm_is_resample_needed(
  1312. sample_rate,
  1313. msm_bedais[i].sample_rate))
  1314. adm_copp_mfc_cfg(port_id, copp_idx,
  1315. msm_bedais[i].sample_rate);
  1316. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1317. unsigned long copp =
  1318. session_copp_map[fe_id][session_type][i];
  1319. if (test_bit(j, &copp)) {
  1320. payload.port_id[num_copps] = port_id;
  1321. payload.copp_idx[num_copps] = j;
  1322. payload.app_type[num_copps] =
  1323. fe_dai_app_type_cfg
  1324. [fe_id][session_type][i]
  1325. .app_type;
  1326. payload.acdb_dev_id[num_copps] =
  1327. fe_dai_app_type_cfg
  1328. [fe_id][session_type][i]
  1329. .acdb_dev_id;
  1330. payload.sample_rate[num_copps] =
  1331. fe_dai_app_type_cfg
  1332. [fe_id][session_type][i]
  1333. .sample_rate;
  1334. num_copps++;
  1335. }
  1336. }
  1337. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1338. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1339. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1340. msm_routing_send_device_pp_params(port_id,
  1341. copp_idx, fe_id);
  1342. }
  1343. }
  1344. if (num_copps) {
  1345. payload.num_copps = num_copps;
  1346. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1347. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1348. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1349. }
  1350. mutex_unlock(&routing_lock);
  1351. return 0;
  1352. }
  1353. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1354. {
  1355. u32 session_id;
  1356. switch (val) {
  1357. case MSM_FRONTEND_DAI_QCHAT:
  1358. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1359. break;
  1360. case MSM_FRONTEND_DAI_VOIP:
  1361. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1362. break;
  1363. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1364. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1365. break;
  1366. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1367. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1368. break;
  1369. default:
  1370. session_id = 0;
  1371. }
  1372. pr_debug("%s session_id 0x%x", __func__, session_id);
  1373. return session_id;
  1374. }
  1375. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1376. int dspst_id, int stream_type)
  1377. {
  1378. int copp_idx = 0;
  1379. int sess_type = 0;
  1380. int i = 0, j = 0, be_id;
  1381. int ret = 0;
  1382. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1383. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1384. return 0;
  1385. }
  1386. if (!(channel_mixer[fe_id].enable)) {
  1387. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1388. __func__, fe_id);
  1389. return 0;
  1390. }
  1391. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1392. sess_type = SESSION_TYPE_RX;
  1393. else
  1394. sess_type = SESSION_TYPE_TX;
  1395. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1396. ++i) {
  1397. be_id = channel_input[fe_id][i] - 1;
  1398. channel_mixer[fe_id].input_channels[i] =
  1399. msm_bedais[be_id].channel;
  1400. if ((msm_bedais[be_id].active) &&
  1401. test_bit(fe_id,
  1402. &msm_bedais[be_id].fe_sessions[0])) {
  1403. unsigned long copp =
  1404. session_copp_map[fe_id][sess_type][be_id];
  1405. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1406. if (test_bit(j, &copp)) {
  1407. copp_idx = j;
  1408. break;
  1409. }
  1410. }
  1411. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1412. __func__,
  1413. fe_id, be_id, msm_bedais[be_id].channel,
  1414. copp_idx);
  1415. ret = adm_programable_channel_mixer(
  1416. msm_bedais[be_id].port_id,
  1417. copp_idx, dspst_id, sess_type,
  1418. channel_mixer + fe_id, i);
  1419. }
  1420. }
  1421. return ret;
  1422. }
  1423. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1424. int dspst_id, int stream_type)
  1425. {
  1426. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1427. struct route_payload payload;
  1428. u32 channels, sample_rate;
  1429. uint16_t bits_per_sample = 16;
  1430. uint32_t passthr_mode = LEGACY_PCM;
  1431. int ret = 0;
  1432. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1433. /* bad ID assigned in machine driver */
  1434. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1435. return -EINVAL;
  1436. }
  1437. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1438. session_type = SESSION_TYPE_RX;
  1439. path_type = ADM_PATH_PLAYBACK;
  1440. port_type = MSM_AFE_PORT_TYPE_RX;
  1441. } else {
  1442. session_type = SESSION_TYPE_TX;
  1443. path_type = ADM_PATH_LIVE_REC;
  1444. port_type = MSM_AFE_PORT_TYPE_TX;
  1445. }
  1446. mutex_lock(&routing_lock);
  1447. payload.num_copps = 0; /* only RX needs to use payload */
  1448. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1449. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1450. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1451. /* re-enable EQ if active */
  1452. msm_qti_pp_send_eq_values(fedai_id);
  1453. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1454. if (!is_be_dai_extproc(i) &&
  1455. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1456. (msm_bedais[i].active) &&
  1457. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1458. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1459. int port_id = get_port_id(msm_bedais[i].port_id);
  1460. /*
  1461. * check if ADM needs to be configured with different
  1462. * channel mapping than backend
  1463. */
  1464. if (!msm_bedais[i].adm_override_ch)
  1465. channels = msm_bedais[i].channel;
  1466. else
  1467. channels = msm_bedais[i].adm_override_ch;
  1468. bits_per_sample = msm_routing_get_bit_width(
  1469. msm_bedais[i].format);
  1470. app_type =
  1471. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1472. if (app_type) {
  1473. app_type_idx =
  1474. msm_pcm_routing_get_app_type_idx(app_type);
  1475. sample_rate =
  1476. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1477. .sample_rate;
  1478. bits_per_sample =
  1479. app_type_cfg[app_type_idx].bit_width;
  1480. } else
  1481. sample_rate = msm_bedais[i].sample_rate;
  1482. acdb_dev_id =
  1483. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1484. .acdb_dev_id;
  1485. topology = msm_routing_get_adm_topology(fedai_id,
  1486. session_type,
  1487. i);
  1488. copp_idx = adm_open(port_id, path_type,
  1489. sample_rate, channels, topology,
  1490. perf_mode, bits_per_sample,
  1491. app_type, acdb_dev_id,
  1492. session_type);
  1493. if ((copp_idx < 0) ||
  1494. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1495. pr_err("%s: adm open failed copp_idx:%d\n",
  1496. __func__, copp_idx);
  1497. mutex_unlock(&routing_lock);
  1498. return -EINVAL;
  1499. }
  1500. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1501. __func__, fedai_id, session_type, i);
  1502. set_bit(copp_idx,
  1503. &session_copp_map[fedai_id][session_type][i]);
  1504. if (msm_is_resample_needed(
  1505. sample_rate,
  1506. msm_bedais[i].sample_rate))
  1507. adm_copp_mfc_cfg(port_id, copp_idx,
  1508. msm_bedais[i].sample_rate);
  1509. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1510. unsigned long copp =
  1511. session_copp_map[fedai_id][session_type][i];
  1512. if (test_bit(j, &copp)) {
  1513. payload.port_id[num_copps] = port_id;
  1514. payload.copp_idx[num_copps] = j;
  1515. payload.app_type[num_copps] =
  1516. fe_dai_app_type_cfg
  1517. [fedai_id][session_type]
  1518. [i].app_type;
  1519. payload.acdb_dev_id[num_copps] =
  1520. fe_dai_app_type_cfg
  1521. [fedai_id][session_type]
  1522. [i].acdb_dev_id;
  1523. payload.sample_rate[num_copps] =
  1524. fe_dai_app_type_cfg
  1525. [fedai_id][session_type]
  1526. [i].sample_rate;
  1527. num_copps++;
  1528. }
  1529. }
  1530. if (perf_mode == LEGACY_PCM_MODE)
  1531. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1532. topology, channels);
  1533. }
  1534. }
  1535. if (num_copps) {
  1536. payload.num_copps = num_copps;
  1537. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1538. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1539. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1540. }
  1541. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1542. dspst_id, stream_type);
  1543. mutex_unlock(&routing_lock);
  1544. return ret;
  1545. }
  1546. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1547. int dspst_id, int stream_type,
  1548. struct msm_pcm_routing_evt event_info)
  1549. {
  1550. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1551. stream_type)) {
  1552. pr_err("%s: failed to reg phy stream\n", __func__);
  1553. return -EINVAL;
  1554. }
  1555. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1556. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1557. else
  1558. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1559. return 0;
  1560. }
  1561. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1562. {
  1563. int i, port_type, session_type, path_type, topology, port_id;
  1564. struct msm_pcm_routing_fdai_data *fdai;
  1565. if (!is_mm_lsm_fe_id(fedai_id)) {
  1566. /* bad ID assigned in machine driver */
  1567. pr_err("%s: bad MM ID\n", __func__);
  1568. return;
  1569. }
  1570. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1571. port_type = MSM_AFE_PORT_TYPE_RX;
  1572. session_type = SESSION_TYPE_RX;
  1573. path_type = ADM_PATH_PLAYBACK;
  1574. } else {
  1575. port_type = MSM_AFE_PORT_TYPE_TX;
  1576. session_type = SESSION_TYPE_TX;
  1577. path_type = ADM_PATH_LIVE_REC;
  1578. }
  1579. mutex_lock(&routing_lock);
  1580. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1581. if (!is_be_dai_extproc(i) &&
  1582. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1583. (msm_bedais[i].active) &&
  1584. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1585. int idx;
  1586. unsigned long copp =
  1587. session_copp_map[fedai_id][session_type][i];
  1588. fdai = &fe_dai_map[fedai_id][session_type];
  1589. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1590. if (test_bit(idx, &copp))
  1591. break;
  1592. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1593. pr_debug("%s: copp idx is invalid, exiting\n",
  1594. __func__);
  1595. continue;
  1596. }
  1597. port_id = get_port_id(msm_bedais[i].port_id);
  1598. topology = adm_get_topology_for_port_copp_idx(
  1599. port_id, idx);
  1600. msm_routing_unload_topology(topology);
  1601. adm_close(port_id, fdai->perf_mode, idx);
  1602. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1603. __func__, copp, fedai_id, session_type, i);
  1604. clear_bit(idx,
  1605. &session_copp_map[fedai_id][session_type][i]);
  1606. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1607. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1608. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1609. (fdai->passthr_mode == LEGACY_PCM))
  1610. msm_pcm_routing_deinit_pp(port_id, topology);
  1611. }
  1612. }
  1613. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1614. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1615. mutex_unlock(&routing_lock);
  1616. }
  1617. /* Check if FE/BE route is set */
  1618. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1619. {
  1620. bool rc = false;
  1621. if (!is_mm_lsm_fe_id(fe_id)) {
  1622. /* recheck FE ID in the mixer control defined in this file */
  1623. pr_err("%s: bad MM ID\n", __func__);
  1624. return rc;
  1625. }
  1626. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1627. rc = true;
  1628. return rc;
  1629. }
  1630. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1631. {
  1632. int session_type, path_type, topology;
  1633. u32 channels, sample_rate;
  1634. uint16_t bits_per_sample = 16;
  1635. struct msm_pcm_routing_fdai_data *fdai;
  1636. uint32_t passthr_mode;
  1637. bool is_lsm;
  1638. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1639. if (!is_mm_lsm_fe_id(val)) {
  1640. /* recheck FE ID in the mixer control defined in this file */
  1641. pr_err("%s: bad MM ID\n", __func__);
  1642. return;
  1643. }
  1644. if (!route_check_fe_id_adm_support(val)) {
  1645. /* ignore adm open if not supported for fe_id */
  1646. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1647. return;
  1648. }
  1649. session_type =
  1650. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1651. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1652. fdai = &fe_dai_map[val][session_type];
  1653. passthr_mode = fdai->passthr_mode;
  1654. if (session_type == SESSION_TYPE_RX) {
  1655. if (passthr_mode != LEGACY_PCM)
  1656. path_type = ADM_PATH_COMPRESSED_RX;
  1657. else
  1658. path_type = ADM_PATH_PLAYBACK;
  1659. } else {
  1660. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1661. path_type = ADM_PATH_COMPRESSED_TX;
  1662. else
  1663. path_type = ADM_PATH_LIVE_REC;
  1664. }
  1665. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1666. (val <= MSM_FRONTEND_DAI_LSM8);
  1667. mutex_lock(&routing_lock);
  1668. if (set) {
  1669. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1670. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1671. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1672. voc_start_playback(set, msm_bedais[reg].port_id);
  1673. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1674. if (msm_bedais[reg].active && fdai->strm_id !=
  1675. INVALID_SESSION) {
  1676. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1677. int port_id = get_port_id(msm_bedais[reg].port_id);
  1678. /*
  1679. * check if ADM needs to be configured with different
  1680. * channel mapping than backend
  1681. */
  1682. if (!msm_bedais[reg].adm_override_ch)
  1683. channels = msm_bedais[reg].channel;
  1684. else
  1685. channels = msm_bedais[reg].adm_override_ch;
  1686. if (session_type == SESSION_TYPE_TX &&
  1687. fdai->be_srate &&
  1688. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1689. pr_debug("%s: flush strm %d diff BE rates\n",
  1690. __func__, fdai->strm_id);
  1691. if (fdai->event_info.event_func)
  1692. fdai->event_info.event_func(
  1693. MSM_PCM_RT_EVT_BUF_RECFG,
  1694. fdai->event_info.priv_data);
  1695. fdai->be_srate = 0; /* might not need it */
  1696. }
  1697. bits_per_sample = msm_routing_get_bit_width(
  1698. msm_bedais[reg].format);
  1699. app_type =
  1700. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1701. if (app_type && is_lsm) {
  1702. app_type_idx =
  1703. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1704. sample_rate =
  1705. fe_dai_app_type_cfg[val][session_type][reg]
  1706. .sample_rate;
  1707. bits_per_sample =
  1708. lsm_app_type_cfg[app_type_idx].bit_width;
  1709. } else if (app_type) {
  1710. app_type_idx =
  1711. msm_pcm_routing_get_app_type_idx(app_type);
  1712. sample_rate =
  1713. fe_dai_app_type_cfg[val][session_type][reg]
  1714. .sample_rate;
  1715. bits_per_sample =
  1716. app_type_cfg[app_type_idx].bit_width;
  1717. } else
  1718. sample_rate = msm_bedais[reg].sample_rate;
  1719. topology = msm_routing_get_adm_topology(val,
  1720. session_type,
  1721. reg);
  1722. acdb_dev_id =
  1723. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1724. copp_idx = adm_open(port_id, path_type,
  1725. sample_rate, channels, topology,
  1726. fdai->perf_mode, bits_per_sample,
  1727. app_type, acdb_dev_id,
  1728. session_type);
  1729. if ((copp_idx < 0) ||
  1730. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1731. pr_err("%s: adm open failed\n", __func__);
  1732. mutex_unlock(&routing_lock);
  1733. return;
  1734. }
  1735. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1736. __func__, val, session_type, reg);
  1737. set_bit(copp_idx,
  1738. &session_copp_map[val][session_type][reg]);
  1739. if (msm_is_resample_needed(
  1740. sample_rate,
  1741. msm_bedais[reg].sample_rate))
  1742. adm_copp_mfc_cfg(port_id, copp_idx,
  1743. msm_bedais[reg].sample_rate);
  1744. if (session_type == SESSION_TYPE_RX &&
  1745. fdai->event_info.event_func)
  1746. fdai->event_info.event_func(
  1747. MSM_PCM_RT_EVT_DEVSWITCH,
  1748. fdai->event_info.priv_data);
  1749. msm_pcm_routing_build_matrix(val, session_type,
  1750. path_type,
  1751. fdai->perf_mode,
  1752. passthr_mode);
  1753. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1754. (passthr_mode == LEGACY_PCM))
  1755. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1756. topology, channels);
  1757. }
  1758. } else {
  1759. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1760. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1761. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1762. voc_start_playback(set, msm_bedais[reg].port_id);
  1763. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1764. if (msm_bedais[reg].active && fdai->strm_id !=
  1765. INVALID_SESSION) {
  1766. int idx;
  1767. int port_id;
  1768. unsigned long copp =
  1769. session_copp_map[val][session_type][reg];
  1770. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1771. if (test_bit(idx, &copp))
  1772. break;
  1773. if (idx >= MAX_COPPS_PER_PORT) {
  1774. pr_debug("%s: copp idx is invalid, exiting\n",
  1775. __func__);
  1776. mutex_unlock(&routing_lock);
  1777. return;
  1778. }
  1779. port_id = get_port_id(msm_bedais[reg].port_id);
  1780. topology = adm_get_topology_for_port_copp_idx(port_id,
  1781. idx);
  1782. msm_routing_unload_topology(topology);
  1783. adm_close(port_id, fdai->perf_mode, idx);
  1784. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1785. __func__, copp, val, session_type, reg,
  1786. topology);
  1787. clear_bit(idx,
  1788. &session_copp_map[val][session_type][reg]);
  1789. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1790. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1791. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1792. (passthr_mode == LEGACY_PCM))
  1793. msm_pcm_routing_deinit_pp(port_id, topology);
  1794. msm_pcm_routing_build_matrix(val, session_type,
  1795. path_type,
  1796. fdai->perf_mode,
  1797. passthr_mode);
  1798. }
  1799. }
  1800. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1801. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1802. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1803. mutex_unlock(&routing_lock);
  1804. }
  1805. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1806. struct snd_ctl_elem_value *ucontrol)
  1807. {
  1808. struct soc_mixer_control *mc =
  1809. (struct soc_mixer_control *)kcontrol->private_value;
  1810. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1811. ucontrol->value.integer.value[0] = 1;
  1812. else
  1813. ucontrol->value.integer.value[0] = 0;
  1814. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1815. ucontrol->value.integer.value[0]);
  1816. return 0;
  1817. }
  1818. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1819. struct snd_ctl_elem_value *ucontrol)
  1820. {
  1821. struct snd_soc_dapm_widget *widget =
  1822. snd_soc_dapm_kcontrol_widget(kcontrol);
  1823. struct soc_mixer_control *mc =
  1824. (struct soc_mixer_control *)kcontrol->private_value;
  1825. struct snd_soc_dapm_update *update = NULL;
  1826. if (ucontrol->value.integer.value[0] &&
  1827. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1828. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1829. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1830. update);
  1831. } else if (!ucontrol->value.integer.value[0] &&
  1832. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1833. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1834. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1835. update);
  1836. }
  1837. return 1;
  1838. }
  1839. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1840. struct snd_ctl_elem_value *ucontrol)
  1841. {
  1842. struct soc_mixer_control *mc =
  1843. (struct soc_mixer_control *)kcontrol->private_value;
  1844. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1845. ucontrol->value.integer.value[0] = 1;
  1846. else
  1847. ucontrol->value.integer.value[0] = 0;
  1848. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1849. ucontrol->value.integer.value[0]);
  1850. return 0;
  1851. }
  1852. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1853. struct snd_ctl_elem_value *ucontrol)
  1854. {
  1855. struct snd_soc_dapm_widget *widget =
  1856. snd_soc_dapm_kcontrol_widget(kcontrol);
  1857. struct soc_mixer_control *mc =
  1858. (struct soc_mixer_control *)kcontrol->private_value;
  1859. struct snd_soc_dapm_update *update = NULL;
  1860. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1861. ucontrol->value.integer.value[0]);
  1862. if (ucontrol->value.integer.value[0]) {
  1863. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1864. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1865. snd_soc_dapm_mixer_update_power(widget->dapm,
  1866. kcontrol, 1, update);
  1867. } else if (!ucontrol->value.integer.value[0]) {
  1868. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1869. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1870. snd_soc_dapm_mixer_update_power(widget->dapm,
  1871. kcontrol, 0, update);
  1872. }
  1873. return 1;
  1874. }
  1875. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1876. {
  1877. u32 session_id = 0;
  1878. u16 path_type;
  1879. struct media_format_info voc_be_media_format;
  1880. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1881. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1882. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1883. __func__, val, session_id);
  1884. mutex_lock(&routing_lock);
  1885. if (set)
  1886. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1887. else
  1888. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1889. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1890. afe_get_port_type(msm_bedais[reg].port_id) ==
  1891. MSM_AFE_PORT_TYPE_RX) {
  1892. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1893. __func__, set, msm_bedais[reg].port_id);
  1894. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1895. }
  1896. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1897. MSM_AFE_PORT_TYPE_RX)
  1898. path_type = RX_PATH;
  1899. else
  1900. path_type = TX_PATH;
  1901. if (set) {
  1902. if (msm_bedais[reg].active) {
  1903. voc_set_route_flag(session_id, path_type, 1);
  1904. memset(&voc_be_media_format, 0,
  1905. sizeof(struct media_format_info));
  1906. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1907. voc_be_media_format.num_channels =
  1908. msm_bedais[reg].channel;
  1909. voc_be_media_format.sample_rate =
  1910. msm_bedais[reg].sample_rate;
  1911. voc_be_media_format.bits_per_sample =
  1912. msm_bedais[reg].format;
  1913. /* Defaulting this to 1 for voice call usecases */
  1914. voc_be_media_format.channel_mapping[0] = 1;
  1915. voc_set_device_config(session_id, path_type,
  1916. &voc_be_media_format);
  1917. if (voc_get_route_flag(session_id, TX_PATH) &&
  1918. voc_get_route_flag(session_id, RX_PATH))
  1919. voc_enable_device(session_id);
  1920. } else {
  1921. pr_debug("%s BE is not active\n", __func__);
  1922. }
  1923. } else {
  1924. voc_set_route_flag(session_id, path_type, 0);
  1925. voc_disable_device(session_id);
  1926. }
  1927. mutex_unlock(&routing_lock);
  1928. }
  1929. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1930. struct snd_ctl_elem_value *ucontrol)
  1931. {
  1932. struct soc_mixer_control *mc =
  1933. (struct soc_mixer_control *)kcontrol->private_value;
  1934. mutex_lock(&routing_lock);
  1935. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1936. ucontrol->value.integer.value[0] = 1;
  1937. else
  1938. ucontrol->value.integer.value[0] = 0;
  1939. mutex_unlock(&routing_lock);
  1940. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1941. ucontrol->value.integer.value[0]);
  1942. return 0;
  1943. }
  1944. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1945. struct snd_ctl_elem_value *ucontrol)
  1946. {
  1947. struct snd_soc_dapm_widget *widget =
  1948. snd_soc_dapm_kcontrol_widget(kcontrol);
  1949. struct soc_mixer_control *mc =
  1950. (struct soc_mixer_control *)kcontrol->private_value;
  1951. struct snd_soc_dapm_update *update = NULL;
  1952. if (ucontrol->value.integer.value[0]) {
  1953. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1954. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1955. update);
  1956. } else {
  1957. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1958. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1959. update);
  1960. }
  1961. return 1;
  1962. }
  1963. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1964. struct snd_ctl_elem_value *ucontrol)
  1965. {
  1966. struct soc_mixer_control *mc =
  1967. (struct soc_mixer_control *)kcontrol->private_value;
  1968. mutex_lock(&routing_lock);
  1969. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1970. ucontrol->value.integer.value[0] = 1;
  1971. else
  1972. ucontrol->value.integer.value[0] = 0;
  1973. mutex_unlock(&routing_lock);
  1974. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1975. ucontrol->value.integer.value[0]);
  1976. return 0;
  1977. }
  1978. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1979. struct snd_ctl_elem_value *ucontrol)
  1980. {
  1981. struct snd_soc_dapm_widget *widget =
  1982. snd_soc_dapm_kcontrol_widget(kcontrol);
  1983. struct soc_mixer_control *mc =
  1984. (struct soc_mixer_control *)kcontrol->private_value;
  1985. struct snd_soc_dapm_update *update = NULL;
  1986. if (ucontrol->value.integer.value[0]) {
  1987. mutex_lock(&routing_lock);
  1988. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1989. mutex_unlock(&routing_lock);
  1990. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1991. update);
  1992. } else {
  1993. mutex_lock(&routing_lock);
  1994. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1995. mutex_unlock(&routing_lock);
  1996. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1997. update);
  1998. }
  1999. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2000. ucontrol->value.integer.value[0]);
  2001. return 1;
  2002. }
  2003. /*
  2004. * Return the mapping between port ID and backend ID to enable the AFE callback
  2005. * to determine the acdb_dev_id from the port id
  2006. */
  2007. int msm_pcm_get_be_id_from_port_id(int port_id)
  2008. {
  2009. int i;
  2010. int be_id = -EINVAL;
  2011. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2012. if (msm_bedais[i].port_id == port_id) {
  2013. be_id = i;
  2014. break;
  2015. }
  2016. }
  2017. return be_id;
  2018. }
  2019. /*
  2020. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2021. * correct AFE calibration information by comparing the header information.
  2022. */
  2023. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2024. {
  2025. int acdb_id = -EINVAL;
  2026. int i = 0;
  2027. int session;
  2028. int port_type = afe_get_port_type(port_id);
  2029. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2030. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2031. __func__, port_id, be_id, port_type);
  2032. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2033. session = SESSION_TYPE_TX;
  2034. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2035. session = SESSION_TYPE_RX;
  2036. } else {
  2037. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2038. acdb_id = -EINVAL;
  2039. goto exit;
  2040. }
  2041. if (be_id < 0) {
  2042. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2043. goto exit;
  2044. }
  2045. mutex_lock(&routing_lock);
  2046. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2047. MSM_FRONTEND_DAI_MAX);
  2048. if (i < MSM_FRONTEND_DAI_MAX)
  2049. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2050. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2051. __func__, i, session, be_id, acdb_id);
  2052. mutex_unlock(&routing_lock);
  2053. exit:
  2054. return acdb_id;
  2055. }
  2056. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2057. struct snd_ctl_elem_value *ucontrol)
  2058. {
  2059. ucontrol->value.integer.value[0] = fm_switch_enable;
  2060. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2061. ucontrol->value.integer.value[0]);
  2062. return 0;
  2063. }
  2064. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2065. struct snd_ctl_elem_value *ucontrol)
  2066. {
  2067. struct snd_soc_dapm_widget *widget =
  2068. snd_soc_dapm_kcontrol_widget(kcontrol);
  2069. struct snd_soc_dapm_update *update = NULL;
  2070. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2071. ucontrol->value.integer.value[0]);
  2072. if (ucontrol->value.integer.value[0])
  2073. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2074. update);
  2075. else
  2076. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2077. update);
  2078. fm_switch_enable = ucontrol->value.integer.value[0];
  2079. return 1;
  2080. }
  2081. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2082. struct snd_ctl_elem_value *ucontrol)
  2083. {
  2084. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2085. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2086. ucontrol->value.integer.value[0]);
  2087. return 0;
  2088. }
  2089. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2090. struct snd_ctl_elem_value *ucontrol)
  2091. {
  2092. struct snd_soc_dapm_widget *widget =
  2093. snd_soc_dapm_kcontrol_widget(kcontrol);
  2094. struct snd_soc_dapm_update *update = NULL;
  2095. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2096. ucontrol->value.integer.value[0]);
  2097. if (ucontrol->value.integer.value[0])
  2098. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2099. 1, update);
  2100. else
  2101. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2102. 0, update);
  2103. hfp_switch_enable = ucontrol->value.integer.value[0];
  2104. return 1;
  2105. }
  2106. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2107. struct snd_ctl_elem_value *ucontrol)
  2108. {
  2109. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2110. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2111. ucontrol->value.integer.value[0]);
  2112. return 0;
  2113. }
  2114. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2115. struct snd_ctl_elem_value *ucontrol)
  2116. {
  2117. struct snd_soc_dapm_widget *widget =
  2118. snd_soc_dapm_kcontrol_widget(kcontrol);
  2119. struct snd_soc_dapm_update *update = NULL;
  2120. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2121. ucontrol->value.integer.value[0]);
  2122. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2123. if (a2dp_switch_enable)
  2124. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2125. 1, update);
  2126. else
  2127. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2128. 0, update);
  2129. return 1;
  2130. }
  2131. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2132. struct snd_ctl_elem_value *ucontrol)
  2133. {
  2134. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2135. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2136. ucontrol->value.integer.value[0]);
  2137. return 0;
  2138. }
  2139. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2140. struct snd_ctl_elem_value *ucontrol)
  2141. {
  2142. struct snd_soc_dapm_widget *widget =
  2143. snd_soc_dapm_kcontrol_widget(kcontrol);
  2144. struct snd_soc_dapm_update *update = NULL;
  2145. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2146. ucontrol->value.integer.value[0]);
  2147. if (ucontrol->value.integer.value[0])
  2148. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2149. update);
  2150. else
  2151. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2152. update);
  2153. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2154. return 1;
  2155. }
  2156. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2157. struct snd_ctl_elem_value *ucontrol)
  2158. {
  2159. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2160. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2161. ucontrol->value.integer.value[0]);
  2162. return 0;
  2163. }
  2164. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2165. struct snd_ctl_elem_value *ucontrol)
  2166. {
  2167. struct snd_soc_dapm_widget *widget =
  2168. snd_soc_dapm_kcontrol_widget(kcontrol);
  2169. struct snd_soc_dapm_update *update = NULL;
  2170. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2171. ucontrol->value.integer.value[0]);
  2172. if (ucontrol->value.integer.value[0])
  2173. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2174. update);
  2175. else
  2176. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2177. update);
  2178. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2179. return 1;
  2180. }
  2181. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2182. struct snd_ctl_elem_value *ucontrol)
  2183. {
  2184. ucontrol->value.integer.value[0] = usb_switch_enable;
  2185. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2186. ucontrol->value.integer.value[0]);
  2187. return 0;
  2188. }
  2189. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2190. struct snd_ctl_elem_value *ucontrol)
  2191. {
  2192. struct snd_soc_dapm_widget *widget =
  2193. snd_soc_dapm_kcontrol_widget(kcontrol);
  2194. struct snd_soc_dapm_update *update = NULL;
  2195. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2196. ucontrol->value.integer.value[0]);
  2197. if (ucontrol->value.integer.value[0])
  2198. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2199. 1, update);
  2200. else
  2201. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2202. 0, update);
  2203. usb_switch_enable = ucontrol->value.integer.value[0];
  2204. return 1;
  2205. }
  2206. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2207. struct snd_ctl_elem_value *ucontrol)
  2208. {
  2209. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2210. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2211. ucontrol->value.integer.value[0]);
  2212. return 0;
  2213. }
  2214. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2215. struct snd_ctl_elem_value *ucontrol)
  2216. {
  2217. struct snd_soc_dapm_widget *widget =
  2218. snd_soc_dapm_kcontrol_widget(kcontrol);
  2219. struct snd_soc_dapm_update *update = NULL;
  2220. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2221. ucontrol->value.integer.value[0]);
  2222. if (ucontrol->value.integer.value[0])
  2223. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2224. update);
  2225. else
  2226. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2227. update);
  2228. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2229. return 1;
  2230. }
  2231. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2232. struct snd_ctl_elem_value *ucontrol)
  2233. {
  2234. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2235. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2236. ucontrol->value.integer.value[0]);
  2237. return 0;
  2238. }
  2239. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2240. struct snd_ctl_elem_value *ucontrol)
  2241. {
  2242. struct snd_soc_dapm_widget *widget =
  2243. snd_soc_dapm_kcontrol_widget(kcontrol);
  2244. struct snd_soc_dapm_update *update = NULL;
  2245. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2246. ucontrol->value.integer.value[0]);
  2247. if (ucontrol->value.integer.value[0])
  2248. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2249. update);
  2250. else
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2252. update);
  2253. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2254. return 1;
  2255. }
  2256. static int msm_routing_get_tert_mi2s_switch_mixer(
  2257. struct snd_kcontrol *kcontrol,
  2258. struct snd_ctl_elem_value *ucontrol)
  2259. {
  2260. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2261. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2262. ucontrol->value.integer.value[0]);
  2263. return 0;
  2264. }
  2265. static int msm_routing_put_tert_mi2s_switch_mixer(
  2266. struct snd_kcontrol *kcontrol,
  2267. struct snd_ctl_elem_value *ucontrol)
  2268. {
  2269. struct snd_soc_dapm_widget *widget =
  2270. snd_soc_dapm_kcontrol_widget(kcontrol);
  2271. struct snd_soc_dapm_update *update = NULL;
  2272. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2273. ucontrol->value.integer.value[0]);
  2274. if (ucontrol->value.integer.value[0])
  2275. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2276. update);
  2277. else
  2278. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2279. update);
  2280. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2281. return 1;
  2282. }
  2283. static int msm_routing_get_quat_mi2s_switch_mixer(
  2284. struct snd_kcontrol *kcontrol,
  2285. struct snd_ctl_elem_value *ucontrol)
  2286. {
  2287. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2288. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2289. ucontrol->value.integer.value[0]);
  2290. return 0;
  2291. }
  2292. static int msm_routing_put_quat_mi2s_switch_mixer(
  2293. struct snd_kcontrol *kcontrol,
  2294. struct snd_ctl_elem_value *ucontrol)
  2295. {
  2296. struct snd_soc_dapm_widget *widget =
  2297. snd_soc_dapm_kcontrol_widget(kcontrol);
  2298. struct snd_soc_dapm_update *update = NULL;
  2299. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2300. ucontrol->value.integer.value[0]);
  2301. if (ucontrol->value.integer.value[0])
  2302. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2303. update);
  2304. else
  2305. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2306. update);
  2307. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2308. return 1;
  2309. }
  2310. static int msm_routing_get_quin_mi2s_switch_mixer(
  2311. struct snd_kcontrol *kcontrol,
  2312. struct snd_ctl_elem_value *ucontrol)
  2313. {
  2314. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2315. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2316. ucontrol->value.integer.value[0]);
  2317. return 0;
  2318. }
  2319. static int msm_routing_put_quin_mi2s_switch_mixer(
  2320. struct snd_kcontrol *kcontrol,
  2321. struct snd_ctl_elem_value *ucontrol)
  2322. {
  2323. struct snd_soc_dapm_widget *widget =
  2324. snd_soc_dapm_kcontrol_widget(kcontrol);
  2325. struct snd_soc_dapm_update *update = NULL;
  2326. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2327. ucontrol->value.integer.value[0]);
  2328. if (ucontrol->value.integer.value[0])
  2329. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2330. update);
  2331. else
  2332. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2333. update);
  2334. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2335. return 1;
  2336. }
  2337. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2338. struct snd_ctl_elem_value *ucontrol)
  2339. {
  2340. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2341. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2342. ucontrol->value.integer.value[0]);
  2343. return 0;
  2344. }
  2345. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2346. struct snd_ctl_elem_value *ucontrol)
  2347. {
  2348. struct snd_soc_dapm_widget *widget =
  2349. snd_soc_dapm_kcontrol_widget(kcontrol);
  2350. struct snd_soc_dapm_update *update = NULL;
  2351. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2352. ucontrol->value.integer.value[0]);
  2353. if (ucontrol->value.integer.value[0])
  2354. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2355. update);
  2356. else
  2357. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2358. update);
  2359. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2360. return 1;
  2361. }
  2362. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2363. struct snd_ctl_elem_value *ucontrol)
  2364. {
  2365. ucontrol->value.integer.value[0] = lsm_port_index;
  2366. return 0;
  2367. }
  2368. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2369. struct snd_ctl_elem_value *ucontrol)
  2370. {
  2371. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2372. int mux = ucontrol->value.enumerated.item[0];
  2373. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2374. if (mux >= e->items) {
  2375. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2376. return -EINVAL;
  2377. }
  2378. pr_debug("%s: LSM enable %ld\n", __func__,
  2379. ucontrol->value.integer.value[0]);
  2380. switch (ucontrol->value.integer.value[0]) {
  2381. case 1:
  2382. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2383. break;
  2384. case 2:
  2385. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2386. break;
  2387. case 3:
  2388. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2389. break;
  2390. case 4:
  2391. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2392. break;
  2393. case 5:
  2394. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2395. break;
  2396. case 6:
  2397. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2398. break;
  2399. case 7:
  2400. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2401. break;
  2402. case 8:
  2403. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2404. break;
  2405. case 9:
  2406. lsm_port = ADM_LSM_PORT_ID;
  2407. break;
  2408. case 10:
  2409. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2410. break;
  2411. case 11:
  2412. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2413. break;
  2414. case 12:
  2415. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2416. break;
  2417. case 13:
  2418. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2419. break;
  2420. case 14:
  2421. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2422. break;
  2423. default:
  2424. pr_err("Default lsm port");
  2425. break;
  2426. }
  2427. set_lsm_port(lsm_port);
  2428. lsm_port_index = ucontrol->value.integer.value[0];
  2429. return 0;
  2430. }
  2431. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. int i;
  2435. u16 port_id;
  2436. enum afe_mad_type mad_type;
  2437. pr_debug("%s: enter\n", __func__);
  2438. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2439. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2440. strlen(lsm_port_text[i])))
  2441. break;
  2442. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2443. pr_warn("%s: Invalid id name %s\n", __func__,
  2444. kcontrol->id.name);
  2445. return -EINVAL;
  2446. }
  2447. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2448. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2449. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2450. strlen(lsm_port_text[7])))
  2451. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2452. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2453. strlen(lsm_port_text[8])))
  2454. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2455. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2456. strlen(lsm_port_text[10])))
  2457. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2458. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2459. strlen(lsm_port_text[13])))
  2460. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2461. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2462. strlen(lsm_port_text[14])))
  2463. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2464. mad_type = afe_port_get_mad_type(port_id);
  2465. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2466. mad_type);
  2467. switch (mad_type) {
  2468. case MAD_HW_NONE:
  2469. ucontrol->value.integer.value[0] = MADNONE;
  2470. break;
  2471. case MAD_HW_AUDIO:
  2472. ucontrol->value.integer.value[0] = MADAUDIO;
  2473. break;
  2474. case MAD_HW_BEACON:
  2475. ucontrol->value.integer.value[0] = MADBEACON;
  2476. break;
  2477. case MAD_HW_ULTRASOUND:
  2478. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2479. break;
  2480. case MAD_SW_AUDIO:
  2481. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2482. break;
  2483. default:
  2484. pr_warn("%s: Unknown\n", __func__);
  2485. return -EINVAL;
  2486. }
  2487. return 0;
  2488. }
  2489. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2490. struct snd_ctl_elem_value *ucontrol)
  2491. {
  2492. int i;
  2493. u16 port_id;
  2494. enum afe_mad_type mad_type;
  2495. pr_debug("%s: enter\n", __func__);
  2496. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2497. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2498. strlen(lsm_port_text[i])))
  2499. break;
  2500. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2501. pr_warn("%s: Invalid id name %s\n", __func__,
  2502. kcontrol->id.name);
  2503. return -EINVAL;
  2504. }
  2505. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2506. switch (ucontrol->value.integer.value[0]) {
  2507. case MADNONE:
  2508. mad_type = MAD_HW_NONE;
  2509. break;
  2510. case MADAUDIO:
  2511. mad_type = MAD_HW_AUDIO;
  2512. break;
  2513. case MADBEACON:
  2514. mad_type = MAD_HW_BEACON;
  2515. break;
  2516. case MADULTRASOUND:
  2517. mad_type = MAD_HW_ULTRASOUND;
  2518. break;
  2519. case MADSWAUDIO:
  2520. mad_type = MAD_SW_AUDIO;
  2521. break;
  2522. default:
  2523. pr_warn("%s: Unknown\n", __func__);
  2524. return -EINVAL;
  2525. }
  2526. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2527. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2528. strlen(lsm_port_text[7])))
  2529. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2530. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2531. strlen(lsm_port_text[8])))
  2532. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2533. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2534. strlen(lsm_port_text[10])))
  2535. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2536. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2537. strlen(lsm_port_text[13])))
  2538. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2539. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2540. strlen(lsm_port_text[14])))
  2541. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2542. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2543. mad_type);
  2544. return afe_port_set_mad_type(port_id, mad_type);
  2545. }
  2546. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2547. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2548. adm_override_chs_text);
  2549. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2550. {
  2551. int backend_id;
  2552. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2553. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2554. } else {
  2555. pr_err("%s: unsupported backend id: %s",
  2556. __func__, kcontrol->id.name);
  2557. return -EINVAL;
  2558. }
  2559. return backend_id;
  2560. }
  2561. static int msm_routing_adm_channel_config_get(
  2562. struct snd_kcontrol *kcontrol,
  2563. struct snd_ctl_elem_value *ucontrol)
  2564. {
  2565. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2566. if (backend_id >= 0) {
  2567. mutex_lock(&routing_lock);
  2568. ucontrol->value.integer.value[0] =
  2569. msm_bedais[backend_id].adm_override_ch;
  2570. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2571. ucontrol->value.integer.value[0], backend_id);
  2572. mutex_unlock(&routing_lock);
  2573. }
  2574. return 0;
  2575. }
  2576. static int msm_routing_adm_channel_config_put(
  2577. struct snd_kcontrol *kcontrol,
  2578. struct snd_ctl_elem_value *ucontrol)
  2579. {
  2580. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2581. if (backend_id >= 0) {
  2582. mutex_lock(&routing_lock);
  2583. msm_bedais[backend_id].adm_override_ch =
  2584. ucontrol->value.integer.value[0];
  2585. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2586. __func__, backend_id,
  2587. msm_bedais[backend_id].adm_override_ch);
  2588. mutex_unlock(&routing_lock);
  2589. }
  2590. return 0;
  2591. }
  2592. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2593. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2594. msm_routing_adm_channel_config_get,
  2595. msm_routing_adm_channel_config_put),
  2596. };
  2597. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2598. struct snd_ctl_elem_value *ucontrol)
  2599. {
  2600. mutex_lock(&routing_lock);
  2601. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2602. mutex_unlock(&routing_lock);
  2603. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2604. ucontrol->value.integer.value[0]);
  2605. return 0;
  2606. };
  2607. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. struct aanc_data aanc_info;
  2611. mutex_lock(&routing_lock);
  2612. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2613. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2614. ucontrol->value.integer.value[0]);
  2615. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2616. if (ucontrol->value.integer.value[0] == 0) {
  2617. aanc_info.aanc_active = false;
  2618. aanc_info.aanc_tx_port = 0;
  2619. aanc_info.aanc_rx_port = 0;
  2620. } else {
  2621. aanc_info.aanc_active = true;
  2622. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2623. aanc_info.aanc_tx_port =
  2624. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2625. }
  2626. afe_set_aanc_info(&aanc_info);
  2627. mutex_unlock(&routing_lock);
  2628. return 0;
  2629. };
  2630. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2631. struct snd_ctl_elem_value *ucontrol)
  2632. {
  2633. int idx = 0, shift = 0;
  2634. struct soc_mixer_control *mc =
  2635. (struct soc_mixer_control *)kcontrol->private_value;
  2636. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2637. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2638. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2639. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2640. return -EINVAL;
  2641. }
  2642. if (test_bit(shift,
  2643. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2644. ucontrol->value.integer.value[0] = 1;
  2645. else
  2646. ucontrol->value.integer.value[0] = 0;
  2647. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2648. ucontrol->value.integer.value[0]);
  2649. return 0;
  2650. }
  2651. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2652. struct snd_ctl_elem_value *ucontrol)
  2653. {
  2654. int idx = 0, shift = 0;
  2655. struct soc_mixer_control *mc =
  2656. (struct soc_mixer_control *)kcontrol->private_value;
  2657. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2658. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2659. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2660. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2661. return -EINVAL;
  2662. }
  2663. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2664. __func__, mc->shift, mc->rshift,
  2665. ucontrol->value.integer.value[0], idx, shift);
  2666. if (ucontrol->value.integer.value[0]) {
  2667. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2668. msm_bedais[mc->rshift].port_id);
  2669. set_bit(shift,
  2670. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2671. } else {
  2672. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2673. msm_bedais[mc->rshift].port_id);
  2674. clear_bit(shift,
  2675. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2676. }
  2677. return 1;
  2678. }
  2679. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2680. struct snd_ctl_elem_value *ucontrol)
  2681. {
  2682. u16 fe_id = 0;
  2683. fe_id = ((struct soc_mixer_control *)
  2684. kcontrol->private_value)->shift;
  2685. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2686. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2687. return -EINVAL;
  2688. }
  2689. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2690. return 0;
  2691. }
  2692. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2693. struct snd_ctl_elem_value *ucontrol)
  2694. {
  2695. u16 fe_id = 0;
  2696. fe_id = ((struct soc_mixer_control *)
  2697. kcontrol->private_value)->shift;
  2698. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2699. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2700. return -EINVAL;
  2701. }
  2702. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2703. return 1;
  2704. }
  2705. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2706. struct snd_ctl_elem_value *ucontrol)
  2707. {
  2708. u16 fe_id = 0;
  2709. fe_id = ((struct soc_multi_mixer_control *)
  2710. kcontrol->private_value)->shift;
  2711. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2712. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2713. return -EINVAL;
  2714. }
  2715. ucontrol->value.integer.value[0] =
  2716. channel_mixer[fe_id].output_channel;
  2717. return 0;
  2718. }
  2719. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2720. struct snd_ctl_elem_value *ucontrol)
  2721. {
  2722. u16 fe_id = 0;
  2723. fe_id = ((struct soc_multi_mixer_control *)
  2724. kcontrol->private_value)->shift;
  2725. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2726. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2727. return -EINVAL;
  2728. }
  2729. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2730. fe_id,
  2731. (unsigned int)(ucontrol->value.integer.value[0]));
  2732. channel_mixer[fe_id].output_channel =
  2733. (unsigned int)(ucontrol->value.integer.value[0]);
  2734. return 1;
  2735. }
  2736. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2737. /* If new backend is added, need update this array */
  2738. static const char *const be_name[] = {
  2739. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2740. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2741. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2742. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2743. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2744. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2745. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2746. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2747. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2748. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2749. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2750. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2751. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  2752. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2753. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2754. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2755. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2756. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2757. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2758. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2759. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2760. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2761. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2762. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2763. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2764. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2765. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2766. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2767. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2768. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2769. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2770. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2771. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2772. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2773. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2774. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2775. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2776. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2777. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2778. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2779. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2780. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2781. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1",
  2782. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  2783. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  2784. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  2785. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  2786. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  2787. };
  2788. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2789. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2790. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2791. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2792. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2793. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2794. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2795. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2796. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2797. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2798. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2799. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2800. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2801. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2802. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2803. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2804. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2805. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2806. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2807. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2808. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2809. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2810. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2811. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2812. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2813. unsigned int channels,
  2814. unsigned int items, const char *const names[])
  2815. {
  2816. if (uinfo->value.enumerated.item >= items)
  2817. uinfo->value.enumerated.item = items - 1;
  2818. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2819. sizeof(uinfo->value.enumerated.name),
  2820. "ALSA: too long item name '%s'\n",
  2821. names[uinfo->value.enumerated.item]);
  2822. strlcpy(uinfo->value.enumerated.name,
  2823. names[uinfo->value.enumerated.item],
  2824. sizeof(uinfo->value.enumerated.name));
  2825. return 0;
  2826. }
  2827. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2828. struct snd_ctl_elem_info *uinfo)
  2829. {
  2830. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2831. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2832. uinfo->count = 1;
  2833. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2834. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2835. return 0;
  2836. }
  2837. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2838. struct snd_ctl_elem_value *ucontrol)
  2839. {
  2840. u16 fe_id = 0;
  2841. fe_id = ((struct soc_enum *)
  2842. kcontrol->private_value)->shift_l;
  2843. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2844. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2845. return -EINVAL;
  2846. }
  2847. pr_debug("%s: FE %d %s\n", __func__,
  2848. fe_id,
  2849. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2850. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2851. return 0;
  2852. }
  2853. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2854. struct snd_ctl_elem_value *ucontrol)
  2855. {
  2856. u16 fe_id = 0;
  2857. fe_id = ((struct soc_enum *)
  2858. kcontrol->private_value)->shift_l;
  2859. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2860. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2861. return -EINVAL;
  2862. }
  2863. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2864. pr_debug("%s: %s FE %d\n", __func__,
  2865. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2866. fe_id);
  2867. return 0;
  2868. }
  2869. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2870. struct snd_ctl_elem_info *uinfo)
  2871. {
  2872. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2873. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2874. uinfo->count = 1;
  2875. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2876. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2877. return 0;
  2878. }
  2879. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2880. struct snd_ctl_elem_value *ucontrol)
  2881. {
  2882. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2883. u16 fe_id = 0, in_ch = 0;
  2884. fe_id = e->shift_l;
  2885. in_ch = e->shift_r;
  2886. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2887. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2888. return -EINVAL;
  2889. }
  2890. if (in_ch >= ADM_MAX_CHANNELS) {
  2891. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2892. return -EINVAL;
  2893. }
  2894. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2895. return 1;
  2896. }
  2897. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2898. struct snd_ctl_elem_value *ucontrol)
  2899. {
  2900. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2901. u16 fe_id = 0, in_ch = 0;
  2902. fe_id = e->shift_l;
  2903. in_ch = e->shift_r;
  2904. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2905. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2906. return -EINVAL;
  2907. }
  2908. if (in_ch >= ADM_MAX_CHANNELS) {
  2909. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2910. return -EINVAL;
  2911. }
  2912. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2913. return 1;
  2914. }
  2915. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2916. struct snd_ctl_elem_info *uinfo)
  2917. {
  2918. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2919. uinfo->count = ADM_MAX_CHANNELS;
  2920. uinfo->value.integer.min = 0;
  2921. uinfo->value.integer.max = WEIGHT_0_DB;
  2922. return 0;
  2923. }
  2924. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2925. struct snd_ctl_elem_value *ucontrol)
  2926. {
  2927. u16 fe_id = 0, out_ch = 0;
  2928. int i, weight;
  2929. fe_id = ((struct soc_multi_mixer_control *)
  2930. kcontrol->private_value)->shift;
  2931. out_ch = ((struct soc_multi_mixer_control *)
  2932. kcontrol->private_value)->rshift;
  2933. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2934. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2935. return -EINVAL;
  2936. }
  2937. if (out_ch >= ADM_MAX_CHANNELS) {
  2938. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2939. return -EINVAL;
  2940. }
  2941. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2942. __func__, fe_id,
  2943. ucontrol->value.integer.value[0],
  2944. ucontrol->value.integer.value[1],
  2945. ucontrol->value.integer.value[2],
  2946. ucontrol->value.integer.value[3],
  2947. ucontrol->value.integer.value[4],
  2948. ucontrol->value.integer.value[5],
  2949. ucontrol->value.integer.value[6],
  2950. ucontrol->value.integer.value[7]);
  2951. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2952. weight = ucontrol->value.integer.value[i];
  2953. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2954. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2955. __func__, fe_id, out_ch, i,
  2956. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2957. }
  2958. return 0;
  2959. }
  2960. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2961. struct snd_ctl_elem_value *ucontrol)
  2962. {
  2963. u16 fe_id = 0, out_ch = 0;
  2964. int i;
  2965. fe_id = ((struct soc_multi_mixer_control *)
  2966. kcontrol->private_value)->shift;
  2967. out_ch = ((struct soc_multi_mixer_control *)
  2968. kcontrol->private_value)->rshift;
  2969. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2970. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2971. return -EINVAL;
  2972. }
  2973. if (out_ch >= ADM_MAX_CHANNELS) {
  2974. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2975. return -EINVAL;
  2976. }
  2977. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2978. ucontrol->value.integer.value[i] =
  2979. channel_mixer[fe_id].channel_weight[out_ch][i];
  2980. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2981. __func__, fe_id,
  2982. ucontrol->value.integer.value[0],
  2983. ucontrol->value.integer.value[1],
  2984. ucontrol->value.integer.value[2],
  2985. ucontrol->value.integer.value[3],
  2986. ucontrol->value.integer.value[4],
  2987. ucontrol->value.integer.value[5],
  2988. ucontrol->value.integer.value[6],
  2989. ucontrol->value.integer.value[7]);
  2990. return 0;
  2991. }
  2992. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2993. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2994. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2995. msm_pcm_get_channel_rule_index,
  2996. msm_pcm_put_channel_rule_index),
  2997. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2998. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2999. msm_pcm_get_channel_rule_index,
  3000. msm_pcm_put_channel_rule_index),
  3001. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3002. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3003. msm_pcm_get_channel_rule_index,
  3004. msm_pcm_put_channel_rule_index),
  3005. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3006. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3007. msm_pcm_get_channel_rule_index,
  3008. msm_pcm_put_channel_rule_index),
  3009. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3010. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3011. msm_pcm_get_channel_rule_index,
  3012. msm_pcm_put_channel_rule_index),
  3013. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3014. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3015. msm_pcm_get_channel_rule_index,
  3016. msm_pcm_put_channel_rule_index),
  3017. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3018. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3019. msm_pcm_get_out_chs,
  3020. msm_pcm_put_out_chs),
  3021. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3022. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3023. msm_pcm_get_out_chs,
  3024. msm_pcm_put_out_chs),
  3025. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3026. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3027. msm_pcm_get_out_chs,
  3028. msm_pcm_put_out_chs),
  3029. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3030. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3031. msm_pcm_get_out_chs,
  3032. msm_pcm_put_out_chs),
  3033. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3034. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3035. msm_pcm_get_out_chs,
  3036. msm_pcm_put_out_chs),
  3037. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3038. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3039. msm_pcm_get_out_chs,
  3040. msm_pcm_put_out_chs),
  3041. {
  3042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3044. .name = "MultiMedia1 Channel Mixer",
  3045. .info = msm_pcm_channel_mixer_info,
  3046. .get = msm_pcm_channel_mixer_get,
  3047. .put = msm_pcm_channel_mixer_put,
  3048. .private_value = (unsigned long)&(mm1_channel_mux)
  3049. },
  3050. {
  3051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3052. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3053. .name = "MultiMedia2 Channel Mixer",
  3054. .info = msm_pcm_channel_mixer_info,
  3055. .get = msm_pcm_channel_mixer_get,
  3056. .put = msm_pcm_channel_mixer_put,
  3057. .private_value = (unsigned long)&(mm2_channel_mux)
  3058. },
  3059. {
  3060. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3061. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3062. .name = "MultiMedia3 Channel Mixer",
  3063. .info = msm_pcm_channel_mixer_info,
  3064. .get = msm_pcm_channel_mixer_get,
  3065. .put = msm_pcm_channel_mixer_put,
  3066. .private_value = (unsigned long)&(mm3_channel_mux)
  3067. },
  3068. {
  3069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3071. .name = "MultiMedia4 Channel Mixer",
  3072. .info = msm_pcm_channel_mixer_info,
  3073. .get = msm_pcm_channel_mixer_get,
  3074. .put = msm_pcm_channel_mixer_put,
  3075. .private_value = (unsigned long)&(mm4_channel_mux)
  3076. },
  3077. {
  3078. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3079. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3080. .name = "MultiMedia1 Output Channel1",
  3081. .info = msm_pcm_channel_weight_info,
  3082. .get = msm_pcm_channel_weight_get,
  3083. .put = msm_pcm_channel_weight_put,
  3084. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3085. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3086. },
  3087. {
  3088. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3089. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3090. .name = "MultiMedia1 Output Channel2",
  3091. .info = msm_pcm_channel_weight_info,
  3092. .get = msm_pcm_channel_weight_get,
  3093. .put = msm_pcm_channel_weight_put,
  3094. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3095. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3096. },
  3097. {
  3098. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3099. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3100. .name = "MultiMedia1 Output Channel3",
  3101. .info = msm_pcm_channel_weight_info,
  3102. .get = msm_pcm_channel_weight_get,
  3103. .put = msm_pcm_channel_weight_put,
  3104. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3105. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3106. },
  3107. {
  3108. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3109. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3110. .name = "MultiMedia1 Output Channel4",
  3111. .info = msm_pcm_channel_weight_info,
  3112. .get = msm_pcm_channel_weight_get,
  3113. .put = msm_pcm_channel_weight_put,
  3114. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3115. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3116. },
  3117. {
  3118. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3119. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3120. .name = "MultiMedia1 Output Channel5",
  3121. .info = msm_pcm_channel_weight_info,
  3122. .get = msm_pcm_channel_weight_get,
  3123. .put = msm_pcm_channel_weight_put,
  3124. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3125. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3126. },
  3127. {
  3128. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3129. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3130. .name = "MultiMedia1 Output Channel6",
  3131. .info = msm_pcm_channel_weight_info,
  3132. .get = msm_pcm_channel_weight_get,
  3133. .put = msm_pcm_channel_weight_put,
  3134. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3135. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3136. },
  3137. {
  3138. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3139. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3140. .name = "MultiMedia1 Output Channel7",
  3141. .info = msm_pcm_channel_weight_info,
  3142. .get = msm_pcm_channel_weight_get,
  3143. .put = msm_pcm_channel_weight_put,
  3144. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3145. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3146. },
  3147. {
  3148. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3149. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3150. .name = "MultiMedia1 Output Channel8",
  3151. .info = msm_pcm_channel_weight_info,
  3152. .get = msm_pcm_channel_weight_get,
  3153. .put = msm_pcm_channel_weight_put,
  3154. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3155. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3156. },
  3157. {
  3158. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3159. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3160. .name = "MultiMedia2 Output Channel1",
  3161. .info = msm_pcm_channel_weight_info,
  3162. .get = msm_pcm_channel_weight_get,
  3163. .put = msm_pcm_channel_weight_put,
  3164. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3165. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3166. },
  3167. {
  3168. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3169. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3170. .name = "MultiMedia2 Output Channel2",
  3171. .info = msm_pcm_channel_weight_info,
  3172. .get = msm_pcm_channel_weight_get,
  3173. .put = msm_pcm_channel_weight_put,
  3174. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3175. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3176. },
  3177. {
  3178. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3179. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3180. .name = "MultiMedia2 Output Channel3",
  3181. .info = msm_pcm_channel_weight_info,
  3182. .get = msm_pcm_channel_weight_get,
  3183. .put = msm_pcm_channel_weight_put,
  3184. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3185. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3186. },
  3187. {
  3188. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3189. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3190. .name = "MultiMedia3 Output Channel1",
  3191. .info = msm_pcm_channel_weight_info,
  3192. .get = msm_pcm_channel_weight_get,
  3193. .put = msm_pcm_channel_weight_put,
  3194. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3195. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3196. },
  3197. {
  3198. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3199. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3200. .name = "MultiMedia3 Output Channel2",
  3201. .info = msm_pcm_channel_weight_info,
  3202. .get = msm_pcm_channel_weight_get,
  3203. .put = msm_pcm_channel_weight_put,
  3204. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3205. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3206. },
  3207. {
  3208. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3209. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3210. .name = "MultiMedia1 Channel1",
  3211. .info = msm_pcm_channel_input_be_info,
  3212. .get = msm_pcm_channel_input_be_get,
  3213. .put = msm_pcm_channel_input_be_put,
  3214. .private_value = (unsigned long)&(mm1_ch1_enum)
  3215. },
  3216. {
  3217. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3218. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3219. .name = "MultiMedia1 Channel2",
  3220. .info = msm_pcm_channel_input_be_info,
  3221. .get = msm_pcm_channel_input_be_get,
  3222. .put = msm_pcm_channel_input_be_put,
  3223. .private_value = (unsigned long)&(mm1_ch2_enum)
  3224. },
  3225. {
  3226. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3227. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3228. .name = "MultiMedia1 Channel3",
  3229. .info = msm_pcm_channel_input_be_info,
  3230. .get = msm_pcm_channel_input_be_get,
  3231. .put = msm_pcm_channel_input_be_put,
  3232. .private_value = (unsigned long)&(mm1_ch3_enum)
  3233. },
  3234. {
  3235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3237. .name = "MultiMedia1 Channel4",
  3238. .info = msm_pcm_channel_input_be_info,
  3239. .get = msm_pcm_channel_input_be_get,
  3240. .put = msm_pcm_channel_input_be_put,
  3241. .private_value = (unsigned long)&(mm1_ch4_enum)
  3242. },
  3243. {
  3244. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3245. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3246. .name = "MultiMedia1 Channel5",
  3247. .info = msm_pcm_channel_input_be_info,
  3248. .get = msm_pcm_channel_input_be_get,
  3249. .put = msm_pcm_channel_input_be_put,
  3250. .private_value = (unsigned long)&(mm1_ch5_enum)
  3251. },
  3252. {
  3253. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3254. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3255. .name = "MultiMedia1 Channel6",
  3256. .info = msm_pcm_channel_input_be_info,
  3257. .get = msm_pcm_channel_input_be_get,
  3258. .put = msm_pcm_channel_input_be_put,
  3259. .private_value = (unsigned long)&(mm1_ch6_enum)
  3260. },
  3261. {
  3262. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3263. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3264. .name = "MultiMedia1 Channel7",
  3265. .info = msm_pcm_channel_input_be_info,
  3266. .get = msm_pcm_channel_input_be_get,
  3267. .put = msm_pcm_channel_input_be_put,
  3268. .private_value = (unsigned long)&(mm1_ch7_enum)
  3269. },
  3270. {
  3271. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3272. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3273. .name = "MultiMedia1 Channel8",
  3274. .info = msm_pcm_channel_input_be_info,
  3275. .get = msm_pcm_channel_input_be_get,
  3276. .put = msm_pcm_channel_input_be_put,
  3277. .private_value = (unsigned long)&(mm1_ch8_enum)
  3278. },
  3279. };
  3280. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3281. struct snd_ctl_elem_value *ucontrol)
  3282. {
  3283. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3284. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3285. ucontrol->value.integer.value[0]);
  3286. return 0;
  3287. }
  3288. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3289. struct snd_ctl_elem_value *ucontrol)
  3290. {
  3291. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3292. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3293. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3294. return 0;
  3295. }
  3296. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3297. "Four", "Five", "Six", "Seven", "Eight"};
  3298. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3299. struct snd_ctl_elem_value *ucontrol)
  3300. {
  3301. switch (msm_ec_ref_bit_format) {
  3302. case SNDRV_PCM_FORMAT_S24_LE:
  3303. ucontrol->value.integer.value[0] = 2;
  3304. break;
  3305. case SNDRV_PCM_FORMAT_S16_LE:
  3306. ucontrol->value.integer.value[0] = 1;
  3307. break;
  3308. default:
  3309. ucontrol->value.integer.value[0] = 0;
  3310. break;
  3311. }
  3312. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3313. __func__, ucontrol->value.integer.value[0]);
  3314. return 0;
  3315. }
  3316. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3317. struct snd_ctl_elem_value *ucontrol)
  3318. {
  3319. u16 bit_width = 0;
  3320. switch (ucontrol->value.integer.value[0]) {
  3321. case 2:
  3322. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3323. break;
  3324. case 1:
  3325. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3326. break;
  3327. default:
  3328. msm_ec_ref_bit_format = 0;
  3329. break;
  3330. }
  3331. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3332. bit_width = 16;
  3333. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3334. bit_width = 24;
  3335. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3336. __func__, msm_ec_ref_bit_format);
  3337. adm_ec_ref_rx_bit_width(bit_width);
  3338. return 0;
  3339. }
  3340. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3341. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3342. struct snd_ctl_elem_value *ucontrol)
  3343. {
  3344. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3345. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3346. __func__, ucontrol->value.integer.value[0]);
  3347. return 0;
  3348. }
  3349. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3350. struct snd_ctl_elem_value *ucontrol)
  3351. {
  3352. switch (ucontrol->value.integer.value[0]) {
  3353. case 0:
  3354. msm_ec_ref_sampling_rate = 0;
  3355. break;
  3356. case 1:
  3357. msm_ec_ref_sampling_rate = 8000;
  3358. break;
  3359. case 2:
  3360. msm_ec_ref_sampling_rate = 16000;
  3361. break;
  3362. case 3:
  3363. msm_ec_ref_sampling_rate = 32000;
  3364. break;
  3365. case 4:
  3366. msm_ec_ref_sampling_rate = 44100;
  3367. break;
  3368. case 5:
  3369. msm_ec_ref_sampling_rate = 48000;
  3370. break;
  3371. case 6:
  3372. msm_ec_ref_sampling_rate = 96000;
  3373. break;
  3374. case 7:
  3375. msm_ec_ref_sampling_rate = 192000;
  3376. break;
  3377. case 8:
  3378. msm_ec_ref_sampling_rate = 384000;
  3379. break;
  3380. default:
  3381. msm_ec_ref_sampling_rate = 48000;
  3382. break;
  3383. }
  3384. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3385. __func__, msm_ec_ref_sampling_rate);
  3386. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3387. return 0;
  3388. }
  3389. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3390. "32000", "44100", "48000", "96000", "192000", "384000"};
  3391. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3392. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3393. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3394. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3395. };
  3396. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3397. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3398. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3399. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3400. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3401. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3402. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3403. };
  3404. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3405. struct snd_ctl_elem_value *ucontrol)
  3406. {
  3407. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3408. mutex_lock(&routing_lock);
  3409. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3410. mutex_unlock(&routing_lock);
  3411. return 0;
  3412. }
  3413. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3414. struct snd_ctl_elem_value *ucontrol)
  3415. {
  3416. int ec_ref_port_id;
  3417. struct snd_soc_dapm_widget *widget =
  3418. snd_soc_dapm_kcontrol_widget(kcontrol);
  3419. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3420. struct snd_soc_dapm_update *update = NULL;
  3421. mutex_lock(&routing_lock);
  3422. switch (ucontrol->value.integer.value[0]) {
  3423. case 0:
  3424. msm_route_ec_ref_rx = 0;
  3425. ec_ref_port_id = AFE_PORT_INVALID;
  3426. break;
  3427. case 1:
  3428. msm_route_ec_ref_rx = 1;
  3429. ec_ref_port_id = SLIMBUS_0_RX;
  3430. break;
  3431. case 2:
  3432. msm_route_ec_ref_rx = 2;
  3433. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3434. break;
  3435. case 3:
  3436. msm_route_ec_ref_rx = 3;
  3437. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3438. break;
  3439. case 4:
  3440. msm_route_ec_ref_rx = 4;
  3441. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3442. break;
  3443. case 5:
  3444. msm_route_ec_ref_rx = 5;
  3445. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3446. break;
  3447. case 6:
  3448. msm_route_ec_ref_rx = 6;
  3449. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3450. break;
  3451. case 7:
  3452. msm_route_ec_ref_rx = 7;
  3453. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3454. break;
  3455. case 9:
  3456. msm_route_ec_ref_rx = 9;
  3457. ec_ref_port_id = SLIMBUS_5_RX;
  3458. break;
  3459. case 10:
  3460. msm_route_ec_ref_rx = 10;
  3461. ec_ref_port_id = SLIMBUS_1_TX;
  3462. break;
  3463. case 11:
  3464. msm_route_ec_ref_rx = 11;
  3465. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3466. break;
  3467. case 12:
  3468. msm_route_ec_ref_rx = 12;
  3469. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3470. break;
  3471. case 13:
  3472. msm_route_ec_ref_rx = 13;
  3473. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3474. break;
  3475. case 14:
  3476. msm_route_ec_ref_rx = 14;
  3477. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3478. break;
  3479. case 15:
  3480. msm_route_ec_ref_rx = 15;
  3481. ec_ref_port_id = SLIMBUS_6_RX;
  3482. break;
  3483. case 16:
  3484. msm_route_ec_ref_rx = 16;
  3485. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3486. break;
  3487. case 17:
  3488. msm_route_ec_ref_rx = 17;
  3489. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3490. break;
  3491. case 18:
  3492. msm_route_ec_ref_rx = 18;
  3493. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3494. break;
  3495. case 19:
  3496. msm_route_ec_ref_rx = 19;
  3497. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3498. break;
  3499. case 20:
  3500. msm_route_ec_ref_rx = 20;
  3501. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3502. break;
  3503. case 21:
  3504. msm_route_ec_ref_rx = 21;
  3505. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3506. break;
  3507. case 22:
  3508. msm_route_ec_ref_rx = 22;
  3509. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3510. break;
  3511. case 23:
  3512. msm_route_ec_ref_rx = 23;
  3513. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3514. break;
  3515. case 24:
  3516. msm_route_ec_ref_rx = 24;
  3517. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3518. break;
  3519. case 25:
  3520. msm_route_ec_ref_rx = 25;
  3521. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3522. break;
  3523. case 26:
  3524. msm_route_ec_ref_rx = 26;
  3525. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3526. break;
  3527. case 27:
  3528. msm_route_ec_ref_rx = 27;
  3529. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3530. break;
  3531. case 28:
  3532. msm_route_ec_ref_rx = 28;
  3533. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3534. break;
  3535. case 29:
  3536. msm_route_ec_ref_rx = 29;
  3537. ec_ref_port_id = SLIMBUS_7_RX;
  3538. break;
  3539. case 30:
  3540. msm_route_ec_ref_rx = 30;
  3541. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3542. break;
  3543. case 31:
  3544. msm_route_ec_ref_rx = 31;
  3545. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3546. break;
  3547. case 32:
  3548. msm_route_ec_ref_rx = 32;
  3549. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3550. break;
  3551. case 33:
  3552. msm_route_ec_ref_rx = 33;
  3553. ec_ref_port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3554. break;
  3555. case 34:
  3556. msm_route_ec_ref_rx = 34;
  3557. ec_ref_port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3558. break;
  3559. case 35:
  3560. msm_route_ec_ref_rx = 35;
  3561. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3562. break;
  3563. case 36:
  3564. msm_route_ec_ref_rx = 36;
  3565. ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3566. break;
  3567. default:
  3568. msm_route_ec_ref_rx = 0; /* NONE */
  3569. pr_err("%s EC ref rx %ld not valid\n",
  3570. __func__, ucontrol->value.integer.value[0]);
  3571. ec_ref_port_id = AFE_PORT_INVALID;
  3572. break;
  3573. }
  3574. msm_ec_ref_port_id = ec_ref_port_id;
  3575. adm_ec_ref_rx_id(ec_ref_port_id);
  3576. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3577. __func__, msm_route_ec_ref_rx);
  3578. mutex_unlock(&routing_lock);
  3579. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3580. msm_route_ec_ref_rx, e, update);
  3581. return 0;
  3582. }
  3583. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3584. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3585. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3586. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3587. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3588. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3589. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3590. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3591. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3592. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3593. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3594. };
  3595. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3596. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3597. };
  3598. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3599. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3600. msm_route_ec_ref_rx_enum[0],
  3601. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3602. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3603. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3604. msm_route_ec_ref_rx_enum[0],
  3605. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3606. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3607. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3608. msm_route_ec_ref_rx_enum[0],
  3609. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3610. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3611. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3612. msm_route_ec_ref_rx_enum[0],
  3613. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3614. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3615. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3616. msm_route_ec_ref_rx_enum[0],
  3617. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3618. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3619. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3620. msm_route_ec_ref_rx_enum[0],
  3621. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3622. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3623. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3624. msm_route_ec_ref_rx_enum[0],
  3625. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3626. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3627. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3628. msm_route_ec_ref_rx_enum[0],
  3629. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3630. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3631. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3632. msm_route_ec_ref_rx_enum[0],
  3633. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3634. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3635. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3636. msm_route_ec_ref_rx_enum[0],
  3637. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3638. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3639. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3640. msm_route_ec_ref_rx_enum[0],
  3641. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3642. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3643. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3644. msm_route_ec_ref_rx_enum[0],
  3645. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3646. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3647. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3648. msm_route_ec_ref_rx_enum[0],
  3649. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3650. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3651. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3652. msm_route_ec_ref_rx_enum[0],
  3653. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3654. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3655. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3656. msm_route_ec_ref_rx_enum[0],
  3657. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3658. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3659. struct snd_ctl_elem_value *ucontrol)
  3660. {
  3661. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3662. mutex_lock(&routing_lock);
  3663. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3664. mutex_unlock(&routing_lock);
  3665. return 0;
  3666. }
  3667. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3668. struct snd_ctl_elem_value *ucontrol)
  3669. {
  3670. struct snd_soc_dapm_widget *widget =
  3671. snd_soc_dapm_kcontrol_widget(kcontrol);
  3672. int mux = ucontrol->value.enumerated.item[0];
  3673. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3674. int ret = 1;
  3675. bool state = true;
  3676. uint16_t ext_ec_ref_port_id;
  3677. struct snd_soc_dapm_update *update = NULL;
  3678. if (mux >= e->items) {
  3679. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3680. return -EINVAL;
  3681. }
  3682. mutex_lock(&routing_lock);
  3683. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3684. switch (msm_route_ext_ec_ref) {
  3685. case EXT_EC_REF_PRI_MI2S_TX:
  3686. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3687. break;
  3688. case EXT_EC_REF_SEC_MI2S_TX:
  3689. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3690. break;
  3691. case EXT_EC_REF_TERT_MI2S_TX:
  3692. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3693. break;
  3694. case EXT_EC_REF_QUAT_MI2S_TX:
  3695. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3696. break;
  3697. case EXT_EC_REF_QUIN_MI2S_TX:
  3698. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3699. break;
  3700. case EXT_EC_REF_SLIM_1_TX:
  3701. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3702. break;
  3703. case EXT_EC_REF_SEC_TDM_TX:
  3704. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3705. break;
  3706. case EXT_EC_REF_NONE:
  3707. default:
  3708. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3709. state = false;
  3710. break;
  3711. }
  3712. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3713. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3714. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3715. mutex_unlock(&routing_lock);
  3716. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3717. update);
  3718. } else {
  3719. ret = -EINVAL;
  3720. mutex_unlock(&routing_lock);
  3721. }
  3722. return ret;
  3723. }
  3724. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3725. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3726. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3727. "SLIM_1_TX", "SEC_TDM_TX"};
  3728. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3729. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3730. };
  3731. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3732. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3733. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3734. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3735. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3736. MSM_BACKEND_DAI_PRI_I2S_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3740. MSM_BACKEND_DAI_PRI_I2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3744. MSM_BACKEND_DAI_PRI_I2S_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3748. MSM_BACKEND_DAI_PRI_I2S_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3752. MSM_BACKEND_DAI_PRI_I2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3756. MSM_BACKEND_DAI_PRI_I2S_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3760. MSM_BACKEND_DAI_PRI_I2S_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3764. MSM_BACKEND_DAI_PRI_I2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3768. MSM_BACKEND_DAI_PRI_I2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3772. MSM_BACKEND_DAI_PRI_I2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3776. MSM_BACKEND_DAI_PRI_I2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3780. MSM_BACKEND_DAI_PRI_I2S_RX,
  3781. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3782. msm_routing_put_audio_mixer),
  3783. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3784. MSM_BACKEND_DAI_PRI_I2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3788. MSM_BACKEND_DAI_PRI_I2S_RX,
  3789. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3790. msm_routing_put_audio_mixer),
  3791. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_PRI_I2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_PRI_I2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3800. MSM_BACKEND_DAI_PRI_I2S_RX,
  3801. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3802. msm_routing_put_audio_mixer),
  3803. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3804. MSM_BACKEND_DAI_PRI_I2S_RX,
  3805. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3806. msm_routing_put_audio_mixer),
  3807. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3808. MSM_BACKEND_DAI_PRI_I2S_RX,
  3809. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3810. msm_routing_put_audio_mixer),
  3811. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3812. MSM_BACKEND_DAI_PRI_I2S_RX,
  3813. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3814. msm_routing_put_audio_mixer),
  3815. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3816. MSM_BACKEND_DAI_PRI_I2S_RX,
  3817. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3818. msm_routing_put_audio_mixer),
  3819. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3820. MSM_BACKEND_DAI_PRI_I2S_RX,
  3821. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3822. msm_routing_put_audio_mixer),
  3823. };
  3824. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3826. MSM_BACKEND_DAI_SEC_I2S_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3830. MSM_BACKEND_DAI_SEC_I2S_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3834. MSM_BACKEND_DAI_SEC_I2S_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3838. MSM_BACKEND_DAI_SEC_I2S_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3842. MSM_BACKEND_DAI_SEC_I2S_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3846. MSM_BACKEND_DAI_SEC_I2S_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3850. MSM_BACKEND_DAI_SEC_I2S_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3854. MSM_BACKEND_DAI_SEC_I2S_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SEC_I2S_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3862. MSM_BACKEND_DAI_SEC_I2S_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3866. MSM_BACKEND_DAI_SEC_I2S_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3870. MSM_BACKEND_DAI_SEC_I2S_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3874. MSM_BACKEND_DAI_SEC_I2S_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_SEC_I2S_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_SEC_I2S_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3886. MSM_BACKEND_DAI_SEC_I2S_RX,
  3887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3888. msm_routing_put_audio_mixer),
  3889. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3890. MSM_BACKEND_DAI_SEC_I2S_RX,
  3891. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3892. msm_routing_put_audio_mixer),
  3893. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3894. MSM_BACKEND_DAI_SEC_I2S_RX,
  3895. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3896. msm_routing_put_audio_mixer),
  3897. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3898. MSM_BACKEND_DAI_SEC_I2S_RX,
  3899. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3900. msm_routing_put_audio_mixer),
  3901. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3902. MSM_BACKEND_DAI_SEC_I2S_RX,
  3903. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3904. msm_routing_put_audio_mixer),
  3905. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3906. MSM_BACKEND_DAI_SEC_I2S_RX,
  3907. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3908. msm_routing_put_audio_mixer),
  3909. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3910. MSM_BACKEND_DAI_SEC_I2S_RX,
  3911. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3912. msm_routing_put_audio_mixer),
  3913. };
  3914. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  3915. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3916. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3920. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3924. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3928. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3932. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3936. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3940. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3948. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3952. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3954. msm_routing_put_audio_mixer),
  3955. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3956. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3957. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3958. msm_routing_put_audio_mixer),
  3959. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3960. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3961. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3962. msm_routing_put_audio_mixer),
  3963. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3964. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3965. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3966. msm_routing_put_audio_mixer),
  3967. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3968. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3969. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3970. msm_routing_put_audio_mixer),
  3971. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3972. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3973. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3974. msm_routing_put_audio_mixer),
  3975. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3976. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3978. msm_routing_put_audio_mixer),
  3979. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3980. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3981. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3982. msm_routing_put_audio_mixer),
  3983. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3984. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3985. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3986. msm_routing_put_audio_mixer),
  3987. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3988. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3989. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3990. msm_routing_put_audio_mixer),
  3991. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  3992. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3993. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  3994. msm_routing_put_audio_mixer),
  3995. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3996. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  3997. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3998. msm_routing_put_audio_mixer),
  3999. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4000. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4001. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4002. msm_routing_put_audio_mixer),
  4003. };
  4004. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4005. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4006. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4010. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4014. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4018. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4022. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4026. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4034. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4038. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4039. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4040. msm_routing_put_audio_mixer),
  4041. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4042. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4044. msm_routing_put_audio_mixer),
  4045. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4046. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4047. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4048. msm_routing_put_audio_mixer),
  4049. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4050. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4051. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4052. msm_routing_put_audio_mixer),
  4053. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4054. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4055. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4056. msm_routing_put_audio_mixer),
  4057. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4058. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4059. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4060. msm_routing_put_audio_mixer),
  4061. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4062. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4063. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4064. msm_routing_put_audio_mixer),
  4065. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4066. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4068. msm_routing_put_audio_mixer),
  4069. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4070. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4071. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4072. msm_routing_put_audio_mixer),
  4073. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4074. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4075. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4076. msm_routing_put_audio_mixer),
  4077. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4078. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4079. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4080. msm_routing_put_audio_mixer),
  4081. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4082. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4083. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4084. msm_routing_put_audio_mixer),
  4085. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4086. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4087. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4088. msm_routing_put_audio_mixer),
  4089. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4090. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4091. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4092. msm_routing_put_audio_mixer),
  4093. };
  4094. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4095. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4096. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4100. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4101. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4102. msm_routing_put_audio_mixer),
  4103. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4104. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4108. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4112. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4124. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4125. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4126. msm_routing_put_audio_mixer),
  4127. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4128. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4129. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4130. msm_routing_put_audio_mixer),
  4131. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4132. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4133. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4134. msm_routing_put_audio_mixer),
  4135. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4136. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4137. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4138. msm_routing_put_audio_mixer),
  4139. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4140. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4141. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4142. msm_routing_put_audio_mixer),
  4143. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4144. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4145. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4146. msm_routing_put_audio_mixer),
  4147. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4148. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4149. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4150. msm_routing_put_audio_mixer),
  4151. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4152. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4153. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4154. msm_routing_put_audio_mixer),
  4155. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4156. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4157. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4158. msm_routing_put_audio_mixer),
  4159. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4160. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4161. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4162. msm_routing_put_audio_mixer),
  4163. };
  4164. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4165. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4186. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4190. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4194. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4198. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4210. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4211. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4212. msm_routing_put_audio_mixer),
  4213. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4214. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4216. msm_routing_put_audio_mixer),
  4217. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4218. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4219. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4220. msm_routing_put_audio_mixer),
  4221. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4222. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4223. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4224. msm_routing_put_audio_mixer),
  4225. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4226. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4228. msm_routing_put_audio_mixer),
  4229. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4230. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4231. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4232. msm_routing_put_audio_mixer),
  4233. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4234. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4235. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4236. msm_routing_put_audio_mixer),
  4237. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4238. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4239. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4240. msm_routing_put_audio_mixer),
  4241. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4242. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4243. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4244. msm_routing_put_audio_mixer),
  4245. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4246. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4247. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4248. msm_routing_put_audio_mixer),
  4249. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4250. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4251. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4252. msm_routing_put_audio_mixer),
  4253. };
  4254. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4255. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4272. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4276. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4280. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4284. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4296. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4297. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4298. msm_routing_put_audio_mixer),
  4299. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4300. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4301. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4302. msm_routing_put_audio_mixer),
  4303. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4304. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4305. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4306. msm_routing_put_audio_mixer),
  4307. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4308. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4309. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4310. msm_routing_put_audio_mixer),
  4311. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4312. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4313. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4314. msm_routing_put_audio_mixer),
  4315. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4316. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4318. msm_routing_put_audio_mixer),
  4319. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4320. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4321. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4322. msm_routing_put_audio_mixer),
  4323. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4324. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4325. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4326. msm_routing_put_audio_mixer),
  4327. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4328. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4329. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4330. msm_routing_put_audio_mixer),
  4331. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4332. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4333. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4334. msm_routing_put_audio_mixer),
  4335. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4336. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4337. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4338. msm_routing_put_audio_mixer),
  4339. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4340. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4341. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4342. msm_routing_put_audio_mixer),
  4343. };
  4344. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4345. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_MI2S_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_MI2S_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_MI2S_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4358. MSM_BACKEND_DAI_MI2S_RX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4362. MSM_BACKEND_DAI_MI2S_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_MI2S_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4370. MSM_BACKEND_DAI_MI2S_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4374. MSM_BACKEND_DAI_MI2S_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4378. MSM_BACKEND_DAI_MI2S_RX,
  4379. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4380. msm_routing_put_audio_mixer),
  4381. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4382. MSM_BACKEND_DAI_MI2S_RX,
  4383. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4384. msm_routing_put_audio_mixer),
  4385. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4386. MSM_BACKEND_DAI_MI2S_RX,
  4387. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4388. msm_routing_put_audio_mixer),
  4389. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4390. MSM_BACKEND_DAI_MI2S_RX,
  4391. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4392. msm_routing_put_audio_mixer),
  4393. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4394. MSM_BACKEND_DAI_MI2S_RX,
  4395. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4396. msm_routing_put_audio_mixer),
  4397. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4398. MSM_BACKEND_DAI_MI2S_RX,
  4399. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4400. msm_routing_put_audio_mixer),
  4401. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4402. MSM_BACKEND_DAI_MI2S_RX,
  4403. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4404. msm_routing_put_audio_mixer),
  4405. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4406. MSM_BACKEND_DAI_MI2S_RX,
  4407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4408. msm_routing_put_audio_mixer),
  4409. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4410. MSM_BACKEND_DAI_MI2S_RX,
  4411. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4412. msm_routing_put_audio_mixer),
  4413. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4414. MSM_BACKEND_DAI_MI2S_RX,
  4415. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4416. msm_routing_put_audio_mixer),
  4417. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4418. MSM_BACKEND_DAI_MI2S_RX,
  4419. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4420. msm_routing_put_audio_mixer),
  4421. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4422. MSM_BACKEND_DAI_MI2S_RX,
  4423. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4424. msm_routing_put_audio_mixer),
  4425. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4426. MSM_BACKEND_DAI_MI2S_RX,
  4427. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4428. msm_routing_put_audio_mixer),
  4429. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4430. MSM_BACKEND_DAI_MI2S_RX,
  4431. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4432. msm_routing_put_audio_mixer),
  4433. };
  4434. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4435. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4456. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4460. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4464. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4472. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4476. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4480. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4484. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4488. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4492. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4496. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4500. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4504. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4512. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4516. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4520. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4521. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4522. msm_routing_put_audio_mixer),
  4523. };
  4524. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4525. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4526. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4530. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4534. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4538. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4542. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4544. msm_routing_put_audio_mixer),
  4545. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4546. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4548. msm_routing_put_audio_mixer),
  4549. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4550. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4551. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4552. msm_routing_put_audio_mixer),
  4553. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4554. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4558. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4562. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4566. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4570. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4574. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4578. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4582. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4586. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4590. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4594. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4602. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4606. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4610. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. };
  4614. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4615. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4616. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4620. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4622. msm_routing_put_audio_mixer),
  4623. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4624. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4628. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4632. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4634. msm_routing_put_audio_mixer),
  4635. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4636. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4637. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4638. msm_routing_put_audio_mixer),
  4639. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4640. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4644. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4648. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4652. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4656. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4660. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4664. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4668. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4672. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4684. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4688. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4692. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. };
  4696. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4697. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4698. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. };
  4702. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4703. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4704. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4705. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4706. msm_routing_put_audio_mixer),
  4707. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4708. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4709. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4710. msm_routing_put_audio_mixer),
  4711. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4712. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4713. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4714. msm_routing_put_audio_mixer),
  4715. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4716. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4718. msm_routing_put_audio_mixer),
  4719. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4720. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4722. msm_routing_put_audio_mixer),
  4723. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4724. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4728. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4732. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4736. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4740. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4744. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4748. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4752. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4756. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4760. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4764. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4768. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4788. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. };
  4792. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4794. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4796. msm_routing_put_audio_mixer),
  4797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4798. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4800. msm_routing_put_audio_mixer),
  4801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4802. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4804. msm_routing_put_audio_mixer),
  4805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4806. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4808. msm_routing_put_audio_mixer),
  4809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4810. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4812. msm_routing_put_audio_mixer),
  4813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4814. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4818. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4822. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4826. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4830. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4834. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4838. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4842. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4846. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4850. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4854. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4878. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. };
  4882. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4883. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4884. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4886. msm_routing_put_audio_mixer),
  4887. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4888. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4890. msm_routing_put_audio_mixer),
  4891. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4892. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4894. msm_routing_put_audio_mixer),
  4895. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4896. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4897. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4898. msm_routing_put_audio_mixer),
  4899. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4900. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4902. msm_routing_put_audio_mixer),
  4903. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4904. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4908. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4912. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4920. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4944. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. };
  4948. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4949. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4950. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4952. msm_routing_put_audio_mixer),
  4953. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4954. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4956. msm_routing_put_audio_mixer),
  4957. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4960. msm_routing_put_audio_mixer),
  4961. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4962. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4963. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4964. msm_routing_put_audio_mixer),
  4965. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4966. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4968. msm_routing_put_audio_mixer),
  4969. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4970. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4972. msm_routing_put_audio_mixer),
  4973. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4974. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4975. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4976. msm_routing_put_audio_mixer),
  4977. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4978. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4979. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4980. msm_routing_put_audio_mixer),
  4981. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4982. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5002. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5010. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5012. msm_routing_put_audio_mixer),
  5013. };
  5014. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5015. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5016. MSM_BACKEND_DAI_HDMI_RX,
  5017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5018. msm_routing_put_audio_mixer),
  5019. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5020. MSM_BACKEND_DAI_HDMI_RX,
  5021. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5022. msm_routing_put_audio_mixer),
  5023. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5024. MSM_BACKEND_DAI_HDMI_RX,
  5025. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5026. msm_routing_put_audio_mixer),
  5027. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5028. MSM_BACKEND_DAI_HDMI_RX,
  5029. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5030. msm_routing_put_audio_mixer),
  5031. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5032. MSM_BACKEND_DAI_HDMI_RX,
  5033. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5034. msm_routing_put_audio_mixer),
  5035. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_HDMI_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_HDMI_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_HDMI_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_HDMI_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_HDMI_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_HDMI_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_HDMI_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_HDMI_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_HDMI_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_HDMI_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_HDMI_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_HDMI_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_HDMI_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_HDMI_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_HDMI_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_HDMI_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5100. MSM_BACKEND_DAI_HDMI_RX,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. };
  5104. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5105. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5162. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5166. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5170. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5171. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5172. msm_routing_put_audio_mixer),
  5173. };
  5174. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5175. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5240. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. };
  5244. /* incall music delivery mixer */
  5245. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5246. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. };
  5263. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5264. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5265. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5266. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5267. msm_routing_put_audio_mixer),
  5268. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5269. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5271. msm_routing_put_audio_mixer),
  5272. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5273. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5274. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5275. msm_routing_put_audio_mixer),
  5276. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5277. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5278. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5279. msm_routing_put_audio_mixer),
  5280. };
  5281. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5282. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. };
  5299. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5300. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5301. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5302. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5303. msm_routing_put_audio_mixer),
  5304. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5305. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5306. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5307. msm_routing_put_audio_mixer),
  5308. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. };
  5369. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5370. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. };
  5439. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5440. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. };
  5509. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5510. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. };
  5579. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  5580. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. };
  5649. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  5650. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. };
  5719. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  5720. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. };
  5789. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  5790. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. };
  5859. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  5860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5871. msm_routing_put_audio_mixer),
  5872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5875. msm_routing_put_audio_mixer),
  5876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5879. msm_routing_put_audio_mixer),
  5880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5883. msm_routing_put_audio_mixer),
  5884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5887. msm_routing_put_audio_mixer),
  5888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. };
  5929. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  5930. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5936. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5937. msm_routing_put_audio_mixer),
  5938. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5940. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5941. msm_routing_put_audio_mixer),
  5942. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5944. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5945. msm_routing_put_audio_mixer),
  5946. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5948. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5949. msm_routing_put_audio_mixer),
  5950. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5952. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5953. msm_routing_put_audio_mixer),
  5954. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5956. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5957. msm_routing_put_audio_mixer),
  5958. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5959. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5960. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5961. msm_routing_put_audio_mixer),
  5962. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5963. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5964. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5965. msm_routing_put_audio_mixer),
  5966. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. };
  5999. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6000. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6018. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6019. msm_routing_put_audio_mixer),
  6020. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6023. msm_routing_put_audio_mixer),
  6024. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6025. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6026. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6027. msm_routing_put_audio_mixer),
  6028. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6029. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6030. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6031. msm_routing_put_audio_mixer),
  6032. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6033. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6034. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6035. msm_routing_put_audio_mixer),
  6036. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6037. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6038. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6039. msm_routing_put_audio_mixer),
  6040. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6041. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6042. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6043. msm_routing_put_audio_mixer),
  6044. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6045. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6046. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6047. msm_routing_put_audio_mixer),
  6048. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. };
  6069. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6070. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6115. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6116. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6117. msm_routing_put_audio_mixer),
  6118. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. };
  6139. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6140. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. };
  6209. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6210. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_USB_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_USB_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_USB_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_USB_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_USB_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_USB_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_USB_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_USB_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_USB_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_USB_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_USB_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_USB_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_USB_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_USB_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_USB_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_USB_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_USB_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. };
  6279. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6280. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. };
  6369. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6370. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. };
  6439. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6440. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_INT_FM_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_INT_FM_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_INT_FM_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_INT_FM_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_INT_FM_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_INT_FM_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_INT_FM_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_INT_FM_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_INT_FM_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_INT_FM_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_INT_FM_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_INT_FM_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_INT_FM_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_INT_FM_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_INT_FM_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_INT_FM_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_INT_FM_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_INT_FM_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_INT_FM_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_INT_FM_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_INT_FM_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_INT_FM_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. };
  6529. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6530. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_AFE_PCM_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_AFE_PCM_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_AFE_PCM_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_AFE_PCM_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_AFE_PCM_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_AFE_PCM_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_AFE_PCM_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_AFE_PCM_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_AFE_PCM_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_AFE_PCM_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_AFE_PCM_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_AFE_PCM_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_AFE_PCM_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_AFE_PCM_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_AFE_PCM_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_AFE_PCM_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_AFE_PCM_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_AFE_PCM_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_AFE_PCM_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_AFE_PCM_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_AFE_PCM_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_AFE_PCM_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. };
  6619. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  6620. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_AUXPCM_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_AUXPCM_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_AUXPCM_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_AUXPCM_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_AUXPCM_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_AUXPCM_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_AUXPCM_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_AUXPCM_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_AUXPCM_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_AUXPCM_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_AUXPCM_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_AUXPCM_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_AUXPCM_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_AUXPCM_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_AUXPCM_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_AUXPCM_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_AUXPCM_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_AUXPCM_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_AUXPCM_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_AUXPCM_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_AUXPCM_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_AUXPCM_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_AUXPCM_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. };
  6713. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  6714. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6747. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6748. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6749. msm_routing_put_audio_mixer),
  6750. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6751. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6752. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6753. msm_routing_put_audio_mixer),
  6754. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6755. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6756. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6757. msm_routing_put_audio_mixer),
  6758. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6759. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6760. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6761. msm_routing_put_audio_mixer),
  6762. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. };
  6807. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  6808. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6837. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6839. msm_routing_put_audio_mixer),
  6840. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6841. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6842. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6843. msm_routing_put_audio_mixer),
  6844. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6845. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6846. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6847. msm_routing_put_audio_mixer),
  6848. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6849. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6850. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6851. msm_routing_put_audio_mixer),
  6852. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. };
  6877. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  6878. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6907. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6909. msm_routing_put_audio_mixer),
  6910. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6911. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6913. msm_routing_put_audio_mixer),
  6914. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6915. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6916. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6917. msm_routing_put_audio_mixer),
  6918. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6919. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6920. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6921. msm_routing_put_audio_mixer),
  6922. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6923. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6924. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6925. msm_routing_put_audio_mixer),
  6926. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. };
  6947. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6948. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. };
  7017. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. };
  7087. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. };
  7157. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7158. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. };
  7227. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. };
  7297. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7298. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7299. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7303. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7307. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7311. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. };
  7363. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7364. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7373. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7375. msm_routing_put_audio_mixer),
  7376. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7377. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7381. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. };
  7433. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7434. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7435. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7439. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7443. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7447. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7449. msm_routing_put_audio_mixer),
  7450. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7451. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7452. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7453. msm_routing_put_audio_mixer),
  7454. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7455. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. };
  7503. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  7504. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7509. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7513. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7514. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7515. msm_routing_put_audio_mixer),
  7516. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7517. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7519. msm_routing_put_audio_mixer),
  7520. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7521. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7522. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7523. msm_routing_put_audio_mixer),
  7524. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. };
  7573. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  7574. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7575. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7576. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7577. msm_routing_put_audio_mixer),
  7578. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7579. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7581. msm_routing_put_audio_mixer),
  7582. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7583. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7584. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7585. msm_routing_put_audio_mixer),
  7586. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7587. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7588. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7589. msm_routing_put_audio_mixer),
  7590. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7591. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7592. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7593. msm_routing_put_audio_mixer),
  7594. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. };
  7643. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  7644. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7645. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7646. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7647. msm_routing_put_audio_mixer),
  7648. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7649. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7650. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7651. msm_routing_put_audio_mixer),
  7652. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7653. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7654. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7655. msm_routing_put_audio_mixer),
  7656. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7657. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7659. msm_routing_put_audio_mixer),
  7660. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7661. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7662. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7663. msm_routing_put_audio_mixer),
  7664. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. };
  7709. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  7710. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7711. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7712. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7713. msm_routing_put_audio_mixer),
  7714. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7715. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7716. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7717. msm_routing_put_audio_mixer),
  7718. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7719. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7720. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7721. msm_routing_put_audio_mixer),
  7722. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7723. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7724. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7725. msm_routing_put_audio_mixer),
  7726. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7727. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7729. msm_routing_put_audio_mixer),
  7730. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7731. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7733. msm_routing_put_audio_mixer),
  7734. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. };
  7779. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  7780. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7781. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7782. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7783. msm_routing_put_audio_mixer),
  7784. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7785. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7786. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7787. msm_routing_put_audio_mixer),
  7788. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7789. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7791. msm_routing_put_audio_mixer),
  7792. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7793. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7794. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7795. msm_routing_put_audio_mixer),
  7796. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7797. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7798. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7799. msm_routing_put_audio_mixer),
  7800. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. };
  7845. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  7846. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7847. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7849. msm_routing_put_audio_mixer),
  7850. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7851. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7853. msm_routing_put_audio_mixer),
  7854. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7855. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7856. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7857. msm_routing_put_audio_mixer),
  7858. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7859. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7861. msm_routing_put_audio_mixer),
  7862. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7863. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7865. msm_routing_put_audio_mixer),
  7866. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7867. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7869. msm_routing_put_audio_mixer),
  7870. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7871. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7872. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7873. msm_routing_put_audio_mixer),
  7874. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. };
  7915. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  7916. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7917. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7919. msm_routing_put_audio_mixer),
  7920. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7921. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7922. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7923. msm_routing_put_audio_mixer),
  7924. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7925. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7926. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7927. msm_routing_put_audio_mixer),
  7928. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7929. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7930. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7931. msm_routing_put_audio_mixer),
  7932. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7933. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7934. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7935. msm_routing_put_audio_mixer),
  7936. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. };
  7985. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  7986. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7987. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7989. msm_routing_put_audio_mixer),
  7990. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7991. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7992. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7993. msm_routing_put_audio_mixer),
  7994. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7995. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7996. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7997. msm_routing_put_audio_mixer),
  7998. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7999. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8000. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8001. msm_routing_put_audio_mixer),
  8002. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8003. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8004. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8005. msm_routing_put_audio_mixer),
  8006. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8007. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8008. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8009. msm_routing_put_audio_mixer),
  8010. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8011. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8012. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8013. msm_routing_put_audio_mixer),
  8014. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8015. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8016. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8017. msm_routing_put_audio_mixer),
  8018. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. };
  8055. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8056. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8061. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8062. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8063. msm_routing_put_audio_mixer),
  8064. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8065. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8066. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8067. msm_routing_put_audio_mixer),
  8068. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8069. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8070. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8071. msm_routing_put_audio_mixer),
  8072. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8073. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8074. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8075. msm_routing_put_audio_mixer),
  8076. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8077. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8078. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8079. msm_routing_put_audio_mixer),
  8080. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8081. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8082. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8083. msm_routing_put_audio_mixer),
  8084. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8085. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8086. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8087. msm_routing_put_audio_mixer),
  8088. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8089. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8090. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8091. msm_routing_put_audio_mixer),
  8092. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8093. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8094. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8095. msm_routing_put_audio_mixer),
  8096. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. };
  8125. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8126. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. };
  8199. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8200. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. };
  8265. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8295. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8297. msm_routing_put_audio_mixer),
  8298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8299. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8301. msm_routing_put_audio_mixer),
  8302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8303. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8305. msm_routing_put_audio_mixer),
  8306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. };
  8339. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8340. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8341. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8342. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8343. msm_routing_put_audio_mixer),
  8344. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8345. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8346. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8347. msm_routing_put_audio_mixer),
  8348. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8349. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8350. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8351. msm_routing_put_audio_mixer),
  8352. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8353. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8354. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8355. msm_routing_put_audio_mixer),
  8356. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8357. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8358. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8359. msm_routing_put_audio_mixer),
  8360. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8361. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8362. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8363. msm_routing_put_audio_mixer),
  8364. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8373. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8374. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8375. msm_routing_put_audio_mixer),
  8376. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8377. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8378. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8379. msm_routing_put_audio_mixer),
  8380. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8381. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8382. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8383. msm_routing_put_audio_mixer),
  8384. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. };
  8413. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8414. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8443. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8444. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8445. msm_routing_put_audio_mixer),
  8446. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. };
  8487. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  8488. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. };
  8561. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  8562. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8583. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8585. msm_routing_put_audio_mixer),
  8586. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8587. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8588. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8589. msm_routing_put_audio_mixer),
  8590. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8591. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8592. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8593. msm_routing_put_audio_mixer),
  8594. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8595. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8596. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8597. msm_routing_put_audio_mixer),
  8598. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8623. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8624. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8625. msm_routing_put_audio_mixer),
  8626. };
  8627. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  8628. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8697. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  8698. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8699. msm_routing_put_audio_mixer),
  8700. };
  8701. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  8702. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. };
  8775. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  8776. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. };
  8849. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  8850. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  8851. MSM_BACKEND_DAI_PRI_I2S_TX,
  8852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8853. msm_routing_put_audio_mixer),
  8854. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_MI2S_TX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_AUXPCM_TX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_INT_FM_TX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_AFE_PCM_TX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8951. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8953. msm_routing_put_audio_mixer),
  8954. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8955. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8957. msm_routing_put_audio_mixer),
  8958. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8959. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8961. msm_routing_put_audio_mixer),
  8962. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8963. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8965. msm_routing_put_audio_mixer),
  8966. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8967. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8969. msm_routing_put_audio_mixer),
  8970. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8971. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8972. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8973. msm_routing_put_audio_mixer),
  8974. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8975. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8977. msm_routing_put_audio_mixer),
  8978. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8979. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8981. msm_routing_put_audio_mixer),
  8982. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8983. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8985. msm_routing_put_audio_mixer),
  8986. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_USB_TX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. };
  9091. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  9092. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_INT_FM_TX,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_MI2S_TX,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_USB_TX,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. };
  9289. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  9290. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_INT_FM_TX,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_MI2S_TX,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_AFE_PCM_TX,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_AUXPCM_TX,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9395. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9396. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9397. msm_routing_put_audio_mixer),
  9398. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9403. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9404. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9405. msm_routing_put_audio_mixer),
  9406. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9407. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9409. msm_routing_put_audio_mixer),
  9410. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9411. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9412. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9413. msm_routing_put_audio_mixer),
  9414. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9415. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9416. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9417. msm_routing_put_audio_mixer),
  9418. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9419. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9421. msm_routing_put_audio_mixer),
  9422. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9423. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9425. msm_routing_put_audio_mixer),
  9426. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9427. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9429. msm_routing_put_audio_mixer),
  9430. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9431. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9433. msm_routing_put_audio_mixer),
  9434. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9435. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9437. msm_routing_put_audio_mixer),
  9438. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. };
  9483. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  9484. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9485. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9487. msm_routing_put_audio_mixer),
  9488. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9489. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9491. msm_routing_put_audio_mixer),
  9492. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9493. MSM_BACKEND_DAI_INT_FM_TX,
  9494. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9495. msm_routing_put_audio_mixer),
  9496. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9497. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9499. msm_routing_put_audio_mixer),
  9500. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_AFE_PCM_TX,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_USB_TX,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9653. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9655. msm_routing_put_audio_mixer),
  9656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9659. msm_routing_put_audio_mixer),
  9660. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9661. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9663. msm_routing_put_audio_mixer),
  9664. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9665. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9666. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9667. msm_routing_put_audio_mixer),
  9668. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9669. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9670. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9671. msm_routing_put_audio_mixer),
  9672. };
  9673. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  9674. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_INT_FM_TX,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_MI2S_TX,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_AFE_PCM_TX,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_AUXPCM_TX,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9785. msm_routing_put_audio_mixer),
  9786. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9789. msm_routing_put_audio_mixer),
  9790. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9791. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9793. msm_routing_put_audio_mixer),
  9794. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9795. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9797. msm_routing_put_audio_mixer),
  9798. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9807. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9809. msm_routing_put_audio_mixer),
  9810. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9811. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9813. msm_routing_put_audio_mixer),
  9814. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_USB_TX,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. };
  9891. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  9892. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9893. MSM_BACKEND_DAI_INT_FM_TX,
  9894. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9895. msm_routing_put_audio_mixer),
  9896. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9898. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9899. msm_routing_put_audio_mixer),
  9900. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9903. msm_routing_put_audio_mixer),
  9904. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9906. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9907. msm_routing_put_audio_mixer),
  9908. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9909. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9911. msm_routing_put_audio_mixer),
  9912. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9913. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9914. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9915. msm_routing_put_audio_mixer),
  9916. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9917. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9919. msm_routing_put_audio_mixer),
  9920. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_AUXPCM_TX,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9991. msm_routing_put_audio_mixer),
  9992. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9997. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9999. msm_routing_put_audio_mixer),
  10000. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10001. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10003. msm_routing_put_audio_mixer),
  10004. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10005. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10007. msm_routing_put_audio_mixer),
  10008. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10009. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10011. msm_routing_put_audio_mixer),
  10012. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10013. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10015. msm_routing_put_audio_mixer),
  10016. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10017. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10019. msm_routing_put_audio_mixer),
  10020. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10023. msm_routing_put_audio_mixer),
  10024. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_USB_TX,
  10026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10027. msm_routing_put_audio_mixer),
  10028. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10031. msm_routing_put_audio_mixer),
  10032. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10035. msm_routing_put_audio_mixer),
  10036. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10039. msm_routing_put_audio_mixer),
  10040. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10041. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10042. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10043. msm_routing_put_audio_mixer),
  10044. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10045. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10046. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10047. msm_routing_put_audio_mixer),
  10048. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10049. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10051. msm_routing_put_audio_mixer),
  10052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10054. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10055. msm_routing_put_audio_mixer),
  10056. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10057. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10058. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10059. msm_routing_put_audio_mixer),
  10060. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10061. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10062. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10063. msm_routing_put_audio_mixer),
  10064. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. };
  10085. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  10086. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10089. msm_routing_put_audio_mixer),
  10090. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10093. msm_routing_put_audio_mixer),
  10094. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10096. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10097. msm_routing_put_audio_mixer),
  10098. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10100. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10101. msm_routing_put_audio_mixer),
  10102. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10103. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10104. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10105. msm_routing_put_audio_mixer),
  10106. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10107. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10108. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10109. msm_routing_put_audio_mixer),
  10110. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10111. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10112. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10113. msm_routing_put_audio_mixer),
  10114. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10115. MSM_BACKEND_DAI_INT_FM_TX,
  10116. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10117. msm_routing_put_audio_mixer),
  10118. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10119. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10120. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10121. msm_routing_put_audio_mixer),
  10122. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10123. MSM_BACKEND_DAI_AFE_PCM_TX,
  10124. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10125. msm_routing_put_audio_mixer),
  10126. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10127. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10128. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10129. msm_routing_put_audio_mixer),
  10130. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10132. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10133. msm_routing_put_audio_mixer),
  10134. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10136. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10137. msm_routing_put_audio_mixer),
  10138. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10140. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10141. msm_routing_put_audio_mixer),
  10142. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_USB_TX,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10229. msm_routing_put_audio_mixer),
  10230. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10233. msm_routing_put_audio_mixer),
  10234. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10237. msm_routing_put_audio_mixer),
  10238. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10239. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10241. msm_routing_put_audio_mixer),
  10242. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10243. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10245. msm_routing_put_audio_mixer),
  10246. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10247. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10248. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10249. msm_routing_put_audio_mixer),
  10250. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10251. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10252. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10253. msm_routing_put_audio_mixer),
  10254. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10255. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10257. msm_routing_put_audio_mixer),
  10258. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10259. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10260. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10261. msm_routing_put_audio_mixer),
  10262. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10263. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10264. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10265. msm_routing_put_audio_mixer),
  10266. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10267. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10268. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10269. msm_routing_put_audio_mixer),
  10270. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10271. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10272. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10273. msm_routing_put_audio_mixer),
  10274. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10275. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10276. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10277. msm_routing_put_audio_mixer),
  10278. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10279. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10280. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10281. msm_routing_put_audio_mixer),
  10282. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10283. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10284. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10285. msm_routing_put_audio_mixer),
  10286. };
  10287. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  10288. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_INT_FM_TX,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_AFE_PCM_TX,
  10326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10327. msm_routing_put_audio_mixer),
  10328. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10331. msm_routing_put_audio_mixer),
  10332. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10334. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10335. msm_routing_put_audio_mixer),
  10336. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10339. msm_routing_put_audio_mixer),
  10340. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10342. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10343. msm_routing_put_audio_mixer),
  10344. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10346. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10347. msm_routing_put_audio_mixer),
  10348. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10349. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10351. msm_routing_put_audio_mixer),
  10352. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10353. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10355. msm_routing_put_audio_mixer),
  10356. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10357. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10359. msm_routing_put_audio_mixer),
  10360. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10362. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10363. msm_routing_put_audio_mixer),
  10364. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10366. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10367. msm_routing_put_audio_mixer),
  10368. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10371. msm_routing_put_audio_mixer),
  10372. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10374. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10375. msm_routing_put_audio_mixer),
  10376. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10377. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10378. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10379. msm_routing_put_audio_mixer),
  10380. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10381. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10383. msm_routing_put_audio_mixer),
  10384. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10385. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10387. msm_routing_put_audio_mixer),
  10388. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10389. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10391. msm_routing_put_audio_mixer),
  10392. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10393. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10394. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10395. msm_routing_put_audio_mixer),
  10396. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10397. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10399. msm_routing_put_audio_mixer),
  10400. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_USB_TX,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_MI2S_TX,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_AUXPCM_TX,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10419. msm_routing_put_audio_mixer),
  10420. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10447. msm_routing_put_audio_mixer),
  10448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10451. msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10456. msm_routing_get_audio_mixer,
  10457. msm_routing_put_audio_mixer),
  10458. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10459. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10461. msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10466. msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10471. msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  10476. msm_routing_get_audio_mixer,
  10477. msm_routing_put_audio_mixer),
  10478. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10479. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10480. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10481. msm_routing_put_audio_mixer),
  10482. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10483. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10485. msm_routing_put_audio_mixer),
  10486. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10488. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10489. msm_routing_put_audio_mixer),
  10490. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10492. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10493. msm_routing_put_audio_mixer),
  10494. };
  10495. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  10496. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_INT_FM_TX,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_AFE_PCM_TX,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10518. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10519. msm_routing_put_audio_mixer),
  10520. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10523. msm_routing_put_audio_mixer),
  10524. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10551. msm_routing_put_audio_mixer),
  10552. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10553. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10554. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10555. msm_routing_put_audio_mixer),
  10556. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10557. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10571. msm_routing_put_audio_mixer),
  10572. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10573. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10575. msm_routing_put_audio_mixer),
  10576. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. };
  10633. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  10634. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10637. msm_routing_put_audio_mixer),
  10638. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10641. msm_routing_put_audio_mixer),
  10642. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_INT_FM_TX,
  10644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10645. msm_routing_put_audio_mixer),
  10646. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10648. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10649. msm_routing_put_audio_mixer),
  10650. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_AFE_PCM_TX,
  10652. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10653. msm_routing_put_audio_mixer),
  10654. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10661. msm_routing_put_audio_mixer),
  10662. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10669. msm_routing_put_audio_mixer),
  10670. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_USB_TX,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_MI2S_TX,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_AUXPCM_TX,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10751. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10752. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10753. msm_routing_put_audio_mixer),
  10754. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10761. msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10766. msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10771. msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10776. msm_routing_get_audio_mixer,
  10777. msm_routing_put_audio_mixer),
  10778. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10780. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10781. msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  10786. msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. };
  10805. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  10806. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10808. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10809. msm_routing_put_audio_mixer),
  10810. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10812. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10813. msm_routing_put_audio_mixer),
  10814. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10816. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10817. msm_routing_put_audio_mixer),
  10818. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_INT_FM_TX,
  10820. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10821. msm_routing_put_audio_mixer),
  10822. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10823. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10824. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10825. msm_routing_put_audio_mixer),
  10826. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10827. MSM_BACKEND_DAI_AFE_PCM_TX,
  10828. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10829. msm_routing_put_audio_mixer),
  10830. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10831. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10832. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10833. msm_routing_put_audio_mixer),
  10834. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10836. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10837. msm_routing_put_audio_mixer),
  10838. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10848. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10849. msm_routing_put_audio_mixer),
  10850. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10851. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10852. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10853. msm_routing_put_audio_mixer),
  10854. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10869. msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10874. msm_routing_get_audio_mixer,
  10875. msm_routing_put_audio_mixer),
  10876. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10877. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10878. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10879. msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10884. msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10889. msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  10894. msm_routing_get_audio_mixer,
  10895. msm_routing_put_audio_mixer),
  10896. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10897. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10898. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10899. msm_routing_put_audio_mixer),
  10900. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10901. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10902. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10903. msm_routing_put_audio_mixer),
  10904. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10905. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10906. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  10907. msm_routing_put_audio_mixer),
  10908. };
  10909. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  10910. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10929. msm_routing_put_audio_mixer),
  10930. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10931. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10932. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10933. msm_routing_put_audio_mixer),
  10934. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10935. MSM_BACKEND_DAI_INT_FM_TX,
  10936. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10937. msm_routing_put_audio_mixer),
  10938. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10939. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10940. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10941. msm_routing_put_audio_mixer),
  10942. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10943. MSM_BACKEND_DAI_AFE_PCM_TX,
  10944. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10945. msm_routing_put_audio_mixer),
  10946. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10947. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10948. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10949. msm_routing_put_audio_mixer),
  10950. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10951. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10952. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10953. msm_routing_put_audio_mixer),
  10954. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10955. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10956. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10957. msm_routing_put_audio_mixer),
  10958. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10959. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10960. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10961. msm_routing_put_audio_mixer),
  10962. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10963. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10964. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10965. msm_routing_put_audio_mixer),
  10966. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10967. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10968. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10969. msm_routing_put_audio_mixer),
  10970. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10971. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10972. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  10973. msm_routing_put_audio_mixer),
  10974. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10975. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10976. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10977. msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10982. msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10987. msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10992. msm_routing_get_audio_mixer,
  10993. msm_routing_put_audio_mixer),
  10994. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10995. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10996. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  10997. msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  11002. msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  11015. msm_routing_put_audio_mixer),
  11016. };
  11017. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  11018. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11021. msm_routing_put_audio_mixer),
  11022. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11029. msm_routing_put_audio_mixer),
  11030. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11031. MSM_BACKEND_DAI_INT_FM_TX,
  11032. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11033. msm_routing_put_audio_mixer),
  11034. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11035. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11036. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_AFE_PCM_TX,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11053. msm_routing_put_audio_mixer),
  11054. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11055. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11056. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11057. msm_routing_put_audio_mixer),
  11058. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11081. msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11086. msm_routing_get_audio_mixer,
  11087. msm_routing_put_audio_mixer),
  11088. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11090. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11091. msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11096. msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11101. msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  11106. msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. };
  11121. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  11122. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11123. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11124. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11125. msm_routing_put_audio_mixer),
  11126. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11127. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11128. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11129. msm_routing_put_audio_mixer),
  11130. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11131. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11132. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11133. msm_routing_put_audio_mixer),
  11134. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11135. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11136. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11137. msm_routing_put_audio_mixer),
  11138. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11139. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11140. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11141. msm_routing_put_audio_mixer),
  11142. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11144. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11145. msm_routing_put_audio_mixer),
  11146. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11147. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11148. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11149. msm_routing_put_audio_mixer),
  11150. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11151. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11152. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11153. msm_routing_put_audio_mixer),
  11154. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11155. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11156. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11157. msm_routing_put_audio_mixer),
  11158. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11240. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11241. msm_routing_put_audio_mixer),
  11242. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11244. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11245. msm_routing_put_audio_mixer),
  11246. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11248. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11249. msm_routing_put_audio_mixer),
  11250. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11252. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11253. msm_routing_put_audio_mixer),
  11254. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11256. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11257. msm_routing_put_audio_mixer),
  11258. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11259. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11260. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11261. msm_routing_put_audio_mixer),
  11262. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11263. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11264. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11265. msm_routing_put_audio_mixer),
  11266. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11267. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11268. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11269. msm_routing_put_audio_mixer),
  11270. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11271. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11272. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11273. msm_routing_put_audio_mixer),
  11274. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11275. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11276. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11277. msm_routing_put_audio_mixer),
  11278. };
  11279. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  11280. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_AUXPCM_TX,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11314. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11315. msm_routing_put_audio_mixer),
  11316. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11318. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11319. msm_routing_put_audio_mixer),
  11320. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11322. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11323. msm_routing_put_audio_mixer),
  11324. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11325. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11326. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11327. msm_routing_put_audio_mixer),
  11328. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11329. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11330. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11331. msm_routing_put_audio_mixer),
  11332. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11334. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11335. msm_routing_put_audio_mixer),
  11336. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11338. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11339. msm_routing_put_audio_mixer),
  11340. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11342. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11343. msm_routing_put_audio_mixer),
  11344. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11346. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11347. msm_routing_put_audio_mixer),
  11348. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11350. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11351. msm_routing_put_audio_mixer),
  11352. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11354. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11355. msm_routing_put_audio_mixer),
  11356. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11358. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11359. msm_routing_put_audio_mixer),
  11360. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11362. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11363. msm_routing_put_audio_mixer),
  11364. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11366. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11367. msm_routing_put_audio_mixer),
  11368. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11369. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11370. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11371. msm_routing_put_audio_mixer),
  11372. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11373. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11374. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11375. msm_routing_put_audio_mixer),
  11376. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11377. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11378. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11379. msm_routing_put_audio_mixer),
  11380. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11381. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11382. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11383. msm_routing_put_audio_mixer),
  11384. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11385. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11386. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11387. msm_routing_put_audio_mixer),
  11388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11390. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11391. msm_routing_put_audio_mixer),
  11392. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11394. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11395. msm_routing_put_audio_mixer),
  11396. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11398. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11399. msm_routing_put_audio_mixer),
  11400. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11402. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11403. msm_routing_put_audio_mixer),
  11404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11406. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11407. msm_routing_put_audio_mixer),
  11408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. };
  11425. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  11426. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11428. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11429. msm_routing_put_audio_mixer),
  11430. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11432. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11433. msm_routing_put_audio_mixer),
  11434. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11435. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11436. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11437. msm_routing_put_audio_mixer),
  11438. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11439. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11440. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11441. msm_routing_put_audio_mixer),
  11442. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11443. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11444. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11445. msm_routing_put_audio_mixer),
  11446. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11447. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11448. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11449. msm_routing_put_audio_mixer),
  11450. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11451. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11452. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11453. msm_routing_put_audio_mixer),
  11454. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11455. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11456. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11457. msm_routing_put_audio_mixer),
  11458. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11459. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11460. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11461. msm_routing_put_audio_mixer),
  11462. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11463. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11464. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11465. msm_routing_put_audio_mixer),
  11466. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11467. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11468. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11469. msm_routing_put_audio_mixer),
  11470. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11472. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  11473. msm_routing_put_audio_mixer),
  11474. };
  11475. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  11476. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11477. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11478. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11479. msm_routing_put_audio_mixer),
  11480. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11482. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11483. msm_routing_put_audio_mixer),
  11484. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11486. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_INT_FM_TX,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11491. msm_routing_put_audio_mixer),
  11492. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11494. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11495. msm_routing_put_audio_mixer),
  11496. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11497. MSM_BACKEND_DAI_AFE_PCM_TX,
  11498. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11499. msm_routing_put_audio_mixer),
  11500. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11502. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11503. msm_routing_put_audio_mixer),
  11504. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11506. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11507. msm_routing_put_audio_mixer),
  11508. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11513. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11514. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11515. msm_routing_put_audio_mixer),
  11516. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11517. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11518. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11519. msm_routing_put_audio_mixer),
  11520. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11522. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11523. msm_routing_put_audio_mixer),
  11524. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11526. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11527. msm_routing_put_audio_mixer),
  11528. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11530. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11531. msm_routing_put_audio_mixer),
  11532. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11534. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11535. msm_routing_put_audio_mixer),
  11536. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11538. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11539. msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11544. msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11549. msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11554. msm_routing_get_audio_mixer,
  11555. msm_routing_put_audio_mixer),
  11556. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11558. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11559. msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  11564. msm_routing_get_audio_mixer,
  11565. msm_routing_put_audio_mixer),
  11566. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11567. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11568. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11569. msm_routing_put_audio_mixer),
  11570. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11572. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11573. msm_routing_put_audio_mixer),
  11574. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11576. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  11577. msm_routing_put_audio_mixer),
  11578. };
  11579. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  11580. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11582. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11583. msm_routing_put_audio_mixer),
  11584. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11586. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11591. msm_routing_put_audio_mixer),
  11592. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_INT_FM_TX,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11595. msm_routing_put_audio_mixer),
  11596. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11598. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11599. msm_routing_put_audio_mixer),
  11600. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_AFE_PCM_TX,
  11602. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11603. msm_routing_put_audio_mixer),
  11604. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11618. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11619. msm_routing_put_audio_mixer),
  11620. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11622. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11623. msm_routing_put_audio_mixer),
  11624. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11626. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11627. msm_routing_put_audio_mixer),
  11628. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11630. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11631. msm_routing_put_audio_mixer),
  11632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11634. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11635. msm_routing_put_audio_mixer),
  11636. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11638. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11639. msm_routing_put_audio_mixer),
  11640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11642. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11643. msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11648. msm_routing_get_audio_mixer,
  11649. msm_routing_put_audio_mixer),
  11650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11652. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11653. msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11658. msm_routing_get_audio_mixer,
  11659. msm_routing_put_audio_mixer),
  11660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11662. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11663. msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  11668. msm_routing_get_audio_mixer,
  11669. msm_routing_put_audio_mixer),
  11670. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11672. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11673. msm_routing_put_audio_mixer),
  11674. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11676. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11677. msm_routing_put_audio_mixer),
  11678. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11680. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  11681. msm_routing_put_audio_mixer),
  11682. };
  11683. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  11684. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_PRI_I2S_RX,
  11686. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11687. msm_routing_put_voice_mixer),
  11688. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_PRI_I2S_RX,
  11690. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11691. msm_routing_put_voice_mixer),
  11692. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_PRI_I2S_RX,
  11694. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11695. msm_routing_put_voice_mixer),
  11696. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_PRI_I2S_RX,
  11698. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11699. msm_routing_put_voice_mixer),
  11700. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_PRI_I2S_RX,
  11702. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11703. msm_routing_put_voice_mixer),
  11704. };
  11705. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  11706. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_SEC_I2S_RX,
  11708. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11709. msm_routing_put_voice_mixer),
  11710. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_SEC_I2S_RX,
  11712. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11713. msm_routing_put_voice_mixer),
  11714. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_SEC_I2S_RX,
  11716. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11717. msm_routing_put_voice_mixer),
  11718. };
  11719. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  11720. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11721. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11722. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11723. msm_routing_put_voice_mixer),
  11724. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11726. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11727. msm_routing_put_voice_mixer),
  11728. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11730. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11731. msm_routing_put_voice_mixer),
  11732. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11734. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11735. msm_routing_put_voice_mixer),
  11736. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  11738. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11739. msm_routing_put_voice_mixer),
  11740. };
  11741. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  11742. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11743. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11744. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11745. msm_routing_put_voice_mixer),
  11746. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11747. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11748. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11749. msm_routing_put_voice_mixer),
  11750. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11752. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11753. msm_routing_put_voice_mixer),
  11754. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11756. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11757. msm_routing_put_voice_mixer),
  11758. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11760. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11761. msm_routing_put_voice_mixer),
  11762. };
  11763. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  11764. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11766. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11767. msm_routing_put_voice_mixer),
  11768. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11770. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11771. msm_routing_put_voice_mixer),
  11772. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11773. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11774. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11775. msm_routing_put_voice_mixer),
  11776. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11778. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11779. msm_routing_put_voice_mixer),
  11780. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11782. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11783. msm_routing_put_voice_mixer),
  11784. };
  11785. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  11786. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_USB_RX,
  11788. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11789. msm_routing_put_voice_mixer),
  11790. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_USB_RX,
  11792. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11793. msm_routing_put_voice_mixer),
  11794. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_USB_RX,
  11796. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11797. msm_routing_put_voice_mixer),
  11798. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_USB_RX,
  11800. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11801. msm_routing_put_voice_mixer),
  11802. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_USB_RX,
  11804. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11805. msm_routing_put_voice_mixer),
  11806. };
  11807. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  11808. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11809. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11810. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11811. msm_routing_put_voice_mixer),
  11812. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11813. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11814. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11815. msm_routing_put_voice_mixer),
  11816. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11818. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11819. msm_routing_put_voice_mixer),
  11820. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11822. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11823. msm_routing_put_voice_mixer),
  11824. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11826. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11827. msm_routing_put_voice_mixer),
  11828. };
  11829. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  11830. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11833. msm_routing_put_voice_mixer),
  11834. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11836. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11837. msm_routing_put_voice_mixer),
  11838. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11840. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11841. msm_routing_put_voice_mixer),
  11842. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11844. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11845. msm_routing_put_voice_mixer),
  11846. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11848. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11849. msm_routing_put_voice_mixer),
  11850. };
  11851. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  11852. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11854. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11855. msm_routing_put_voice_mixer),
  11856. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11858. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11859. msm_routing_put_voice_mixer),
  11860. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11862. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11863. msm_routing_put_voice_mixer),
  11864. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11866. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11867. msm_routing_put_voice_mixer),
  11868. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11870. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11871. msm_routing_put_voice_mixer),
  11872. };
  11873. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  11874. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11875. MSM_BACKEND_DAI_MI2S_RX,
  11876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11877. msm_routing_put_voice_mixer),
  11878. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11879. MSM_BACKEND_DAI_MI2S_RX,
  11880. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11881. msm_routing_put_voice_mixer),
  11882. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_MI2S_RX,
  11884. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11885. msm_routing_put_voice_mixer),
  11886. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_MI2S_RX,
  11888. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11889. msm_routing_put_voice_mixer),
  11890. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_MI2S_RX,
  11892. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11893. msm_routing_put_voice_mixer),
  11894. };
  11895. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  11896. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11898. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11899. msm_routing_put_voice_mixer),
  11900. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11902. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11903. msm_routing_put_voice_mixer),
  11904. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11906. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11907. msm_routing_put_voice_mixer),
  11908. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11910. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11911. msm_routing_put_voice_mixer),
  11912. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11914. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11915. msm_routing_put_voice_mixer),
  11916. };
  11917. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  11918. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11919. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11920. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11921. msm_routing_put_voice_mixer),
  11922. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11924. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11925. msm_routing_put_voice_mixer),
  11926. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11928. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11929. msm_routing_put_voice_mixer),
  11930. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11932. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11933. msm_routing_put_voice_mixer),
  11934. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_INT0_MI2S_RX,
  11936. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11937. msm_routing_put_voice_mixer),
  11938. };
  11939. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  11940. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11941. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11942. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11943. msm_routing_put_voice_mixer),
  11944. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11946. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11947. msm_routing_put_voice_mixer),
  11948. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11950. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11951. msm_routing_put_voice_mixer),
  11952. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11954. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11955. msm_routing_put_voice_mixer),
  11956. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11958. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11959. msm_routing_put_voice_mixer),
  11960. };
  11961. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  11962. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11963. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11964. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11965. msm_routing_put_voice_mixer),
  11966. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11967. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11968. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11969. msm_routing_put_voice_mixer),
  11970. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11972. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11973. msm_routing_put_voice_mixer),
  11974. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11976. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11977. msm_routing_put_voice_mixer),
  11978. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  11980. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  11981. msm_routing_put_voice_mixer),
  11982. };
  11983. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  11984. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  11985. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11986. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  11987. msm_routing_put_voice_mixer),
  11988. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11990. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  11991. msm_routing_put_voice_mixer),
  11992. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  11993. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11994. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  11995. msm_routing_put_voice_mixer),
  11996. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  11997. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11998. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  11999. msm_routing_put_voice_mixer),
  12000. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12001. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  12002. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12003. msm_routing_put_voice_mixer),
  12004. };
  12005. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  12006. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12008. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12009. msm_routing_put_voice_mixer),
  12010. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12012. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12013. msm_routing_put_voice_mixer),
  12014. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12016. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12017. msm_routing_put_voice_mixer),
  12018. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12020. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12021. msm_routing_put_voice_mixer),
  12022. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  12024. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12025. msm_routing_put_voice_mixer),
  12026. };
  12027. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  12028. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12029. MSM_BACKEND_DAI_AFE_PCM_RX,
  12030. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12031. msm_routing_put_voice_mixer),
  12032. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12033. MSM_BACKEND_DAI_AFE_PCM_RX,
  12034. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12035. msm_routing_put_voice_mixer),
  12036. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12037. MSM_BACKEND_DAI_AFE_PCM_RX,
  12038. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12039. msm_routing_put_voice_mixer),
  12040. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_AFE_PCM_RX,
  12042. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12043. msm_routing_put_voice_mixer),
  12044. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_AFE_PCM_RX,
  12046. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12047. msm_routing_put_voice_mixer),
  12048. };
  12049. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  12050. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_AUXPCM_RX,
  12052. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12053. msm_routing_put_voice_mixer),
  12054. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_AUXPCM_RX,
  12056. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12057. msm_routing_put_voice_mixer),
  12058. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_AUXPCM_RX,
  12060. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12061. msm_routing_put_voice_mixer),
  12062. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_AUXPCM_RX,
  12064. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12065. msm_routing_put_voice_mixer),
  12066. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_AUXPCM_RX,
  12068. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12069. msm_routing_put_voice_mixer),
  12070. };
  12071. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  12072. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12074. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12075. msm_routing_put_voice_mixer),
  12076. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12078. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12079. msm_routing_put_voice_mixer),
  12080. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12082. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12083. msm_routing_put_voice_mixer),
  12084. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12086. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12087. msm_routing_put_voice_mixer),
  12088. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  12090. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12091. msm_routing_put_voice_mixer),
  12092. };
  12093. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  12094. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12096. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12097. msm_routing_put_voice_mixer),
  12098. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12099. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12100. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12101. msm_routing_put_voice_mixer),
  12102. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12104. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12105. msm_routing_put_voice_mixer),
  12106. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12108. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12109. msm_routing_put_voice_mixer),
  12110. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  12112. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12113. msm_routing_put_voice_mixer),
  12114. };
  12115. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  12116. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12117. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12118. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12119. msm_routing_put_voice_mixer),
  12120. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12122. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12123. msm_routing_put_voice_mixer),
  12124. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12125. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12126. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12127. msm_routing_put_voice_mixer),
  12128. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12130. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12131. msm_routing_put_voice_mixer),
  12132. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  12134. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12135. msm_routing_put_voice_mixer),
  12136. };
  12137. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  12138. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12140. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12141. msm_routing_put_voice_mixer),
  12142. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12144. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12145. msm_routing_put_voice_mixer),
  12146. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12148. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12149. msm_routing_put_voice_mixer),
  12150. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12152. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12153. msm_routing_put_voice_mixer),
  12154. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  12156. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12157. msm_routing_put_voice_mixer),
  12158. };
  12159. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  12160. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12161. MSM_BACKEND_DAI_HDMI_RX,
  12162. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12163. msm_routing_put_voice_mixer),
  12164. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12165. MSM_BACKEND_DAI_HDMI_RX,
  12166. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12167. msm_routing_put_voice_mixer),
  12168. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_HDMI_RX,
  12170. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12171. msm_routing_put_voice_mixer),
  12172. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_HDMI_RX,
  12174. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12175. msm_routing_put_voice_mixer),
  12176. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12177. MSM_BACKEND_DAI_HDMI_RX,
  12178. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12179. msm_routing_put_voice_mixer),
  12180. };
  12181. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  12182. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12184. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12185. msm_routing_put_voice_mixer),
  12186. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12188. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12189. msm_routing_put_voice_mixer),
  12190. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12192. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12193. msm_routing_put_voice_mixer),
  12194. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12196. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12197. msm_routing_put_voice_mixer),
  12198. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  12200. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12201. msm_routing_put_voice_mixer),
  12202. };
  12203. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  12204. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12206. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12207. msm_routing_put_voice_mixer),
  12208. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12210. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12211. msm_routing_put_voice_mixer),
  12212. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12214. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12215. msm_routing_put_voice_mixer),
  12216. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12218. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12219. msm_routing_put_voice_mixer),
  12220. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  12222. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12223. msm_routing_put_voice_mixer),
  12224. };
  12225. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  12226. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12228. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12229. msm_routing_put_voice_mixer),
  12230. };
  12231. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  12232. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12234. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12235. msm_routing_put_voice_mixer),
  12236. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12238. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12239. msm_routing_put_voice_mixer),
  12240. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12242. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12243. msm_routing_put_voice_mixer),
  12244. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12246. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12247. msm_routing_put_voice_mixer),
  12248. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  12250. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12251. msm_routing_put_voice_mixer),
  12252. };
  12253. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  12254. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12256. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12257. msm_routing_put_voice_mixer),
  12258. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12260. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12261. msm_routing_put_voice_mixer),
  12262. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12263. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12264. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12265. msm_routing_put_voice_mixer),
  12266. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12267. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12268. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12269. msm_routing_put_voice_mixer),
  12270. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  12272. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12273. msm_routing_put_voice_mixer),
  12274. };
  12275. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  12276. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12278. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12279. msm_routing_put_voice_mixer),
  12280. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12282. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12283. msm_routing_put_voice_mixer),
  12284. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12287. msm_routing_put_voice_mixer),
  12288. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12290. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12291. msm_routing_put_voice_mixer),
  12292. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  12294. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12295. msm_routing_put_voice_mixer),
  12296. };
  12297. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  12298. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12299. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12300. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12301. msm_routing_put_voice_mixer),
  12302. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12303. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12304. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12305. msm_routing_put_voice_mixer),
  12306. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12308. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12309. msm_routing_put_voice_mixer),
  12310. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12312. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12313. msm_routing_put_voice_mixer),
  12314. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  12316. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12317. msm_routing_put_voice_mixer),
  12318. };
  12319. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  12320. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12322. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12323. msm_routing_put_voice_mixer),
  12324. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12326. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12327. msm_routing_put_voice_mixer),
  12328. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12330. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12331. msm_routing_put_voice_mixer),
  12332. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12334. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12335. msm_routing_put_voice_mixer),
  12336. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  12338. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12339. msm_routing_put_voice_mixer),
  12340. };
  12341. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  12342. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12343. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12344. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12345. msm_routing_put_voice_mixer),
  12346. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12347. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12348. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12349. msm_routing_put_voice_mixer),
  12350. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12352. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12353. msm_routing_put_voice_mixer),
  12354. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12356. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12357. msm_routing_put_voice_mixer),
  12358. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  12360. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12361. msm_routing_put_voice_mixer),
  12362. };
  12363. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  12364. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12366. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12367. msm_routing_put_voice_mixer),
  12368. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12370. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12371. msm_routing_put_voice_mixer),
  12372. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12374. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12375. msm_routing_put_voice_mixer),
  12376. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12378. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12379. msm_routing_put_voice_mixer),
  12380. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  12382. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12383. msm_routing_put_voice_mixer),
  12384. };
  12385. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  12386. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12388. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12389. msm_routing_put_voice_mixer),
  12390. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12391. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12392. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12393. msm_routing_put_voice_mixer),
  12394. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12396. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12397. msm_routing_put_voice_mixer),
  12398. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12400. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12401. msm_routing_put_voice_mixer),
  12402. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  12404. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12405. msm_routing_put_voice_mixer),
  12406. };
  12407. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  12408. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12410. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12411. msm_routing_put_voice_mixer),
  12412. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12414. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12415. msm_routing_put_voice_mixer),
  12416. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12418. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12419. msm_routing_put_voice_mixer),
  12420. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12422. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12423. msm_routing_put_voice_mixer),
  12424. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  12426. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12427. msm_routing_put_voice_mixer),
  12428. };
  12429. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  12430. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12432. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12433. msm_routing_put_voice_mixer),
  12434. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12436. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12437. msm_routing_put_voice_mixer),
  12438. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12440. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12441. msm_routing_put_voice_mixer),
  12442. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12444. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12445. msm_routing_put_voice_mixer),
  12446. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  12448. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12449. msm_routing_put_voice_mixer),
  12450. };
  12451. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  12452. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_EXTPROC_RX,
  12454. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12455. msm_routing_put_voice_mixer),
  12456. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_EXTPROC_RX,
  12458. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12459. msm_routing_put_voice_mixer),
  12460. };
  12461. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  12462. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12463. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12464. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12465. msm_routing_put_voice_mixer),
  12466. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  12468. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12469. msm_routing_put_voice_mixer),
  12470. };
  12471. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  12472. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12474. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12475. msm_routing_put_voice_mixer),
  12476. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12477. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  12478. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12479. msm_routing_put_voice_mixer),
  12480. };
  12481. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  12482. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  12483. MSM_BACKEND_DAI_PRI_I2S_TX,
  12484. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12485. msm_routing_put_voice_mixer),
  12486. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_MI2S_TX,
  12488. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12489. msm_routing_put_voice_mixer),
  12490. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12492. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12493. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12495. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12496. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  12497. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12498. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12499. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12501. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12502. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12503. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12504. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12505. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12507. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12508. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12510. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12511. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12513. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12514. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  12516. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12517. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12519. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12520. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  12521. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  12522. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12523. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12525. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12526. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  12528. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12529. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_USB_TX,
  12531. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12532. msm_routing_put_voice_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12535. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12536. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12538. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12541. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12542. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  12544. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  12547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12548. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  12550. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  12553. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  12556. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  12559. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12560. };
  12561. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  12562. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_PRI_I2S_TX,
  12564. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12565. msm_routing_put_voice_mixer),
  12566. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_MI2S_TX,
  12568. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12569. msm_routing_put_voice_mixer),
  12570. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12572. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12573. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12575. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12576. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12578. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12579. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12581. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12582. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12584. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12585. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12587. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12588. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12589. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12590. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12591. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12593. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12594. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  12596. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12597. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12599. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12600. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  12602. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12603. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12605. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12606. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12608. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12609. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  12611. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12612. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12613. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12614. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12615. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12617. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  12620. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  12623. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  12625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  12626. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12627. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  12629. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12630. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  12632. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12633. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  12635. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12636. };
  12637. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  12638. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_PRI_I2S_TX,
  12640. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12641. msm_routing_put_voice_mixer),
  12642. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_MI2S_TX,
  12644. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12645. msm_routing_put_voice_mixer),
  12646. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12648. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12649. msm_routing_put_voice_mixer),
  12650. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12652. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12653. msm_routing_put_voice_mixer),
  12654. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_AFE_PCM_TX,
  12656. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12657. msm_routing_put_voice_mixer),
  12658. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_AUXPCM_TX,
  12660. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12661. msm_routing_put_voice_mixer),
  12662. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12664. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12665. msm_routing_put_voice_mixer),
  12666. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12668. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12669. msm_routing_put_voice_mixer),
  12670. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12672. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12673. msm_routing_put_voice_mixer),
  12674. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12676. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12677. msm_routing_put_voice_mixer),
  12678. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12680. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12681. msm_routing_put_voice_mixer),
  12682. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12684. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12685. msm_routing_put_voice_mixer),
  12686. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12688. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12689. msm_routing_put_voice_mixer),
  12690. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  12691. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12692. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12693. msm_routing_put_voice_mixer),
  12694. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  12695. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12696. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12697. msm_routing_put_voice_mixer),
  12698. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_USB_TX,
  12700. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12701. msm_routing_put_voice_mixer),
  12702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12704. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12705. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12707. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12708. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  12710. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  12713. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12714. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  12715. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  12716. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  12719. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12720. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  12722. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  12725. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  12726. };
  12727. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  12728. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_EXTPROC_TX,
  12730. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12731. msm_routing_put_voice_stub_mixer),
  12732. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12734. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12735. msm_routing_put_voice_stub_mixer),
  12736. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12738. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12739. msm_routing_put_voice_stub_mixer),
  12740. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12742. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12743. msm_routing_put_voice_stub_mixer),
  12744. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_MI2S_TX,
  12746. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12747. msm_routing_put_voice_stub_mixer),
  12748. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12750. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12751. msm_routing_put_voice_stub_mixer),
  12752. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12754. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12755. msm_routing_put_voice_stub_mixer),
  12756. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12758. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12759. msm_routing_put_voice_stub_mixer),
  12760. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12762. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12763. msm_routing_put_voice_stub_mixer),
  12764. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_AUXPCM_TX,
  12766. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12767. msm_routing_put_voice_stub_mixer),
  12768. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12770. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12771. msm_routing_put_voice_stub_mixer),
  12772. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12774. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12775. msm_routing_put_voice_stub_mixer),
  12776. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12778. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12779. msm_routing_put_voice_stub_mixer),
  12780. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12782. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12783. msm_routing_put_voice_stub_mixer),
  12784. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12786. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12787. msm_routing_put_voice_stub_mixer),
  12788. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12790. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12791. msm_routing_put_voice_stub_mixer),
  12792. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_AFE_PCM_TX,
  12794. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12795. msm_routing_put_voice_stub_mixer),
  12796. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12798. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12799. msm_routing_put_voice_stub_mixer),
  12800. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12802. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12803. msm_routing_put_voice_stub_mixer),
  12804. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12806. 1, 0, msm_routing_get_voice_stub_mixer,
  12807. msm_routing_put_voice_stub_mixer),
  12808. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12810. 1, 0, msm_routing_get_voice_stub_mixer,
  12811. msm_routing_put_voice_stub_mixer),
  12812. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  12814. 1, 0, msm_routing_get_voice_stub_mixer,
  12815. msm_routing_put_voice_stub_mixer),
  12816. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  12818. 1, 0, msm_routing_get_voice_stub_mixer,
  12819. msm_routing_put_voice_stub_mixer),
  12820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  12822. 1, 0, msm_routing_get_voice_stub_mixer,
  12823. msm_routing_put_voice_stub_mixer),
  12824. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  12826. 1, 0, msm_routing_get_voice_stub_mixer,
  12827. msm_routing_put_voice_stub_mixer),
  12828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  12830. 1, 0, msm_routing_get_voice_stub_mixer,
  12831. msm_routing_put_voice_stub_mixer),
  12832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  12834. 1, 0, msm_routing_get_voice_stub_mixer,
  12835. msm_routing_put_voice_stub_mixer),
  12836. };
  12837. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  12838. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12839. MSM_BACKEND_DAI_EXTPROC_TX,
  12840. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12841. msm_routing_put_voice_stub_mixer),
  12842. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12843. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12844. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12845. msm_routing_put_voice_stub_mixer),
  12846. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12847. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12848. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12849. msm_routing_put_voice_stub_mixer),
  12850. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_AUXPCM_TX,
  12852. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12853. msm_routing_put_voice_stub_mixer),
  12854. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12855. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12856. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12857. msm_routing_put_voice_stub_mixer),
  12858. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12859. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12860. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12861. msm_routing_put_voice_stub_mixer),
  12862. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12864. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12865. msm_routing_put_voice_stub_mixer),
  12866. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12867. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12868. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12869. msm_routing_put_voice_stub_mixer),
  12870. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12872. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12873. msm_routing_put_voice_stub_mixer),
  12874. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12876. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12877. msm_routing_put_voice_stub_mixer),
  12878. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_AFE_PCM_TX,
  12880. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12881. msm_routing_put_voice_stub_mixer),
  12882. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12884. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12885. msm_routing_put_voice_stub_mixer),
  12886. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12888. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12889. msm_routing_put_voice_stub_mixer),
  12890. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12892. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12893. msm_routing_put_voice_stub_mixer),
  12894. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12895. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12896. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12897. msm_routing_put_voice_stub_mixer),
  12898. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12900. 1, 0, msm_routing_get_voice_stub_mixer,
  12901. msm_routing_put_voice_stub_mixer),
  12902. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12904. 1, 0, msm_routing_get_voice_stub_mixer,
  12905. msm_routing_put_voice_stub_mixer),
  12906. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  12908. 1, 0, msm_routing_get_voice_stub_mixer,
  12909. msm_routing_put_voice_stub_mixer),
  12910. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  12912. 1, 0, msm_routing_get_voice_stub_mixer,
  12913. msm_routing_put_voice_stub_mixer),
  12914. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  12916. 1, 0, msm_routing_get_voice_stub_mixer,
  12917. msm_routing_put_voice_stub_mixer),
  12918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  12920. 1, 0, msm_routing_get_voice_stub_mixer,
  12921. msm_routing_put_voice_stub_mixer),
  12922. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  12924. 1, 0, msm_routing_get_voice_stub_mixer,
  12925. msm_routing_put_voice_stub_mixer),
  12926. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  12928. 1, 0, msm_routing_get_voice_stub_mixer,
  12929. msm_routing_put_voice_stub_mixer),
  12930. };
  12931. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  12932. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_EXTPROC_TX,
  12934. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12935. msm_routing_put_voice_stub_mixer),
  12936. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12938. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12939. msm_routing_put_voice_stub_mixer),
  12940. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  12941. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  12942. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12943. msm_routing_put_voice_stub_mixer),
  12944. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12945. MSM_BACKEND_DAI_AUXPCM_TX,
  12946. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12947. msm_routing_put_voice_stub_mixer),
  12948. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12949. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12950. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12951. msm_routing_put_voice_stub_mixer),
  12952. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12954. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12955. msm_routing_put_voice_stub_mixer),
  12956. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12958. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12959. msm_routing_put_voice_stub_mixer),
  12960. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12961. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12962. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12963. msm_routing_put_voice_stub_mixer),
  12964. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12966. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12967. msm_routing_put_voice_stub_mixer),
  12968. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  12970. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12971. msm_routing_put_voice_stub_mixer),
  12972. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_AFE_PCM_TX,
  12974. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12975. msm_routing_put_voice_stub_mixer),
  12976. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12977. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12978. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12979. msm_routing_put_voice_stub_mixer),
  12980. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12981. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12982. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12983. msm_routing_put_voice_stub_mixer),
  12984. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12986. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12987. msm_routing_put_voice_stub_mixer),
  12988. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12990. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  12991. msm_routing_put_voice_stub_mixer),
  12992. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  12994. 1, 0, msm_routing_get_voice_stub_mixer,
  12995. msm_routing_put_voice_stub_mixer),
  12996. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12997. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  12998. 1, 0, msm_routing_get_voice_stub_mixer,
  12999. msm_routing_put_voice_stub_mixer),
  13000. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13001. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  13002. 1, 0, msm_routing_get_voice_stub_mixer,
  13003. msm_routing_put_voice_stub_mixer),
  13004. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13005. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  13006. 1, 0, msm_routing_get_voice_stub_mixer,
  13007. msm_routing_put_voice_stub_mixer),
  13008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  13010. 1, 0, msm_routing_get_voice_stub_mixer,
  13011. msm_routing_put_voice_stub_mixer),
  13012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  13014. 1, 0, msm_routing_get_voice_stub_mixer,
  13015. msm_routing_put_voice_stub_mixer),
  13016. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13017. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  13018. 1, 0, msm_routing_get_voice_stub_mixer,
  13019. msm_routing_put_voice_stub_mixer),
  13020. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13021. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  13022. 1, 0, msm_routing_get_voice_stub_mixer,
  13023. msm_routing_put_voice_stub_mixer),
  13024. };
  13025. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  13026. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_PRI_I2S_TX,
  13028. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13029. msm_routing_put_voice_mixer),
  13030. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13032. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13033. msm_routing_put_voice_mixer),
  13034. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13036. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  13037. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13038. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_AFE_PCM_TX,
  13040. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13041. msm_routing_put_voice_mixer),
  13042. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_AUXPCM_TX,
  13044. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13045. msm_routing_put_voice_mixer),
  13046. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13048. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13049. msm_routing_put_voice_mixer),
  13050. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13052. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13053. msm_routing_put_voice_mixer),
  13054. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13056. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13057. msm_routing_put_voice_mixer),
  13058. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13060. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13061. msm_routing_put_voice_mixer),
  13062. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_MI2S_TX,
  13064. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13065. msm_routing_put_voice_mixer),
  13066. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13068. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13069. msm_routing_put_voice_mixer),
  13070. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13072. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13073. msm_routing_put_voice_mixer),
  13074. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13076. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13077. msm_routing_put_voice_mixer),
  13078. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13080. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13081. msm_routing_put_voice_mixer),
  13082. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13084. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13085. msm_routing_put_voice_mixer),
  13086. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_USB_TX,
  13088. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13089. msm_routing_put_voice_mixer),
  13090. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13092. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13093. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13095. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13096. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  13098. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  13101. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13102. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  13104. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13105. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  13107. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13108. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  13110. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13111. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  13113. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13114. };
  13115. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  13116. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13118. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13119. msm_routing_put_port_mixer),
  13120. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13122. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13123. msm_routing_put_port_mixer),
  13124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13126. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13127. msm_routing_put_port_mixer),
  13128. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13130. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13131. msm_routing_put_port_mixer),
  13132. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13134. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13138. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13142. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13143. msm_routing_put_port_mixer),
  13144. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13146. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13147. msm_routing_put_port_mixer),
  13148. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13150. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13151. msm_routing_put_port_mixer),
  13152. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13154. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13155. msm_routing_put_port_mixer),
  13156. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13158. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13159. msm_routing_put_port_mixer),
  13160. };
  13161. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  13162. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13163. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13164. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13165. msm_routing_put_port_mixer),
  13166. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13167. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13168. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13169. msm_routing_put_port_mixer),
  13170. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13172. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13173. msm_routing_put_port_mixer),
  13174. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13176. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13177. msm_routing_put_port_mixer),
  13178. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13180. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13181. msm_routing_put_port_mixer),
  13182. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13184. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13185. msm_routing_put_port_mixer),
  13186. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13187. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13188. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13189. msm_routing_put_port_mixer),
  13190. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13191. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13192. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13193. msm_routing_put_port_mixer),
  13194. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13195. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13196. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13200. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13201. msm_routing_put_port_mixer),
  13202. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13204. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13205. msm_routing_put_port_mixer),
  13206. };
  13207. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  13208. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13210. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  13211. msm_routing_put_port_mixer),
  13212. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13215. msm_routing_put_port_mixer),
  13216. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13218. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13219. msm_routing_put_port_mixer),
  13220. };
  13221. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  13222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13224. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  13225. msm_routing_put_port_mixer),
  13226. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13228. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13229. msm_routing_put_port_mixer),
  13230. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13232. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13233. msm_routing_put_port_mixer),
  13234. };
  13235. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  13236. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13238. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13239. msm_routing_put_port_mixer),
  13240. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13242. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13243. msm_routing_put_port_mixer),
  13244. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13246. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13250. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13254. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13255. msm_routing_put_port_mixer),
  13256. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13258. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13259. msm_routing_put_port_mixer),
  13260. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13262. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13263. msm_routing_put_port_mixer),
  13264. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13266. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13267. msm_routing_put_port_mixer),
  13268. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13270. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13271. msm_routing_put_port_mixer),
  13272. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13274. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13275. msm_routing_put_port_mixer),
  13276. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13278. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13279. msm_routing_put_port_mixer),
  13280. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13282. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13283. msm_routing_put_port_mixer),
  13284. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13286. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13287. msm_routing_put_port_mixer),
  13288. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13290. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13291. msm_routing_put_port_mixer),
  13292. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13294. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13295. msm_routing_put_port_mixer),
  13296. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13298. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13299. msm_routing_put_port_mixer),
  13300. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13302. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13303. msm_routing_put_port_mixer),
  13304. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13306. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13307. msm_routing_put_port_mixer),
  13308. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13310. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13311. msm_routing_put_port_mixer),
  13312. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13314. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13315. msm_routing_put_port_mixer),
  13316. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13318. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13322. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13326. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13327. msm_routing_put_port_mixer),
  13328. };
  13329. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  13330. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_AUXPCM_RX,
  13332. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_AUXPCM_RX,
  13336. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13337. msm_routing_put_port_mixer),
  13338. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13339. MSM_BACKEND_DAI_AUXPCM_RX,
  13340. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13341. msm_routing_put_port_mixer),
  13342. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13343. MSM_BACKEND_DAI_AUXPCM_RX,
  13344. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13345. msm_routing_put_port_mixer),
  13346. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13347. MSM_BACKEND_DAI_AUXPCM_RX,
  13348. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_AUXPCM_RX,
  13352. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13353. msm_routing_put_port_mixer),
  13354. };
  13355. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  13356. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13358. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13362. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13366. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13367. msm_routing_put_port_mixer),
  13368. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13370. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13371. msm_routing_put_port_mixer),
  13372. };
  13373. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  13374. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13376. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13377. msm_routing_put_port_mixer),
  13378. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13379. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13380. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13381. msm_routing_put_port_mixer),
  13382. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13385. msm_routing_put_port_mixer),
  13386. };
  13387. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  13388. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13390. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13391. msm_routing_put_port_mixer),
  13392. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13394. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13398. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13399. msm_routing_put_port_mixer),
  13400. };
  13401. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  13402. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13404. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13405. msm_routing_put_port_mixer),
  13406. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13408. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13409. msm_routing_put_port_mixer),
  13410. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13412. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13413. msm_routing_put_port_mixer),
  13414. };
  13415. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  13416. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13418. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13419. msm_routing_put_port_mixer),
  13420. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13421. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13422. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  13423. msm_routing_put_port_mixer),
  13424. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13425. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13426. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13427. msm_routing_put_port_mixer),
  13428. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13429. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13430. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13434. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13438. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13439. msm_routing_put_port_mixer),
  13440. };
  13441. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  13442. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13444. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13448. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13449. msm_routing_put_port_mixer),
  13450. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13452. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  13453. msm_routing_put_port_mixer),
  13454. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13456. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  13457. msm_routing_put_port_mixer),
  13458. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13460. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  13461. msm_routing_put_port_mixer),
  13462. };
  13463. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  13464. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13465. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13466. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13467. msm_routing_put_port_mixer),
  13468. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13469. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13470. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13471. msm_routing_put_port_mixer),
  13472. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13474. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13475. msm_routing_put_port_mixer),
  13476. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13478. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  13479. msm_routing_put_port_mixer),
  13480. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13481. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13482. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13483. msm_routing_put_port_mixer),
  13484. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13485. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13486. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13487. msm_routing_put_port_mixer),
  13488. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13490. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13491. msm_routing_put_port_mixer),
  13492. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13494. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13495. msm_routing_put_port_mixer),
  13496. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13498. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13499. msm_routing_put_port_mixer),
  13500. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13502. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13506. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13507. msm_routing_put_port_mixer),
  13508. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13510. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13511. msm_routing_put_port_mixer),
  13512. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13514. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. };
  13517. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  13518. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13520. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13521. msm_routing_put_port_mixer),
  13522. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13524. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13525. msm_routing_put_port_mixer),
  13526. };
  13527. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  13528. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13529. MSM_BACKEND_DAI_AFE_PCM_RX,
  13530. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13531. msm_routing_put_port_mixer),
  13532. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13533. MSM_BACKEND_DAI_AFE_PCM_RX,
  13534. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13535. msm_routing_put_port_mixer),
  13536. };
  13537. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  13538. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_HDMI_RX,
  13540. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13541. msm_routing_put_port_mixer),
  13542. };
  13543. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  13544. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13545. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13546. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13547. msm_routing_put_port_mixer),
  13548. };
  13549. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  13550. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13552. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13553. msm_routing_put_port_mixer),
  13554. };
  13555. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  13556. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_SEC_I2S_RX,
  13558. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13559. msm_routing_put_port_mixer),
  13560. };
  13561. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  13562. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_MI2S_RX,
  13564. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  13565. msm_routing_put_port_mixer),
  13566. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_MI2S_RX,
  13568. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13569. msm_routing_put_port_mixer),
  13570. };
  13571. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  13572. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13574. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13575. msm_routing_put_port_mixer),
  13576. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13578. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13579. msm_routing_put_port_mixer),
  13580. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13582. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13583. msm_routing_put_port_mixer),
  13584. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13586. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13587. msm_routing_put_port_mixer),
  13588. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13590. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  13591. msm_routing_put_port_mixer),
  13592. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13594. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13595. msm_routing_put_port_mixer),
  13596. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13598. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13599. msm_routing_put_port_mixer),
  13600. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13602. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13603. msm_routing_put_port_mixer),
  13604. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13606. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13607. msm_routing_put_port_mixer),
  13608. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13610. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13611. msm_routing_put_port_mixer),
  13612. };
  13613. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  13614. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_USB_RX,
  13616. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  13617. msm_routing_put_port_mixer),
  13618. };
  13619. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  13620. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13622. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13623. msm_routing_put_port_mixer),
  13624. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13626. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13627. msm_routing_put_port_mixer),
  13628. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13630. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13631. msm_routing_put_port_mixer),
  13632. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13634. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13635. msm_routing_put_port_mixer),
  13636. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13638. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13639. msm_routing_put_port_mixer),
  13640. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13642. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13643. msm_routing_put_port_mixer),
  13644. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13646. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13647. msm_routing_put_port_mixer),
  13648. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13650. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13651. msm_routing_put_port_mixer),
  13652. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13654. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13655. msm_routing_put_port_mixer),
  13656. };
  13657. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  13658. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13660. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13661. msm_routing_put_port_mixer),
  13662. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13664. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13665. msm_routing_put_port_mixer),
  13666. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13667. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13668. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13669. msm_routing_put_port_mixer),
  13670. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13671. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13672. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13673. msm_routing_put_port_mixer),
  13674. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13676. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13677. msm_routing_put_port_mixer),
  13678. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13680. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13681. msm_routing_put_port_mixer),
  13682. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13684. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13685. msm_routing_put_port_mixer),
  13686. };
  13687. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  13688. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13690. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13691. msm_routing_get_port_mixer,
  13692. msm_routing_put_port_mixer),
  13693. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13695. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13696. msm_routing_get_port_mixer,
  13697. msm_routing_put_port_mixer),
  13698. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13700. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13701. msm_routing_get_port_mixer,
  13702. msm_routing_put_port_mixer),
  13703. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13705. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13706. msm_routing_get_port_mixer,
  13707. msm_routing_put_port_mixer),
  13708. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13710. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13711. msm_routing_get_port_mixer,
  13712. msm_routing_put_port_mixer),
  13713. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13715. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13716. msm_routing_get_port_mixer,
  13717. msm_routing_put_port_mixer),
  13718. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13719. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13720. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13721. msm_routing_get_port_mixer,
  13722. msm_routing_put_port_mixer),
  13723. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13725. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13726. msm_routing_get_port_mixer,
  13727. msm_routing_put_port_mixer),
  13728. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13730. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13731. msm_routing_get_port_mixer,
  13732. msm_routing_put_port_mixer),
  13733. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13735. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13736. msm_routing_get_port_mixer,
  13737. msm_routing_put_port_mixer),
  13738. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13740. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13741. msm_routing_get_port_mixer,
  13742. msm_routing_put_port_mixer),
  13743. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13744. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13745. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13746. msm_routing_get_port_mixer,
  13747. msm_routing_put_port_mixer),
  13748. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13750. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13751. msm_routing_get_port_mixer,
  13752. msm_routing_put_port_mixer),
  13753. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13755. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13756. msm_routing_get_port_mixer,
  13757. msm_routing_put_port_mixer),
  13758. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13760. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13761. msm_routing_get_port_mixer,
  13762. msm_routing_put_port_mixer),
  13763. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13765. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13766. msm_routing_get_port_mixer,
  13767. msm_routing_put_port_mixer),
  13768. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13770. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13771. msm_routing_get_port_mixer,
  13772. msm_routing_put_port_mixer),
  13773. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13775. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13776. msm_routing_get_port_mixer,
  13777. msm_routing_put_port_mixer),
  13778. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13780. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13781. msm_routing_get_port_mixer,
  13782. msm_routing_put_port_mixer),
  13783. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13785. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13786. msm_routing_get_port_mixer,
  13787. msm_routing_put_port_mixer),
  13788. };
  13789. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  13790. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13792. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13793. msm_routing_get_port_mixer,
  13794. msm_routing_put_port_mixer),
  13795. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13797. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13798. msm_routing_get_port_mixer,
  13799. msm_routing_put_port_mixer),
  13800. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13802. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13803. msm_routing_get_port_mixer,
  13804. msm_routing_put_port_mixer),
  13805. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13807. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13808. msm_routing_get_port_mixer,
  13809. msm_routing_put_port_mixer),
  13810. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13811. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13812. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13813. msm_routing_get_port_mixer,
  13814. msm_routing_put_port_mixer),
  13815. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13817. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13818. msm_routing_get_port_mixer,
  13819. msm_routing_put_port_mixer),
  13820. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13822. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13823. msm_routing_get_port_mixer,
  13824. msm_routing_put_port_mixer),
  13825. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13827. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13828. msm_routing_get_port_mixer,
  13829. msm_routing_put_port_mixer),
  13830. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13832. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13833. msm_routing_get_port_mixer,
  13834. msm_routing_put_port_mixer),
  13835. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13837. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13838. msm_routing_get_port_mixer,
  13839. msm_routing_put_port_mixer),
  13840. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13842. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13843. msm_routing_get_port_mixer,
  13844. msm_routing_put_port_mixer),
  13845. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13847. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13848. msm_routing_get_port_mixer,
  13849. msm_routing_put_port_mixer),
  13850. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13852. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13853. msm_routing_get_port_mixer,
  13854. msm_routing_put_port_mixer),
  13855. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13857. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13858. msm_routing_get_port_mixer,
  13859. msm_routing_put_port_mixer),
  13860. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13862. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13863. msm_routing_get_port_mixer,
  13864. msm_routing_put_port_mixer),
  13865. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13867. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13868. msm_routing_get_port_mixer,
  13869. msm_routing_put_port_mixer),
  13870. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13872. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13873. msm_routing_get_port_mixer,
  13874. msm_routing_put_port_mixer),
  13875. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13877. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13878. msm_routing_get_port_mixer,
  13879. msm_routing_put_port_mixer),
  13880. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13882. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13883. msm_routing_get_port_mixer,
  13884. msm_routing_put_port_mixer),
  13885. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13887. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13888. msm_routing_get_port_mixer,
  13889. msm_routing_put_port_mixer),
  13890. };
  13891. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  13892. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13894. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13895. msm_routing_get_port_mixer,
  13896. msm_routing_put_port_mixer),
  13897. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13899. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13900. msm_routing_get_port_mixer,
  13901. msm_routing_put_port_mixer),
  13902. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13903. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13904. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  13905. msm_routing_get_port_mixer,
  13906. msm_routing_put_port_mixer),
  13907. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13909. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13910. msm_routing_get_port_mixer,
  13911. msm_routing_put_port_mixer),
  13912. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13913. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13914. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13915. msm_routing_get_port_mixer,
  13916. msm_routing_put_port_mixer),
  13917. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13919. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13920. msm_routing_get_port_mixer,
  13921. msm_routing_put_port_mixer),
  13922. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13924. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13925. msm_routing_get_port_mixer,
  13926. msm_routing_put_port_mixer),
  13927. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13929. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13930. msm_routing_get_port_mixer,
  13931. msm_routing_put_port_mixer),
  13932. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13933. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13934. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  13935. msm_routing_get_port_mixer,
  13936. msm_routing_put_port_mixer),
  13937. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13939. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  13940. msm_routing_get_port_mixer,
  13941. msm_routing_put_port_mixer),
  13942. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13944. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  13945. msm_routing_get_port_mixer,
  13946. msm_routing_put_port_mixer),
  13947. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13949. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  13950. msm_routing_get_port_mixer,
  13951. msm_routing_put_port_mixer),
  13952. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13954. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13955. msm_routing_get_port_mixer,
  13956. msm_routing_put_port_mixer),
  13957. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13959. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13960. msm_routing_get_port_mixer,
  13961. msm_routing_put_port_mixer),
  13962. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13964. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13965. msm_routing_get_port_mixer,
  13966. msm_routing_put_port_mixer),
  13967. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13969. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13970. msm_routing_get_port_mixer,
  13971. msm_routing_put_port_mixer),
  13972. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13974. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13975. msm_routing_get_port_mixer,
  13976. msm_routing_put_port_mixer),
  13977. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13979. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13980. msm_routing_get_port_mixer,
  13981. msm_routing_put_port_mixer),
  13982. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13984. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13985. msm_routing_get_port_mixer,
  13986. msm_routing_put_port_mixer),
  13987. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13989. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13990. msm_routing_get_port_mixer,
  13991. msm_routing_put_port_mixer),
  13992. };
  13993. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  13994. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13996. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13997. msm_routing_get_port_mixer,
  13998. msm_routing_put_port_mixer),
  13999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14001. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14002. msm_routing_get_port_mixer,
  14003. msm_routing_put_port_mixer),
  14004. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14005. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14006. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14007. msm_routing_get_port_mixer,
  14008. msm_routing_put_port_mixer),
  14009. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14011. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14012. msm_routing_get_port_mixer,
  14013. msm_routing_put_port_mixer),
  14014. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14016. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14017. msm_routing_get_port_mixer,
  14018. msm_routing_put_port_mixer),
  14019. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14021. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14022. msm_routing_get_port_mixer,
  14023. msm_routing_put_port_mixer),
  14024. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14025. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14026. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14027. msm_routing_get_port_mixer,
  14028. msm_routing_put_port_mixer),
  14029. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14031. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14032. msm_routing_get_port_mixer,
  14033. msm_routing_put_port_mixer),
  14034. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14036. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  14037. msm_routing_get_port_mixer,
  14038. msm_routing_put_port_mixer),
  14039. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14041. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  14042. msm_routing_get_port_mixer,
  14043. msm_routing_put_port_mixer),
  14044. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14046. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  14047. msm_routing_get_port_mixer,
  14048. msm_routing_put_port_mixer),
  14049. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14051. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  14052. msm_routing_get_port_mixer,
  14053. msm_routing_put_port_mixer),
  14054. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14056. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14057. msm_routing_get_port_mixer,
  14058. msm_routing_put_port_mixer),
  14059. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14061. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14062. msm_routing_get_port_mixer,
  14063. msm_routing_put_port_mixer),
  14064. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14065. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14066. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14067. msm_routing_get_port_mixer,
  14068. msm_routing_put_port_mixer),
  14069. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14071. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14072. msm_routing_get_port_mixer,
  14073. msm_routing_put_port_mixer),
  14074. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14076. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14077. msm_routing_get_port_mixer,
  14078. msm_routing_put_port_mixer),
  14079. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14081. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14082. msm_routing_get_port_mixer,
  14083. msm_routing_put_port_mixer),
  14084. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14086. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14087. msm_routing_get_port_mixer,
  14088. msm_routing_put_port_mixer),
  14089. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14091. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14092. msm_routing_get_port_mixer,
  14093. msm_routing_put_port_mixer),
  14094. };
  14095. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  14096. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14097. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14098. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14099. msm_routing_get_port_mixer,
  14100. msm_routing_put_port_mixer),
  14101. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14103. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14104. msm_routing_get_port_mixer,
  14105. msm_routing_put_port_mixer),
  14106. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14108. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14109. msm_routing_get_port_mixer,
  14110. msm_routing_put_port_mixer),
  14111. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14113. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14114. msm_routing_get_port_mixer,
  14115. msm_routing_put_port_mixer),
  14116. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14117. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14118. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14119. msm_routing_get_port_mixer,
  14120. msm_routing_put_port_mixer),
  14121. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14123. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14124. msm_routing_get_port_mixer,
  14125. msm_routing_put_port_mixer),
  14126. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14128. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14129. msm_routing_get_port_mixer,
  14130. msm_routing_put_port_mixer),
  14131. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14133. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14134. msm_routing_get_port_mixer,
  14135. msm_routing_put_port_mixer),
  14136. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14137. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14138. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14139. msm_routing_get_port_mixer,
  14140. msm_routing_put_port_mixer),
  14141. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14143. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14144. msm_routing_get_port_mixer,
  14145. msm_routing_put_port_mixer),
  14146. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14148. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14149. msm_routing_get_port_mixer,
  14150. msm_routing_put_port_mixer),
  14151. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14153. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14154. msm_routing_get_port_mixer,
  14155. msm_routing_put_port_mixer),
  14156. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14157. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14158. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14159. msm_routing_get_port_mixer,
  14160. msm_routing_put_port_mixer),
  14161. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14163. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14164. msm_routing_get_port_mixer,
  14165. msm_routing_put_port_mixer),
  14166. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14168. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14169. msm_routing_get_port_mixer,
  14170. msm_routing_put_port_mixer),
  14171. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14173. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14174. msm_routing_get_port_mixer,
  14175. msm_routing_put_port_mixer),
  14176. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14177. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14178. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14179. msm_routing_get_port_mixer,
  14180. msm_routing_put_port_mixer),
  14181. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14183. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14184. msm_routing_get_port_mixer,
  14185. msm_routing_put_port_mixer),
  14186. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14188. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14189. msm_routing_get_port_mixer,
  14190. msm_routing_put_port_mixer),
  14191. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  14193. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14194. msm_routing_get_port_mixer,
  14195. msm_routing_put_port_mixer),
  14196. };
  14197. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  14198. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14199. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14200. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14201. msm_routing_get_port_mixer,
  14202. msm_routing_put_port_mixer),
  14203. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14205. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14206. msm_routing_get_port_mixer,
  14207. msm_routing_put_port_mixer),
  14208. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14210. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14211. msm_routing_get_port_mixer,
  14212. msm_routing_put_port_mixer),
  14213. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14215. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14216. msm_routing_get_port_mixer,
  14217. msm_routing_put_port_mixer),
  14218. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14219. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14220. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14221. msm_routing_get_port_mixer,
  14222. msm_routing_put_port_mixer),
  14223. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14225. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14226. msm_routing_get_port_mixer,
  14227. msm_routing_put_port_mixer),
  14228. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14229. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14230. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14231. msm_routing_get_port_mixer,
  14232. msm_routing_put_port_mixer),
  14233. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14235. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14236. msm_routing_get_port_mixer,
  14237. msm_routing_put_port_mixer),
  14238. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14240. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14241. msm_routing_get_port_mixer,
  14242. msm_routing_put_port_mixer),
  14243. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14245. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14246. msm_routing_get_port_mixer,
  14247. msm_routing_put_port_mixer),
  14248. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14250. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14251. msm_routing_get_port_mixer,
  14252. msm_routing_put_port_mixer),
  14253. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14255. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14256. msm_routing_get_port_mixer,
  14257. msm_routing_put_port_mixer),
  14258. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14260. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14261. msm_routing_get_port_mixer,
  14262. msm_routing_put_port_mixer),
  14263. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14265. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14266. msm_routing_get_port_mixer,
  14267. msm_routing_put_port_mixer),
  14268. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14270. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14271. msm_routing_get_port_mixer,
  14272. msm_routing_put_port_mixer),
  14273. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14275. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14276. msm_routing_get_port_mixer,
  14277. msm_routing_put_port_mixer),
  14278. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14280. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14281. msm_routing_get_port_mixer,
  14282. msm_routing_put_port_mixer),
  14283. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14285. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14286. msm_routing_get_port_mixer,
  14287. msm_routing_put_port_mixer),
  14288. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14290. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14291. msm_routing_get_port_mixer,
  14292. msm_routing_put_port_mixer),
  14293. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  14295. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14296. msm_routing_get_port_mixer,
  14297. msm_routing_put_port_mixer),
  14298. };
  14299. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  14300. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14302. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14303. msm_routing_get_port_mixer,
  14304. msm_routing_put_port_mixer),
  14305. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14307. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14308. msm_routing_get_port_mixer,
  14309. msm_routing_put_port_mixer),
  14310. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14311. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14312. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14313. msm_routing_get_port_mixer,
  14314. msm_routing_put_port_mixer),
  14315. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14317. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14318. msm_routing_get_port_mixer,
  14319. msm_routing_put_port_mixer),
  14320. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14322. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14323. msm_routing_get_port_mixer,
  14324. msm_routing_put_port_mixer),
  14325. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14327. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14328. msm_routing_get_port_mixer,
  14329. msm_routing_put_port_mixer),
  14330. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14331. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14332. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14333. msm_routing_get_port_mixer,
  14334. msm_routing_put_port_mixer),
  14335. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14337. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14338. msm_routing_get_port_mixer,
  14339. msm_routing_put_port_mixer),
  14340. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14342. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14343. msm_routing_get_port_mixer,
  14344. msm_routing_put_port_mixer),
  14345. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14347. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14348. msm_routing_get_port_mixer,
  14349. msm_routing_put_port_mixer),
  14350. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14352. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14353. msm_routing_get_port_mixer,
  14354. msm_routing_put_port_mixer),
  14355. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14357. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14358. msm_routing_get_port_mixer,
  14359. msm_routing_put_port_mixer),
  14360. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14362. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14363. msm_routing_get_port_mixer,
  14364. msm_routing_put_port_mixer),
  14365. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14367. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14368. msm_routing_get_port_mixer,
  14369. msm_routing_put_port_mixer),
  14370. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14372. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14373. msm_routing_get_port_mixer,
  14374. msm_routing_put_port_mixer),
  14375. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14377. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14378. msm_routing_get_port_mixer,
  14379. msm_routing_put_port_mixer),
  14380. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14382. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14383. msm_routing_get_port_mixer,
  14384. msm_routing_put_port_mixer),
  14385. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14387. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14388. msm_routing_get_port_mixer,
  14389. msm_routing_put_port_mixer),
  14390. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14392. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14393. msm_routing_get_port_mixer,
  14394. msm_routing_put_port_mixer),
  14395. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  14397. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14398. msm_routing_get_port_mixer,
  14399. msm_routing_put_port_mixer),
  14400. };
  14401. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  14402. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14404. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14405. msm_routing_get_port_mixer,
  14406. msm_routing_put_port_mixer),
  14407. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14409. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14410. msm_routing_get_port_mixer,
  14411. msm_routing_put_port_mixer),
  14412. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14414. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14415. msm_routing_get_port_mixer,
  14416. msm_routing_put_port_mixer),
  14417. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14419. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14420. msm_routing_get_port_mixer,
  14421. msm_routing_put_port_mixer),
  14422. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14423. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14424. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14425. msm_routing_get_port_mixer,
  14426. msm_routing_put_port_mixer),
  14427. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14429. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14430. msm_routing_get_port_mixer,
  14431. msm_routing_put_port_mixer),
  14432. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14434. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14435. msm_routing_get_port_mixer,
  14436. msm_routing_put_port_mixer),
  14437. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14439. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14440. msm_routing_get_port_mixer,
  14441. msm_routing_put_port_mixer),
  14442. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14443. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14444. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  14445. msm_routing_get_port_mixer,
  14446. msm_routing_put_port_mixer),
  14447. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14449. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  14450. msm_routing_get_port_mixer,
  14451. msm_routing_put_port_mixer),
  14452. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14454. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  14455. msm_routing_get_port_mixer,
  14456. msm_routing_put_port_mixer),
  14457. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14459. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  14460. msm_routing_get_port_mixer,
  14461. msm_routing_put_port_mixer),
  14462. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14464. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14465. msm_routing_get_port_mixer,
  14466. msm_routing_put_port_mixer),
  14467. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14469. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14470. msm_routing_get_port_mixer,
  14471. msm_routing_put_port_mixer),
  14472. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14474. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14475. msm_routing_get_port_mixer,
  14476. msm_routing_put_port_mixer),
  14477. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14479. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14480. msm_routing_get_port_mixer,
  14481. msm_routing_put_port_mixer),
  14482. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14484. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14485. msm_routing_get_port_mixer,
  14486. msm_routing_put_port_mixer),
  14487. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14489. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14490. msm_routing_get_port_mixer,
  14491. msm_routing_put_port_mixer),
  14492. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14493. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14494. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14495. msm_routing_get_port_mixer,
  14496. msm_routing_put_port_mixer),
  14497. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  14499. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14500. msm_routing_get_port_mixer,
  14501. msm_routing_put_port_mixer),
  14502. };
  14503. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  14504. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  14505. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  14506. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  14507. msm_routing_get_port_mixer,
  14508. msm_routing_put_port_mixer),
  14509. };
  14510. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  14511. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14513. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14514. msm_routing_get_port_mixer,
  14515. msm_routing_put_port_mixer),
  14516. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14517. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14518. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14519. msm_routing_get_port_mixer,
  14520. msm_routing_put_port_mixer),
  14521. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14523. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14524. msm_routing_get_port_mixer,
  14525. msm_routing_put_port_mixer),
  14526. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14528. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14529. msm_routing_get_port_mixer,
  14530. msm_routing_put_port_mixer),
  14531. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14533. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14534. msm_routing_get_port_mixer,
  14535. msm_routing_put_port_mixer),
  14536. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14538. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14539. msm_routing_get_port_mixer,
  14540. msm_routing_put_port_mixer),
  14541. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14543. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14544. msm_routing_get_port_mixer,
  14545. msm_routing_put_port_mixer),
  14546. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14548. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14549. msm_routing_get_port_mixer,
  14550. msm_routing_put_port_mixer),
  14551. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14553. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14554. msm_routing_get_port_mixer,
  14555. msm_routing_put_port_mixer),
  14556. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14558. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14559. msm_routing_get_port_mixer,
  14560. msm_routing_put_port_mixer),
  14561. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14563. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14564. msm_routing_get_port_mixer,
  14565. msm_routing_put_port_mixer),
  14566. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14568. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14569. msm_routing_get_port_mixer,
  14570. msm_routing_put_port_mixer),
  14571. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14573. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14574. msm_routing_get_port_mixer,
  14575. msm_routing_put_port_mixer),
  14576. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14578. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14579. msm_routing_get_port_mixer,
  14580. msm_routing_put_port_mixer),
  14581. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14583. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14584. msm_routing_get_port_mixer,
  14585. msm_routing_put_port_mixer),
  14586. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14588. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14589. msm_routing_get_port_mixer,
  14590. msm_routing_put_port_mixer),
  14591. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14593. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14594. msm_routing_get_port_mixer,
  14595. msm_routing_put_port_mixer),
  14596. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14597. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14598. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14599. msm_routing_get_port_mixer,
  14600. msm_routing_put_port_mixer),
  14601. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14603. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14604. msm_routing_get_port_mixer,
  14605. msm_routing_put_port_mixer),
  14606. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  14608. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14609. msm_routing_get_port_mixer,
  14610. msm_routing_put_port_mixer),
  14611. };
  14612. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  14613. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14615. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14616. msm_routing_get_port_mixer,
  14617. msm_routing_put_port_mixer),
  14618. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14620. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14621. msm_routing_get_port_mixer,
  14622. msm_routing_put_port_mixer),
  14623. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14624. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14625. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14626. msm_routing_get_port_mixer,
  14627. msm_routing_put_port_mixer),
  14628. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14630. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14631. msm_routing_get_port_mixer,
  14632. msm_routing_put_port_mixer),
  14633. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14635. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14636. msm_routing_get_port_mixer,
  14637. msm_routing_put_port_mixer),
  14638. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14640. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14641. msm_routing_get_port_mixer,
  14642. msm_routing_put_port_mixer),
  14643. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14645. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14646. msm_routing_get_port_mixer,
  14647. msm_routing_put_port_mixer),
  14648. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14650. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14651. msm_routing_get_port_mixer,
  14652. msm_routing_put_port_mixer),
  14653. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14655. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14656. msm_routing_get_port_mixer,
  14657. msm_routing_put_port_mixer),
  14658. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14659. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14660. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14661. msm_routing_get_port_mixer,
  14662. msm_routing_put_port_mixer),
  14663. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14665. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14666. msm_routing_get_port_mixer,
  14667. msm_routing_put_port_mixer),
  14668. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14670. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14671. msm_routing_get_port_mixer,
  14672. msm_routing_put_port_mixer),
  14673. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14675. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14676. msm_routing_get_port_mixer,
  14677. msm_routing_put_port_mixer),
  14678. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14680. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14681. msm_routing_get_port_mixer,
  14682. msm_routing_put_port_mixer),
  14683. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14685. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14686. msm_routing_get_port_mixer,
  14687. msm_routing_put_port_mixer),
  14688. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14690. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14691. msm_routing_get_port_mixer,
  14692. msm_routing_put_port_mixer),
  14693. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14695. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14696. msm_routing_get_port_mixer,
  14697. msm_routing_put_port_mixer),
  14698. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14700. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14701. msm_routing_get_port_mixer,
  14702. msm_routing_put_port_mixer),
  14703. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14705. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14706. msm_routing_get_port_mixer,
  14707. msm_routing_put_port_mixer),
  14708. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  14710. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14711. msm_routing_get_port_mixer,
  14712. msm_routing_put_port_mixer),
  14713. };
  14714. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  14715. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14717. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14718. msm_routing_get_port_mixer,
  14719. msm_routing_put_port_mixer),
  14720. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14722. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14723. msm_routing_get_port_mixer,
  14724. msm_routing_put_port_mixer),
  14725. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14727. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14728. msm_routing_get_port_mixer,
  14729. msm_routing_put_port_mixer),
  14730. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14732. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14733. msm_routing_get_port_mixer,
  14734. msm_routing_put_port_mixer),
  14735. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14737. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14738. msm_routing_get_port_mixer,
  14739. msm_routing_put_port_mixer),
  14740. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14742. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14743. msm_routing_get_port_mixer,
  14744. msm_routing_put_port_mixer),
  14745. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14747. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14748. msm_routing_get_port_mixer,
  14749. msm_routing_put_port_mixer),
  14750. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14751. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14752. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14753. msm_routing_get_port_mixer,
  14754. msm_routing_put_port_mixer),
  14755. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14757. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14758. msm_routing_get_port_mixer,
  14759. msm_routing_put_port_mixer),
  14760. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14762. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14763. msm_routing_get_port_mixer,
  14764. msm_routing_put_port_mixer),
  14765. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14767. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14768. msm_routing_get_port_mixer,
  14769. msm_routing_put_port_mixer),
  14770. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14772. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14773. msm_routing_get_port_mixer,
  14774. msm_routing_put_port_mixer),
  14775. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14777. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14778. msm_routing_get_port_mixer,
  14779. msm_routing_put_port_mixer),
  14780. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14782. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14783. msm_routing_get_port_mixer,
  14784. msm_routing_put_port_mixer),
  14785. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14787. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14788. msm_routing_get_port_mixer,
  14789. msm_routing_put_port_mixer),
  14790. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14791. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14792. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14793. msm_routing_get_port_mixer,
  14794. msm_routing_put_port_mixer),
  14795. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14797. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14798. msm_routing_get_port_mixer,
  14799. msm_routing_put_port_mixer),
  14800. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14802. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14803. msm_routing_get_port_mixer,
  14804. msm_routing_put_port_mixer),
  14805. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14807. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14808. msm_routing_get_port_mixer,
  14809. msm_routing_put_port_mixer),
  14810. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  14812. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14813. msm_routing_get_port_mixer,
  14814. msm_routing_put_port_mixer),
  14815. };
  14816. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  14817. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14819. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14820. msm_routing_get_port_mixer,
  14821. msm_routing_put_port_mixer),
  14822. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14824. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14825. msm_routing_get_port_mixer,
  14826. msm_routing_put_port_mixer),
  14827. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14829. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  14830. msm_routing_get_port_mixer,
  14831. msm_routing_put_port_mixer),
  14832. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14834. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14835. msm_routing_get_port_mixer,
  14836. msm_routing_put_port_mixer),
  14837. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14839. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14840. msm_routing_get_port_mixer,
  14841. msm_routing_put_port_mixer),
  14842. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14844. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14845. msm_routing_get_port_mixer,
  14846. msm_routing_put_port_mixer),
  14847. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14849. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14850. msm_routing_get_port_mixer,
  14851. msm_routing_put_port_mixer),
  14852. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14854. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14855. msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14859. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14860. msm_routing_get_port_mixer,
  14861. msm_routing_put_port_mixer),
  14862. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14864. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14865. msm_routing_get_port_mixer,
  14866. msm_routing_put_port_mixer),
  14867. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14869. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14870. msm_routing_get_port_mixer,
  14871. msm_routing_put_port_mixer),
  14872. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14874. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14875. msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14879. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14880. msm_routing_get_port_mixer,
  14881. msm_routing_put_port_mixer),
  14882. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14884. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14885. msm_routing_get_port_mixer,
  14886. msm_routing_put_port_mixer),
  14887. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14889. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14890. msm_routing_get_port_mixer,
  14891. msm_routing_put_port_mixer),
  14892. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14894. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14895. msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14899. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  14900. msm_routing_get_port_mixer,
  14901. msm_routing_put_port_mixer),
  14902. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14904. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  14905. msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14909. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  14910. msm_routing_get_port_mixer,
  14911. msm_routing_put_port_mixer),
  14912. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  14914. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  14915. msm_routing_get_port_mixer,
  14916. msm_routing_put_port_mixer),
  14917. };
  14918. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  14919. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14921. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  14922. msm_routing_get_port_mixer,
  14923. msm_routing_put_port_mixer),
  14924. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14926. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  14927. msm_routing_get_port_mixer,
  14928. msm_routing_put_port_mixer),
  14929. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14931. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  14932. msm_routing_get_port_mixer,
  14933. msm_routing_put_port_mixer),
  14934. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14935. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14936. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  14937. msm_routing_get_port_mixer,
  14938. msm_routing_put_port_mixer),
  14939. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14941. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  14942. msm_routing_get_port_mixer,
  14943. msm_routing_put_port_mixer),
  14944. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14945. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14946. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  14947. msm_routing_get_port_mixer,
  14948. msm_routing_put_port_mixer),
  14949. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14951. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  14952. msm_routing_get_port_mixer,
  14953. msm_routing_put_port_mixer),
  14954. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14956. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  14957. msm_routing_get_port_mixer,
  14958. msm_routing_put_port_mixer),
  14959. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14961. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  14962. msm_routing_get_port_mixer,
  14963. msm_routing_put_port_mixer),
  14964. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14966. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  14967. msm_routing_get_port_mixer,
  14968. msm_routing_put_port_mixer),
  14969. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14971. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  14972. msm_routing_get_port_mixer,
  14973. msm_routing_put_port_mixer),
  14974. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14976. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  14977. msm_routing_get_port_mixer,
  14978. msm_routing_put_port_mixer),
  14979. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14981. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  14982. msm_routing_get_port_mixer,
  14983. msm_routing_put_port_mixer),
  14984. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14985. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14986. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  14987. msm_routing_get_port_mixer,
  14988. msm_routing_put_port_mixer),
  14989. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14991. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  14992. msm_routing_get_port_mixer,
  14993. msm_routing_put_port_mixer),
  14994. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  14996. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  14997. msm_routing_get_port_mixer,
  14998. msm_routing_put_port_mixer),
  14999. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15001. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15002. msm_routing_get_port_mixer,
  15003. msm_routing_put_port_mixer),
  15004. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15005. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15006. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15007. msm_routing_get_port_mixer,
  15008. msm_routing_put_port_mixer),
  15009. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15011. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15012. msm_routing_get_port_mixer,
  15013. msm_routing_put_port_mixer),
  15014. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  15016. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15017. msm_routing_get_port_mixer,
  15018. msm_routing_put_port_mixer),
  15019. };
  15020. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  15021. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15023. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15024. msm_routing_get_port_mixer,
  15025. msm_routing_put_port_mixer),
  15026. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15028. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15029. msm_routing_get_port_mixer,
  15030. msm_routing_put_port_mixer),
  15031. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15033. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15034. msm_routing_get_port_mixer,
  15035. msm_routing_put_port_mixer),
  15036. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15037. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15038. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15039. msm_routing_get_port_mixer,
  15040. msm_routing_put_port_mixer),
  15041. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15043. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15044. msm_routing_get_port_mixer,
  15045. msm_routing_put_port_mixer),
  15046. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15048. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15049. msm_routing_get_port_mixer,
  15050. msm_routing_put_port_mixer),
  15051. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15053. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15054. msm_routing_get_port_mixer,
  15055. msm_routing_put_port_mixer),
  15056. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15058. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15059. msm_routing_get_port_mixer,
  15060. msm_routing_put_port_mixer),
  15061. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15063. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15064. msm_routing_get_port_mixer,
  15065. msm_routing_put_port_mixer),
  15066. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15068. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15069. msm_routing_get_port_mixer,
  15070. msm_routing_put_port_mixer),
  15071. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15073. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15074. msm_routing_get_port_mixer,
  15075. msm_routing_put_port_mixer),
  15076. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15078. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15079. msm_routing_get_port_mixer,
  15080. msm_routing_put_port_mixer),
  15081. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15083. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15084. msm_routing_get_port_mixer,
  15085. msm_routing_put_port_mixer),
  15086. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15088. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15089. msm_routing_get_port_mixer,
  15090. msm_routing_put_port_mixer),
  15091. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15093. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15094. msm_routing_get_port_mixer,
  15095. msm_routing_put_port_mixer),
  15096. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15098. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15099. msm_routing_get_port_mixer,
  15100. msm_routing_put_port_mixer),
  15101. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15103. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15104. msm_routing_get_port_mixer,
  15105. msm_routing_put_port_mixer),
  15106. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15107. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15108. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15109. msm_routing_get_port_mixer,
  15110. msm_routing_put_port_mixer),
  15111. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15113. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15114. msm_routing_get_port_mixer,
  15115. msm_routing_put_port_mixer),
  15116. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  15118. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15119. msm_routing_get_port_mixer,
  15120. msm_routing_put_port_mixer),
  15121. };
  15122. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  15123. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15125. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15126. msm_routing_get_port_mixer,
  15127. msm_routing_put_port_mixer),
  15128. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15130. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15131. msm_routing_get_port_mixer,
  15132. msm_routing_put_port_mixer),
  15133. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15135. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15136. msm_routing_get_port_mixer,
  15137. msm_routing_put_port_mixer),
  15138. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15140. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15141. msm_routing_get_port_mixer,
  15142. msm_routing_put_port_mixer),
  15143. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15145. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15146. msm_routing_get_port_mixer,
  15147. msm_routing_put_port_mixer),
  15148. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15150. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15151. msm_routing_get_port_mixer,
  15152. msm_routing_put_port_mixer),
  15153. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15155. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15156. msm_routing_get_port_mixer,
  15157. msm_routing_put_port_mixer),
  15158. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15160. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15161. msm_routing_get_port_mixer,
  15162. msm_routing_put_port_mixer),
  15163. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15165. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15166. msm_routing_get_port_mixer,
  15167. msm_routing_put_port_mixer),
  15168. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15170. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15171. msm_routing_get_port_mixer,
  15172. msm_routing_put_port_mixer),
  15173. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15175. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15176. msm_routing_get_port_mixer,
  15177. msm_routing_put_port_mixer),
  15178. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15180. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15181. msm_routing_get_port_mixer,
  15182. msm_routing_put_port_mixer),
  15183. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15185. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15186. msm_routing_get_port_mixer,
  15187. msm_routing_put_port_mixer),
  15188. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15189. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15190. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15191. msm_routing_get_port_mixer,
  15192. msm_routing_put_port_mixer),
  15193. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15195. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15196. msm_routing_get_port_mixer,
  15197. msm_routing_put_port_mixer),
  15198. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15200. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15201. msm_routing_get_port_mixer,
  15202. msm_routing_put_port_mixer),
  15203. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15205. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15206. msm_routing_get_port_mixer,
  15207. msm_routing_put_port_mixer),
  15208. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15210. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15211. msm_routing_get_port_mixer,
  15212. msm_routing_put_port_mixer),
  15213. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15214. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15215. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15216. msm_routing_get_port_mixer,
  15217. msm_routing_put_port_mixer),
  15218. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15219. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15220. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15221. msm_routing_get_port_mixer,
  15222. msm_routing_put_port_mixer),
  15223. };
  15224. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  15225. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15227. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15228. msm_routing_get_port_mixer,
  15229. msm_routing_put_port_mixer),
  15230. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15232. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15233. msm_routing_get_port_mixer,
  15234. msm_routing_put_port_mixer),
  15235. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15237. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15238. msm_routing_get_port_mixer,
  15239. msm_routing_put_port_mixer),
  15240. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15242. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15243. msm_routing_get_port_mixer,
  15244. msm_routing_put_port_mixer),
  15245. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15247. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15248. msm_routing_get_port_mixer,
  15249. msm_routing_put_port_mixer),
  15250. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15252. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15253. msm_routing_get_port_mixer,
  15254. msm_routing_put_port_mixer),
  15255. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15257. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15258. msm_routing_get_port_mixer,
  15259. msm_routing_put_port_mixer),
  15260. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15262. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15263. msm_routing_get_port_mixer,
  15264. msm_routing_put_port_mixer),
  15265. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15267. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15268. msm_routing_get_port_mixer,
  15269. msm_routing_put_port_mixer),
  15270. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15272. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15273. msm_routing_get_port_mixer,
  15274. msm_routing_put_port_mixer),
  15275. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15277. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15278. msm_routing_get_port_mixer,
  15279. msm_routing_put_port_mixer),
  15280. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15282. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15283. msm_routing_get_port_mixer,
  15284. msm_routing_put_port_mixer),
  15285. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15287. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15288. msm_routing_get_port_mixer,
  15289. msm_routing_put_port_mixer),
  15290. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15292. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15293. msm_routing_get_port_mixer,
  15294. msm_routing_put_port_mixer),
  15295. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15297. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15298. msm_routing_get_port_mixer,
  15299. msm_routing_put_port_mixer),
  15300. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15302. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15303. msm_routing_get_port_mixer,
  15304. msm_routing_put_port_mixer),
  15305. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15307. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15308. msm_routing_get_port_mixer,
  15309. msm_routing_put_port_mixer),
  15310. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15312. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15313. msm_routing_get_port_mixer,
  15314. msm_routing_put_port_mixer),
  15315. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15317. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15318. msm_routing_get_port_mixer,
  15319. msm_routing_put_port_mixer),
  15320. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  15322. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15323. msm_routing_get_port_mixer,
  15324. msm_routing_put_port_mixer),
  15325. };
  15326. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  15327. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15329. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15330. msm_routing_get_port_mixer,
  15331. msm_routing_put_port_mixer),
  15332. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15334. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15335. msm_routing_get_port_mixer,
  15336. msm_routing_put_port_mixer),
  15337. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15339. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15340. msm_routing_get_port_mixer,
  15341. msm_routing_put_port_mixer),
  15342. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15344. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15345. msm_routing_get_port_mixer,
  15346. msm_routing_put_port_mixer),
  15347. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15349. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15350. msm_routing_get_port_mixer,
  15351. msm_routing_put_port_mixer),
  15352. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15354. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15355. msm_routing_get_port_mixer,
  15356. msm_routing_put_port_mixer),
  15357. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15358. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15359. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15360. msm_routing_get_port_mixer,
  15361. msm_routing_put_port_mixer),
  15362. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15364. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15365. msm_routing_get_port_mixer,
  15366. msm_routing_put_port_mixer),
  15367. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15369. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15370. msm_routing_get_port_mixer,
  15371. msm_routing_put_port_mixer),
  15372. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15374. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15375. msm_routing_get_port_mixer,
  15376. msm_routing_put_port_mixer),
  15377. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15379. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15380. msm_routing_get_port_mixer,
  15381. msm_routing_put_port_mixer),
  15382. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15384. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15385. msm_routing_get_port_mixer,
  15386. msm_routing_put_port_mixer),
  15387. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15389. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15390. msm_routing_get_port_mixer,
  15391. msm_routing_put_port_mixer),
  15392. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15394. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15395. msm_routing_get_port_mixer,
  15396. msm_routing_put_port_mixer),
  15397. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15399. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15400. msm_routing_get_port_mixer,
  15401. msm_routing_put_port_mixer),
  15402. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15404. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15405. msm_routing_get_port_mixer,
  15406. msm_routing_put_port_mixer),
  15407. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15409. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15410. msm_routing_get_port_mixer,
  15411. msm_routing_put_port_mixer),
  15412. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15414. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15415. msm_routing_get_port_mixer,
  15416. msm_routing_put_port_mixer),
  15417. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15419. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15420. msm_routing_get_port_mixer,
  15421. msm_routing_put_port_mixer),
  15422. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  15424. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15425. msm_routing_get_port_mixer,
  15426. msm_routing_put_port_mixer),
  15427. };
  15428. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  15429. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15431. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15432. msm_routing_get_port_mixer,
  15433. msm_routing_put_port_mixer),
  15434. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15435. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15436. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15437. msm_routing_get_port_mixer,
  15438. msm_routing_put_port_mixer),
  15439. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15441. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15442. msm_routing_get_port_mixer,
  15443. msm_routing_put_port_mixer),
  15444. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15446. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15447. msm_routing_get_port_mixer,
  15448. msm_routing_put_port_mixer),
  15449. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15451. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15452. msm_routing_get_port_mixer,
  15453. msm_routing_put_port_mixer),
  15454. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15455. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15456. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15457. msm_routing_get_port_mixer,
  15458. msm_routing_put_port_mixer),
  15459. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15461. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15462. msm_routing_get_port_mixer,
  15463. msm_routing_put_port_mixer),
  15464. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15466. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15467. msm_routing_get_port_mixer,
  15468. msm_routing_put_port_mixer),
  15469. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15471. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15472. msm_routing_get_port_mixer,
  15473. msm_routing_put_port_mixer),
  15474. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15476. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15477. msm_routing_get_port_mixer,
  15478. msm_routing_put_port_mixer),
  15479. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15481. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15482. msm_routing_get_port_mixer,
  15483. msm_routing_put_port_mixer),
  15484. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15486. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15487. msm_routing_get_port_mixer,
  15488. msm_routing_put_port_mixer),
  15489. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15491. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15492. msm_routing_get_port_mixer,
  15493. msm_routing_put_port_mixer),
  15494. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15496. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15497. msm_routing_get_port_mixer,
  15498. msm_routing_put_port_mixer),
  15499. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15501. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15502. msm_routing_get_port_mixer,
  15503. msm_routing_put_port_mixer),
  15504. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15505. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15506. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15507. msm_routing_get_port_mixer,
  15508. msm_routing_put_port_mixer),
  15509. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15510. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15511. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15512. msm_routing_get_port_mixer,
  15513. msm_routing_put_port_mixer),
  15514. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15516. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15517. msm_routing_get_port_mixer,
  15518. msm_routing_put_port_mixer),
  15519. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15521. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15522. msm_routing_get_port_mixer,
  15523. msm_routing_put_port_mixer),
  15524. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  15526. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15527. msm_routing_get_port_mixer,
  15528. msm_routing_put_port_mixer),
  15529. };
  15530. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  15531. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15532. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15533. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15534. msm_routing_get_port_mixer,
  15535. msm_routing_put_port_mixer),
  15536. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15538. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15539. msm_routing_get_port_mixer,
  15540. msm_routing_put_port_mixer),
  15541. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15543. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15544. msm_routing_get_port_mixer,
  15545. msm_routing_put_port_mixer),
  15546. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15548. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15549. msm_routing_get_port_mixer,
  15550. msm_routing_put_port_mixer),
  15551. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15553. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15554. msm_routing_get_port_mixer,
  15555. msm_routing_put_port_mixer),
  15556. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15558. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15559. msm_routing_get_port_mixer,
  15560. msm_routing_put_port_mixer),
  15561. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15563. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15564. msm_routing_get_port_mixer,
  15565. msm_routing_put_port_mixer),
  15566. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15568. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15569. msm_routing_get_port_mixer,
  15570. msm_routing_put_port_mixer),
  15571. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15573. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15574. msm_routing_get_port_mixer,
  15575. msm_routing_put_port_mixer),
  15576. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15578. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15579. msm_routing_get_port_mixer,
  15580. msm_routing_put_port_mixer),
  15581. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15583. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15584. msm_routing_get_port_mixer,
  15585. msm_routing_put_port_mixer),
  15586. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15588. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15589. msm_routing_get_port_mixer,
  15590. msm_routing_put_port_mixer),
  15591. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15593. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15594. msm_routing_get_port_mixer,
  15595. msm_routing_put_port_mixer),
  15596. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15598. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15599. msm_routing_get_port_mixer,
  15600. msm_routing_put_port_mixer),
  15601. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15603. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15604. msm_routing_get_port_mixer,
  15605. msm_routing_put_port_mixer),
  15606. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15608. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15609. msm_routing_get_port_mixer,
  15610. msm_routing_put_port_mixer),
  15611. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15613. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15614. msm_routing_get_port_mixer,
  15615. msm_routing_put_port_mixer),
  15616. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15618. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15619. msm_routing_get_port_mixer,
  15620. msm_routing_put_port_mixer),
  15621. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15623. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15624. msm_routing_get_port_mixer,
  15625. msm_routing_put_port_mixer),
  15626. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15628. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15629. msm_routing_get_port_mixer,
  15630. msm_routing_put_port_mixer),
  15631. };
  15632. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  15633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15634. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15635. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15636. msm_routing_get_port_mixer,
  15637. msm_routing_put_port_mixer),
  15638. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15640. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15641. msm_routing_get_port_mixer,
  15642. msm_routing_put_port_mixer),
  15643. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15645. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  15646. msm_routing_get_port_mixer,
  15647. msm_routing_put_port_mixer),
  15648. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15649. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15650. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15651. msm_routing_get_port_mixer,
  15652. msm_routing_put_port_mixer),
  15653. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15654. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15655. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15656. msm_routing_get_port_mixer,
  15657. msm_routing_put_port_mixer),
  15658. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15660. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15661. msm_routing_get_port_mixer,
  15662. msm_routing_put_port_mixer),
  15663. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15664. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15665. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15666. msm_routing_get_port_mixer,
  15667. msm_routing_put_port_mixer),
  15668. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15670. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15671. msm_routing_get_port_mixer,
  15672. msm_routing_put_port_mixer),
  15673. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15674. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15675. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  15676. msm_routing_get_port_mixer,
  15677. msm_routing_put_port_mixer),
  15678. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15680. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  15681. msm_routing_get_port_mixer,
  15682. msm_routing_put_port_mixer),
  15683. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15685. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  15686. msm_routing_get_port_mixer,
  15687. msm_routing_put_port_mixer),
  15688. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15690. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  15691. msm_routing_get_port_mixer,
  15692. msm_routing_put_port_mixer),
  15693. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15695. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15696. msm_routing_get_port_mixer,
  15697. msm_routing_put_port_mixer),
  15698. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15700. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15701. msm_routing_get_port_mixer,
  15702. msm_routing_put_port_mixer),
  15703. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15705. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15706. msm_routing_get_port_mixer,
  15707. msm_routing_put_port_mixer),
  15708. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15709. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15710. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15711. msm_routing_get_port_mixer,
  15712. msm_routing_put_port_mixer),
  15713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15715. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15716. msm_routing_get_port_mixer,
  15717. msm_routing_put_port_mixer),
  15718. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15720. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15721. msm_routing_get_port_mixer,
  15722. msm_routing_put_port_mixer),
  15723. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15725. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15726. msm_routing_get_port_mixer,
  15727. msm_routing_put_port_mixer),
  15728. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  15730. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15731. msm_routing_get_port_mixer,
  15732. msm_routing_put_port_mixer),
  15733. };
  15734. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  15735. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15737. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15738. msm_routing_put_port_mixer),
  15739. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15741. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15742. msm_routing_put_port_mixer),
  15743. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15745. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15746. msm_routing_put_port_mixer),
  15747. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15749. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15750. msm_routing_put_port_mixer),
  15751. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15753. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15754. msm_routing_put_port_mixer),
  15755. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15757. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15758. msm_routing_put_port_mixer),
  15759. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15761. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15762. msm_routing_put_port_mixer),
  15763. };
  15764. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  15765. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15767. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15768. msm_routing_put_port_mixer),
  15769. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15770. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15771. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15772. msm_routing_put_port_mixer),
  15773. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15775. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15776. msm_routing_put_port_mixer),
  15777. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15779. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15780. msm_routing_put_port_mixer),
  15781. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15783. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15784. msm_routing_put_port_mixer),
  15785. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15786. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15787. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15788. msm_routing_put_port_mixer),
  15789. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15791. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15792. msm_routing_put_port_mixer),
  15793. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15795. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15796. msm_routing_put_port_mixer),
  15797. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15799. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15800. msm_routing_put_port_mixer),
  15801. };
  15802. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  15803. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15805. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15806. msm_routing_put_listen_mixer),
  15807. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15809. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15810. msm_routing_put_listen_mixer),
  15811. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15813. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15814. msm_routing_put_listen_mixer),
  15815. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15817. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15818. msm_routing_put_listen_mixer),
  15819. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15821. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15822. msm_routing_put_listen_mixer),
  15823. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15825. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15826. msm_routing_put_listen_mixer),
  15827. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15828. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15829. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15830. msm_routing_put_listen_mixer),
  15831. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15832. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15833. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15834. msm_routing_put_listen_mixer),
  15835. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15836. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15837. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15838. msm_routing_put_listen_mixer),
  15839. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15840. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15841. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15842. msm_routing_put_listen_mixer),
  15843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15845. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15846. msm_routing_put_listen_mixer),
  15847. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15849. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  15850. msm_routing_put_listen_mixer),
  15851. };
  15852. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  15853. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15855. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15856. msm_routing_put_listen_mixer),
  15857. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  15858. SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15860. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15861. msm_routing_put_listen_mixer),
  15862. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15864. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15865. msm_routing_put_listen_mixer),
  15866. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15868. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15869. msm_routing_put_listen_mixer),
  15870. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15872. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15873. msm_routing_put_listen_mixer),
  15874. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15876. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15877. msm_routing_put_listen_mixer),
  15878. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15880. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15881. msm_routing_put_listen_mixer),
  15882. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15884. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15885. msm_routing_put_listen_mixer),
  15886. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15888. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15889. msm_routing_put_listen_mixer),
  15890. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15892. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15893. msm_routing_put_listen_mixer),
  15894. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15896. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15897. msm_routing_put_listen_mixer),
  15898. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15900. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  15901. msm_routing_put_listen_mixer),
  15902. };
  15903. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  15904. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15905. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15906. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15907. msm_routing_put_listen_mixer),
  15908. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15910. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15911. msm_routing_put_listen_mixer),
  15912. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15913. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15914. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15915. msm_routing_put_listen_mixer),
  15916. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15917. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15918. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15919. msm_routing_put_listen_mixer),
  15920. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15921. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15922. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15923. msm_routing_put_listen_mixer),
  15924. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15925. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15926. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15927. msm_routing_put_listen_mixer),
  15928. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15930. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15931. msm_routing_put_listen_mixer),
  15932. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15934. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15935. msm_routing_put_listen_mixer),
  15936. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15938. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15939. msm_routing_put_listen_mixer),
  15940. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15942. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15943. msm_routing_put_listen_mixer),
  15944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15946. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15947. msm_routing_put_listen_mixer),
  15948. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15950. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  15951. msm_routing_put_listen_mixer),
  15952. };
  15953. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  15954. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15956. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15957. msm_routing_put_listen_mixer),
  15958. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15960. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15961. msm_routing_put_listen_mixer),
  15962. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15964. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15965. msm_routing_put_listen_mixer),
  15966. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  15968. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15969. msm_routing_put_listen_mixer),
  15970. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  15972. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15973. msm_routing_put_listen_mixer),
  15974. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15976. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15977. msm_routing_put_listen_mixer),
  15978. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15980. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15981. msm_routing_put_listen_mixer),
  15982. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15984. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15985. msm_routing_put_listen_mixer),
  15986. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15988. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15989. msm_routing_put_listen_mixer),
  15990. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15992. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15993. msm_routing_put_listen_mixer),
  15994. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15996. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  15997. msm_routing_put_listen_mixer),
  15998. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16000. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  16001. msm_routing_put_listen_mixer),
  16002. };
  16003. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  16004. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16005. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16006. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16007. msm_routing_put_listen_mixer),
  16008. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16009. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16010. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16011. msm_routing_put_listen_mixer),
  16012. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16013. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16014. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16015. msm_routing_put_listen_mixer),
  16016. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16017. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16018. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16019. msm_routing_put_listen_mixer),
  16020. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16022. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16023. msm_routing_put_listen_mixer),
  16024. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16025. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16026. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16027. msm_routing_put_listen_mixer),
  16028. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16030. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16031. msm_routing_put_listen_mixer),
  16032. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16034. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16035. msm_routing_put_listen_mixer),
  16036. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16038. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16039. msm_routing_put_listen_mixer),
  16040. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16042. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16043. msm_routing_put_listen_mixer),
  16044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16046. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16047. msm_routing_put_listen_mixer),
  16048. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16050. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  16051. msm_routing_put_listen_mixer),
  16052. };
  16053. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  16054. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16056. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16057. msm_routing_put_listen_mixer),
  16058. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16060. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16061. msm_routing_put_listen_mixer),
  16062. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16064. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16065. msm_routing_put_listen_mixer),
  16066. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16068. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16069. msm_routing_put_listen_mixer),
  16070. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16072. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16073. msm_routing_put_listen_mixer),
  16074. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16076. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16077. msm_routing_put_listen_mixer),
  16078. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16080. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16081. msm_routing_put_listen_mixer),
  16082. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16084. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16085. msm_routing_put_listen_mixer),
  16086. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16087. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16088. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16089. msm_routing_put_listen_mixer),
  16090. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16092. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16093. msm_routing_put_listen_mixer),
  16094. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16096. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16097. msm_routing_put_listen_mixer),
  16098. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16099. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16100. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  16101. msm_routing_put_listen_mixer),
  16102. };
  16103. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  16104. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16106. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16107. msm_routing_put_listen_mixer),
  16108. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16110. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16111. msm_routing_put_listen_mixer),
  16112. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16114. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16115. msm_routing_put_listen_mixer),
  16116. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16118. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16119. msm_routing_put_listen_mixer),
  16120. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16122. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16123. msm_routing_put_listen_mixer),
  16124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16126. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16127. msm_routing_put_listen_mixer),
  16128. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16130. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16131. msm_routing_put_listen_mixer),
  16132. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16134. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16135. msm_routing_put_listen_mixer),
  16136. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16138. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16139. msm_routing_put_listen_mixer),
  16140. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16142. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16143. msm_routing_put_listen_mixer),
  16144. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16146. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16147. msm_routing_put_listen_mixer),
  16148. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16149. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16150. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  16151. msm_routing_put_listen_mixer),
  16152. };
  16153. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  16154. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16156. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16157. msm_routing_put_listen_mixer),
  16158. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16160. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16161. msm_routing_put_listen_mixer),
  16162. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16164. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16165. msm_routing_put_listen_mixer),
  16166. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  16168. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16169. msm_routing_put_listen_mixer),
  16170. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  16172. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16173. msm_routing_put_listen_mixer),
  16174. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16176. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16177. msm_routing_put_listen_mixer),
  16178. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16179. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16180. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16181. msm_routing_put_listen_mixer),
  16182. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16184. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16185. msm_routing_put_listen_mixer),
  16186. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  16188. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16189. msm_routing_put_listen_mixer),
  16190. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  16192. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16193. msm_routing_put_listen_mixer),
  16194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  16196. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16197. msm_routing_put_listen_mixer),
  16198. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  16200. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  16201. msm_routing_put_listen_mixer),
  16202. };
  16203. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  16204. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16205. 0, 1, 0, msm_routing_get_switch_mixer,
  16206. msm_routing_put_switch_mixer);
  16207. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  16208. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16209. 0, 1, 0, msm_routing_get_switch_mixer,
  16210. msm_routing_put_switch_mixer);
  16211. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  16212. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16213. 0, 1, 0, msm_routing_get_switch_mixer,
  16214. msm_routing_put_switch_mixer);
  16215. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  16216. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16217. 0, 1, 0, msm_routing_get_switch_mixer,
  16218. msm_routing_put_switch_mixer);
  16219. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  16220. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16221. 0, 1, 0, msm_routing_get_switch_mixer,
  16222. msm_routing_put_switch_mixer);
  16223. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  16224. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16225. 0, 1, 0, msm_routing_get_switch_mixer,
  16226. msm_routing_put_switch_mixer);
  16227. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  16228. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16229. 0, 1, 0, msm_routing_get_switch_mixer,
  16230. msm_routing_put_switch_mixer);
  16231. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  16232. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16233. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  16234. msm_routing_put_fm_pcmrx_switch_mixer);
  16235. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  16236. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16237. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  16238. msm_routing_put_int0_mi2s_switch_mixer);
  16239. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  16240. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16241. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  16242. msm_routing_put_int4_mi2s_switch_mixer);
  16243. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  16244. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16245. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  16246. msm_routing_put_pri_mi2s_switch_mixer);
  16247. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  16248. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16249. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  16250. msm_routing_put_sec_mi2s_switch_mixer);
  16251. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  16252. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16253. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  16254. msm_routing_put_tert_mi2s_switch_mixer);
  16255. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  16256. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16257. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  16258. msm_routing_put_quat_mi2s_switch_mixer);
  16259. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  16260. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16261. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  16262. msm_routing_put_quin_mi2s_switch_mixer);
  16263. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  16264. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16265. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16266. msm_routing_put_hfp_switch_mixer);
  16267. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  16268. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16269. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16270. msm_routing_put_hfp_switch_mixer);
  16271. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  16272. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16273. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16274. msm_routing_put_hfp_switch_mixer);
  16275. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  16276. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16277. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  16278. msm_routing_put_hfp_switch_mixer);
  16279. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  16280. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16281. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  16282. msm_routing_put_usb_switch_mixer);
  16283. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  16284. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  16285. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  16286. msm_routing_a2dp_switch_mixer_put);
  16287. static const struct soc_enum lsm_port_enum =
  16288. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  16289. static const char * const lsm_func_text[] = {
  16290. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  16291. };
  16292. static const struct soc_enum lsm_func_enum =
  16293. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  16294. static const struct snd_kcontrol_new lsm_controls[] = {
  16295. /* kcontrol of lsm_function */
  16296. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16297. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16298. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16299. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16300. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16301. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16302. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16303. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16304. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16305. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16306. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16307. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16308. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16309. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16310. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16311. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16312. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16313. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16314. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16315. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16316. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  16317. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  16318. /* kcontrol of lsm_port */
  16319. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  16320. msm_routing_lsm_port_get,
  16321. msm_routing_lsm_port_put),
  16322. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  16323. msm_routing_lsm_port_get,
  16324. msm_routing_lsm_port_put),
  16325. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  16326. msm_routing_lsm_port_get,
  16327. msm_routing_lsm_port_put),
  16328. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  16329. msm_routing_lsm_port_get,
  16330. msm_routing_lsm_port_put),
  16331. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  16332. msm_routing_lsm_port_get,
  16333. msm_routing_lsm_port_put),
  16334. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  16335. msm_routing_lsm_port_get,
  16336. msm_routing_lsm_port_put),
  16337. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  16338. msm_routing_lsm_port_get,
  16339. msm_routing_lsm_port_put),
  16340. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  16341. msm_routing_lsm_port_get,
  16342. msm_routing_lsm_port_put),
  16343. };
  16344. static const char * const aanc_slim_0_rx_text[] = {
  16345. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  16346. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  16347. };
  16348. static const struct soc_enum aanc_slim_0_rx_enum =
  16349. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  16350. aanc_slim_0_rx_text);
  16351. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  16352. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  16353. msm_routing_slim_0_rx_aanc_mux_get,
  16354. msm_routing_slim_0_rx_aanc_mux_put)
  16355. };
  16356. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  16357. struct snd_ctl_elem_value *ucontrol)
  16358. {
  16359. ucontrol->value.integer.value[0] = aanc_level;
  16360. return 0;
  16361. }
  16362. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  16363. struct snd_ctl_elem_value *ucontrol)
  16364. {
  16365. int ret = 0;
  16366. mutex_lock(&routing_lock);
  16367. aanc_level = ucontrol->value.integer.value[0];
  16368. pr_debug("%s: value: %ld\n",
  16369. __func__, ucontrol->value.integer.value[0]);
  16370. ret = afe_set_aanc_noise_level(aanc_level);
  16371. mutex_unlock(&routing_lock);
  16372. return ret;
  16373. }
  16374. static const struct snd_kcontrol_new aanc_noise_level[] = {
  16375. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  16376. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  16377. };
  16378. static int msm_routing_get_stereo_to_custom_stereo_control(
  16379. struct snd_kcontrol *kcontrol,
  16380. struct snd_ctl_elem_value *ucontrol)
  16381. {
  16382. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  16383. return 0;
  16384. }
  16385. static int msm_routing_put_stereo_to_custom_stereo_control(
  16386. struct snd_kcontrol *kcontrol,
  16387. struct snd_ctl_elem_value *ucontrol)
  16388. {
  16389. int flag = 0, i = 0, rc = 0, idx = 0;
  16390. int be_index = 0, port_id, topo_id;
  16391. unsigned int session_id = 0;
  16392. uint16_t op_FL_ip_FL_weight = 0;
  16393. uint16_t op_FL_ip_FR_weight = 0;
  16394. uint16_t op_FR_ip_FL_weight = 0;
  16395. uint16_t op_FR_ip_FR_weight = 0;
  16396. flag = ucontrol->value.integer.value[0];
  16397. pr_debug("%s E flag %d\n", __func__, flag);
  16398. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  16399. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  16400. __func__, is_custom_stereo_on, flag);
  16401. return 0;
  16402. }
  16403. is_custom_stereo_on = flag ? true : false;
  16404. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  16405. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  16406. port_id = msm_bedais[be_index].port_id;
  16407. if (!msm_bedais[be_index].active)
  16408. continue;
  16409. if ((port_id != SLIMBUS_0_RX) &&
  16410. (port_id != RT_PROXY_PORT_001_RX) &&
  16411. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  16412. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  16413. continue;
  16414. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  16415. MSM_FRONTEND_DAI_MM_SIZE) {
  16416. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  16417. LEGACY_PCM_MODE)
  16418. goto skip_send_custom_stereo;
  16419. session_id =
  16420. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  16421. if (is_custom_stereo_on) {
  16422. op_FL_ip_FL_weight =
  16423. Q14_GAIN_ZERO_POINT_FIVE;
  16424. op_FL_ip_FR_weight =
  16425. Q14_GAIN_ZERO_POINT_FIVE;
  16426. op_FR_ip_FL_weight =
  16427. Q14_GAIN_ZERO_POINT_FIVE;
  16428. op_FR_ip_FR_weight =
  16429. Q14_GAIN_ZERO_POINT_FIVE;
  16430. } else {
  16431. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  16432. op_FL_ip_FR_weight = 0;
  16433. op_FR_ip_FL_weight = 0;
  16434. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  16435. }
  16436. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16437. unsigned long copp =
  16438. session_copp_map[i]
  16439. [SESSION_TYPE_RX][be_index];
  16440. if (!test_bit(idx, &copp))
  16441. goto skip_send_custom_stereo;
  16442. topo_id = adm_get_topology_for_port_copp_idx(
  16443. msm_bedais[be_index].port_id, idx);
  16444. if (topo_id < 0)
  16445. pr_debug("%s:Err:custom stereo topo %d",
  16446. __func__, topo_id);
  16447. pr_debug("idx %d\n", idx);
  16448. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  16449. rc = msm_ds2_dap_set_custom_stereo_onoff
  16450. (msm_bedais[be_index].port_id,
  16451. idx, is_custom_stereo_on);
  16452. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  16453. rc = dolby_dap_set_custom_stereo_onoff(
  16454. msm_bedais[be_index].port_id,
  16455. idx, is_custom_stereo_on);
  16456. else
  16457. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  16458. (msm_bedais[be_index].port_id,
  16459. idx, session_id,
  16460. op_FL_ip_FL_weight,
  16461. op_FL_ip_FR_weight,
  16462. op_FR_ip_FL_weight,
  16463. op_FR_ip_FR_weight);
  16464. if (rc < 0)
  16465. skip_send_custom_stereo:
  16466. pr_err("%s: err setting custom stereo\n",
  16467. __func__);
  16468. }
  16469. }
  16470. }
  16471. return 0;
  16472. }
  16473. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  16474. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  16475. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  16476. msm_routing_put_stereo_to_custom_stereo_control),
  16477. };
  16478. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16479. struct snd_ctl_elem_value *ucontrol)
  16480. {
  16481. return 0;
  16482. }
  16483. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  16484. struct snd_ctl_elem_value *ucontrol)
  16485. {
  16486. int i = 0, j;
  16487. int num_app_types = ucontrol->value.integer.value[i++];
  16488. pr_debug("%s\n", __func__);
  16489. memset(app_type_cfg, 0, MAX_APP_TYPES*
  16490. sizeof(struct msm_pcm_routing_app_type_data));
  16491. if (num_app_types > MAX_APP_TYPES) {
  16492. pr_err("%s: number of app types exceed the max supported\n",
  16493. __func__);
  16494. return -EINVAL;
  16495. }
  16496. for (j = 0; j < num_app_types; j++) {
  16497. app_type_cfg[j].app_type =
  16498. ucontrol->value.integer.value[i++];
  16499. app_type_cfg[j].sample_rate =
  16500. ucontrol->value.integer.value[i++];
  16501. app_type_cfg[j].bit_width =
  16502. ucontrol->value.integer.value[i++];
  16503. }
  16504. return 0;
  16505. }
  16506. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  16507. struct snd_ctl_elem_value *ucontrol)
  16508. {
  16509. int j, fe_id, be_id, port_type;
  16510. int ret = 0;
  16511. unsigned long copp;
  16512. struct msm_pcm_routing_bdai_data *bedai;
  16513. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16514. SESSION_TYPE_RX;
  16515. int app_type = ucontrol->value.integer.value[1];
  16516. int gain = (ucontrol->value.integer.value[2] +
  16517. ucontrol->value.integer.value[3])/2;
  16518. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16519. MSM_AFE_PORT_TYPE_TX;
  16520. mutex_lock(&routing_lock);
  16521. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16522. if (is_be_dai_extproc(be_id))
  16523. continue;
  16524. bedai = &msm_bedais[be_id];
  16525. if (afe_get_port_type(bedai->port_id) != port_type)
  16526. continue;
  16527. if (!bedai->active)
  16528. continue;
  16529. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16530. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16531. continue;
  16532. if (app_type !=
  16533. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16534. continue;
  16535. copp = session_copp_map[fe_id][dir][be_id];
  16536. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  16537. if (!test_bit(j, &copp))
  16538. continue;
  16539. ret |= adm_set_volume(bedai->port_id, j, gain);
  16540. }
  16541. }
  16542. }
  16543. mutex_unlock(&routing_lock);
  16544. return ret ? -EINVAL : 0;
  16545. }
  16546. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  16547. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  16548. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  16549. msm_routing_put_app_type_cfg_control),
  16550. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  16551. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  16552. };
  16553. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  16554. struct snd_ctl_elem_value *ucontrol)
  16555. {
  16556. int copp_idx, fe_id, be_id, port_type;
  16557. int ret = 0;
  16558. unsigned long copp;
  16559. struct msm_pcm_routing_bdai_data *bedai;
  16560. u8 *packed_params = NULL;
  16561. struct param_hdr_v3 param_hdr;
  16562. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  16563. sizeof(uint32_t));
  16564. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  16565. SESSION_TYPE_RX;
  16566. int app_type = ucontrol->value.integer.value[1];
  16567. int module_id = ucontrol->value.integer.value[2];
  16568. int instance_id = ucontrol->value.integer.value[3];
  16569. int param_id = ucontrol->value.integer.value[4];
  16570. int param_value = ucontrol->value.integer.value[5];
  16571. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  16572. MSM_AFE_PORT_TYPE_TX;
  16573. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  16574. __func__, app_type, module_id,
  16575. instance_id, param_id, param_value);
  16576. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  16577. if (!packed_params)
  16578. return -ENOMEM;
  16579. memset(&param_hdr, 0, sizeof(param_hdr));
  16580. param_hdr.module_id = module_id;
  16581. param_hdr.instance_id = instance_id;
  16582. param_hdr.param_id = param_id;
  16583. param_hdr.param_size = sizeof(uint32_t);
  16584. packed_param_size = 0;
  16585. mutex_lock(&routing_lock);
  16586. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  16587. if (is_be_dai_extproc(be_id))
  16588. continue;
  16589. bedai = &msm_bedais[be_id];
  16590. if (afe_get_port_type(bedai->port_id) != port_type)
  16591. continue;
  16592. if (!bedai->active)
  16593. continue;
  16594. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  16595. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  16596. continue;
  16597. if (app_type !=
  16598. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  16599. continue;
  16600. copp = session_copp_map[fe_id][dir][be_id];
  16601. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  16602. copp_idx++) {
  16603. if (!test_bit(copp_idx, &copp))
  16604. continue;
  16605. ret = q6common_pack_pp_params(packed_params,
  16606. &param_hdr,
  16607. (u8 *) &param_value,
  16608. &packed_param_size);
  16609. if (ret) {
  16610. pr_err("%s: Failed to pack params, error %d\n",
  16611. __func__, ret);
  16612. goto done;
  16613. }
  16614. ret = adm_set_pp_params(bedai->port_id,
  16615. copp_idx, NULL,
  16616. packed_params,
  16617. packed_param_size);
  16618. if (ret) {
  16619. pr_err("%s: Setting param failed with err=%d\n",
  16620. __func__, ret);
  16621. ret = -EINVAL;
  16622. goto done;
  16623. }
  16624. }
  16625. }
  16626. }
  16627. done:
  16628. mutex_unlock(&routing_lock);
  16629. kfree(packed_params);
  16630. return ret;
  16631. }
  16632. static const struct snd_kcontrol_new module_cfg_controls[] = {
  16633. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  16634. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  16635. };
  16636. static int msm_routing_get_lsm_app_type_cfg_control(
  16637. struct snd_kcontrol *kcontrol,
  16638. struct snd_ctl_elem_value *ucontrol)
  16639. {
  16640. int shift = ((struct soc_multi_mixer_control *)
  16641. kcontrol->private_value)->shift;
  16642. int i = 0, j = 0;
  16643. ucontrol->value.integer.value[i] = num_app_cfg_types;
  16644. for (j = 0; j < num_app_cfg_types; ++j) {
  16645. ucontrol->value.integer.value[++i] =
  16646. lsm_app_type_cfg[j].app_type;
  16647. ucontrol->value.integer.value[++i] =
  16648. lsm_app_type_cfg[j].sample_rate;
  16649. ucontrol->value.integer.value[++i] =
  16650. lsm_app_type_cfg[j].bit_width;
  16651. if (shift == 1)
  16652. ucontrol->value.integer.value[++i] =
  16653. lsm_app_type_cfg[j].num_out_channels;
  16654. }
  16655. return 0;
  16656. }
  16657. static int msm_routing_put_lsm_app_type_cfg_control(
  16658. struct snd_kcontrol *kcontrol,
  16659. struct snd_ctl_elem_value *ucontrol)
  16660. {
  16661. int shift = ((struct soc_multi_mixer_control *)
  16662. kcontrol->private_value)->shift;
  16663. int i = 0, j;
  16664. num_app_cfg_types = ucontrol->value.integer.value[i++];
  16665. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  16666. sizeof(struct msm_pcm_routing_app_type_data));
  16667. if (num_app_cfg_types > MAX_APP_TYPES) {
  16668. pr_err("%s: number of app types exceed the max supported\n",
  16669. __func__);
  16670. return -EINVAL;
  16671. }
  16672. for (j = 0; j < num_app_cfg_types; j++) {
  16673. lsm_app_type_cfg[j].app_type =
  16674. ucontrol->value.integer.value[i++];
  16675. lsm_app_type_cfg[j].sample_rate =
  16676. ucontrol->value.integer.value[i++];
  16677. lsm_app_type_cfg[j].bit_width =
  16678. ucontrol->value.integer.value[i++];
  16679. /* Shift of 1 indicates this is V2 mixer control */
  16680. if (shift == 1)
  16681. lsm_app_type_cfg[j].num_out_channels =
  16682. ucontrol->value.integer.value[i++];
  16683. }
  16684. return 0;
  16685. }
  16686. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  16687. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  16688. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16689. msm_routing_put_lsm_app_type_cfg_control),
  16690. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  16691. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  16692. msm_routing_put_lsm_app_type_cfg_control),
  16693. };
  16694. static int msm_routing_get_use_ds1_or_ds2_control(
  16695. struct snd_kcontrol *kcontrol,
  16696. struct snd_ctl_elem_value *ucontrol)
  16697. {
  16698. ucontrol->value.integer.value[0] = is_ds2_on;
  16699. return 0;
  16700. }
  16701. static int msm_routing_put_use_ds1_or_ds2_control(
  16702. struct snd_kcontrol *kcontrol,
  16703. struct snd_ctl_elem_value *ucontrol)
  16704. {
  16705. is_ds2_on = ucontrol->value.integer.value[0];
  16706. return 0;
  16707. }
  16708. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  16709. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  16710. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  16711. msm_routing_put_use_ds1_or_ds2_control),
  16712. };
  16713. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  16714. struct snd_ctl_elem_value *ucontrol) {
  16715. int rc = 0;
  16716. int be_idx = 0;
  16717. char *param_value;
  16718. int *update_param_value;
  16719. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  16720. struct param_hdr_v3 param_hdr;
  16721. param_value = kzalloc(param_size, GFP_KERNEL);
  16722. if (!param_value)
  16723. return -ENOMEM;
  16724. memset(&param_hdr, 0, sizeof(param_hdr));
  16725. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  16726. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  16727. break;
  16728. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  16729. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  16730. param_hdr.instance_id = INSTANCE_ID_0;
  16731. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  16732. param_hdr.param_size = param_size;
  16733. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  16734. NULL, &param_hdr, (u8 *) param_value);
  16735. if (rc) {
  16736. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  16737. kfree(param_value);
  16738. return -EINVAL;
  16739. }
  16740. update_param_value = (int *)param_value;
  16741. ucontrol->value.integer.value[0] = update_param_value[0];
  16742. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  16743. __func__, update_param_value[0]);
  16744. }
  16745. kfree(param_value);
  16746. return 0;
  16747. }
  16748. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  16749. struct snd_ctl_elem_value *ucontrol)
  16750. {
  16751. voc_session_id = ucontrol->value.integer.value[0];
  16752. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  16753. return 0;
  16754. }
  16755. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  16756. struct snd_ctl_elem_value *ucontrol)
  16757. {
  16758. ucontrol->value.integer.value[0] = voc_session_id;
  16759. return 0;
  16760. }
  16761. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  16762. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  16763. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  16764. msm_voc_session_id_put),
  16765. };
  16766. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  16767. struct snd_ctl_elem_info *uinfo)
  16768. {
  16769. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16770. uinfo->count = sizeof(struct sound_focus_param);
  16771. return 0;
  16772. }
  16773. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  16774. struct snd_ctl_elem_value *ucontrol)
  16775. {
  16776. int ret = 0;
  16777. struct sound_focus_param soundFocusData;
  16778. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16779. sizeof(struct sound_focus_param));
  16780. ret = voc_set_sound_focus(soundFocusData);
  16781. if (ret) {
  16782. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16783. __func__, ret);
  16784. ret = -EINVAL;
  16785. }
  16786. return ret;
  16787. }
  16788. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  16789. struct snd_ctl_elem_value *ucontrol)
  16790. {
  16791. int ret = 0;
  16792. struct sound_focus_param soundFocusData;
  16793. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  16794. ret = voc_get_sound_focus(&soundFocusData);
  16795. if (ret) {
  16796. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  16797. __func__, ret);
  16798. ret = -EINVAL;
  16799. goto done;
  16800. }
  16801. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16802. sizeof(struct sound_focus_param));
  16803. done:
  16804. return ret;
  16805. }
  16806. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  16807. struct snd_ctl_elem_info *uinfo)
  16808. {
  16809. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  16810. uinfo->count = sizeof(struct source_tracking_param);
  16811. return 0;
  16812. }
  16813. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  16814. struct snd_ctl_elem_value *ucontrol)
  16815. {
  16816. int ret = 0;
  16817. struct source_tracking_param sourceTrackingData;
  16818. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  16819. ret = voc_get_source_tracking(&sourceTrackingData);
  16820. if (ret) {
  16821. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  16822. __func__, ret);
  16823. ret = -EINVAL;
  16824. goto done;
  16825. }
  16826. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  16827. sizeof(struct source_tracking_param));
  16828. done:
  16829. return ret;
  16830. }
  16831. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  16832. int *copp_idx)
  16833. {
  16834. int i, idx, be_idx;
  16835. int ret = 0;
  16836. unsigned long copp;
  16837. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  16838. ret = q6audio_validate_port(port_id);
  16839. if (ret < 0) {
  16840. pr_err("%s: port validation failed id 0x%x ret %d\n",
  16841. __func__, port_id, ret);
  16842. ret = -EINVAL;
  16843. goto done;
  16844. }
  16845. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  16846. if (msm_bedais[be_idx].port_id == port_id)
  16847. break;
  16848. }
  16849. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  16850. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  16851. ret = -EINVAL;
  16852. goto done;
  16853. }
  16854. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  16855. MSM_FRONTEND_DAI_MM_SIZE) {
  16856. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  16857. copp = session_copp_map[i]
  16858. [session_type][be_idx];
  16859. if (test_bit(idx, &copp))
  16860. break;
  16861. }
  16862. if (idx >= MAX_COPPS_PER_PORT)
  16863. continue;
  16864. else
  16865. break;
  16866. }
  16867. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  16868. pr_debug("%s: Invalid FE, exiting\n", __func__);
  16869. ret = -EINVAL;
  16870. goto done;
  16871. }
  16872. *copp_idx = idx;
  16873. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  16874. done:
  16875. return ret;
  16876. }
  16877. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  16878. const char *prefix, int *port_id)
  16879. {
  16880. int ret = 0;
  16881. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  16882. /*
  16883. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  16884. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  16885. * and compare the string with the backend name to derive the port id.
  16886. */
  16887. if (!strcmp(kcontrol->id.name + strlen(prefix),
  16888. "SLIMBUS_0")) {
  16889. *port_id = SLIMBUS_0_TX;
  16890. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16891. "TERT_MI2S")) {
  16892. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  16893. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16894. "INT3_MI2S")) {
  16895. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  16896. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16897. "VA_CDC_DMA_TX_0")) {
  16898. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  16899. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16900. "TX_CDC_DMA_TX_3")) {
  16901. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  16902. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  16903. "QUIN_TDM_TX_0")) {
  16904. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  16905. } else {
  16906. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  16907. __func__, kcontrol->id.name);
  16908. ret = -EINVAL;
  16909. goto done;
  16910. }
  16911. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  16912. __func__, kcontrol->id.name, *port_id);
  16913. done:
  16914. return ret;
  16915. }
  16916. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  16917. struct snd_ctl_elem_value *ucontrol)
  16918. {
  16919. int ret = 0;
  16920. struct sound_focus_param soundFocusData;
  16921. int port_id, copp_idx;
  16922. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16923. "Sound Focus Audio Tx ", &port_id);
  16924. if (ret != 0) {
  16925. pr_err("%s: Error in deriving port id, err=%d\n",
  16926. __func__, ret);
  16927. ret = -EINVAL;
  16928. goto done;
  16929. }
  16930. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16931. &copp_idx);
  16932. if (ret) {
  16933. pr_err("%s: Could not get copp idx for port_id=%d\n",
  16934. __func__, port_id);
  16935. ret = -EINVAL;
  16936. goto done;
  16937. }
  16938. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  16939. sizeof(struct sound_focus_param));
  16940. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  16941. if (ret) {
  16942. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  16943. __func__, ret);
  16944. ret = -EINVAL;
  16945. goto done;
  16946. }
  16947. done:
  16948. return ret;
  16949. }
  16950. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  16951. struct snd_ctl_elem_value *ucontrol)
  16952. {
  16953. int ret = 0;
  16954. struct sound_focus_param soundFocusData;
  16955. int port_id, copp_idx;
  16956. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16957. "Sound Focus Audio Tx ", &port_id);
  16958. if (ret) {
  16959. pr_err("%s: Error in deriving port id, err=%d\n",
  16960. __func__, ret);
  16961. ret = -EINVAL;
  16962. goto done;
  16963. }
  16964. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16965. &copp_idx);
  16966. if (ret) {
  16967. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  16968. __func__, port_id);
  16969. ret = -EINVAL;
  16970. goto done;
  16971. }
  16972. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  16973. if (ret) {
  16974. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  16975. __func__, ret);
  16976. ret = -EINVAL;
  16977. goto done;
  16978. }
  16979. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  16980. sizeof(struct sound_focus_param));
  16981. done:
  16982. return ret;
  16983. }
  16984. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  16985. struct snd_ctl_elem_value *ucontrol)
  16986. {
  16987. int ret = 0;
  16988. struct source_tracking_param sourceTrackingData;
  16989. int port_id, copp_idx;
  16990. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  16991. "Source Tracking Audio Tx ", &port_id);
  16992. if (ret) {
  16993. pr_err("%s: Error in deriving port id, err=%d\n",
  16994. __func__, ret);
  16995. ret = -EINVAL;
  16996. goto done;
  16997. }
  16998. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  16999. &copp_idx);
  17000. if (ret) {
  17001. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  17002. __func__, port_id);
  17003. ret = -EINVAL;
  17004. goto done;
  17005. }
  17006. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  17007. if (ret) {
  17008. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  17009. __func__, ret);
  17010. ret = -EINVAL;
  17011. goto done;
  17012. }
  17013. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  17014. sizeof(struct source_tracking_param));
  17015. done:
  17016. return ret;
  17017. }
  17018. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  17019. {
  17020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17021. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17022. .name = "Sound Focus Voice Tx SLIMBUS_0",
  17023. .info = msm_sound_focus_info,
  17024. .get = msm_voice_sound_focus_get,
  17025. .put = msm_voice_sound_focus_put,
  17026. },
  17027. {
  17028. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17030. .name = "Source Tracking Voice Tx SLIMBUS_0",
  17031. .info = msm_source_tracking_info,
  17032. .get = msm_voice_source_tracking_get,
  17033. },
  17034. {
  17035. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17036. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17037. .name = "Sound Focus Audio Tx SLIMBUS_0",
  17038. .info = msm_sound_focus_info,
  17039. .get = msm_audio_sound_focus_get,
  17040. .put = msm_audio_sound_focus_put,
  17041. },
  17042. {
  17043. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17045. .name = "Source Tracking Audio Tx SLIMBUS_0",
  17046. .info = msm_source_tracking_info,
  17047. .get = msm_audio_source_tracking_get,
  17048. },
  17049. {
  17050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17052. .name = "Sound Focus Voice Tx TERT_MI2S",
  17053. .info = msm_sound_focus_info,
  17054. .get = msm_voice_sound_focus_get,
  17055. .put = msm_voice_sound_focus_put,
  17056. },
  17057. {
  17058. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17060. .name = "Source Tracking Voice Tx TERT_MI2S",
  17061. .info = msm_source_tracking_info,
  17062. .get = msm_voice_source_tracking_get,
  17063. },
  17064. {
  17065. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17067. .name = "Sound Focus Audio Tx TERT_MI2S",
  17068. .info = msm_sound_focus_info,
  17069. .get = msm_audio_sound_focus_get,
  17070. .put = msm_audio_sound_focus_put,
  17071. },
  17072. {
  17073. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17074. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17075. .name = "Source Tracking Audio Tx TERT_MI2S",
  17076. .info = msm_source_tracking_info,
  17077. .get = msm_audio_source_tracking_get,
  17078. },
  17079. {
  17080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17081. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17082. .name = "Sound Focus Voice Tx INT3_MI2S",
  17083. .info = msm_sound_focus_info,
  17084. .get = msm_voice_sound_focus_get,
  17085. .put = msm_voice_sound_focus_put,
  17086. },
  17087. {
  17088. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17090. .name = "Source Tracking Voice Tx INT3_MI2S",
  17091. .info = msm_source_tracking_info,
  17092. .get = msm_voice_source_tracking_get,
  17093. },
  17094. {
  17095. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17096. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17097. .name = "Sound Focus Audio Tx INT3_MI2S",
  17098. .info = msm_sound_focus_info,
  17099. .get = msm_audio_sound_focus_get,
  17100. .put = msm_audio_sound_focus_put,
  17101. },
  17102. {
  17103. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17104. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17105. .name = "Source Tracking Audio Tx INT3_MI2S",
  17106. .info = msm_source_tracking_info,
  17107. .get = msm_audio_source_tracking_get,
  17108. },
  17109. {
  17110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17111. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17112. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  17113. .info = msm_sound_focus_info,
  17114. .get = msm_voice_sound_focus_get,
  17115. .put = msm_voice_sound_focus_put,
  17116. },
  17117. {
  17118. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17120. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  17121. .info = msm_source_tracking_info,
  17122. .get = msm_voice_source_tracking_get,
  17123. },
  17124. {
  17125. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17126. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17127. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  17128. .info = msm_sound_focus_info,
  17129. .get = msm_audio_sound_focus_get,
  17130. .put = msm_audio_sound_focus_put,
  17131. },
  17132. {
  17133. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17134. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17135. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  17136. .info = msm_source_tracking_info,
  17137. .get = msm_audio_source_tracking_get,
  17138. },
  17139. {
  17140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17141. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17142. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  17143. .info = msm_sound_focus_info,
  17144. .get = msm_voice_sound_focus_get,
  17145. .put = msm_voice_sound_focus_put,
  17146. },
  17147. {
  17148. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17150. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  17151. .info = msm_source_tracking_info,
  17152. .get = msm_voice_source_tracking_get,
  17153. },
  17154. {
  17155. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17156. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17157. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  17158. .info = msm_sound_focus_info,
  17159. .get = msm_audio_sound_focus_get,
  17160. .put = msm_audio_sound_focus_put,
  17161. },
  17162. {
  17163. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17164. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17165. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  17166. .info = msm_source_tracking_info,
  17167. .get = msm_audio_source_tracking_get,
  17168. },
  17169. {
  17170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17171. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17172. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  17173. .info = msm_sound_focus_info,
  17174. .get = msm_voice_sound_focus_get,
  17175. .put = msm_voice_sound_focus_put,
  17176. },
  17177. {
  17178. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17180. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  17181. .info = msm_source_tracking_info,
  17182. .get = msm_voice_source_tracking_get,
  17183. },
  17184. {
  17185. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  17186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17187. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  17188. .info = msm_sound_focus_info,
  17189. .get = msm_audio_sound_focus_get,
  17190. .put = msm_audio_sound_focus_put,
  17191. },
  17192. {
  17193. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  17194. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  17195. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  17196. .info = msm_source_tracking_info,
  17197. .get = msm_audio_source_tracking_get,
  17198. },
  17199. };
  17200. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  17201. struct snd_ctl_elem_value *ucontrol)
  17202. {
  17203. int ret = 0;
  17204. int item;
  17205. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17206. pr_debug("%s item is %d\n", __func__,
  17207. ucontrol->value.enumerated.item[0]);
  17208. mutex_lock(&routing_lock);
  17209. item = ucontrol->value.enumerated.item[0];
  17210. if (item < e->items) {
  17211. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17212. __func__, e->shift_l, e->values[item]);
  17213. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17214. e->values[item] < MSM_BACKEND_DAI_MAX)
  17215. /* Enable feedback TX path */
  17216. ret = afe_spk_prot_feed_back_cfg(
  17217. msm_bedais[e->values[item]].port_id,
  17218. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  17219. else {
  17220. pr_debug("%s values are out of range item %d\n",
  17221. __func__, e->values[item]);
  17222. /* Disable feedback TX path */
  17223. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17224. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  17225. else
  17226. ret = -EINVAL;
  17227. }
  17228. } else {
  17229. pr_err("%s item value is out of range item\n", __func__);
  17230. ret = -EINVAL;
  17231. }
  17232. mutex_unlock(&routing_lock);
  17233. return ret;
  17234. }
  17235. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  17236. struct snd_ctl_elem_value *ucontrol)
  17237. {
  17238. int ret = 0;
  17239. int item;
  17240. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  17241. pr_debug("%s item is %d\n", __func__,
  17242. ucontrol->value.enumerated.item[0]);
  17243. mutex_lock(&routing_lock);
  17244. item = ucontrol->value.enumerated.item[0];
  17245. if (item < e->items) {
  17246. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  17247. __func__, e->shift_l, e->values[item]);
  17248. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  17249. e->values[item] < MSM_BACKEND_DAI_MAX)
  17250. /* Enable feedback TX path */
  17251. ret = afe_spk_prot_feed_back_cfg(
  17252. msm_bedais[e->values[item]].port_id,
  17253. msm_bedais[e->shift_l].port_id,
  17254. 1, 1, 1);
  17255. else {
  17256. pr_debug("%s values are out of range item %d\n",
  17257. __func__, e->values[item]);
  17258. /* Disable feedback TX path */
  17259. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  17260. ret = afe_spk_prot_feed_back_cfg(0,
  17261. 0, 0, 0, 0);
  17262. else
  17263. ret = -EINVAL;
  17264. }
  17265. } else {
  17266. pr_err("%s item value is out of range item\n", __func__);
  17267. ret = -EINVAL;
  17268. }
  17269. mutex_unlock(&routing_lock);
  17270. return ret;
  17271. }
  17272. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  17273. struct snd_ctl_elem_value *ucontrol)
  17274. {
  17275. pr_debug("%s\n", __func__);
  17276. return 0;
  17277. }
  17278. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  17279. struct snd_ctl_elem_value *ucontrol)
  17280. {
  17281. pr_debug("%s\n", __func__);
  17282. ucontrol->value.enumerated.item[0] = 0;
  17283. return 0;
  17284. }
  17285. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  17286. "ZERO", "SLIM4_TX"
  17287. };
  17288. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  17289. "ZERO", "SLIM4_TX"
  17290. };
  17291. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  17292. "ZERO", "WSA_CDC_DMA_TX_0"
  17293. };
  17294. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  17295. "ZERO", "WSA_CDC_DMA_TX_0"
  17296. };
  17297. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  17298. "ZERO", "SENARY_TX"
  17299. };
  17300. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  17301. "ZERO", "INT5_MI2S_TX"
  17302. };
  17303. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  17304. "ZERO", "INT5_MI2S_TX"
  17305. };
  17306. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  17307. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17308. };
  17309. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  17310. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  17311. };
  17312. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  17313. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17314. };
  17315. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  17316. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  17317. };
  17318. static const int const mi2s_rx_vi_fb_tx_value[] = {
  17319. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  17320. };
  17321. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  17322. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17323. };
  17324. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  17325. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  17326. };
  17327. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  17328. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17329. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  17330. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  17331. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  17332. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  17333. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  17334. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  17335. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  17336. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17337. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  17338. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  17339. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  17340. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  17341. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  17342. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  17343. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  17344. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  17345. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  17346. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  17347. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  17348. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17349. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  17350. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  17351. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  17352. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  17353. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  17354. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  17355. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  17356. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  17357. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  17358. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  17359. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17360. spkr_prot_put_vi_lch_port);
  17361. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  17362. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  17363. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17364. spkr_prot_put_vi_rch_port);
  17365. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  17366. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  17367. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  17368. spkr_prot_put_vi_lch_port);
  17369. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  17370. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  17371. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  17372. spkr_prot_put_vi_rch_port);
  17373. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  17374. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  17375. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  17376. spkr_prot_put_vi_lch_port);
  17377. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  17378. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  17379. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  17380. spkr_prot_put_vi_lch_port);
  17381. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  17382. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  17383. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  17384. spkr_prot_put_vi_rch_port);
  17385. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  17386. /* Frontend AIF */
  17387. /* Widget name equals to Front-End DAI name<Need confirmation>,
  17388. * Stream name must contains substring of front-end dai name
  17389. */
  17390. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  17391. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  17392. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  17393. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  17394. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  17395. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  17396. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  17397. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  17398. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  17399. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  17400. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  17401. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  17402. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  17403. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  17404. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  17405. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  17406. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  17407. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  17408. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  17409. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  17410. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  17411. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  17412. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  17413. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  17414. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  17415. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  17416. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  17417. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  17418. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  17419. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  17420. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  17421. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  17422. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  17423. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  17424. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  17425. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  17426. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  17427. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  17428. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  17429. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  17430. "VoiceMMode1 Playback", 0, 0, 0, 0),
  17431. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  17432. "VoiceMMode1 Capture", 0, 0, 0, 0),
  17433. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  17434. "VoiceMMode2 Playback", 0, 0, 0, 0),
  17435. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  17436. "VoiceMMode2 Capture", 0, 0, 0, 0),
  17437. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  17438. 0, 0, 0, 0),
  17439. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  17440. 0, 0, 0, 0),
  17441. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  17442. 0, 0, 0, 0),
  17443. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  17444. 0, 0, 0, 0),
  17445. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  17446. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  17447. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  17448. 0, 0, 0, 0),
  17449. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  17450. 0, 0, 0, 0),
  17451. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  17452. 0, 0, 0, 0),
  17453. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  17454. 0, 0, 0, 0),
  17455. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  17456. 0, 0, 0, 0),
  17457. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  17458. 0, 0, 0, 0),
  17459. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  17460. 0, 0, 0, 0),
  17461. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  17462. 0, 0, 0, 0),
  17463. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  17464. 0, 0, 0, 0),
  17465. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  17466. 0, 0, 0, 0),
  17467. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  17468. 0, 0, 0, 0),
  17469. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  17470. 0, 0, 0, 0),
  17471. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  17472. 0, 0, 0, 0),
  17473. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  17474. 0, 0, 0, 0),
  17475. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  17476. 0, 0, 0, 0),
  17477. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  17478. 0, 0, 0, 0),
  17479. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  17480. 0, 0, 0, 0),
  17481. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  17482. 0, 0, 0, 0),
  17483. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  17484. 0, 0, 0, 0),
  17485. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  17486. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  17487. 0, 0, 0, 0),
  17488. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  17489. "INT0 MI2S_RX Hostless Playback",
  17490. 0, 0, 0, 0),
  17491. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  17492. "INT4 MI2S_RX Hostless Playback",
  17493. 0, 0, 0, 0),
  17494. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  17495. "Primary MI2S_RX Hostless Playback",
  17496. 0, 0, 0, 0),
  17497. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  17498. "Secondary MI2S_RX Hostless Playback",
  17499. 0, 0, 0, 0),
  17500. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  17501. "Tertiary MI2S_RX Hostless Playback",
  17502. 0, 0, 0, 0),
  17503. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  17504. "Quaternary MI2S_RX Hostless Playback",
  17505. 0, 0, 0, 0),
  17506. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  17507. "Quinary MI2S_RX Hostless Playback",
  17508. 0, 0, 0, 0),
  17509. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  17510. 0, 0, 0, 0),
  17511. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  17512. 0, 0, 0, 0),
  17513. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  17514. 0, 0, 0, 0),
  17515. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  17516. 0, 0, 0, 0),
  17517. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  17518. 0, 0, 0, 0),
  17519. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  17520. "INT3 MI2S_TX Hostless Capture",
  17521. 0, 0, 0, 0),
  17522. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  17523. "Tertiary MI2S_TX Hostless Capture",
  17524. 0, 0, 0, 0),
  17525. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  17526. "Secondary MI2S_TX Hostless Capture",
  17527. 0, 0, 0, 0),
  17528. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  17529. "Primary MI2S_TX Hostless Capture",
  17530. 0, 0, 0, 0),
  17531. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  17532. 0, 0, 0, 0),
  17533. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  17534. 0, 0, 0, 0),
  17535. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  17536. "Quaternary MI2S_TX Hostless Capture",
  17537. 0, 0, 0, 0),
  17538. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  17539. "Quinary MI2S_TX Hostless Capture",
  17540. 0, 0, 0, 0),
  17541. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  17542. "Primary TDM0 Hostless Playback",
  17543. 0, 0, 0, 0),
  17544. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  17545. "Primary TDM0 Hostless Capture",
  17546. 0, 0, 0, 0),
  17547. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  17548. "Primary TDM1 Hostless Playback",
  17549. 0, 0, 0, 0),
  17550. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  17551. "Primary TDM1 Hostless Capture",
  17552. 0, 0, 0, 0),
  17553. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  17554. "Primary TDM2 Hostless Playback",
  17555. 0, 0, 0, 0),
  17556. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  17557. "Primary TDM2 Hostless Capture",
  17558. 0, 0, 0, 0),
  17559. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  17560. "Primary TDM3 Hostless Playback",
  17561. 0, 0, 0, 0),
  17562. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  17563. "Primary TDM3 Hostless Capture",
  17564. 0, 0, 0, 0),
  17565. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  17566. "Primary TDM4 Hostless Playback",
  17567. 0, 0, 0, 0),
  17568. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  17569. "Primary TDM4 Hostless Capture",
  17570. 0, 0, 0, 0),
  17571. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  17572. "Primary TDM5 Hostless Playback",
  17573. 0, 0, 0, 0),
  17574. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  17575. "Primary TDM5 Hostless Capture",
  17576. 0, 0, 0, 0),
  17577. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  17578. "Primary TDM6 Hostless Playback",
  17579. 0, 0, 0, 0),
  17580. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  17581. "Primary TDM6 Hostless Capture",
  17582. 0, 0, 0, 0),
  17583. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  17584. "Primary TDM7 Hostless Playback",
  17585. 0, 0, 0, 0),
  17586. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  17587. "Primary TDM7 Hostless Capture",
  17588. 0, 0, 0, 0),
  17589. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  17590. "Secondary TDM0 Hostless Playback",
  17591. 0, 0, 0, 0),
  17592. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  17593. "Secondary TDM0 Hostless Capture",
  17594. 0, 0, 0, 0),
  17595. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  17596. "Secondary TDM1 Hostless Playback",
  17597. 0, 0, 0, 0),
  17598. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  17599. "Secondary TDM1 Hostless Capture",
  17600. 0, 0, 0, 0),
  17601. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  17602. "Secondary TDM2 Hostless Playback",
  17603. 0, 0, 0, 0),
  17604. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  17605. "Secondary TDM2 Hostless Capture",
  17606. 0, 0, 0, 0),
  17607. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  17608. "Secondary TDM3 Hostless Playback",
  17609. 0, 0, 0, 0),
  17610. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  17611. "Secondary TDM3 Hostless Capture",
  17612. 0, 0, 0, 0),
  17613. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  17614. "Secondary TDM4 Hostless Playback",
  17615. 0, 0, 0, 0),
  17616. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  17617. "Secondary TDM4 Hostless Capture",
  17618. 0, 0, 0, 0),
  17619. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  17620. "Secondary TDM5 Hostless Playback",
  17621. 0, 0, 0, 0),
  17622. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  17623. "Secondary TDM5 Hostless Capture",
  17624. 0, 0, 0, 0),
  17625. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  17626. "Secondary TDM6 Hostless Playback",
  17627. 0, 0, 0, 0),
  17628. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  17629. "Secondary TDM6 Hostless Capture",
  17630. 0, 0, 0, 0),
  17631. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  17632. "Secondary TDM7 Hostless Playback",
  17633. 0, 0, 0, 0),
  17634. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  17635. "Secondary TDM7 Hostless Capture",
  17636. 0, 0, 0, 0),
  17637. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  17638. "Tertiary TDM0 Hostless Playback",
  17639. 0, 0, 0, 0),
  17640. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  17641. "Tertiary TDM0 Hostless Capture",
  17642. 0, 0, 0, 0),
  17643. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  17644. "Tertiary TDM1 Hostless Playback",
  17645. 0, 0, 0, 0),
  17646. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  17647. "Tertiary TDM1 Hostless Capture",
  17648. 0, 0, 0, 0),
  17649. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  17650. "Tertiary TDM2 Hostless Playback",
  17651. 0, 0, 0, 0),
  17652. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  17653. "Tertiary TDM2 Hostless Capture",
  17654. 0, 0, 0, 0),
  17655. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  17656. "Tertiary TDM3 Hostless Playback",
  17657. 0, 0, 0, 0),
  17658. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  17659. "Tertiary TDM3 Hostless Capture",
  17660. 0, 0, 0, 0),
  17661. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  17662. "Tertiary TDM4 Hostless Playback",
  17663. 0, 0, 0, 0),
  17664. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  17665. "Tertiary TDM4 Hostless Capture",
  17666. 0, 0, 0, 0),
  17667. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  17668. "Tertiary TDM5 Hostless Playback",
  17669. 0, 0, 0, 0),
  17670. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  17671. "Tertiary TDM5 Hostless Capture",
  17672. 0, 0, 0, 0),
  17673. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  17674. "Tertiary TDM6 Hostless Playback",
  17675. 0, 0, 0, 0),
  17676. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  17677. "Tertiary TDM6 Hostless Capture",
  17678. 0, 0, 0, 0),
  17679. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  17680. "Tertiary TDM7 Hostless Playback",
  17681. 0, 0, 0, 0),
  17682. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  17683. "Tertiary TDM7 Hostless Capture",
  17684. 0, 0, 0, 0),
  17685. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  17686. "Quaternary TDM0 Hostless Playback",
  17687. 0, 0, 0, 0),
  17688. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  17689. "Quaternary TDM0 Hostless Capture",
  17690. 0, 0, 0, 0),
  17691. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  17692. "Quaternary TDM1 Hostless Playback",
  17693. 0, 0, 0, 0),
  17694. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  17695. "Quaternary TDM1 Hostless Capture",
  17696. 0, 0, 0, 0),
  17697. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  17698. "Quaternary TDM2 Hostless Playback",
  17699. 0, 0, 0, 0),
  17700. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  17701. "Quaternary TDM2 Hostless Capture",
  17702. 0, 0, 0, 0),
  17703. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  17704. "Quaternary TDM3 Hostless Playback",
  17705. 0, 0, 0, 0),
  17706. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  17707. "Quaternary TDM3 Hostless Capture",
  17708. 0, 0, 0, 0),
  17709. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  17710. "Quaternary TDM4 Hostless Playback",
  17711. 0, 0, 0, 0),
  17712. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  17713. "Quaternary TDM4 Hostless Capture",
  17714. 0, 0, 0, 0),
  17715. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  17716. "Quaternary TDM5 Hostless Playback",
  17717. 0, 0, 0, 0),
  17718. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  17719. "Quaternary TDM5 Hostless Capture",
  17720. 0, 0, 0, 0),
  17721. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  17722. "Quaternary TDM6 Hostless Playback",
  17723. 0, 0, 0, 0),
  17724. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  17725. "Quaternary TDM6 Hostless Capture",
  17726. 0, 0, 0, 0),
  17727. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  17728. "Quaternary TDM7 Hostless Playback",
  17729. 0, 0, 0, 0),
  17730. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  17731. "Quaternary TDM7 Hostless Capture",
  17732. 0, 0, 0, 0),
  17733. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  17734. "Quinary TDM0 Hostless Playback",
  17735. 0, 0, 0, 0),
  17736. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  17737. "Quinary TDM0 Hostless Capture",
  17738. 0, 0, 0, 0),
  17739. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  17740. "Quinary TDM1 Hostless Playback",
  17741. 0, 0, 0, 0),
  17742. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  17743. "Quinary TDM1 Hostless Capture",
  17744. 0, 0, 0, 0),
  17745. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  17746. "Quinary TDM2 Hostless Playback",
  17747. 0, 0, 0, 0),
  17748. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  17749. "Quinary TDM2 Hostless Capture",
  17750. 0, 0, 0, 0),
  17751. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  17752. "Quinary TDM3 Hostless Playback",
  17753. 0, 0, 0, 0),
  17754. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  17755. "Quinary TDM3 Hostless Capture",
  17756. 0, 0, 0, 0),
  17757. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  17758. "Quinary TDM4 Hostless Playback",
  17759. 0, 0, 0, 0),
  17760. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  17761. "Quinary TDM4 Hostless Capture",
  17762. 0, 0, 0, 0),
  17763. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  17764. "Quinary TDM5 Hostless Playback",
  17765. 0, 0, 0, 0),
  17766. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  17767. "Quinary TDM5 Hostless Capture",
  17768. 0, 0, 0, 0),
  17769. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  17770. "Quinary TDM6 Hostless Playback",
  17771. 0, 0, 0, 0),
  17772. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  17773. "Quinary TDM6 Hostless Capture",
  17774. 0, 0, 0, 0),
  17775. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  17776. "Quinary TDM7 Hostless Playback",
  17777. 0, 0, 0, 0),
  17778. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  17779. "Quinary TDM7 Hostless Capture",
  17780. 0, 0, 0, 0),
  17781. /* LSM */
  17782. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  17783. 0, 0, 0, 0),
  17784. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  17785. 0, 0, 0, 0),
  17786. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  17787. 0, 0, 0, 0),
  17788. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  17789. 0, 0, 0, 0),
  17790. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  17791. 0, 0, 0, 0),
  17792. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  17793. 0, 0, 0, 0),
  17794. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  17795. 0, 0, 0, 0),
  17796. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  17797. 0, 0, 0, 0),
  17798. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  17799. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  17800. /* Backend AIF */
  17801. /* Stream name equals to backend dai link stream name */
  17802. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  17803. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  17804. 0, 0, 0, 0),
  17805. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  17806. 0, 0, 0, 0),
  17807. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  17808. 0, 0, 0, 0),
  17809. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  17810. 0, 0, 0, 0),
  17811. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  17812. 0, 0, 0, 0),
  17813. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  17814. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  17815. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  17816. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  17817. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  17818. 0, 0, 0, 0),
  17819. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  17820. 0, 0, 0, 0),
  17821. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  17822. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  17823. 0, 0, 0, 0),
  17824. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  17825. 0, 0, 0, 0),
  17826. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  17827. 0, 0, 0, 0),
  17828. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  17829. "Secondary MI2S Playback SD1",
  17830. 0, 0, 0, 0),
  17831. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  17832. 0, 0, 0, 0),
  17833. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  17834. 0, 0, 0, 0),
  17835. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  17836. 0, 0, 0, 0),
  17837. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  17838. 0, 0, 0, 0),
  17839. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  17840. 0, 0, 0, 0),
  17841. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  17842. 0, 0, 0, 0),
  17843. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  17844. 0, 0, 0, 0),
  17845. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  17846. 0, 0, 0, 0),
  17847. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  17848. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  17849. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  17850. 0, 0, 0, 0),
  17851. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  17852. 0, 0, 0, 0),
  17853. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  17854. 0, 0, 0, 0),
  17855. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  17856. 0, 0, 0, 0),
  17857. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  17858. 0, 0, 0, 0),
  17859. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  17860. 0, 0, 0, 0),
  17861. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  17862. 0, 0, 0, 0),
  17863. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  17864. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  17865. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  17866. 0, 0, 0, 0),
  17867. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  17868. 0, 0, 0, 0),
  17869. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  17870. 0, 0, 0, 0),
  17871. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  17872. 0, 0, 0, 0),
  17873. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  17874. 0, 0, 0, 0),
  17875. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  17876. 0, 0, 0, 0),
  17877. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  17878. 0, 0, 0, 0),
  17879. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  17880. 0, 0, 0, 0),
  17881. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  17882. 0, 0, 0, 0),
  17883. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  17884. 0, 0, 0, 0),
  17885. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  17886. 0, 0, 0, 0),
  17887. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  17888. 0, 0, 0, 0),
  17889. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  17890. 0, 0, 0, 0),
  17891. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  17892. 0, 0, 0, 0),
  17893. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  17894. 0, 0, 0, 0),
  17895. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  17896. 0, 0, 0, 0),
  17897. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  17898. 0, 0, 0, 0),
  17899. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  17900. 0, 0, 0, 0),
  17901. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  17902. 0, 0, 0, 0),
  17903. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  17904. 0, 0, 0, 0),
  17905. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  17906. 0, 0, 0, 0),
  17907. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  17908. 0, 0, 0, 0),
  17909. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  17910. 0, 0, 0, 0),
  17911. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  17912. 0, 0, 0, 0),
  17913. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  17914. 0, 0, 0, 0),
  17915. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  17916. 0, 0, 0, 0),
  17917. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  17918. 0, 0, 0, 0),
  17919. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  17920. 0, 0, 0, 0),
  17921. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  17922. 0, 0, 0, 0),
  17923. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  17924. 0, 0, 0, 0),
  17925. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  17926. 0, 0, 0, 0),
  17927. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  17928. 0, 0, 0, 0),
  17929. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  17930. 0, 0, 0, 0),
  17931. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  17932. 0, 0, 0, 0),
  17933. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  17934. 0, 0, 0, 0),
  17935. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  17936. 0, 0, 0, 0),
  17937. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  17938. 0, 0, 0, 0),
  17939. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  17940. 0, 0, 0, 0),
  17941. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  17942. 0, 0, 0, 0),
  17943. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  17944. 0, 0, 0, 0),
  17945. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  17946. 0, 0, 0, 0),
  17947. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  17948. 0, 0, 0, 0),
  17949. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  17950. 0, 0, 0, 0),
  17951. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  17952. 0, 0, 0, 0),
  17953. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  17954. 0, 0, 0, 0),
  17955. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  17956. 0, 0, 0, 0),
  17957. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  17958. 0, 0, 0, 0),
  17959. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  17960. 0, 0, 0, 0),
  17961. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  17962. 0, 0, 0, 0),
  17963. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  17964. 0, 0, 0, 0),
  17965. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  17966. 0, 0, 0, 0),
  17967. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  17968. 0, 0, 0, 0),
  17969. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  17970. 0, 0, 0, 0),
  17971. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  17972. 0, 0, 0, 0),
  17973. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  17974. 0, 0, 0, 0),
  17975. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  17976. 0, 0, 0, 0),
  17977. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  17978. 0, 0, 0, 0),
  17979. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  17980. 0, 0, 0, 0),
  17981. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  17982. 0, 0, 0, 0),
  17983. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  17984. 0, 0, 0, 0),
  17985. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  17986. 0, 0, 0, 0),
  17987. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  17988. 0, 0, 0, 0),
  17989. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  17990. 0, 0, 0, 0),
  17991. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  17992. 0, 0, 0, 0),
  17993. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  17994. 0, 0, 0, 0),
  17995. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  17996. 0, 0, 0, 0),
  17997. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  17998. 0, 0, 0, 0),
  17999. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  18000. 0, 0, 0, 0),
  18001. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  18002. 0, 0, 0, 0),
  18003. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  18004. 0, 0, 0, 0),
  18005. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  18006. 0, 0, 0, 0),
  18007. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  18008. 0, 0, 0, 0),
  18009. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  18010. 0, 0, 0, 0),
  18011. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  18012. 0, 0, 0, 0),
  18013. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  18014. 0, 0, 0, 0),
  18015. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  18016. 0, 0, 0, 0),
  18017. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  18018. 0, 0, 0, 0),
  18019. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  18020. 0, 0, 0, 0),
  18021. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  18022. 0, 0, 0, 0),
  18023. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  18024. 0, 0, 0, 0),
  18025. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  18026. 0, 0, 0, 0),
  18027. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  18028. 0, 0, 0, 0),
  18029. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  18030. 0, 0, 0, 0),
  18031. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  18032. 0, 0, 0, 0),
  18033. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  18034. 0, 0, 0, 0),
  18035. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  18036. 0, 0, 0, 0),
  18037. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  18038. 0, 0, 0, 0),
  18039. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  18040. 0, 0, 0, 0),
  18041. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  18042. 0, 0, 0, 0),
  18043. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  18044. 0, 0, 0, 0),
  18045. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  18046. 0, 0, 0, 0),
  18047. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  18048. 0, 0, 0, 0),
  18049. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  18050. 0, 0, 0, 0),
  18051. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  18052. 0, 0, 0, 0),
  18053. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  18054. 0, 0, 0, 0),
  18055. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  18056. 0, 0, 0, 0),
  18057. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  18058. 0, 0, 0, 0),
  18059. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  18060. 0, 0, 0, 0),
  18061. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  18062. 0, 0, 0, 0),
  18063. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  18064. 0, 0, 0, 0),
  18065. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  18066. 0, 0, 0, 0),
  18067. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  18068. 0, 0, 0, 0),
  18069. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  18070. 0, 0, 0, 0),
  18071. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  18072. 0, 0, 0, 0),
  18073. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  18074. 0, 0, 0, 0),
  18075. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  18076. 0, 0, 0, 0),
  18077. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  18078. 0, 0, 0, 0),
  18079. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  18080. 0, 0, 0, 0),
  18081. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  18082. 0, 0, 0, 0),
  18083. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  18084. 0, 0, 0, 0),
  18085. /* incall */
  18086. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  18087. 0, 0, 0, 0),
  18088. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  18089. 0, 0, 0, 0),
  18090. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  18091. 0, 0, 0, 0),
  18092. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  18093. 0, 0, 0, 0),
  18094. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  18095. 0, 0, 0, 0),
  18096. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  18097. 0, 0, 0, 0),
  18098. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  18099. 0, 0, 0, 0),
  18100. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  18101. 0, 0, 0, 0),
  18102. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  18103. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  18104. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  18105. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  18106. 0, 0, 0, 0),
  18107. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  18108. 0, 0, 0, 0),
  18109. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  18110. 0, 0, 0, 0),
  18111. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  18112. 0, 0, 0, 0),
  18113. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  18114. 0, 0, 0, 0),
  18115. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  18116. 0, 0, 0, 0),
  18117. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  18118. 0, 0, 0, 0),
  18119. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  18120. 0, 0, 0, 0),
  18121. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  18122. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  18123. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  18124. 0, 0, 0, 0),
  18125. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  18126. 0, 0, 0, 0),
  18127. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  18128. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  18129. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  18130. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  18131. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  18132. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  18133. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  18134. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  18135. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  18136. /* In- call recording */
  18137. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  18138. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  18139. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  18140. 0, 0, 0, 0),
  18141. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  18142. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  18143. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  18144. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  18145. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  18146. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  18147. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  18148. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  18149. /* Switch Definitions */
  18150. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  18151. &slim_fm_switch_mixer_controls),
  18152. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  18153. &slim1_fm_switch_mixer_controls),
  18154. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  18155. &slim3_fm_switch_mixer_controls),
  18156. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  18157. &slim4_fm_switch_mixer_controls),
  18158. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  18159. &slim6_fm_switch_mixer_controls),
  18160. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18161. &pcm_rx_switch_mixer_controls),
  18162. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18163. &int0_mi2s_rx_switch_mixer_controls),
  18164. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18165. &int4_mi2s_rx_switch_mixer_controls),
  18166. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18167. &pri_mi2s_rx_switch_mixer_controls),
  18168. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18169. &sec_mi2s_rx_switch_mixer_controls),
  18170. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18171. &tert_mi2s_rx_switch_mixer_controls),
  18172. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18173. &quat_mi2s_rx_switch_mixer_controls),
  18174. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  18175. &quin_mi2s_rx_switch_mixer_controls),
  18176. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18177. &hfp_pri_aux_switch_mixer_controls),
  18178. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  18179. &hfp_aux_switch_mixer_controls),
  18180. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  18181. &hfp_int_switch_mixer_controls),
  18182. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18183. &hfp_slim7_switch_mixer_controls),
  18184. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  18185. &usb_switch_mixer_controls),
  18186. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  18187. &a2dp_slim7_switch_mixer_controls),
  18188. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18189. &cdc_dma_wsa_switch_mixer_controls),
  18190. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  18191. &cdc_dma_rx_switch_mixer_controls),
  18192. /* Mixer definitions */
  18193. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18194. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  18195. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18196. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  18197. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18198. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  18199. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18200. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  18201. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18202. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  18203. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18204. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  18205. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18206. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  18207. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  18208. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  18209. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  18210. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  18211. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  18212. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  18213. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18214. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  18215. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18216. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  18217. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18218. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  18219. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18220. quaternary_mi2s_rx_mixer_controls,
  18221. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  18222. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18223. tertiary_mi2s_rx_mixer_controls,
  18224. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  18225. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18226. secondary_mi2s_rx_mixer_controls,
  18227. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  18228. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18229. secondary_mi2s_rx2_mixer_controls,
  18230. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  18231. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18232. primary_mi2s_rx_mixer_controls,
  18233. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  18234. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18235. int0_mi2s_rx_mixer_controls,
  18236. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  18237. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18238. int4_mi2s_rx_mixer_controls,
  18239. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  18240. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18241. quinary_mi2s_rx_mixer_controls,
  18242. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  18243. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18244. pri_tdm_rx_0_mixer_controls,
  18245. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  18246. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18247. pri_tdm_rx_1_mixer_controls,
  18248. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  18249. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18250. pri_tdm_rx_2_mixer_controls,
  18251. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  18252. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18253. pri_tdm_rx_3_mixer_controls,
  18254. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  18255. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18256. pri_tdm_tx_0_mixer_controls,
  18257. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  18258. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18259. sec_tdm_rx_0_mixer_controls,
  18260. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  18261. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18262. sec_tdm_rx_1_mixer_controls,
  18263. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  18264. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18265. sec_tdm_rx_2_mixer_controls,
  18266. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  18267. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18268. sec_tdm_rx_3_mixer_controls,
  18269. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  18270. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18271. sec_tdm_tx_0_mixer_controls,
  18272. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  18273. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18274. tert_tdm_rx_0_mixer_controls,
  18275. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  18276. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18277. tert_tdm_tx_0_mixer_controls,
  18278. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  18279. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18280. tert_tdm_rx_1_mixer_controls,
  18281. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  18282. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18283. tert_tdm_rx_2_mixer_controls,
  18284. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  18285. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18286. tert_tdm_rx_3_mixer_controls,
  18287. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  18288. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18289. tert_tdm_rx_4_mixer_controls,
  18290. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  18291. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18292. quat_tdm_rx_0_mixer_controls,
  18293. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  18294. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18295. quat_tdm_tx_0_mixer_controls,
  18296. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  18297. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18298. quat_tdm_rx_1_mixer_controls,
  18299. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  18300. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18301. quat_tdm_rx_2_mixer_controls,
  18302. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  18303. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18304. quat_tdm_rx_3_mixer_controls,
  18305. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  18306. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18307. quin_tdm_rx_0_mixer_controls,
  18308. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  18309. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18310. quin_tdm_tx_0_mixer_controls,
  18311. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  18312. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18313. quin_tdm_rx_1_mixer_controls,
  18314. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  18315. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18316. quin_tdm_rx_2_mixer_controls,
  18317. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  18318. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18319. quin_tdm_rx_3_mixer_controls,
  18320. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  18321. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18322. wsa_cdc_dma_rx_0_mixer_controls,
  18323. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  18324. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18325. wsa_cdc_dma_rx_1_mixer_controls,
  18326. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  18327. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18328. rx_cdc_dma_rx_0_mixer_controls,
  18329. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  18330. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18331. rx_cdc_dma_rx_1_mixer_controls,
  18332. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  18333. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18334. rx_cdc_dma_rx_2_mixer_controls,
  18335. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  18336. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18337. rx_cdc_dma_rx_3_mixer_controls,
  18338. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  18339. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18340. rx_cdc_dma_rx_4_mixer_controls,
  18341. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  18342. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18343. rx_cdc_dma_rx_5_mixer_controls,
  18344. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  18345. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18346. rx_cdc_dma_rx_6_mixer_controls,
  18347. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  18348. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18349. rx_cdc_dma_rx_7_mixer_controls,
  18350. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  18351. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  18352. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  18353. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  18354. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  18355. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  18356. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  18357. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  18358. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  18359. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  18360. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  18361. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  18362. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  18363. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  18364. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  18365. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  18366. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  18367. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  18368. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  18369. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  18370. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  18371. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  18372. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  18373. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  18374. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  18375. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  18376. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  18377. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  18378. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  18379. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  18380. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  18381. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  18382. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  18383. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  18384. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  18385. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  18386. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  18387. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18388. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  18389. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18390. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  18391. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18392. tert_auxpcm_rx_mixer_controls,
  18393. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  18394. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18395. quat_auxpcm_rx_mixer_controls,
  18396. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  18397. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18398. quin_auxpcm_rx_mixer_controls,
  18399. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  18400. /* incall */
  18401. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  18402. incall_music_delivery_mixer_controls,
  18403. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  18404. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  18405. incall_music2_delivery_mixer_controls,
  18406. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  18407. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18408. slimbus_4_rx_mixer_controls,
  18409. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  18410. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18411. slimbus_6_rx_mixer_controls,
  18412. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  18413. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18414. usb_audio_rx_mixer_controls,
  18415. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  18416. /* Voice Mixer */
  18417. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  18418. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  18419. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  18420. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  18421. SND_SOC_NOPM, 0, 0,
  18422. sec_i2s_rx_voice_mixer_controls,
  18423. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  18424. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  18425. SND_SOC_NOPM, 0, 0,
  18426. sec_mi2s_rx_voice_mixer_controls,
  18427. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  18428. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  18429. SND_SOC_NOPM, 0, 0,
  18430. slimbus_rx_voice_mixer_controls,
  18431. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  18432. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  18433. SND_SOC_NOPM, 0, 0,
  18434. bt_sco_rx_voice_mixer_controls,
  18435. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  18436. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  18437. SND_SOC_NOPM, 0, 0,
  18438. afe_pcm_rx_voice_mixer_controls,
  18439. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  18440. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  18441. SND_SOC_NOPM, 0, 0,
  18442. aux_pcm_rx_voice_mixer_controls,
  18443. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  18444. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  18445. SND_SOC_NOPM, 0, 0,
  18446. sec_aux_pcm_rx_voice_mixer_controls,
  18447. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  18448. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  18449. SND_SOC_NOPM, 0, 0,
  18450. tert_aux_pcm_rx_voice_mixer_controls,
  18451. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  18452. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  18453. SND_SOC_NOPM, 0, 0,
  18454. quat_aux_pcm_rx_voice_mixer_controls,
  18455. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  18456. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  18457. SND_SOC_NOPM, 0, 0,
  18458. quin_aux_pcm_rx_voice_mixer_controls,
  18459. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  18460. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  18461. SND_SOC_NOPM, 0, 0,
  18462. hdmi_rx_voice_mixer_controls,
  18463. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  18464. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  18465. SND_SOC_NOPM, 0, 0,
  18466. mi2s_rx_voice_mixer_controls,
  18467. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  18468. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  18469. SND_SOC_NOPM, 0, 0,
  18470. pri_mi2s_rx_voice_mixer_controls,
  18471. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  18472. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  18473. SND_SOC_NOPM, 0, 0,
  18474. int0_mi2s_rx_voice_mixer_controls,
  18475. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  18476. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  18477. SND_SOC_NOPM, 0, 0,
  18478. int4_mi2s_rx_voice_mixer_controls,
  18479. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  18480. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  18481. SND_SOC_NOPM, 0, 0,
  18482. tert_mi2s_rx_voice_mixer_controls,
  18483. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  18484. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  18485. SND_SOC_NOPM, 0, 0,
  18486. quat_mi2s_rx_voice_mixer_controls,
  18487. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  18488. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  18489. SND_SOC_NOPM, 0, 0,
  18490. quin_mi2s_rx_voice_mixer_controls,
  18491. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  18492. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  18493. SND_SOC_NOPM, 0, 0,
  18494. quat_tdm_rx_2_voice_mixer_controls,
  18495. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  18496. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  18497. SND_SOC_NOPM, 0, 0,
  18498. wsa_cdc_dma_rx_0_voice_mixer_controls,
  18499. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  18500. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  18501. SND_SOC_NOPM, 0, 0,
  18502. rx_cdc_dma_rx_0_voice_mixer_controls,
  18503. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  18504. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  18505. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  18506. ARRAY_SIZE(tx_voip_mixer_controls)),
  18507. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  18508. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  18509. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  18510. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  18511. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  18512. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  18513. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18514. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  18515. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18516. int_bt_a2dp_rx_mixer_controls,
  18517. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  18518. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18519. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  18520. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  18521. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  18522. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18523. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  18524. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18525. tx_voice2_stub_mixer_controls,
  18526. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  18527. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  18528. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  18529. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  18530. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  18531. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  18532. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  18533. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18534. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  18535. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  18536. SND_SOC_NOPM, 0, 0,
  18537. slimbus_6_rx_voice_mixer_controls,
  18538. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  18539. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18540. slimbus_7_rx_voice_mixer_controls,
  18541. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  18542. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  18543. slimbus_8_rx_voice_mixer_controls,
  18544. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  18545. /* port mixer */
  18546. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  18547. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  18548. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  18549. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  18550. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  18551. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  18552. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  18553. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  18554. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  18555. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  18556. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  18557. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  18558. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  18559. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  18560. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  18561. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  18562. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  18563. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  18564. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18565. sbus_1_rx_port_mixer_controls,
  18566. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  18567. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18568. bt_sco_rx_port_mixer_controls,
  18569. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  18570. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  18571. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  18572. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  18573. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  18574. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  18575. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  18576. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  18577. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  18578. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  18579. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  18580. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  18581. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  18582. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  18583. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  18584. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  18585. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  18586. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  18587. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  18588. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  18589. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  18590. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  18591. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18592. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  18593. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18594. primary_mi2s_rx_port_mixer_controls,
  18595. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  18596. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18597. sec_mi2s_rx_port_mixer_controls,
  18598. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  18599. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18600. tert_mi2s_rx_port_mixer_controls,
  18601. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  18602. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18603. quat_mi2s_rx_port_mixer_controls,
  18604. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  18605. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18606. quin_mi2s_rx_port_mixer_controls,
  18607. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  18608. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18609. pri_tdm_rx_0_port_mixer_controls,
  18610. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  18611. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18612. pri_tdm_rx_1_port_mixer_controls,
  18613. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  18614. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18615. pri_tdm_rx_2_port_mixer_controls,
  18616. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  18617. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18618. pri_tdm_rx_3_port_mixer_controls,
  18619. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  18620. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18621. sec_tdm_rx_0_port_mixer_controls,
  18622. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  18623. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18624. sec_tdm_rx_1_port_mixer_controls,
  18625. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  18626. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18627. sec_tdm_rx_2_port_mixer_controls,
  18628. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  18629. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18630. sec_tdm_rx_3_port_mixer_controls,
  18631. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  18632. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  18633. sec_tdm_rx_7_port_mixer_controls,
  18634. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  18635. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18636. tert_tdm_rx_0_port_mixer_controls,
  18637. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  18638. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18639. tert_tdm_rx_1_port_mixer_controls,
  18640. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  18641. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18642. tert_tdm_rx_2_port_mixer_controls,
  18643. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  18644. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18645. tert_tdm_rx_3_port_mixer_controls,
  18646. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  18647. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18648. quat_tdm_rx_0_port_mixer_controls,
  18649. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  18650. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18651. quat_tdm_rx_1_port_mixer_controls,
  18652. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  18653. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18654. quat_tdm_rx_2_port_mixer_controls,
  18655. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  18656. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18657. quat_tdm_rx_3_port_mixer_controls,
  18658. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  18659. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18660. quin_tdm_rx_0_port_mixer_controls,
  18661. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  18662. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  18663. quin_tdm_rx_1_port_mixer_controls,
  18664. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  18665. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  18666. quin_tdm_rx_2_port_mixer_controls,
  18667. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  18668. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  18669. quin_tdm_rx_3_port_mixer_controls,
  18670. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  18671. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18672. int0_mi2s_rx_port_mixer_controls,
  18673. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  18674. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  18675. int4_mi2s_rx_port_mixer_controls,
  18676. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  18677. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18678. wsa_cdc_dma_rx_0_port_mixer_controls,
  18679. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  18680. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  18681. rx_cdc_dma_rx_0_port_mixer_controls,
  18682. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  18683. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  18684. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  18685. ARRAY_SIZE(tx_qchat_mixer_controls)),
  18686. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  18687. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  18688. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  18689. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  18690. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  18691. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  18692. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  18693. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  18694. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  18695. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  18696. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  18697. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  18698. /* lsm mixer definitions */
  18699. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  18700. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  18701. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  18702. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  18703. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  18704. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  18705. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  18706. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  18707. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  18708. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  18709. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  18710. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  18711. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  18712. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  18713. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  18714. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  18715. /* Virtual Pins to force backends ON atm */
  18716. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  18717. SND_SOC_DAPM_INPUT("BE_IN"),
  18718. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18719. &slim0_rx_vi_fb_lch_mux),
  18720. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18721. &slim0_rx_vi_fb_rch_mux),
  18722. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  18723. &wsa_rx_0_vi_fb_lch_mux),
  18724. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  18725. &wsa_rx_0_vi_fb_rch_mux),
  18726. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  18727. &mi2s_rx_vi_fb_mux),
  18728. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18729. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  18730. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  18731. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  18732. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  18733. &voc_ext_ec_mux),
  18734. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  18735. &ext_ec_ref_mux_ul1),
  18736. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  18737. &ext_ec_ref_mux_ul2),
  18738. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  18739. &ext_ec_ref_mux_ul3),
  18740. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  18741. &ext_ec_ref_mux_ul4),
  18742. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  18743. &ext_ec_ref_mux_ul5),
  18744. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  18745. &ext_ec_ref_mux_ul6),
  18746. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  18747. &ext_ec_ref_mux_ul8),
  18748. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  18749. &ext_ec_ref_mux_ul9),
  18750. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  18751. &ext_ec_ref_mux_ul10),
  18752. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  18753. &ext_ec_ref_mux_ul16),
  18754. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  18755. &ext_ec_ref_mux_ul17),
  18756. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  18757. &ext_ec_ref_mux_ul18),
  18758. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  18759. &ext_ec_ref_mux_ul19),
  18760. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  18761. &ext_ec_ref_mux_ul28),
  18762. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  18763. &ext_ec_ref_mux_ul29),
  18764. };
  18765. static const struct snd_soc_dapm_route intercon[] = {
  18766. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18767. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18768. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18769. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18770. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18771. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18772. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18773. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18774. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18775. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18776. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18777. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18778. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18779. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18780. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18781. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18782. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18783. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  18784. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18785. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18786. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18787. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18788. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18789. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18790. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18791. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18792. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18793. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18794. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18795. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18796. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18797. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18798. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18799. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18800. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18801. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  18802. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18803. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18804. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18805. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18806. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18807. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18808. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18809. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18810. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18811. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18812. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18813. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18814. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18815. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18816. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18817. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18818. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18819. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  18820. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18821. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18822. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18823. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18824. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18825. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18826. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18827. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18828. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18829. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18830. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18831. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18832. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18833. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18834. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18835. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18836. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18837. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  18838. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  18839. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  18840. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  18841. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  18842. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  18843. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  18844. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  18845. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  18846. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  18847. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  18848. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  18849. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  18850. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  18851. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  18852. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  18853. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  18854. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  18855. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  18856. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18857. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18858. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18859. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18860. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18861. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18862. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18863. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18864. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18865. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18866. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18867. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18868. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18869. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18870. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18871. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18872. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18873. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  18874. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18875. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18876. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18877. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18878. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18879. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18880. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18881. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18882. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18883. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18884. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18885. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18886. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18887. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18888. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18889. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18890. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18891. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  18892. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18893. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18894. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18895. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18896. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18897. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18898. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18899. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18900. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18901. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18902. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18903. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18904. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18905. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18906. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18907. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18908. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18909. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  18910. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18911. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18912. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18913. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18914. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18915. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18916. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18917. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18918. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18919. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18920. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18921. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18922. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18923. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18924. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18925. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18926. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18927. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  18928. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18929. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18930. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18931. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18932. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18933. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18934. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18935. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18936. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18937. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18938. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18939. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18940. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18941. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18942. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18943. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18944. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18945. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  18946. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18947. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18948. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18949. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18950. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18951. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18952. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18953. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18954. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18955. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18956. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18957. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18958. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18959. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18960. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18961. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18962. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18963. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  18964. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18965. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18966. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18967. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18968. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18969. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18970. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18971. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18972. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18973. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18974. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18975. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18976. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18977. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18978. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18979. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18980. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18981. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  18982. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  18983. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  18984. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  18985. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  18986. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  18987. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  18988. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  18989. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  18990. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  18991. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  18992. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  18993. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  18994. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  18995. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  18996. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  18997. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  18998. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  18999. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  19000. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19001. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19002. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19003. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19004. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19005. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19006. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19007. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19008. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19009. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19010. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19011. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19012. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19013. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19014. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19015. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19016. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19017. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  19018. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19019. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19020. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19021. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19022. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19023. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19024. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19025. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19026. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19027. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19028. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19029. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19030. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19031. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19032. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19033. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19034. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  19035. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  19036. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  19037. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  19038. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  19039. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  19040. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  19041. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  19042. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  19043. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  19044. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  19045. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  19046. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  19047. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  19048. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  19049. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  19050. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  19051. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  19052. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  19053. {"HDMI", NULL, "HDMI Mixer"},
  19054. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  19055. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  19056. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  19057. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  19058. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  19059. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  19060. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  19061. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  19062. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  19063. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  19064. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  19065. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  19066. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  19067. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  19068. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  19069. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  19070. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  19071. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  19072. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  19073. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  19074. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  19075. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  19076. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  19077. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  19078. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  19079. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  19080. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  19081. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  19082. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  19083. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  19084. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  19085. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  19086. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  19087. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  19088. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  19089. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  19090. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19091. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19092. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19093. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19094. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19095. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19096. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19097. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19098. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19099. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19100. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19101. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19102. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19103. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19104. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19105. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19106. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19107. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  19108. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19109. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19110. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19111. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19112. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19113. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19114. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19115. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19116. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19117. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19118. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19119. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19120. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19121. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19122. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19123. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19124. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19125. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  19126. /* incall */
  19127. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  19128. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  19129. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  19130. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  19131. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  19132. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19133. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19134. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19135. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19136. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  19137. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19138. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19139. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19140. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19141. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  19142. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19143. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19144. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19145. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19146. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19147. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19148. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19149. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19150. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19151. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19152. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19153. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19154. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19155. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19156. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19157. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19158. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19159. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  19160. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19161. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19162. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19163. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19164. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19165. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19166. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19167. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19168. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19169. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19170. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19171. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19172. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19173. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19174. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19175. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19176. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19177. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  19178. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19179. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19180. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19181. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19182. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19183. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19184. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19185. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19186. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19187. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19188. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19189. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19190. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19191. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19192. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19193. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19194. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19195. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  19196. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19197. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19198. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19199. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19200. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19201. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19202. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19203. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19204. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19205. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19206. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19207. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19208. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19209. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19210. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19211. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19212. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19213. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  19214. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19215. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19216. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  19217. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19218. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19219. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  19220. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  19221. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19222. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19223. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19224. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19225. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19226. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19227. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19228. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19229. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19230. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19231. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19232. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19233. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19234. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19235. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19236. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19237. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19238. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19239. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19240. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19241. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19242. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19243. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19244. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19245. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19246. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19247. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19248. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19249. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19250. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19251. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19252. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19253. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19254. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19255. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19256. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19257. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19258. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19259. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19260. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19261. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19262. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  19263. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  19264. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19265. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19266. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19267. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19268. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19269. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19270. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19271. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19272. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19273. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19274. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  19275. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19276. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19277. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19278. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19279. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19280. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19281. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19282. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19283. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  19284. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19285. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19286. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19287. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19288. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19289. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19290. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19291. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19292. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19293. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19294. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19295. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19296. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19297. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19298. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19299. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19300. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  19301. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19302. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19303. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19304. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19305. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19306. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19307. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19308. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19309. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19310. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19311. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19312. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19313. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19314. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19315. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19316. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  19317. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19318. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19319. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19320. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19321. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19322. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19323. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19324. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19325. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19326. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19327. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19328. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19329. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19330. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19331. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19332. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  19333. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19334. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  19335. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19336. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  19337. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19338. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19339. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19340. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19341. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19342. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19343. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19344. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19345. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19346. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19347. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19348. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19349. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19350. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19351. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19352. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  19353. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  19354. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19355. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19356. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19357. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19358. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19359. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19360. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19361. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19362. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19363. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19364. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19365. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19366. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19367. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19368. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19369. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  19370. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19371. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19372. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19373. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19374. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19375. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19376. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19377. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19378. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19379. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19380. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19381. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19382. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19383. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19384. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19385. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  19386. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19387. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19388. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  19389. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  19390. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  19391. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  19392. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  19393. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  19394. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  19395. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  19396. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  19397. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  19398. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  19399. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  19400. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  19401. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  19402. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  19403. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  19404. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19405. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19406. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19407. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19408. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19409. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19410. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19411. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19412. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19413. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19414. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19415. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19416. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19417. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19418. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19419. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19420. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19421. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  19422. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19423. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19424. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19425. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19426. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19427. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19428. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19429. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19430. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19431. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19432. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19433. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19434. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19435. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19436. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19437. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19438. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19439. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  19440. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19441. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19442. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19443. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19444. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19445. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19446. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19447. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19448. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19449. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19450. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19451. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19452. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19453. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19454. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19455. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19456. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19457. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  19458. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19459. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19460. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19461. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19462. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19463. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19464. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19465. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19466. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19467. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19468. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19469. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19470. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19471. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19472. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19473. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19474. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19475. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  19476. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19477. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19478. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19479. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19480. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19481. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19482. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19483. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19484. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19485. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19486. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19487. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19488. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19489. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19490. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19491. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19492. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  19493. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19494. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19495. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19496. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19497. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19498. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19499. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19500. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19501. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19502. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19503. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19504. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19505. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19506. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19507. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19508. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19509. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19510. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  19511. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19512. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19513. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19514. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19515. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19516. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19517. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19518. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19519. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19520. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19521. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19522. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19523. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19524. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19525. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19526. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19527. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19528. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  19529. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19530. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19531. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19532. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19533. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19534. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19535. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19536. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19537. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19538. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19539. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19540. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19541. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19542. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19543. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19544. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19545. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19546. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  19547. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19548. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19549. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19550. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19551. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19552. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19553. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19554. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19555. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19556. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19557. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19558. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19559. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19560. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19561. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19562. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19563. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19564. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  19565. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19566. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19567. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19568. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19569. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19570. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19571. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19572. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19573. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19574. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19575. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19576. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19577. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19578. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19579. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19580. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19581. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  19582. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19583. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19584. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19585. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19586. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19587. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19588. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19589. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19590. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19591. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19592. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19593. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19594. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19595. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19596. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19597. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19598. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19599. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  19600. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19601. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19602. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19603. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19604. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19605. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19606. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19607. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19608. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19609. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19610. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19611. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19612. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19613. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19614. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19615. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19616. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  19617. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19618. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19619. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19620. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19621. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19622. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19623. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19624. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19625. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19626. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19627. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19628. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19629. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19630. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19631. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19632. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19633. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19634. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  19635. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19636. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19637. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19638. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19639. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19640. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19641. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19642. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19643. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19644. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19645. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19646. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19647. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19648. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19649. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19650. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19651. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19652. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  19653. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19654. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19655. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19656. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19657. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19658. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19659. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19660. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19661. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19662. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19663. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19664. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19665. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19666. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19667. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19668. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19669. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19670. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  19671. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19672. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19673. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19674. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19675. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19676. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19677. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19678. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19679. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19680. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19681. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19682. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19683. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19684. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19685. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19686. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19687. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19688. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  19689. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19690. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19691. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19692. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19693. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19694. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19695. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19696. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19697. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19698. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19699. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19700. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19701. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19702. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19703. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19704. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19705. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19706. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19707. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  19708. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19709. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19710. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19711. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19712. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19713. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19714. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19715. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19716. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19717. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19718. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19719. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19720. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19721. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19722. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19723. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19724. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  19725. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19726. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19727. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19728. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19729. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19730. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19731. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19732. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19733. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19734. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19735. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19736. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19737. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19738. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19739. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19740. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19741. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19742. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19743. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  19744. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19745. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19746. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19747. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19748. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19749. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19750. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19751. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19752. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19753. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19754. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19755. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19756. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19757. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19758. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19759. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19760. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19761. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19762. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  19763. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19764. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19765. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19766. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19767. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19768. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19769. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19770. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19771. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19772. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19773. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19774. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19775. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19776. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19777. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19778. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19779. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19780. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19781. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  19782. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19783. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19784. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19785. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19786. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19787. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19788. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19789. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19790. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19791. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19792. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19793. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19794. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19795. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19796. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19797. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19798. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19799. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19800. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  19801. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19802. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19803. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19804. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19805. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19806. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19807. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19808. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19809. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19810. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19811. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19812. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19813. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19814. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19815. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19816. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19817. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  19818. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19819. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19820. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19821. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19822. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19823. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19824. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19825. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19826. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19827. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19828. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19829. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19830. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19831. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19832. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19833. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19834. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19835. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19836. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  19837. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19838. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19839. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19840. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19841. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19842. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19843. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19844. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19845. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19846. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19847. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19848. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19849. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19850. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19851. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19852. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19853. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19854. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19855. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  19856. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  19857. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  19858. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  19859. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  19860. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  19861. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  19862. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  19863. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  19864. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  19865. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  19866. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  19867. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  19868. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  19869. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  19870. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  19871. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  19872. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  19873. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  19874. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  19875. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  19876. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  19877. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  19878. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  19879. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  19880. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  19881. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  19882. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19883. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19884. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  19885. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19886. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19887. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19888. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19889. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19890. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19891. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19892. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19893. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19894. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19895. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19896. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19897. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19898. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19899. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19900. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19901. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19902. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  19903. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  19904. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  19905. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19906. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19907. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  19908. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  19909. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19910. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19911. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19912. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  19913. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  19914. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19915. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  19916. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19917. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  19918. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  19919. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  19920. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19921. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19922. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19923. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  19924. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19925. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19926. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19927. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  19928. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19929. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19930. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19931. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19932. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  19933. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19934. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19935. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19936. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19937. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19938. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19939. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19940. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19941. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19942. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  19943. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  19944. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  19945. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  19946. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  19947. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  19948. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19949. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19950. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19951. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19952. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19953. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19954. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19955. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19956. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19957. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19958. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19959. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19960. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19961. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19962. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19963. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19964. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  19965. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  19966. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  19967. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  19968. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  19969. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  19970. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  19971. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  19972. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  19973. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  19974. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  19975. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  19976. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  19977. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  19978. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  19979. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  19980. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  19981. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  19982. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  19983. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  19984. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  19985. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  19986. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  19987. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  19988. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  19989. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  19990. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  19991. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  19992. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  19993. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  19994. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  19995. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  19996. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  19997. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  19998. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  19999. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20000. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20001. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20002. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20003. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20004. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20005. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20006. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20007. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20008. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20009. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20010. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20011. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20012. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20013. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20014. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20015. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20016. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20017. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20018. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20019. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20020. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20021. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20022. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20023. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20024. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20025. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20026. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20027. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20028. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20029. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20030. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20031. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20032. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20033. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20034. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20035. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20036. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20037. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20038. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20039. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20040. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20041. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20042. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20043. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20044. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20045. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20046. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20047. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20048. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20049. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20050. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20051. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20052. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20053. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20054. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20055. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20056. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20057. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20058. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20059. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20060. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20061. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20062. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20063. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20064. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20065. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20066. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20067. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20068. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20069. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20070. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20071. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20072. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20073. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20074. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20075. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20076. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20077. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20078. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20079. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20080. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20081. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20082. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20083. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20084. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20085. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20086. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20087. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20088. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20089. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20090. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20091. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20092. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20093. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20094. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20095. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20096. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20097. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20098. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20099. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20100. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20101. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20102. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20103. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20104. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20105. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20106. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20107. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20108. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20109. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20110. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20111. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20112. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20113. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20114. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20115. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20116. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20117. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20118. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20119. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20120. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20121. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20122. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20123. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20124. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20125. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20126. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20127. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20128. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20129. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20130. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20131. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20132. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20133. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20134. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20135. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20136. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20137. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20138. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20139. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20140. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20141. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20142. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20143. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20144. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20145. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20146. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20147. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20148. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20149. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20150. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20151. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20152. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20153. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20154. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20155. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20156. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20157. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20158. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20159. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20160. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20161. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20162. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20163. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20164. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20165. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20166. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20167. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20168. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20169. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20170. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20171. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20172. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20173. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20174. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20175. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20176. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20177. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20178. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20179. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20180. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20181. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20182. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20183. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20184. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20185. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20186. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20187. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20188. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20189. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20190. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20191. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20192. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20193. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20194. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20195. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20196. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20197. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20198. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20199. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20200. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20201. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20202. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20203. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20204. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20205. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20206. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20207. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20208. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20209. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20210. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20211. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20212. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20213. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20214. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20215. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20216. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20217. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20218. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20219. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20220. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20221. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20222. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20223. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20224. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20225. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20226. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20227. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20228. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20229. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20230. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20231. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20232. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20233. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20234. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20235. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20236. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20237. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20238. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20239. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20240. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20241. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20242. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20243. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20244. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20245. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20246. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20247. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20248. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20249. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20250. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20251. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20252. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20253. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20254. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20255. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20256. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20257. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20258. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20259. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20260. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20261. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20262. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20263. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20264. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20265. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20266. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  20267. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  20268. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20269. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20270. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20271. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20272. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20273. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20274. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20275. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20276. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20277. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20278. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20279. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20280. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20281. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20282. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20283. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20284. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20285. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  20286. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  20287. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  20288. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20289. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20290. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20291. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20292. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20293. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20294. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20295. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20296. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20297. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20298. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20299. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20300. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20301. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20302. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  20303. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  20304. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  20305. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  20306. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20307. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20308. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20309. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20310. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20311. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20312. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20313. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20314. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20315. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20316. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20317. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20318. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20319. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20320. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20321. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  20322. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  20323. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  20324. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  20325. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20326. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  20327. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  20328. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  20329. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20330. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  20331. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  20332. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  20333. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  20334. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20335. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  20336. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  20337. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  20338. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  20339. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  20340. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  20341. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20342. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20343. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20344. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20345. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20346. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20347. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20348. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20349. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  20350. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  20351. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20352. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20353. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20354. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20355. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20356. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20357. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20358. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20359. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20360. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20361. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20362. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20363. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20364. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20365. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20366. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20367. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20368. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20369. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20370. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20371. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20372. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20373. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20374. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20375. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20376. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20377. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20378. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20379. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20380. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  20381. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  20382. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  20383. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20384. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  20385. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  20386. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  20387. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20388. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20389. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20390. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20391. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20392. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20393. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20394. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20395. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20396. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20397. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20398. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20399. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20400. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20401. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20402. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20403. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20404. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  20405. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20406. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20407. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20408. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20409. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20410. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20411. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20412. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20413. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20414. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20415. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20416. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20417. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20418. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20419. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20420. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20421. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  20422. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  20423. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20424. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20425. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20426. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20427. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20428. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20429. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20430. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20431. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20432. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20433. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20434. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20435. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20436. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20437. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20438. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20439. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  20440. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20441. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20442. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20443. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20444. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20445. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20446. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20447. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20448. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20449. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20450. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20451. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20452. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20453. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20454. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20455. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20456. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  20457. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20458. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20459. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20460. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20461. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20462. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20463. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20464. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20465. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20466. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20467. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20468. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  20469. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20470. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20471. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20472. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20473. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20474. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20475. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20476. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20477. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20478. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20479. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20480. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20481. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20482. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20483. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20484. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20485. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20486. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20487. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20488. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20489. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20490. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20491. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  20492. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  20493. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  20494. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  20495. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  20496. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  20497. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  20498. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  20499. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  20500. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  20501. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  20502. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  20503. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  20504. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  20505. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  20506. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  20507. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  20508. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  20509. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  20510. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  20511. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20512. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20513. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20514. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20515. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20516. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20517. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20518. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20519. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20520. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20521. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20522. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20523. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20524. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20525. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20526. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20527. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20528. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  20529. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20530. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20531. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20532. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20533. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20534. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20535. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20536. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20537. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20538. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20539. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20540. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20541. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20542. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20543. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20544. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20545. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  20546. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  20547. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20548. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20549. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20550. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20551. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20552. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20553. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20554. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20555. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20556. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20557. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20558. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20559. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20560. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20561. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20562. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20563. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  20564. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20565. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20566. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20567. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20568. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20569. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20570. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20571. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20572. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20573. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20574. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20575. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20576. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20577. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20578. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20579. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20580. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  20581. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  20582. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  20583. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  20584. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  20585. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  20586. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  20587. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  20588. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  20589. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  20590. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  20591. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  20592. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  20593. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  20594. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  20595. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  20596. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  20597. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  20598. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20599. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20600. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20601. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20602. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20603. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  20604. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20605. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20606. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20607. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  20608. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20609. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20610. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20611. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20612. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20613. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  20614. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20615. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20616. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20617. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20618. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20619. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  20620. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20621. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20622. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20623. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20624. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20625. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  20626. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20627. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20628. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20629. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20630. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20631. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  20632. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20633. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20634. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20635. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20636. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20637. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  20638. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  20639. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20640. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20641. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20642. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20643. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  20644. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20645. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20646. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20647. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20648. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20649. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  20650. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20651. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20652. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20653. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20654. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20655. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  20656. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20657. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20658. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20659. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20660. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20661. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  20662. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20663. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20664. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20665. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20666. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20667. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  20668. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20669. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20670. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20671. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20672. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20673. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  20674. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20675. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20676. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20677. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20678. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20679. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  20680. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20681. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20682. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20683. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20684. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20685. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  20686. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20687. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20688. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20689. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20690. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20691. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  20692. {"HDMI", NULL, "HDMI_DL_HL"},
  20693. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20694. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20695. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20696. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20697. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20698. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  20699. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20700. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20701. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20702. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20703. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20704. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  20705. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20706. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20707. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20708. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20709. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20710. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  20711. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20712. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20713. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20714. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20715. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20716. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  20717. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20718. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20719. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  20720. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20721. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20722. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  20723. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20724. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20725. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20726. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20727. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  20728. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  20729. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  20730. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20731. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20732. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  20733. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20734. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  20735. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20736. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20737. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  20738. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  20739. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  20740. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  20741. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20742. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20743. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20744. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20745. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  20746. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20747. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  20748. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  20749. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  20750. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  20751. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20752. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20753. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20754. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20755. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20756. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20757. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20758. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20759. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20760. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20761. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20762. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20763. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20764. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20765. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20766. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20767. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20768. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20769. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20770. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20771. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20772. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20773. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20774. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20775. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20776. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20777. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20778. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20779. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20780. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20781. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20782. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20783. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20784. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20785. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20786. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20787. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20788. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20789. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20790. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20791. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20792. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20793. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20794. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20795. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  20796. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  20797. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  20798. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  20799. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  20800. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  20801. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  20802. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  20803. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20804. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20805. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20806. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20807. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20808. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20809. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20810. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20811. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20812. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20813. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20814. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20815. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20816. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20817. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20818. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20819. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20820. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20821. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20822. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20823. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  20824. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  20825. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20826. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20827. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20828. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20829. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20830. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20831. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20832. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20833. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20834. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20835. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  20836. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  20837. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  20838. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  20839. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  20840. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  20841. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  20842. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  20843. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  20844. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  20845. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  20846. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  20847. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  20848. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  20849. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  20850. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  20851. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  20852. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  20853. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  20854. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  20855. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  20856. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  20857. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  20858. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  20859. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  20860. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  20861. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  20862. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  20863. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  20864. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  20865. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  20866. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  20867. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  20868. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  20869. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  20870. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  20871. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  20872. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  20873. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  20874. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  20875. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  20876. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  20877. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  20878. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  20879. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  20880. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  20881. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  20882. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  20883. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  20884. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  20885. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  20886. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  20887. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  20888. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  20889. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  20890. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  20891. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  20892. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  20893. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  20894. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  20895. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  20896. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  20897. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  20898. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  20899. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  20900. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  20901. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  20902. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  20903. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  20904. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  20905. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  20906. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  20907. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  20908. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  20909. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  20910. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  20911. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  20912. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  20913. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  20914. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  20915. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  20916. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  20917. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  20918. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  20919. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  20920. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  20921. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  20922. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  20923. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  20924. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  20925. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  20926. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  20927. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  20928. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  20929. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20930. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  20931. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  20932. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  20933. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  20934. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  20935. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20936. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20937. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20938. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20939. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20940. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20941. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20942. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20943. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20944. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20945. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20946. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20947. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  20948. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20949. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20950. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20951. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20952. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20953. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20954. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20955. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20956. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20957. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20958. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20959. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20960. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  20961. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20962. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20963. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20964. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20965. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20966. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20967. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20968. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20969. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20970. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20971. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20972. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20973. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  20974. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20975. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20976. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20977. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20978. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20979. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20980. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20981. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20982. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20983. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20984. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20985. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20986. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  20987. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  20988. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  20989. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  20990. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  20991. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  20992. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  20993. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  20994. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  20995. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  20996. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  20997. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  20998. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  20999. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  21000. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21001. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21002. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21003. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21004. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21005. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21006. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21007. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21008. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21009. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21010. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  21011. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21012. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21013. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21014. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21015. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21016. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21017. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21018. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21019. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21020. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21021. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  21022. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  21023. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  21024. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  21025. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  21026. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  21027. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21028. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21029. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  21030. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21031. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21032. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  21033. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  21034. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  21035. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  21036. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  21037. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  21038. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  21039. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  21040. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  21041. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  21042. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  21043. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  21044. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  21045. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  21046. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  21047. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  21048. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  21049. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  21050. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  21051. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  21052. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  21053. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  21054. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  21055. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  21056. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  21057. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  21058. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  21059. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  21060. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21061. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  21062. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  21063. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  21064. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  21065. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  21066. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  21067. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  21068. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  21069. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  21070. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  21071. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  21072. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  21073. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  21074. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  21075. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  21076. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  21077. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  21078. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  21079. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  21080. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  21081. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  21082. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  21083. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  21084. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  21085. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  21086. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  21087. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21088. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  21089. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  21090. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  21091. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  21092. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  21093. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  21094. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  21095. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  21096. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  21097. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  21098. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  21099. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  21100. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  21101. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  21102. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  21103. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  21104. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  21105. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  21106. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  21107. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  21108. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  21109. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  21110. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  21111. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  21112. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  21113. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  21114. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  21115. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  21116. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  21117. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  21118. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  21119. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  21120. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  21121. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  21122. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  21123. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  21124. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  21125. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  21126. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  21127. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  21128. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  21129. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  21130. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  21131. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  21132. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  21133. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  21134. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  21135. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  21136. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  21137. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  21138. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  21139. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21140. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21141. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21142. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21143. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21144. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21145. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21146. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21147. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21148. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21149. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21150. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21151. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21152. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21153. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21154. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21155. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21156. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21157. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21158. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21159. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  21160. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21161. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21162. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21163. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21164. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21165. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21166. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21167. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21168. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21169. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21170. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21171. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21172. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21173. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21174. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21175. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21176. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21177. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21178. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21179. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21180. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  21181. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21182. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21183. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21184. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21185. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21186. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21187. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21188. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21189. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21190. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21191. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21192. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21193. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21194. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21195. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21196. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21197. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21198. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21199. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21200. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21201. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  21202. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21203. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21204. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21205. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21206. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21207. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21208. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21209. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21210. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  21211. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  21212. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  21213. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  21214. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21215. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21216. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21217. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21218. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21219. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21220. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21221. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21222. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  21223. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21224. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21225. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21226. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21227. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21228. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21229. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21230. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21231. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21232. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21233. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21234. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21235. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21236. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21237. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21238. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21239. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21240. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21241. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21242. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21243. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  21244. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21245. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21246. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21247. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21248. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21249. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21250. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21251. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21252. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21253. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21254. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21255. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21256. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21257. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21258. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21259. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21260. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21261. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21262. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21263. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21264. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  21265. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21266. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21267. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21268. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21269. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21270. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21271. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21272. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21273. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21274. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21275. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21276. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21277. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21278. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21279. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21280. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21281. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21282. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21283. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21284. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21285. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  21286. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21287. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21288. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21289. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21290. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21291. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21292. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21293. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21294. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  21295. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  21296. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  21297. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  21298. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21299. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21300. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21301. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21302. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21303. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21304. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21305. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21306. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  21307. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  21308. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  21309. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21310. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21311. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21312. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21313. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21314. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21315. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21316. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21317. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21318. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21319. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21320. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21321. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21322. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21323. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21324. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21325. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21326. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21327. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21328. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21329. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  21330. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21331. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21332. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21333. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21334. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21335. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21336. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21337. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21338. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21339. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21340. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21341. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21342. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21343. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21344. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21345. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21346. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21347. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21348. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21349. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21350. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  21351. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21352. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21353. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21354. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21355. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21356. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21357. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21358. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21359. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21360. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21361. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21362. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21363. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21364. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21365. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21366. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21367. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21368. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21369. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21370. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21371. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  21372. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21373. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21374. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21375. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21376. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21377. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21378. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21379. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21380. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21381. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21382. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21383. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21384. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21385. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21386. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21387. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21388. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21389. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21390. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21391. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21392. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  21393. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21394. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21395. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21396. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21397. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21398. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21399. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21400. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21401. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21402. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21403. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21404. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21405. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21406. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21407. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21408. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21409. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21410. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21411. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21412. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21413. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  21414. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21415. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21416. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21417. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21418. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21419. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21420. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21421. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21422. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21423. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21424. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21425. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21426. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21427. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21428. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21429. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21430. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21431. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21432. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21433. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21434. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  21435. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21436. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21437. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21438. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21439. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21440. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21441. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21442. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21443. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21444. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21445. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21446. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21447. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21448. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21449. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21450. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21451. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21452. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21453. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21454. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21455. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  21456. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21457. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21458. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21459. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21460. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21461. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21462. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21463. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21464. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21465. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21466. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21467. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21468. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21469. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21470. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21471. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21472. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21473. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21474. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21475. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21476. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  21477. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21478. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21479. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21480. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21481. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21482. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21483. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21484. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21485. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21486. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21487. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21488. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21489. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21490. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21491. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21492. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21493. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21494. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21495. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21496. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21497. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  21498. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21499. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21500. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21501. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21502. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21503. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21504. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21505. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21506. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21507. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21508. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21509. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21510. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21511. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21512. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21513. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21514. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21515. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21516. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21517. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21518. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  21519. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21520. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21521. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21522. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21523. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21524. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21525. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21526. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21527. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21528. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21529. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21530. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21531. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21532. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21533. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21534. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21535. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21536. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21537. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21538. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21539. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  21540. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21541. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21542. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21543. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21544. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21545. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21546. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21547. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21548. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  21549. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  21550. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  21551. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  21552. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21553. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  21554. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  21555. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  21556. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  21557. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  21558. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  21559. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  21560. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  21561. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21562. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21563. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21564. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21565. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21566. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21567. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21568. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21569. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21570. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21571. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21572. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  21573. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21574. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21575. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21576. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21577. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21578. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21579. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21580. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21581. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21582. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21583. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21584. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  21585. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  21586. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21587. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  21588. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21589. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21590. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21591. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21592. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21593. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21594. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21595. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21596. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21597. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21598. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21599. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21600. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21601. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21602. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21603. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21604. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21605. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21606. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21607. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21608. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  21609. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21610. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21611. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  21612. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  21613. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  21614. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  21615. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  21616. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  21617. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21618. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21619. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21620. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21621. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  21622. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21623. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  21624. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21625. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21626. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21627. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21628. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  21629. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21630. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21631. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21632. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  21633. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21634. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21635. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21636. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  21637. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21638. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21639. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21640. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  21641. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21642. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21643. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21644. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21645. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21646. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21647. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  21648. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  21649. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  21650. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  21651. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21652. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21653. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  21654. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21655. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21656. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21657. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21658. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21659. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21660. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  21661. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21662. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21663. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21664. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21665. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21666. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21667. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21668. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21669. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21670. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21671. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21672. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  21673. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  21674. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21675. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  21676. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21677. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21678. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  21679. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21680. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21681. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  21682. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21683. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21684. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  21685. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21686. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21687. {"STUB_RX", NULL, "STUB_RX Mixer"},
  21688. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21689. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21690. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  21691. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21692. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21693. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  21694. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21695. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21696. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21697. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21698. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21699. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  21700. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  21701. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  21702. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  21703. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  21704. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  21705. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  21706. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21707. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  21708. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21709. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  21710. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21711. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21712. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  21713. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  21714. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21715. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  21716. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  21717. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  21718. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  21719. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21720. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21721. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21722. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  21723. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21724. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  21725. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21726. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21727. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21728. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21729. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21730. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21731. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21732. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  21733. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21734. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  21735. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21736. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  21737. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  21738. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  21739. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21740. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  21741. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  21742. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  21743. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  21744. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21745. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21746. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21747. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21748. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21749. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21750. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21751. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  21752. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21753. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  21754. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  21755. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21756. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21757. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21758. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21759. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21760. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21761. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21762. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21763. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21764. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  21765. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21766. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21767. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21768. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21769. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21770. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21771. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21772. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  21773. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21774. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21775. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21776. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21777. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21778. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21779. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  21780. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  21781. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21782. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  21783. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  21784. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  21785. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  21786. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  21787. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  21788. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  21789. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  21790. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  21791. /* Backend Enablement */
  21792. {"BE_OUT", NULL, "PRI_I2S_RX"},
  21793. {"BE_OUT", NULL, "SEC_I2S_RX"},
  21794. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  21795. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  21796. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  21797. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21798. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  21799. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  21800. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  21801. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  21802. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  21803. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  21804. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  21805. {"BE_OUT", NULL, "HDMI"},
  21806. {"BE_OUT", NULL, "DISPLAY_PORT"},
  21807. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  21808. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  21809. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  21810. {"BE_OUT", NULL, "MI2S_RX"},
  21811. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  21812. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  21813. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  21814. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  21815. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  21816. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  21817. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  21818. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  21819. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  21820. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  21821. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  21822. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21823. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  21824. {"BE_OUT", NULL, "INT_FM_RX"},
  21825. {"BE_OUT", NULL, "PCM_RX"},
  21826. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21827. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21828. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  21829. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  21830. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  21831. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  21832. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  21833. {"BE_OUT", NULL, "INT_FM_RX"},
  21834. {"BE_OUT", NULL, "PCM_RX"},
  21835. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21836. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  21837. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  21838. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  21839. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  21840. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  21841. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  21842. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  21843. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  21844. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  21845. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  21846. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  21847. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  21848. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  21849. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  21850. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  21851. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  21852. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  21853. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  21854. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  21855. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  21856. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  21857. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  21858. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  21859. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  21860. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  21861. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  21862. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  21863. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  21864. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  21865. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  21866. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  21867. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  21868. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  21869. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  21870. {"PRI_I2S_TX", NULL, "BE_IN"},
  21871. {"MI2S_TX", NULL, "BE_IN"},
  21872. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  21873. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  21874. {"PRI_MI2S_TX", NULL, "BE_IN"},
  21875. {"TERT_MI2S_TX", NULL, "BE_IN"},
  21876. {"INT0_MI2S_TX", NULL, "BE_IN"},
  21877. {"INT2_MI2S_TX", NULL, "BE_IN"},
  21878. {"INT3_MI2S_TX", NULL, "BE_IN"},
  21879. {"INT4_MI2S_TX", NULL, "BE_IN"},
  21880. {"INT5_MI2S_TX", NULL, "BE_IN"},
  21881. {"SEC_MI2S_TX", NULL, "BE_IN"},
  21882. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  21883. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  21884. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  21885. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  21886. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  21887. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  21888. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  21889. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  21890. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  21891. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  21892. {"USB_AUDIO_TX", NULL, "BE_IN" },
  21893. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  21894. {"INT_FM_TX", NULL, "BE_IN"},
  21895. {"PCM_TX", NULL, "BE_IN"},
  21896. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  21897. {"BE_OUT", NULL, "STUB_RX"},
  21898. {"STUB_TX", NULL, "BE_IN"},
  21899. {"STUB_1_TX", NULL, "BE_IN"},
  21900. {"BE_OUT", NULL, "AUX_PCM_RX"},
  21901. {"AUX_PCM_TX", NULL, "BE_IN"},
  21902. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  21903. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  21904. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  21905. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  21906. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  21907. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  21908. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21909. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  21910. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21911. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  21912. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  21913. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21914. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  21915. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  21916. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  21917. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  21918. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  21919. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  21920. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  21921. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  21922. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  21923. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  21924. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  21925. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  21926. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  21927. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  21928. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  21929. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  21930. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  21931. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  21932. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  21933. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  21934. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  21935. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  21936. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  21937. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  21938. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  21939. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  21940. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  21941. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  21942. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  21943. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  21944. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21945. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21946. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  21947. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  21948. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  21949. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  21950. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  21951. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  21952. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  21953. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  21954. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  21955. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  21956. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  21957. };
  21958. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  21959. struct snd_pcm_hw_params *params)
  21960. {
  21961. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21962. unsigned int be_id = rtd->dai_link->id;
  21963. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21964. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21965. return -EINVAL;
  21966. }
  21967. mutex_lock(&routing_lock);
  21968. msm_bedais[be_id].sample_rate = params_rate(params);
  21969. msm_bedais[be_id].channel = params_channels(params);
  21970. msm_bedais[be_id].format = params_format(params);
  21971. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  21972. __func__, msm_bedais[be_id].sample_rate,
  21973. msm_bedais[be_id].format, be_id);
  21974. mutex_unlock(&routing_lock);
  21975. return 0;
  21976. }
  21977. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  21978. {
  21979. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  21980. unsigned int be_id = rtd->dai_link->id;
  21981. int i, session_type, path_type, topology;
  21982. struct msm_pcm_routing_bdai_data *bedai;
  21983. struct msm_pcm_routing_fdai_data *fdai;
  21984. pr_debug("%s: substream->pcm->id:%s\n",
  21985. __func__, substream->pcm->id);
  21986. if (be_id >= MSM_BACKEND_DAI_MAX) {
  21987. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  21988. return -EINVAL;
  21989. }
  21990. bedai = &msm_bedais[be_id];
  21991. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  21992. 0 : 1);
  21993. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  21994. path_type = ADM_PATH_PLAYBACK;
  21995. else
  21996. path_type = ADM_PATH_LIVE_REC;
  21997. mutex_lock(&routing_lock);
  21998. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  21999. if (!is_mm_lsm_fe_id(i))
  22000. continue;
  22001. fdai = &fe_dai_map[i][session_type];
  22002. if (fdai->strm_id != INVALID_SESSION) {
  22003. int idx;
  22004. int port_id;
  22005. unsigned long copp =
  22006. session_copp_map[i][session_type][be_id];
  22007. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  22008. if (test_bit(idx, &copp))
  22009. break;
  22010. if (idx >= MAX_COPPS_PER_PORT) {
  22011. pr_debug("%s: copp idx is invalid, exiting\n",
  22012. __func__);
  22013. continue;
  22014. }
  22015. fdai->be_srate = bedai->sample_rate;
  22016. port_id = get_port_id(bedai->port_id);
  22017. topology = adm_get_topology_for_port_copp_idx(port_id,
  22018. idx);
  22019. msm_routing_unload_topology(topology);
  22020. adm_close(port_id, fdai->perf_mode, idx);
  22021. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  22022. __func__, copp, i, session_type, be_id,
  22023. topology);
  22024. clear_bit(idx,
  22025. &session_copp_map[i][session_type][be_id]);
  22026. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22027. (fdai->passthr_mode == LEGACY_PCM))
  22028. msm_pcm_routing_deinit_pp(port_id,
  22029. topology);
  22030. }
  22031. }
  22032. bedai->active = 0;
  22033. bedai->sample_rate = 0;
  22034. bedai->channel = 0;
  22035. mutex_unlock(&routing_lock);
  22036. return 0;
  22037. }
  22038. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  22039. {
  22040. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  22041. unsigned int be_id = rtd->dai_link->id;
  22042. int i, path_type, topology;
  22043. int session_type = INVALID_SESSION;
  22044. struct msm_pcm_routing_bdai_data *bedai;
  22045. u32 channels, sample_rate;
  22046. uint16_t bits_per_sample = 16, voc_path_type;
  22047. struct msm_pcm_routing_fdai_data *fdai;
  22048. u32 session_id;
  22049. struct media_format_info voc_be_media_format;
  22050. bool is_lsm;
  22051. pr_debug("%s: substream->pcm->id:%s\n",
  22052. __func__, substream->pcm->id);
  22053. if (be_id >= MSM_BACKEND_DAI_MAX) {
  22054. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  22055. return -EINVAL;
  22056. }
  22057. bedai = &msm_bedais[be_id];
  22058. mutex_lock(&routing_lock);
  22059. if (bedai->active == 1)
  22060. goto done; /* Ignore prepare if back-end already active */
  22061. /* AFE port is not active at this point. However, still
  22062. * go ahead setting active flag under the notion that
  22063. * QDSP6 is able to handle ADM starting before AFE port
  22064. * is started.
  22065. */
  22066. bedai->active = 1;
  22067. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22068. if (!(is_mm_lsm_fe_id(i) &&
  22069. route_check_fe_id_adm_support(i)))
  22070. continue;
  22071. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  22072. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22073. fdai = &fe_dai_map[i][session_type];
  22074. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  22075. if (fdai->passthr_mode != LEGACY_PCM)
  22076. path_type = ADM_PATH_COMPRESSED_RX;
  22077. else
  22078. path_type = ADM_PATH_PLAYBACK;
  22079. } else {
  22080. if ((fdai->passthr_mode != LEGACY_PCM) &&
  22081. (fdai->passthr_mode != LISTEN))
  22082. path_type = ADM_PATH_COMPRESSED_TX;
  22083. else
  22084. path_type = ADM_PATH_LIVE_REC;
  22085. }
  22086. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  22087. (i <= MSM_FRONTEND_DAI_LSM8);
  22088. if (fdai->strm_id != INVALID_SESSION) {
  22089. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  22090. int port_id = get_port_id(bedai->port_id);
  22091. if (session_type == SESSION_TYPE_TX &&
  22092. fdai->be_srate &&
  22093. (fdai->be_srate != bedai->sample_rate)) {
  22094. pr_debug("%s: flush strm %d diff BE rates\n",
  22095. __func__,
  22096. fdai->strm_id);
  22097. if (fdai->event_info.event_func)
  22098. fdai->event_info.event_func(
  22099. MSM_PCM_RT_EVT_BUF_RECFG,
  22100. fdai->event_info.priv_data);
  22101. fdai->be_srate = 0; /* might not need it */
  22102. }
  22103. bits_per_sample = msm_routing_get_bit_width(
  22104. bedai->format);
  22105. app_type =
  22106. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  22107. if (app_type && is_lsm) {
  22108. app_type_idx =
  22109. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  22110. sample_rate =
  22111. fe_dai_app_type_cfg[i][session_type][be_id]
  22112. .sample_rate;
  22113. bits_per_sample =
  22114. lsm_app_type_cfg[app_type_idx].bit_width;
  22115. } else if (app_type) {
  22116. app_type_idx =
  22117. msm_pcm_routing_get_app_type_idx(app_type);
  22118. sample_rate =
  22119. fe_dai_app_type_cfg[i][session_type]
  22120. [be_id].sample_rate;
  22121. bits_per_sample =
  22122. app_type_cfg[app_type_idx].bit_width;
  22123. } else
  22124. sample_rate = bedai->sample_rate;
  22125. /*
  22126. * check if ADM needs to be configured with different
  22127. * channel mapping than backend
  22128. */
  22129. if (!bedai->adm_override_ch)
  22130. channels = bedai->channel;
  22131. else
  22132. channels = bedai->adm_override_ch;
  22133. acdb_dev_id =
  22134. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  22135. topology = msm_routing_get_adm_topology(i, session_type,
  22136. be_id);
  22137. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  22138. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  22139. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  22140. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  22141. copp_idx = adm_open(port_id, path_type,
  22142. sample_rate, channels, topology,
  22143. fdai->perf_mode, bits_per_sample,
  22144. app_type, acdb_dev_id,
  22145. session_type);
  22146. if ((copp_idx < 0) ||
  22147. (copp_idx >= MAX_COPPS_PER_PORT)) {
  22148. pr_err("%s: adm open failed\n", __func__);
  22149. mutex_unlock(&routing_lock);
  22150. return -EINVAL;
  22151. }
  22152. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  22153. __func__, i, session_type, be_id);
  22154. set_bit(copp_idx,
  22155. &session_copp_map[i][session_type][be_id]);
  22156. if (msm_is_resample_needed(
  22157. sample_rate,
  22158. bedai->sample_rate))
  22159. adm_copp_mfc_cfg(port_id, copp_idx,
  22160. bedai->sample_rate);
  22161. msm_pcm_routing_build_matrix(i, session_type, path_type,
  22162. fdai->perf_mode, fdai->passthr_mode);
  22163. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  22164. (fdai->passthr_mode == LEGACY_PCM))
  22165. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  22166. topology, channels);
  22167. }
  22168. }
  22169. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  22170. session_id = msm_pcm_routing_get_voc_sessionid(i);
  22171. if (session_id) {
  22172. pr_debug("%s voice session_id: 0x%x\n", __func__,
  22173. session_id);
  22174. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  22175. voc_path_type = RX_PATH;
  22176. else
  22177. voc_path_type = TX_PATH;
  22178. voc_set_route_flag(session_id, voc_path_type, 1);
  22179. memset(&voc_be_media_format, 0,
  22180. sizeof(struct media_format_info));
  22181. voc_be_media_format.port_id = bedai->port_id;
  22182. voc_be_media_format.num_channels = bedai->channel;
  22183. voc_be_media_format.sample_rate = bedai->sample_rate;
  22184. voc_be_media_format.bits_per_sample = bedai->format;
  22185. /* Defaulting this to 1 for voice call usecases */
  22186. voc_be_media_format.channel_mapping[0] = 1;
  22187. voc_set_device_config(session_id, voc_path_type,
  22188. &voc_be_media_format);
  22189. if (voc_get_route_flag(session_id, RX_PATH) &&
  22190. voc_get_route_flag(session_id, TX_PATH))
  22191. voc_enable_device(session_id);
  22192. }
  22193. }
  22194. /* Check if backend is an external ec ref port and set as needed */
  22195. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  22196. memset(&voc_be_media_format, 0,
  22197. sizeof(struct media_format_info));
  22198. /* Get format info for ec ref port from msm_bedais[] */
  22199. voc_be_media_format.port_id = bedai->port_id;
  22200. voc_be_media_format.num_channels = bedai->channel;
  22201. voc_be_media_format.bits_per_sample = bedai->format;
  22202. voc_be_media_format.sample_rate = bedai->sample_rate;
  22203. /* Defaulting this to 1 for voice call usecases */
  22204. voc_be_media_format.channel_mapping[0] = 1;
  22205. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  22206. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  22207. __func__, voc_be_media_format.port_id,
  22208. voc_be_media_format.num_channels,
  22209. voc_be_media_format.bits_per_sample,
  22210. voc_be_media_format.sample_rate);
  22211. }
  22212. done:
  22213. mutex_unlock(&routing_lock);
  22214. return 0;
  22215. }
  22216. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  22217. int fe_id)
  22218. {
  22219. int index, topo_id, be_idx;
  22220. unsigned long pp_config = 0;
  22221. bool mute_on;
  22222. int latency, session_type;
  22223. bool compr_passthr_mode = true;
  22224. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  22225. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  22226. pr_err("%s: Device pp params on invalid port %d\n",
  22227. __func__, port_id);
  22228. return -EINVAL;
  22229. }
  22230. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22231. if (port_id == msm_bedais[be_idx].port_id)
  22232. break;
  22233. }
  22234. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22235. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22236. return -EINVAL;
  22237. }
  22238. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22239. if (msm_bedais_pp_params[index].port_id == port_id)
  22240. break;
  22241. }
  22242. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22243. pr_err("%s: Invalid backend pp params index %d\n",
  22244. __func__, index);
  22245. return -EINVAL;
  22246. }
  22247. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  22248. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  22249. pr_err("%s: Invalid passthrough topology 0x%x\n",
  22250. __func__, topo_id);
  22251. return -EINVAL;
  22252. }
  22253. session_type =
  22254. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22255. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22256. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  22257. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  22258. compr_passthr_mode = false;
  22259. pp_config = msm_bedais_pp_params[index].pp_params_config;
  22260. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  22261. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22262. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  22263. mute_on = msm_bedais_pp_params[index].mute_on;
  22264. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22265. adm_send_compressed_device_mute(port_id,
  22266. copp_idx,
  22267. mute_on);
  22268. }
  22269. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  22270. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22271. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  22272. &pp_config);
  22273. latency = msm_bedais_pp_params[index].latency;
  22274. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22275. adm_send_compressed_device_latency(port_id,
  22276. copp_idx,
  22277. latency);
  22278. }
  22279. return 0;
  22280. }
  22281. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  22282. {
  22283. uint32_t topology = NULL_COPP_TOPOLOGY;
  22284. void *cal_info = NULL;
  22285. uint32_t size = 0;
  22286. /* Retrieve cal_info size from cal data*/
  22287. size = data_size - sizeof(struct audio_cal_type_basic);
  22288. cal_info = kzalloc(size, GFP_KERNEL);
  22289. if (!cal_info)
  22290. goto done;
  22291. memcpy(cal_info,
  22292. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  22293. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  22294. kfree(cal_info);
  22295. cal_info = NULL;
  22296. done:
  22297. pr_debug("%s: Using topology %d\n", __func__, topology);
  22298. return topology;
  22299. }
  22300. static void msm_routing_load_topology(size_t data_size, void *data)
  22301. {
  22302. uint32_t topology_id;
  22303. int ret = -EINVAL;
  22304. topology_id = msm_routing_get_topology(data_size, data);
  22305. if (topology_id != NULL_COPP_TOPOLOGY)
  22306. ret = q6core_load_unload_topo_modules(topology_id,
  22307. CORE_LOAD_TOPOLOGY);
  22308. if (ret < 0)
  22309. pr_debug("%s %d load topology failed\n",
  22310. __func__, topology_id);
  22311. }
  22312. static void msm_routing_unload_topology(uint32_t topology_id)
  22313. {
  22314. int ret = -EINVAL;
  22315. if (topology_id != NULL_COPP_TOPOLOGY)
  22316. ret = q6core_load_unload_topo_modules(topology_id,
  22317. CORE_UNLOAD_TOPOLOGY);
  22318. if (ret < 0)
  22319. pr_debug("%s %d unload topology failed\n",
  22320. __func__, topology_id);
  22321. }
  22322. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22323. struct snd_ctl_elem_value *ucontrol)
  22324. {
  22325. int pp_id = ucontrol->value.integer.value[0];
  22326. int port_id = 0;
  22327. int index, be_idx, i, topo_id, idx;
  22328. bool mute;
  22329. int latency, session_type;
  22330. bool compr_passthr_mode = true;
  22331. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  22332. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22333. port_id = msm_bedais[be_idx].port_id;
  22334. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  22335. break;
  22336. }
  22337. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22338. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  22339. return -EINVAL;
  22340. }
  22341. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  22342. if (msm_bedais_pp_params[index].port_id == port_id)
  22343. break;
  22344. }
  22345. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  22346. pr_err("%s: Invalid pp params backend index %d\n",
  22347. __func__, index);
  22348. return -EINVAL;
  22349. }
  22350. session_type =
  22351. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  22352. SESSION_TYPE_RX : SESSION_TYPE_TX;
  22353. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22354. MSM_FRONTEND_DAI_MM_SIZE) {
  22355. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  22356. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  22357. compr_passthr_mode = false;
  22358. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22359. unsigned long copp =
  22360. session_copp_map[i]
  22361. [SESSION_TYPE_RX][be_idx];
  22362. if (!test_bit(idx, &copp))
  22363. continue;
  22364. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  22365. idx);
  22366. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  22367. continue;
  22368. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  22369. __func__, port_id, copp, msm_bedais[be_idx].active,
  22370. fe_dai_map[i][session_type].passthr_mode);
  22371. switch (pp_id) {
  22372. case ADM_PP_PARAM_MUTE_ID:
  22373. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  22374. mute = ucontrol->value.integer.value[1] ? true : false;
  22375. msm_bedais_pp_params[index].mute_on = mute;
  22376. set_bit(ADM_PP_PARAM_MUTE_BIT,
  22377. &msm_bedais_pp_params[index].pp_params_config);
  22378. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22379. adm_send_compressed_device_mute(port_id,
  22380. idx, mute);
  22381. break;
  22382. case ADM_PP_PARAM_LATENCY_ID:
  22383. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  22384. msm_bedais_pp_params[index].latency =
  22385. ucontrol->value.integer.value[1];
  22386. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  22387. &msm_bedais_pp_params[index].pp_params_config);
  22388. latency = msm_bedais_pp_params[index].latency =
  22389. ucontrol->value.integer.value[1];
  22390. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  22391. adm_send_compressed_device_latency(port_id,
  22392. idx, latency);
  22393. break;
  22394. default:
  22395. pr_info("%s, device pp param %d not supported\n",
  22396. __func__, pp_id);
  22397. break;
  22398. }
  22399. }
  22400. }
  22401. return 0;
  22402. }
  22403. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  22404. struct snd_ctl_elem_value *ucontrol)
  22405. {
  22406. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  22407. return 0;
  22408. }
  22409. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  22410. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  22411. 0, 3, msm_routing_get_device_pp_params_mixer,
  22412. msm_routing_put_device_pp_params_mixer),
  22413. };
  22414. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  22415. struct snd_ctl_elem_value *ucontrol)
  22416. {
  22417. ucontrol->value.integer.value[0] =
  22418. core_get_license_status(ASM_MEDIA_FMT_APTX);
  22419. pr_debug("%s: status %ld\n", __func__,
  22420. ucontrol->value.integer.value[0]);
  22421. return 0;
  22422. }
  22423. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  22424. struct snd_ctl_elem_value *ucontrol)
  22425. {
  22426. int32_t status = 0;
  22427. status = core_set_license(ucontrol->value.integer.value[0],
  22428. APTX_CLASSIC_DEC_LICENSE_ID);
  22429. pr_debug("%s: status %d\n", __func__, status);
  22430. return status;
  22431. }
  22432. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  22433. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  22434. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  22435. msm_aptx_dec_license_control_put),
  22436. };
  22437. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  22438. struct snd_ctl_elem_info *uinfo)
  22439. {
  22440. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22441. uinfo->count = sizeof(be_dai_name_table);
  22442. return 0;
  22443. }
  22444. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  22445. unsigned int __user *bytes,
  22446. unsigned int size)
  22447. {
  22448. int i;
  22449. int ret = 0;
  22450. if (size < sizeof(be_dai_name_table)) {
  22451. pr_err("%s: invalid size %d requested, returning\n",
  22452. __func__, size);
  22453. ret = -EINVAL;
  22454. goto done;
  22455. }
  22456. /*
  22457. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  22458. * needed when adding new backends
  22459. */
  22460. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22461. be_dai_name_table[i].be_id = i;
  22462. strlcpy(be_dai_name_table[i].be_name,
  22463. msm_bedais[i].name,
  22464. LPASS_BE_NAME_MAX_LENGTH);
  22465. }
  22466. ret = copy_to_user(bytes, &be_dai_name_table,
  22467. sizeof(be_dai_name_table));
  22468. if (ret) {
  22469. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  22470. ret = -EFAULT;
  22471. }
  22472. done:
  22473. return ret;
  22474. }
  22475. static const struct snd_kcontrol_new
  22476. msm_routing_be_dai_name_table_mixer_controls[] = {
  22477. {
  22478. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  22479. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  22480. .info = msm_routing_be_dai_name_table_info,
  22481. .name = "Backend DAI Name Table",
  22482. .tlv.c = snd_soc_bytes_tlv_callback,
  22483. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  22484. .max = sizeof(be_dai_name_table),
  22485. .get = msm_routing_be_dai_name_table_tlv_get,
  22486. }
  22487. },
  22488. };
  22489. static int msm_routing_stereo_channel_reverse_control_get(
  22490. struct snd_kcontrol *kcontrol,
  22491. struct snd_ctl_elem_value *ucontrol)
  22492. {
  22493. ucontrol->value.integer.value[0] = swap_ch;
  22494. pr_debug("%s: Swap channel value: %ld\n", __func__,
  22495. ucontrol->value.integer.value[0]);
  22496. return 0;
  22497. }
  22498. static int msm_routing_stereo_channel_reverse_control_put(
  22499. struct snd_kcontrol *kcontrol,
  22500. struct snd_ctl_elem_value *ucontrol)
  22501. {
  22502. int i, idx, be_index, port_id;
  22503. int ret = 0;
  22504. unsigned long copp;
  22505. pr_debug("%s Swap channel value:%ld\n", __func__,
  22506. ucontrol->value.integer.value[0]);
  22507. swap_ch = ucontrol->value.integer.value[0];
  22508. mutex_lock(&routing_lock);
  22509. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22510. port_id = msm_bedais[be_index].port_id;
  22511. if (!msm_bedais[be_index].active)
  22512. continue;
  22513. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22514. MSM_FRONTEND_DAI_MM_SIZE) {
  22515. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  22516. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22517. if (!test_bit(idx, &copp))
  22518. continue;
  22519. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  22520. __func__, port_id, idx);
  22521. ret = adm_swap_speaker_channels(
  22522. port_id, idx,
  22523. msm_bedais[be_index].sample_rate,
  22524. swap_ch);
  22525. if (ret) {
  22526. pr_err("%s:Swap_channel failed, err=%d\n",
  22527. __func__, ret);
  22528. goto done;
  22529. }
  22530. }
  22531. }
  22532. }
  22533. done:
  22534. mutex_unlock(&routing_lock);
  22535. return ret;
  22536. }
  22537. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  22538. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  22539. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  22540. msm_routing_stereo_channel_reverse_control_put),
  22541. };
  22542. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  22543. struct snd_ctl_elem_info *uinfo)
  22544. {
  22545. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  22546. uinfo->count = 1;
  22547. return 0;
  22548. }
  22549. static int msm_routing_instance_id_support_put(
  22550. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22551. {
  22552. bool supported = ucontrol->value.integer.value[0] ? true : false;
  22553. q6common_update_instance_id_support(supported);
  22554. return 0;
  22555. }
  22556. static int msm_routing_instance_id_support_get(
  22557. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  22558. {
  22559. bool supported = false;
  22560. supported = q6common_is_instance_id_supported();
  22561. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  22562. return 0;
  22563. }
  22564. static const struct snd_kcontrol_new
  22565. msm_routing_feature_support_mixer_controls[] = {
  22566. {
  22567. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  22568. SNDRV_CTL_ELEM_ACCESS_WRITE,
  22569. .info = msm_routing_instance_id_support_info,
  22570. .name = "Instance ID Support",
  22571. .put = msm_routing_instance_id_support_put,
  22572. .get = msm_routing_instance_id_support_get,
  22573. },
  22574. };
  22575. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  22576. .hw_params = msm_pcm_routing_hw_params,
  22577. .close = msm_pcm_routing_close,
  22578. .prepare = msm_pcm_routing_prepare,
  22579. };
  22580. /* Not used but frame seems to require it */
  22581. static int msm_routing_probe(struct snd_soc_component *component)
  22582. {
  22583. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  22584. ARRAY_SIZE(msm_qdsp6_widgets));
  22585. snd_soc_dapm_add_routes(&component->dapm, intercon,
  22586. ARRAY_SIZE(intercon));
  22587. snd_soc_dapm_new_widgets(component->dapm.card);
  22588. snd_soc_add_component_controls(component, lsm_controls,
  22589. ARRAY_SIZE(lsm_controls));
  22590. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  22591. ARRAY_SIZE(aanc_slim_0_rx_mux));
  22592. snd_soc_add_component_controls(component, aanc_noise_level,
  22593. ARRAY_SIZE(aanc_noise_level));
  22594. snd_soc_add_component_controls(component, msm_voc_session_controls,
  22595. ARRAY_SIZE(msm_voc_session_controls));
  22596. snd_soc_add_component_controls(component, app_type_cfg_controls,
  22597. ARRAY_SIZE(app_type_cfg_controls));
  22598. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  22599. ARRAY_SIZE(lsm_app_type_cfg_controls));
  22600. snd_soc_add_component_controls(component, module_cfg_controls,
  22601. ARRAY_SIZE(module_cfg_controls));
  22602. snd_soc_add_component_controls(component,
  22603. stereo_to_custom_stereo_controls,
  22604. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  22605. snd_soc_add_component_controls(component, ec_ref_param_controls,
  22606. ARRAY_SIZE(ec_ref_param_controls));
  22607. snd_soc_add_component_controls(component, channel_mixer_controls,
  22608. ARRAY_SIZE(channel_mixer_controls));
  22609. msm_qti_pp_add_controls(component);
  22610. msm_dts_srs_tm_add_controls(component);
  22611. msm_dolby_dap_add_controls(component);
  22612. snd_soc_add_component_controls(component,
  22613. use_ds1_or_ds2_controls,
  22614. ARRAY_SIZE(use_ds1_or_ds2_controls));
  22615. snd_soc_add_component_controls(component,
  22616. device_pp_params_mixer_controls,
  22617. ARRAY_SIZE(device_pp_params_mixer_controls));
  22618. snd_soc_add_component_controls(component,
  22619. msm_routing_be_dai_name_table_mixer_controls,
  22620. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  22621. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  22622. ARRAY_SIZE(msm_source_tracking_controls));
  22623. snd_soc_add_component_controls(component, adm_channel_config_controls,
  22624. ARRAY_SIZE(adm_channel_config_controls));
  22625. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  22626. ARRAY_SIZE(aptx_dec_license_controls));
  22627. snd_soc_add_component_controls(component,
  22628. stereo_channel_reverse_control,
  22629. ARRAY_SIZE(stereo_channel_reverse_control));
  22630. snd_soc_add_component_controls(
  22631. component, msm_routing_feature_support_mixer_controls,
  22632. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  22633. return 0;
  22634. }
  22635. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  22636. {
  22637. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  22638. }
  22639. void msm_routing_pcm_free(struct snd_pcm *pcm)
  22640. {
  22641. msm_pcm_routing_hwdep_free(pcm);
  22642. }
  22643. static struct snd_soc_component_driver msm_soc_routing_component = {
  22644. .name = DRV_NAME,
  22645. .ops = &msm_routing_pcm_ops,
  22646. .probe = msm_routing_probe,
  22647. .pcm_new = msm_routing_pcm_new,
  22648. .pcm_free = msm_routing_pcm_free,
  22649. };
  22650. static int msm_routing_pcm_probe(struct platform_device *pdev)
  22651. {
  22652. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  22653. return snd_soc_register_component(&pdev->dev,
  22654. &msm_soc_routing_component,
  22655. NULL, 0);
  22656. }
  22657. static int msm_routing_pcm_remove(struct platform_device *pdev)
  22658. {
  22659. snd_soc_unregister_component(&pdev->dev);
  22660. return 0;
  22661. }
  22662. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  22663. {.compatible = "qcom,msm-pcm-routing"},
  22664. {}
  22665. };
  22666. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  22667. static struct platform_driver msm_routing_pcm_driver = {
  22668. .driver = {
  22669. .name = "msm-pcm-routing",
  22670. .owner = THIS_MODULE,
  22671. .of_match_table = msm_pcm_routing_dt_match,
  22672. },
  22673. .probe = msm_routing_pcm_probe,
  22674. .remove = msm_routing_pcm_remove,
  22675. };
  22676. int msm_routing_check_backend_enabled(int fedai_id)
  22677. {
  22678. int i;
  22679. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  22680. /* bad ID assigned in machine driver */
  22681. pr_err("%s: bad MM ID\n", __func__);
  22682. return 0;
  22683. }
  22684. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  22685. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  22686. return msm_bedais[i].active;
  22687. }
  22688. return 0;
  22689. }
  22690. static int get_cal_type_index(int32_t cal_type)
  22691. {
  22692. int ret = -EINVAL;
  22693. switch (cal_type) {
  22694. case ADM_TOPOLOGY_CAL_TYPE:
  22695. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  22696. break;
  22697. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  22698. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  22699. break;
  22700. default:
  22701. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  22702. }
  22703. return ret;
  22704. }
  22705. static int msm_routing_set_cal(int32_t cal_type,
  22706. size_t data_size, void *data)
  22707. {
  22708. int ret = 0;
  22709. int cal_index;
  22710. pr_debug("%s\n", __func__);
  22711. cal_index = get_cal_type_index(cal_type);
  22712. if (cal_index < 0) {
  22713. pr_err("%s: Could not get cal index %d\n",
  22714. __func__, cal_index);
  22715. ret = -EINVAL;
  22716. goto done;
  22717. }
  22718. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  22719. if (ret < 0) {
  22720. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  22721. __func__, ret, cal_type);
  22722. ret = -EINVAL;
  22723. goto done;
  22724. }
  22725. /* Pre-load if it is ADM topology */
  22726. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  22727. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  22728. msm_routing_load_topology(data_size, data);
  22729. }
  22730. done:
  22731. return ret;
  22732. }
  22733. static void msm_routing_delete_cal_data(void)
  22734. {
  22735. pr_debug("%s\n", __func__);
  22736. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  22737. }
  22738. static int msm_routing_init_cal_data(void)
  22739. {
  22740. int ret = 0;
  22741. struct cal_type_info cal_type_info[] = {
  22742. {{ADM_TOPOLOGY_CAL_TYPE,
  22743. {NULL, NULL, NULL,
  22744. msm_routing_set_cal, NULL, NULL} },
  22745. {NULL, NULL, cal_utils_match_buf_num} },
  22746. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  22747. {NULL, NULL, NULL,
  22748. msm_routing_set_cal, NULL, NULL} },
  22749. {NULL, NULL, cal_utils_match_buf_num} },
  22750. };
  22751. pr_debug("%s\n", __func__);
  22752. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  22753. &cal_type_info[0]);
  22754. if (ret < 0) {
  22755. pr_err("%s: could not create cal type!\n",
  22756. __func__);
  22757. ret = -EINVAL;
  22758. goto err;
  22759. }
  22760. return ret;
  22761. err:
  22762. msm_routing_delete_cal_data();
  22763. return ret;
  22764. }
  22765. int __init msm_soc_routing_platform_init(void)
  22766. {
  22767. mutex_init(&routing_lock);
  22768. if (msm_routing_init_cal_data())
  22769. pr_err("%s: could not init cal data!\n", __func__);
  22770. afe_set_routing_callback(
  22771. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  22772. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22773. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  22774. return platform_driver_register(&msm_routing_pcm_driver);
  22775. }
  22776. void msm_soc_routing_platform_exit(void)
  22777. {
  22778. msm_routing_delete_cal_data();
  22779. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  22780. mutex_destroy(&routing_lock);
  22781. platform_driver_unregister(&msm_routing_pcm_driver);
  22782. }
  22783. MODULE_DESCRIPTION("MSM routing platform driver");
  22784. MODULE_LICENSE("GPL v2");