msm-pcm-routing-v2.c 812 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. static int aanc_level;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* input BE for each FE */
  84. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  85. enum {
  86. MADNONE,
  87. MADAUDIO,
  88. MADBEACON,
  89. MADULTRASOUND,
  90. MADSWAUDIO,
  91. };
  92. #define ADM_LSM_PORT_INDEX 9
  93. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  94. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  95. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  96. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  97. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  98. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  99. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  100. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  101. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  102. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  103. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  104. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  105. #define LSM_FUNCTION_TEXT "LSM Function"
  106. static const char * const lsm_port_text[] = {
  107. "None",
  108. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  109. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  110. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  111. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  112. };
  113. struct msm_pcm_route_bdai_pp_params {
  114. u16 port_id; /* AFE port ID */
  115. unsigned long pp_params_config;
  116. bool mute_on;
  117. int latency;
  118. };
  119. static struct msm_pcm_route_bdai_pp_params
  120. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  121. {HDMI_RX, 0, 0, 0},
  122. {DISPLAY_PORT_RX, 0, 0, 0},
  123. };
  124. /*
  125. * The be_dai_name_table is passed to HAL so that it can specify the
  126. * BE ID for the BE it wants to enable based on the name. Thus there
  127. * is a matching table and structure in HAL that need to be updated
  128. * if any changes to these are made.
  129. */
  130. struct msm_pcm_route_bdai_name {
  131. unsigned int be_id;
  132. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  133. };
  134. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  135. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  136. int fe_id);
  137. static void msm_routing_load_topology(size_t data_size, void *data);
  138. static void msm_routing_unload_topology(uint32_t topology_id);
  139. static int msm_routing_get_bit_width(unsigned int format)
  140. {
  141. int bit_width;
  142. switch (format) {
  143. case SNDRV_PCM_FORMAT_S32_LE:
  144. bit_width = 32;
  145. break;
  146. case SNDRV_PCM_FORMAT_S24_LE:
  147. case SNDRV_PCM_FORMAT_S24_3LE:
  148. bit_width = 24;
  149. break;
  150. case SNDRV_PCM_FORMAT_S16_LE:
  151. default:
  152. bit_width = 16;
  153. }
  154. return bit_width;
  155. }
  156. static bool msm_is_resample_needed(int input_sr, int output_sr)
  157. {
  158. bool rc = false;
  159. if (input_sr != output_sr)
  160. rc = true;
  161. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  162. (rc ? "oh yes" : "not really"),
  163. input_sr, output_sr);
  164. return rc;
  165. }
  166. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  167. int channels)
  168. {
  169. int rc = 0;
  170. switch (topology) {
  171. case SRS_TRUMEDIA_TOPOLOGY_ID:
  172. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  173. msm_dts_srs_tm_init(port_id, copp_idx);
  174. break;
  175. case DS2_ADM_COPP_TOPOLOGY_ID:
  176. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  177. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  178. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  179. is_custom_stereo_on);
  180. if (rc < 0)
  181. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  182. __func__, topology, port_id,
  183. is_custom_stereo_on, rc);
  184. break;
  185. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  186. if (is_ds2_on) {
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  192. __func__, topology, port_id, rc);
  193. } else {
  194. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  195. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. }
  201. break;
  202. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  203. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  204. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  205. if (rc < 0)
  206. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  207. __func__, topology, port_id, copp_idx, rc);
  208. break;
  209. default:
  210. /* custom topology specific feature param handlers */
  211. break;
  212. }
  213. }
  214. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  215. {
  216. switch (topology) {
  217. case SRS_TRUMEDIA_TOPOLOGY_ID:
  218. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  219. msm_dts_srs_tm_deinit(port_id);
  220. break;
  221. case DS2_ADM_COPP_TOPOLOGY_ID:
  222. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  223. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  224. msm_ds2_dap_deinit(port_id);
  225. break;
  226. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  227. if (is_ds2_on) {
  228. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  229. msm_ds2_dap_deinit(port_id);
  230. } else {
  231. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  232. msm_dolby_dap_deinit(port_id);
  233. }
  234. break;
  235. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  236. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  237. msm_qti_pp_asphere_deinit(port_id);
  238. break;
  239. default:
  240. /* custom topology specific feature deinit handlers */
  241. break;
  242. }
  243. }
  244. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  245. int path_type, int perf_mode)
  246. {
  247. int itr = 0, rc = 0;
  248. if ((path_type == ADM_PATH_PLAYBACK) &&
  249. (perf_mode == LEGACY_PCM_MODE) &&
  250. is_custom_stereo_on) {
  251. for (itr = 0; itr < payload.num_copps; itr++) {
  252. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  253. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  254. continue;
  255. }
  256. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  257. payload.port_id[itr],
  258. payload.copp_idx[itr],
  259. payload.session_id,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE,
  262. Q14_GAIN_ZERO_POINT_FIVE,
  263. Q14_GAIN_ZERO_POINT_FIVE);
  264. if (rc < 0)
  265. pr_err("%s: err setting custom stereo\n",
  266. __func__);
  267. }
  268. }
  269. }
  270. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  271. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  272. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  273. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  274. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  275. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  276. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  277. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  278. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  279. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  280. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  281. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  282. LPASS_BE_AFE_PCM_RX},
  283. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  284. LPASS_BE_AFE_PCM_TX},
  285. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  286. LPASS_BE_AUXPCM_RX},
  287. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  288. LPASS_BE_AUXPCM_TX},
  289. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  290. LPASS_BE_VOICE_PLAYBACK_TX},
  291. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  292. LPASS_BE_VOICE2_PLAYBACK_TX},
  293. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  294. LPASS_BE_INCALL_RECORD_RX},
  295. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  296. LPASS_BE_INCALL_RECORD_TX},
  297. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  298. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  299. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  300. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  301. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  302. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  303. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  304. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  305. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  306. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  307. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  308. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  309. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  310. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  311. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  312. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  313. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  314. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  315. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  317. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  318. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  319. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  320. LPASS_BE_QUAT_MI2S_RX},
  321. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  322. LPASS_BE_QUAT_MI2S_TX},
  323. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  324. LPASS_BE_SEC_MI2S_RX},
  325. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  326. LPASS_BE_SEC_MI2S_TX},
  327. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  328. LPASS_BE_PRI_MI2S_RX},
  329. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  330. LPASS_BE_PRI_MI2S_TX},
  331. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  332. LPASS_BE_TERT_MI2S_RX},
  333. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  334. LPASS_BE_TERT_MI2S_TX},
  335. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  336. LPASS_BE_AUDIO_I2S_RX},
  337. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  338. LPASS_BE_SEC_AUXPCM_RX},
  339. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  340. LPASS_BE_SEC_AUXPCM_TX},
  341. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  342. LPASS_BE_SPDIF_RX},
  343. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  344. LPASS_BE_SEC_MI2S_RX_SD1},
  345. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  346. LPASS_BE_QUIN_MI2S_RX},
  347. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  348. LPASS_BE_QUIN_MI2S_TX},
  349. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  350. LPASS_BE_SENARY_MI2S_TX},
  351. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  352. LPASS_BE_PRI_TDM_RX_0},
  353. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  354. LPASS_BE_PRI_TDM_TX_0},
  355. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  356. LPASS_BE_PRI_TDM_RX_1},
  357. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  358. LPASS_BE_PRI_TDM_TX_1},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  360. LPASS_BE_PRI_TDM_RX_2},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  362. LPASS_BE_PRI_TDM_TX_2},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  364. LPASS_BE_PRI_TDM_RX_3},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  366. LPASS_BE_PRI_TDM_TX_3},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  368. LPASS_BE_PRI_TDM_RX_4},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  370. LPASS_BE_PRI_TDM_TX_4},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  372. LPASS_BE_PRI_TDM_RX_5},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  374. LPASS_BE_PRI_TDM_TX_5},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  376. LPASS_BE_PRI_TDM_RX_6},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  378. LPASS_BE_PRI_TDM_TX_6},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  380. LPASS_BE_PRI_TDM_RX_7},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  382. LPASS_BE_PRI_TDM_TX_7},
  383. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  384. LPASS_BE_SEC_TDM_RX_0},
  385. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  386. LPASS_BE_SEC_TDM_TX_0},
  387. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  388. LPASS_BE_SEC_TDM_RX_1},
  389. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  390. LPASS_BE_SEC_TDM_TX_1},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  392. LPASS_BE_SEC_TDM_RX_2},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  394. LPASS_BE_SEC_TDM_TX_2},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  396. LPASS_BE_SEC_TDM_RX_3},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  398. LPASS_BE_SEC_TDM_TX_3},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  400. LPASS_BE_SEC_TDM_RX_4},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  402. LPASS_BE_SEC_TDM_TX_4},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  404. LPASS_BE_SEC_TDM_RX_5},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  406. LPASS_BE_SEC_TDM_TX_5},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  408. LPASS_BE_SEC_TDM_RX_6},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  410. LPASS_BE_SEC_TDM_TX_6},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  412. LPASS_BE_SEC_TDM_RX_7},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  414. LPASS_BE_SEC_TDM_TX_7},
  415. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  416. LPASS_BE_TERT_TDM_RX_0},
  417. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  418. LPASS_BE_TERT_TDM_TX_0},
  419. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  420. LPASS_BE_TERT_TDM_RX_1},
  421. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  422. LPASS_BE_TERT_TDM_TX_1},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  424. LPASS_BE_TERT_TDM_RX_2},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  426. LPASS_BE_TERT_TDM_TX_2},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  428. LPASS_BE_TERT_TDM_RX_3},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  430. LPASS_BE_TERT_TDM_TX_3},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  432. LPASS_BE_TERT_TDM_RX_4},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  434. LPASS_BE_TERT_TDM_TX_4},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  436. LPASS_BE_TERT_TDM_RX_5},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  438. LPASS_BE_TERT_TDM_TX_5},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  440. LPASS_BE_TERT_TDM_RX_6},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  442. LPASS_BE_TERT_TDM_TX_6},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  444. LPASS_BE_TERT_TDM_RX_7},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  446. LPASS_BE_TERT_TDM_TX_7},
  447. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  448. LPASS_BE_QUAT_TDM_RX_0},
  449. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  450. LPASS_BE_QUAT_TDM_TX_0},
  451. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  452. LPASS_BE_QUAT_TDM_RX_1},
  453. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  454. LPASS_BE_QUAT_TDM_TX_1},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  456. LPASS_BE_QUAT_TDM_RX_2},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  458. LPASS_BE_QUAT_TDM_TX_2},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  460. LPASS_BE_QUAT_TDM_RX_3},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  462. LPASS_BE_QUAT_TDM_TX_3},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  464. LPASS_BE_QUAT_TDM_RX_4},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  466. LPASS_BE_QUAT_TDM_TX_4},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  468. LPASS_BE_QUAT_TDM_RX_5},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  470. LPASS_BE_QUAT_TDM_TX_5},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  472. LPASS_BE_QUAT_TDM_RX_6},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  474. LPASS_BE_QUAT_TDM_TX_6},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  476. LPASS_BE_QUAT_TDM_RX_7},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  478. LPASS_BE_QUAT_TDM_TX_7},
  479. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  480. LPASS_BE_QUIN_TDM_RX_0},
  481. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  482. LPASS_BE_QUIN_TDM_TX_0},
  483. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  484. LPASS_BE_QUIN_TDM_RX_1},
  485. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  486. LPASS_BE_QUIN_TDM_TX_1},
  487. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  488. LPASS_BE_QUIN_TDM_RX_2},
  489. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  490. LPASS_BE_QUIN_TDM_TX_2},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  492. LPASS_BE_QUIN_TDM_RX_3},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  494. LPASS_BE_QUIN_TDM_TX_3},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  496. LPASS_BE_QUIN_TDM_RX_4},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  498. LPASS_BE_QUIN_TDM_TX_4},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  500. LPASS_BE_QUIN_TDM_RX_5},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  502. LPASS_BE_QUIN_TDM_TX_5},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  504. LPASS_BE_QUIN_TDM_RX_6},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  506. LPASS_BE_QUIN_TDM_TX_6},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  508. LPASS_BE_QUIN_TDM_RX_7},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  510. LPASS_BE_QUIN_TDM_TX_7},
  511. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  512. LPASS_BE_INT_BT_A2DP_RX},
  513. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  514. LPASS_BE_USB_AUDIO_RX},
  515. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  516. LPASS_BE_USB_AUDIO_TX},
  517. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  518. LPASS_BE_DISPLAY_PORT},
  519. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  520. LPASS_BE_DISPLAY_PORT1},
  521. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  522. LPASS_BE_TERT_AUXPCM_RX},
  523. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  524. LPASS_BE_TERT_AUXPCM_TX},
  525. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  526. LPASS_BE_QUAT_AUXPCM_RX},
  527. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  528. LPASS_BE_QUAT_AUXPCM_TX},
  529. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  530. LPASS_BE_QUIN_AUXPCM_RX},
  531. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  532. LPASS_BE_QUIN_AUXPCM_TX},
  533. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  534. LPASS_BE_INT0_MI2S_RX},
  535. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  536. LPASS_BE_INT0_MI2S_TX},
  537. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  538. LPASS_BE_INT1_MI2S_RX},
  539. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  540. LPASS_BE_INT1_MI2S_TX},
  541. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  542. LPASS_BE_INT2_MI2S_RX},
  543. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  544. LPASS_BE_INT2_MI2S_TX},
  545. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  546. LPASS_BE_INT3_MI2S_RX},
  547. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  548. LPASS_BE_INT3_MI2S_TX},
  549. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  550. LPASS_BE_INT4_MI2S_RX},
  551. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  552. LPASS_BE_INT4_MI2S_TX},
  553. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  554. LPASS_BE_INT5_MI2S_RX},
  555. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  556. LPASS_BE_INT5_MI2S_TX},
  557. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  558. LPASS_BE_INT6_MI2S_RX},
  559. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  560. LPASS_BE_INT6_MI2S_TX},
  561. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  562. LPASS_BE_WSA_CDC_DMA_RX_0},
  563. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  564. LPASS_BE_WSA_CDC_DMA_TX_0},
  565. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  566. LPASS_BE_WSA_CDC_DMA_RX_1},
  567. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  568. LPASS_BE_WSA_CDC_DMA_TX_1},
  569. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  570. LPASS_BE_WSA_CDC_DMA_TX_2},
  571. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  572. LPASS_BE_VA_CDC_DMA_TX_0},
  573. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  574. LPASS_BE_VA_CDC_DMA_TX_1},
  575. };
  576. /* Track ASM playback & capture sessions of DAI
  577. * Track LSM listen sessions
  578. */
  579. static struct msm_pcm_routing_fdai_data
  580. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  581. /* MULTIMEDIA1 */
  582. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  583. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  584. /* MULTIMEDIA2 */
  585. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  586. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  587. /* MULTIMEDIA3 */
  588. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  589. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  590. /* MULTIMEDIA4 */
  591. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  592. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  593. /* MULTIMEDIA5 */
  594. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  595. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  596. /* MULTIMEDIA6 */
  597. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  598. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  599. /* MULTIMEDIA7*/
  600. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  601. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  602. /* MULTIMEDIA8 */
  603. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  604. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  605. /* MULTIMEDIA9 */
  606. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  607. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  608. /* MULTIMEDIA10 */
  609. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  610. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  611. /* MULTIMEDIA11 */
  612. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  613. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  614. /* MULTIMEDIA12 */
  615. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  616. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  617. /* MULTIMEDIA13 */
  618. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  619. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  620. /* MULTIMEDIA14 */
  621. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  622. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  623. /* MULTIMEDIA15 */
  624. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  625. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  626. /* MULTIMEDIA16 */
  627. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  628. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  629. /* MULTIMEDIA17 */
  630. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  631. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  632. /* MULTIMEDIA18 */
  633. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  634. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  635. /* MULTIMEDIA19 */
  636. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  637. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  638. /* MULTIMEDIA20 */
  639. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  640. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  641. /* MULTIMEDIA28 */
  642. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  643. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  644. /* MULTIMEDIA29 */
  645. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  646. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  647. /* VOIP */
  648. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  649. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  650. /* AFE_RX */
  651. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  652. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  653. /* AFE_TX */
  654. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  655. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  656. /* VOICE_STUB */
  657. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  658. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  659. /* DTMF_RX */
  660. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  661. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  662. /* QCHAT */
  663. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  664. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  665. /* VOLTE_STUB */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  668. /* LSM1 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  671. /* LSM2 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  674. /* LSM3 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  677. /* LSM4 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  680. /* LSM5 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  683. /* LSM6 */
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  686. /* LSM7 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  689. /* LSM8 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  692. /* VOICE2_STUB */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  695. /* VOICEMMODE1 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  698. /* VOICEMMODE2 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  701. };
  702. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  703. [MSM_BACKEND_DAI_MAX];
  704. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  705. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  706. static struct msm_pcm_stream_app_type_cfg
  707. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  708. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  709. /* The caller of this should aqcuire routing lock */
  710. void msm_pcm_routing_get_bedai_info(int be_idx,
  711. struct msm_pcm_routing_bdai_data *be_dai)
  712. {
  713. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  714. memcpy(be_dai, &msm_bedais[be_idx],
  715. sizeof(struct msm_pcm_routing_bdai_data));
  716. }
  717. /* The caller of this should aqcuire routing lock */
  718. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  719. struct msm_pcm_routing_fdai_data *fe_dai)
  720. {
  721. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  722. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  723. sizeof(struct msm_pcm_routing_fdai_data));
  724. }
  725. void msm_pcm_routing_acquire_lock(void)
  726. {
  727. mutex_lock(&routing_lock);
  728. }
  729. void msm_pcm_routing_release_lock(void)
  730. {
  731. mutex_unlock(&routing_lock);
  732. }
  733. static int msm_pcm_routing_get_app_type_idx(int app_type)
  734. {
  735. int idx;
  736. pr_debug("%s: app_type: %d\n", __func__, app_type);
  737. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  738. if (app_type_cfg[idx].app_type == app_type)
  739. return idx;
  740. }
  741. pr_info("%s: App type not available, fallback to default\n", __func__);
  742. return 0;
  743. }
  744. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  745. {
  746. int idx;
  747. pr_debug("%s: app_type: %d\n", __func__, app_type);
  748. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  749. if (lsm_app_type_cfg[idx].app_type == app_type)
  750. return idx;
  751. }
  752. pr_debug("%s: App type not available, fallback to default\n", __func__);
  753. return 0;
  754. }
  755. static bool is_mm_lsm_fe_id(int fe_id)
  756. {
  757. bool rc = true;
  758. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  759. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  760. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  761. rc = false;
  762. }
  763. return rc;
  764. }
  765. /*
  766. * msm_pcm_routing_send_chmix_cfg:
  767. * send the channel mixer command to mix the input channels
  768. * into output channels.
  769. *
  770. * @fe_id: front end id
  771. * @ip_channel_cnt: input channel count
  772. * @op_channel_cnt: output channel count
  773. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  774. * @session_type: indicates session is of type TX or RX
  775. * @stream_type: indicates either Audio or Listen stream type
  776. */
  777. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  778. int op_channel_cnt, int *ch_wght_coeff,
  779. int session_type, int stream_type)
  780. {
  781. int rc = 0, idx = 0;
  782. int be_index = 0, port_id;
  783. unsigned int session_id = 0;
  784. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  785. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  786. stream_type);
  787. if (!is_mm_lsm_fe_id(fe_id)) {
  788. /* bad ID assigned in machine driver */
  789. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  790. return -EINVAL;
  791. }
  792. if (ch_wght_coeff == NULL) {
  793. pr_err("%s: Null channel weightage coefficients passed\n",
  794. __func__);
  795. return -EINVAL;
  796. }
  797. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  798. port_id = msm_bedais[be_index].port_id;
  799. if (!msm_bedais[be_index].active ||
  800. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  801. continue;
  802. session_id = fe_dai_map[fe_id][session_type].strm_id;
  803. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  804. unsigned long copp =
  805. session_copp_map[fe_id][session_type][be_index];
  806. if (!test_bit(idx, &copp))
  807. continue;
  808. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  809. session_id, ip_channel_cnt,
  810. op_channel_cnt, ch_wght_coeff,
  811. session_type, stream_type);
  812. if (rc < 0)
  813. pr_err("%s: err setting channel mix config\n",
  814. __func__);
  815. }
  816. }
  817. return 0;
  818. }
  819. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  820. int msm_pcm_routing_reg_stream_app_type_cfg(
  821. int fedai_id, int session_type, int be_id,
  822. struct msm_pcm_stream_app_type_cfg *cfg_data)
  823. {
  824. int ret = 0;
  825. if (cfg_data == NULL) {
  826. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  827. ret = -EINVAL;
  828. goto done;
  829. }
  830. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  831. __func__, fedai_id, session_type, be_id,
  832. cfg_data->app_type, cfg_data->acdb_dev_id,
  833. cfg_data->sample_rate);
  834. if (!is_mm_lsm_fe_id(fedai_id)) {
  835. pr_err("%s: Invalid machine driver ID %d\n",
  836. __func__, fedai_id);
  837. ret = -EINVAL;
  838. goto done;
  839. }
  840. if (session_type != SESSION_TYPE_RX &&
  841. session_type != SESSION_TYPE_TX) {
  842. pr_err("%s: Invalid session type %d\n",
  843. __func__, session_type);
  844. ret = -EINVAL;
  845. goto done;
  846. }
  847. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  848. pr_err("%s: Received out of bounds be_id %d\n",
  849. __func__, be_id);
  850. ret = -EINVAL;
  851. goto done;
  852. }
  853. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  854. /*
  855. * Store the BE ID of the configuration information set as the latest so
  856. * the get mixer control knows what to return.
  857. */
  858. last_be_id_configured[fedai_id][session_type] = be_id;
  859. done:
  860. return ret;
  861. }
  862. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  863. /**
  864. * msm_pcm_routing_get_stream_app_type_cfg
  865. *
  866. * Receives fedai_id, session_type, be_id, and populates app_type,
  867. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  868. * -EINVAL and does not alter passed values.
  869. *
  870. * fedai_id - Passed value, front end ID for which app type config is wanted
  871. * session_type - Passed value, session type for which app type config
  872. * is wanted
  873. * be_id - Returned value, back end device id the app type config data is for
  874. * cfg_data - Returned value, configuration data used by app type config
  875. */
  876. int msm_pcm_routing_get_stream_app_type_cfg(
  877. int fedai_id, int session_type, int *bedai_id,
  878. struct msm_pcm_stream_app_type_cfg *cfg_data)
  879. {
  880. int be_id;
  881. int ret = 0;
  882. if (bedai_id == NULL) {
  883. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  884. ret = -EINVAL;
  885. goto done;
  886. } else if (cfg_data == NULL) {
  887. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  888. ret = -EINVAL;
  889. goto done;
  890. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  891. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  892. ret = -EINVAL;
  893. goto done;
  894. } else if (session_type != SESSION_TYPE_RX &&
  895. session_type != SESSION_TYPE_TX) {
  896. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  897. ret = -EINVAL;
  898. goto done;
  899. }
  900. be_id = last_be_id_configured[fedai_id][session_type];
  901. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  902. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  903. ret = -EINVAL;
  904. goto done;
  905. }
  906. *bedai_id = be_id;
  907. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  908. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  909. __func__, fedai_id, session_type, *bedai_id,
  910. cfg_data->app_type, cfg_data->acdb_dev_id,
  911. cfg_data->sample_rate);
  912. done:
  913. return ret;
  914. }
  915. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  916. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  917. int cal_index)
  918. {
  919. struct list_head *ptr, *next;
  920. struct cal_block_data *cal_block = NULL;
  921. pr_debug("%s\n", __func__);
  922. list_for_each_safe(ptr, next,
  923. &cal_data[cal_index]->cal_blocks) {
  924. cal_block = list_entry(ptr,
  925. struct cal_block_data, list);
  926. if (cal_utils_is_cal_stale(cal_block))
  927. continue;
  928. if (((struct audio_cal_info_adm_top *)cal_block
  929. ->cal_info)->path == path) {
  930. return cal_block;
  931. }
  932. }
  933. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  934. return NULL;
  935. }
  936. static struct cal_block_data *msm_routing_find_topology(int path,
  937. int app_type,
  938. int acdb_id,
  939. int cal_index)
  940. {
  941. struct list_head *ptr, *next;
  942. struct cal_block_data *cal_block = NULL;
  943. struct audio_cal_info_adm_top *cal_info;
  944. pr_debug("%s\n", __func__);
  945. list_for_each_safe(ptr, next,
  946. &cal_data[cal_index]->cal_blocks) {
  947. cal_block = list_entry(ptr,
  948. struct cal_block_data, list);
  949. if (cal_utils_is_cal_stale(cal_block))
  950. continue;
  951. cal_info = (struct audio_cal_info_adm_top *)
  952. cal_block->cal_info;
  953. if ((cal_info->path == path) &&
  954. (cal_info->app_type == app_type) &&
  955. (cal_info->acdb_id == acdb_id)) {
  956. return cal_block;
  957. }
  958. }
  959. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  960. __func__, path, app_type, acdb_id);
  961. return msm_routing_find_topology_by_path(path, cal_index);
  962. }
  963. /*
  964. * Retrieving cal_block will mark cal_block as stale.
  965. * Hence it cannot be reused or resent unless the flag
  966. * is reset.
  967. */
  968. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  969. int be_id)
  970. {
  971. int topology = NULL_COPP_TOPOLOGY;
  972. struct cal_block_data *cal_block = NULL;
  973. int app_type = 0, acdb_dev_id = 0;
  974. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  975. __func__, fedai_id, session_type, be_id);
  976. if (cal_data == NULL)
  977. goto done;
  978. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  979. acdb_dev_id =
  980. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  981. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  982. cal_block = msm_routing_find_topology(session_type, app_type,
  983. acdb_dev_id,
  984. ADM_TOPOLOGY_CAL_TYPE_IDX);
  985. if (cal_block != NULL) {
  986. topology = ((struct audio_cal_info_adm_top *)
  987. cal_block->cal_info)->topology;
  988. cal_utils_mark_cal_used(cal_block);
  989. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  990. } else {
  991. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  992. pr_debug("%s: Check for LSM topology\n", __func__);
  993. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  994. cal_block = msm_routing_find_topology(session_type, app_type,
  995. acdb_dev_id,
  996. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  997. if (cal_block != NULL) {
  998. topology = ((struct audio_cal_info_adm_top *)
  999. cal_block->cal_info)->topology;
  1000. cal_utils_mark_cal_used(cal_block);
  1001. }
  1002. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1003. }
  1004. done:
  1005. pr_debug("%s: Using topology %d\n", __func__, topology);
  1006. return topology;
  1007. }
  1008. static uint8_t is_be_dai_extproc(int be_dai)
  1009. {
  1010. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1011. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1012. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1013. return 1;
  1014. else
  1015. return 0;
  1016. }
  1017. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1018. int path_type, int perf_mode,
  1019. uint32_t passthr_mode)
  1020. {
  1021. int i, port_type, j, num_copps = 0;
  1022. struct route_payload payload;
  1023. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1024. path_type == ADM_PATH_COMPRESSED_RX) ?
  1025. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1026. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1027. if (!is_be_dai_extproc(i) &&
  1028. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1029. (msm_bedais[i].active) &&
  1030. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1031. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1032. unsigned long copp =
  1033. session_copp_map[fedai_id][sess_type][i];
  1034. if (test_bit(j, &copp)) {
  1035. payload.port_id[num_copps] =
  1036. msm_bedais[i].port_id;
  1037. payload.copp_idx[num_copps] = j;
  1038. payload.app_type[num_copps] =
  1039. fe_dai_app_type_cfg
  1040. [fedai_id][sess_type][i]
  1041. .app_type;
  1042. payload.acdb_dev_id[num_copps] =
  1043. fe_dai_app_type_cfg
  1044. [fedai_id][sess_type][i]
  1045. .acdb_dev_id;
  1046. payload.sample_rate[num_copps] =
  1047. fe_dai_app_type_cfg
  1048. [fedai_id][sess_type][i]
  1049. .sample_rate;
  1050. num_copps++;
  1051. }
  1052. }
  1053. }
  1054. }
  1055. if (num_copps) {
  1056. payload.num_copps = num_copps;
  1057. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1058. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1059. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1060. }
  1061. }
  1062. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1063. int stream_type)
  1064. {
  1065. int i, session_type, path_type, port_type;
  1066. u32 mode = 0;
  1067. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1068. /* bad ID assigned in machine driver */
  1069. pr_err("%s: bad MM ID\n", __func__);
  1070. return;
  1071. }
  1072. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1073. session_type = SESSION_TYPE_RX;
  1074. path_type = ADM_PATH_PLAYBACK;
  1075. port_type = MSM_AFE_PORT_TYPE_RX;
  1076. } else {
  1077. session_type = SESSION_TYPE_TX;
  1078. path_type = ADM_PATH_LIVE_REC;
  1079. port_type = MSM_AFE_PORT_TYPE_TX;
  1080. }
  1081. mutex_lock(&routing_lock);
  1082. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1083. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1084. if (!is_be_dai_extproc(i) &&
  1085. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1086. (msm_bedais[i].active) &&
  1087. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1088. mode = afe_get_port_type(msm_bedais[i].port_id);
  1089. adm_connect_afe_port(mode, dspst_id,
  1090. msm_bedais[i].port_id);
  1091. break;
  1092. }
  1093. }
  1094. mutex_unlock(&routing_lock);
  1095. }
  1096. static bool route_check_fe_id_adm_support(int fe_id)
  1097. {
  1098. bool rc = true;
  1099. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1100. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1101. /* fe id is listen while port is set to afe */
  1102. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1103. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1104. __func__, fe_id, lsm_port_index);
  1105. rc = false;
  1106. }
  1107. }
  1108. return rc;
  1109. }
  1110. /*
  1111. * msm_pcm_routing_get_pp_ch_cnt:
  1112. * Read the processed channel count
  1113. *
  1114. * @fe_id: Front end ID
  1115. * @session_type: Inidicates RX or TX session type
  1116. */
  1117. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1118. {
  1119. struct msm_pcm_stream_app_type_cfg cfg_data;
  1120. int be_id = 0, app_type_idx = 0, app_type = 0;
  1121. int ret = -EINVAL;
  1122. memset(&cfg_data, 0, sizeof(cfg_data));
  1123. if (!is_mm_lsm_fe_id(fe_id)) {
  1124. pr_err("%s: bad MM ID\n", __func__);
  1125. return -EINVAL;
  1126. }
  1127. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1128. &be_id, &cfg_data);
  1129. if (ret) {
  1130. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1131. return ret;
  1132. }
  1133. app_type = cfg_data.app_type;
  1134. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1135. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1136. }
  1137. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1138. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1139. int dspst_id, int stream_type,
  1140. uint32_t passthr_mode)
  1141. {
  1142. int i, j, session_type, path_type, port_type, topology;
  1143. int num_copps = 0;
  1144. struct route_payload payload;
  1145. u32 channels, sample_rate;
  1146. u16 bit_width = 16;
  1147. bool is_lsm;
  1148. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1149. __func__, fe_id, perf_mode, dspst_id,
  1150. stream_type, passthr_mode);
  1151. if (!is_mm_lsm_fe_id(fe_id)) {
  1152. /* bad ID assigned in machine driver */
  1153. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1154. return -EINVAL;
  1155. }
  1156. if (!route_check_fe_id_adm_support(fe_id)) {
  1157. /* ignore adm open if not supported for fe_id */
  1158. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1159. return 0;
  1160. }
  1161. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1162. session_type = SESSION_TYPE_RX;
  1163. if (passthr_mode != LEGACY_PCM)
  1164. path_type = ADM_PATH_COMPRESSED_RX;
  1165. else
  1166. path_type = ADM_PATH_PLAYBACK;
  1167. port_type = MSM_AFE_PORT_TYPE_RX;
  1168. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1169. session_type = SESSION_TYPE_TX;
  1170. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1171. path_type = ADM_PATH_COMPRESSED_TX;
  1172. else
  1173. path_type = ADM_PATH_LIVE_REC;
  1174. port_type = MSM_AFE_PORT_TYPE_TX;
  1175. } else {
  1176. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1177. return -EINVAL;
  1178. }
  1179. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1180. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1181. mutex_lock(&routing_lock);
  1182. payload.num_copps = 0; /* only RX needs to use payload */
  1183. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1184. /* re-enable EQ if active */
  1185. msm_qti_pp_send_eq_values(fe_id);
  1186. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1187. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1188. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1189. if (!is_be_dai_extproc(i) &&
  1190. (afe_get_port_type(msm_bedais[i].port_id) ==
  1191. port_type) &&
  1192. (msm_bedais[i].active) &&
  1193. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1194. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1195. /*
  1196. * check if ADM needs to be configured with different
  1197. * channel mapping than backend
  1198. */
  1199. if (!msm_bedais[i].adm_override_ch)
  1200. channels = msm_bedais[i].channel;
  1201. else
  1202. channels = msm_bedais[i].adm_override_ch;
  1203. bit_width = msm_routing_get_bit_width(
  1204. msm_bedais[i].format);
  1205. app_type =
  1206. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1207. if (app_type && is_lsm) {
  1208. app_type_idx =
  1209. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1210. sample_rate =
  1211. fe_dai_app_type_cfg[fe_id][session_type][i]
  1212. .sample_rate;
  1213. bit_width =
  1214. lsm_app_type_cfg[app_type_idx].bit_width;
  1215. } else if (app_type) {
  1216. app_type_idx =
  1217. msm_pcm_routing_get_app_type_idx(
  1218. app_type);
  1219. sample_rate =
  1220. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1221. bit_width =
  1222. app_type_cfg[app_type_idx].bit_width;
  1223. } else {
  1224. sample_rate = msm_bedais[i].sample_rate;
  1225. }
  1226. acdb_dev_id =
  1227. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1228. topology = msm_routing_get_adm_topology(fe_id,
  1229. session_type,
  1230. i);
  1231. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1232. || (passthr_mode ==
  1233. COMPRESSED_PASSTHROUGH_GEN))
  1234. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1235. pr_debug("%s: Before adm open topology %d\n", __func__,
  1236. topology);
  1237. copp_idx =
  1238. adm_open(msm_bedais[i].port_id,
  1239. path_type, sample_rate, channels,
  1240. topology, perf_mode, bit_width,
  1241. app_type, acdb_dev_id);
  1242. if ((copp_idx < 0) ||
  1243. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1244. pr_err("%s:adm open failed coppid:%d\n",
  1245. __func__, copp_idx);
  1246. mutex_unlock(&routing_lock);
  1247. return -EINVAL;
  1248. }
  1249. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1250. __func__, fe_id, session_type, i);
  1251. set_bit(copp_idx,
  1252. &session_copp_map[fe_id][session_type][i]);
  1253. if (msm_is_resample_needed(
  1254. sample_rate,
  1255. msm_bedais[i].sample_rate))
  1256. adm_copp_mfc_cfg(
  1257. msm_bedais[i].port_id, copp_idx,
  1258. msm_bedais[i].sample_rate);
  1259. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1260. unsigned long copp =
  1261. session_copp_map[fe_id][session_type][i];
  1262. if (test_bit(j, &copp)) {
  1263. payload.port_id[num_copps] =
  1264. msm_bedais[i].port_id;
  1265. payload.copp_idx[num_copps] = j;
  1266. payload.app_type[num_copps] =
  1267. fe_dai_app_type_cfg
  1268. [fe_id][session_type][i]
  1269. .app_type;
  1270. payload.acdb_dev_id[num_copps] =
  1271. fe_dai_app_type_cfg
  1272. [fe_id][session_type][i]
  1273. .acdb_dev_id;
  1274. payload.sample_rate[num_copps] =
  1275. fe_dai_app_type_cfg
  1276. [fe_id][session_type][i]
  1277. .sample_rate;
  1278. num_copps++;
  1279. }
  1280. }
  1281. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1282. && passthr_mode !=
  1283. COMPRESSED_PASSTHROUGH_GEN) {
  1284. msm_routing_send_device_pp_params(
  1285. msm_bedais[i].port_id,
  1286. copp_idx, fe_id);
  1287. }
  1288. }
  1289. }
  1290. if (num_copps) {
  1291. payload.num_copps = num_copps;
  1292. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1293. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1294. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1295. }
  1296. mutex_unlock(&routing_lock);
  1297. return 0;
  1298. }
  1299. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1300. {
  1301. u32 session_id;
  1302. switch (val) {
  1303. case MSM_FRONTEND_DAI_QCHAT:
  1304. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1305. break;
  1306. case MSM_FRONTEND_DAI_VOIP:
  1307. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1308. break;
  1309. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1310. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1311. break;
  1312. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1313. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1314. break;
  1315. default:
  1316. session_id = 0;
  1317. }
  1318. pr_debug("%s session_id 0x%x", __func__, session_id);
  1319. return session_id;
  1320. }
  1321. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1322. int dspst_id, int stream_type)
  1323. {
  1324. int copp_idx = 0;
  1325. int sess_type = 0;
  1326. int i = 0, j = 0, be_id;
  1327. int ret = 0;
  1328. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1329. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1330. return 0;
  1331. }
  1332. if (!(channel_mixer[fe_id].enable)) {
  1333. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1334. __func__, fe_id);
  1335. return 0;
  1336. }
  1337. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1338. sess_type = SESSION_TYPE_RX;
  1339. else
  1340. sess_type = SESSION_TYPE_TX;
  1341. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1342. ++i) {
  1343. be_id = channel_input[fe_id][i] - 1;
  1344. channel_mixer[fe_id].input_channels[i] =
  1345. msm_bedais[be_id].channel;
  1346. if ((msm_bedais[be_id].active) &&
  1347. test_bit(fe_id,
  1348. &msm_bedais[be_id].fe_sessions[0])) {
  1349. unsigned long copp =
  1350. session_copp_map[fe_id][sess_type][be_id];
  1351. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1352. if (test_bit(j, &copp)) {
  1353. copp_idx = j;
  1354. break;
  1355. }
  1356. }
  1357. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1358. __func__,
  1359. fe_id, be_id, msm_bedais[be_id].channel,
  1360. copp_idx);
  1361. ret = adm_programable_channel_mixer(
  1362. msm_bedais[be_id].port_id,
  1363. copp_idx, dspst_id, sess_type,
  1364. channel_mixer + fe_id, i);
  1365. }
  1366. }
  1367. return ret;
  1368. }
  1369. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1370. int dspst_id, int stream_type)
  1371. {
  1372. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1373. struct route_payload payload;
  1374. u32 channels, sample_rate;
  1375. uint16_t bits_per_sample = 16;
  1376. uint32_t passthr_mode = LEGACY_PCM;
  1377. int ret = 0;
  1378. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1379. /* bad ID assigned in machine driver */
  1380. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1381. return -EINVAL;
  1382. }
  1383. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1384. session_type = SESSION_TYPE_RX;
  1385. path_type = ADM_PATH_PLAYBACK;
  1386. port_type = MSM_AFE_PORT_TYPE_RX;
  1387. } else {
  1388. session_type = SESSION_TYPE_TX;
  1389. path_type = ADM_PATH_LIVE_REC;
  1390. port_type = MSM_AFE_PORT_TYPE_TX;
  1391. }
  1392. mutex_lock(&routing_lock);
  1393. payload.num_copps = 0; /* only RX needs to use payload */
  1394. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1395. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1396. /* re-enable EQ if active */
  1397. msm_qti_pp_send_eq_values(fedai_id);
  1398. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1399. if (!is_be_dai_extproc(i) &&
  1400. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1401. (msm_bedais[i].active) &&
  1402. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1403. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1404. /*
  1405. * check if ADM needs to be configured with different
  1406. * channel mapping than backend
  1407. */
  1408. if (!msm_bedais[i].adm_override_ch)
  1409. channels = msm_bedais[i].channel;
  1410. else
  1411. channels = msm_bedais[i].adm_override_ch;
  1412. msm_bedais[i].passthr_mode[fedai_id] =
  1413. LEGACY_PCM;
  1414. bits_per_sample = msm_routing_get_bit_width(
  1415. msm_bedais[i].format);
  1416. app_type =
  1417. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1418. if (app_type) {
  1419. app_type_idx =
  1420. msm_pcm_routing_get_app_type_idx(app_type);
  1421. sample_rate =
  1422. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1423. .sample_rate;
  1424. bits_per_sample =
  1425. app_type_cfg[app_type_idx].bit_width;
  1426. } else
  1427. sample_rate = msm_bedais[i].sample_rate;
  1428. acdb_dev_id =
  1429. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1430. .acdb_dev_id;
  1431. topology = msm_routing_get_adm_topology(fedai_id,
  1432. session_type,
  1433. i);
  1434. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1435. sample_rate, channels, topology,
  1436. perf_mode, bits_per_sample,
  1437. app_type, acdb_dev_id);
  1438. if ((copp_idx < 0) ||
  1439. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1440. pr_err("%s: adm open failed copp_idx:%d\n",
  1441. __func__, copp_idx);
  1442. mutex_unlock(&routing_lock);
  1443. return -EINVAL;
  1444. }
  1445. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1446. __func__, fedai_id, session_type, i);
  1447. set_bit(copp_idx,
  1448. &session_copp_map[fedai_id][session_type][i]);
  1449. if (msm_is_resample_needed(
  1450. sample_rate,
  1451. msm_bedais[i].sample_rate))
  1452. adm_copp_mfc_cfg(
  1453. msm_bedais[i].port_id, copp_idx,
  1454. msm_bedais[i].sample_rate);
  1455. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1456. unsigned long copp =
  1457. session_copp_map[fedai_id][session_type][i];
  1458. if (test_bit(j, &copp)) {
  1459. payload.port_id[num_copps] =
  1460. msm_bedais[i].port_id;
  1461. payload.copp_idx[num_copps] = j;
  1462. payload.app_type[num_copps] =
  1463. fe_dai_app_type_cfg
  1464. [fedai_id][session_type]
  1465. [i].app_type;
  1466. payload.acdb_dev_id[num_copps] =
  1467. fe_dai_app_type_cfg
  1468. [fedai_id][session_type]
  1469. [i].acdb_dev_id;
  1470. payload.sample_rate[num_copps] =
  1471. fe_dai_app_type_cfg
  1472. [fedai_id][session_type]
  1473. [i].sample_rate;
  1474. num_copps++;
  1475. }
  1476. }
  1477. if ((perf_mode == LEGACY_PCM_MODE) &&
  1478. (msm_bedais[i].passthr_mode[fedai_id] ==
  1479. LEGACY_PCM))
  1480. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1481. copp_idx, topology,
  1482. channels);
  1483. }
  1484. }
  1485. if (num_copps) {
  1486. payload.num_copps = num_copps;
  1487. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1488. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1489. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1490. }
  1491. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1492. dspst_id, stream_type);
  1493. mutex_unlock(&routing_lock);
  1494. return ret;
  1495. }
  1496. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1497. int dspst_id, int stream_type,
  1498. struct msm_pcm_routing_evt event_info)
  1499. {
  1500. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1501. stream_type)) {
  1502. pr_err("%s: failed to reg phy stream\n", __func__);
  1503. return -EINVAL;
  1504. }
  1505. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1506. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1507. else
  1508. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1509. return 0;
  1510. }
  1511. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1512. {
  1513. int i, port_type, session_type, path_type, topology;
  1514. struct msm_pcm_routing_fdai_data *fdai;
  1515. if (!is_mm_lsm_fe_id(fedai_id)) {
  1516. /* bad ID assigned in machine driver */
  1517. pr_err("%s: bad MM ID\n", __func__);
  1518. return;
  1519. }
  1520. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1521. port_type = MSM_AFE_PORT_TYPE_RX;
  1522. session_type = SESSION_TYPE_RX;
  1523. path_type = ADM_PATH_PLAYBACK;
  1524. } else {
  1525. port_type = MSM_AFE_PORT_TYPE_TX;
  1526. session_type = SESSION_TYPE_TX;
  1527. path_type = ADM_PATH_LIVE_REC;
  1528. }
  1529. mutex_lock(&routing_lock);
  1530. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1531. if (!is_be_dai_extproc(i) &&
  1532. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1533. (msm_bedais[i].active) &&
  1534. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1535. int idx;
  1536. unsigned long copp =
  1537. session_copp_map[fedai_id][session_type][i];
  1538. fdai = &fe_dai_map[fedai_id][session_type];
  1539. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1540. if (test_bit(idx, &copp))
  1541. break;
  1542. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1543. pr_debug("%s: copp idx is invalid, exiting\n",
  1544. __func__);
  1545. continue;
  1546. }
  1547. topology = adm_get_topology_for_port_copp_idx(
  1548. msm_bedais[i].port_id, idx);
  1549. msm_routing_unload_topology(topology);
  1550. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1551. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1552. __func__, copp, fedai_id, session_type, i);
  1553. clear_bit(idx,
  1554. &session_copp_map[fedai_id][session_type][i]);
  1555. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1556. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1557. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1558. (msm_bedais[i].passthr_mode[fedai_id] ==
  1559. LEGACY_PCM))
  1560. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1561. topology);
  1562. }
  1563. }
  1564. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1565. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1566. mutex_unlock(&routing_lock);
  1567. }
  1568. /* Check if FE/BE route is set */
  1569. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1570. {
  1571. bool rc = false;
  1572. if (!is_mm_lsm_fe_id(fe_id)) {
  1573. /* recheck FE ID in the mixer control defined in this file */
  1574. pr_err("%s: bad MM ID\n", __func__);
  1575. return rc;
  1576. }
  1577. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1578. rc = true;
  1579. return rc;
  1580. }
  1581. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1582. {
  1583. int session_type, path_type, topology;
  1584. u32 channels, sample_rate;
  1585. uint16_t bits_per_sample = 16;
  1586. struct msm_pcm_routing_fdai_data *fdai;
  1587. uint32_t passthr_mode;
  1588. bool is_lsm;
  1589. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1590. if (!is_mm_lsm_fe_id(val)) {
  1591. /* recheck FE ID in the mixer control defined in this file */
  1592. pr_err("%s: bad MM ID\n", __func__);
  1593. return;
  1594. }
  1595. if (!route_check_fe_id_adm_support(val)) {
  1596. /* ignore adm open if not supported for fe_id */
  1597. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1598. return;
  1599. }
  1600. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1601. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1602. MSM_AFE_PORT_TYPE_RX) {
  1603. session_type = SESSION_TYPE_RX;
  1604. if (passthr_mode != LEGACY_PCM)
  1605. path_type = ADM_PATH_COMPRESSED_RX;
  1606. else
  1607. path_type = ADM_PATH_PLAYBACK;
  1608. } else {
  1609. session_type = SESSION_TYPE_TX;
  1610. if (passthr_mode != LEGACY_PCM)
  1611. path_type = ADM_PATH_COMPRESSED_TX;
  1612. else
  1613. path_type = ADM_PATH_LIVE_REC;
  1614. }
  1615. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1616. (val <= MSM_FRONTEND_DAI_LSM8);
  1617. mutex_lock(&routing_lock);
  1618. if (set) {
  1619. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1620. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1621. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1622. voc_start_playback(set, msm_bedais[reg].port_id);
  1623. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1624. fdai = &fe_dai_map[val][session_type];
  1625. if (msm_bedais[reg].active && fdai->strm_id !=
  1626. INVALID_SESSION) {
  1627. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1628. /*
  1629. * check if ADM needs to be configured with different
  1630. * channel mapping than backend
  1631. */
  1632. if (!msm_bedais[reg].adm_override_ch)
  1633. channels = msm_bedais[reg].channel;
  1634. else
  1635. channels = msm_bedais[reg].adm_override_ch;
  1636. if (session_type == SESSION_TYPE_TX &&
  1637. fdai->be_srate &&
  1638. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1639. pr_debug("%s: flush strm %d diff BE rates\n",
  1640. __func__, fdai->strm_id);
  1641. if (fdai->event_info.event_func)
  1642. fdai->event_info.event_func(
  1643. MSM_PCM_RT_EVT_BUF_RECFG,
  1644. fdai->event_info.priv_data);
  1645. fdai->be_srate = 0; /* might not need it */
  1646. }
  1647. bits_per_sample = msm_routing_get_bit_width(
  1648. msm_bedais[reg].format);
  1649. app_type =
  1650. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1651. if (app_type && is_lsm) {
  1652. app_type_idx =
  1653. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1654. sample_rate =
  1655. fe_dai_app_type_cfg[val][session_type][reg]
  1656. .sample_rate;
  1657. bits_per_sample =
  1658. lsm_app_type_cfg[app_type_idx].bit_width;
  1659. } else if (app_type) {
  1660. app_type_idx =
  1661. msm_pcm_routing_get_app_type_idx(app_type);
  1662. sample_rate =
  1663. fe_dai_app_type_cfg[val][session_type][reg]
  1664. .sample_rate;
  1665. bits_per_sample =
  1666. app_type_cfg[app_type_idx].bit_width;
  1667. } else
  1668. sample_rate = msm_bedais[reg].sample_rate;
  1669. topology = msm_routing_get_adm_topology(val,
  1670. session_type,
  1671. reg);
  1672. acdb_dev_id =
  1673. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1674. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1675. sample_rate, channels, topology,
  1676. fdai->perf_mode, bits_per_sample,
  1677. app_type, acdb_dev_id);
  1678. if ((copp_idx < 0) ||
  1679. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1680. pr_err("%s: adm open failed\n", __func__);
  1681. mutex_unlock(&routing_lock);
  1682. return;
  1683. }
  1684. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1685. __func__, val, session_type, reg);
  1686. set_bit(copp_idx,
  1687. &session_copp_map[val][session_type][reg]);
  1688. if (msm_is_resample_needed(
  1689. sample_rate,
  1690. msm_bedais[reg].sample_rate))
  1691. adm_copp_mfc_cfg(
  1692. msm_bedais[reg].port_id, copp_idx,
  1693. msm_bedais[reg].sample_rate);
  1694. if (session_type == SESSION_TYPE_RX &&
  1695. fdai->event_info.event_func)
  1696. fdai->event_info.event_func(
  1697. MSM_PCM_RT_EVT_DEVSWITCH,
  1698. fdai->event_info.priv_data);
  1699. msm_pcm_routing_build_matrix(val, session_type,
  1700. path_type,
  1701. fdai->perf_mode,
  1702. passthr_mode);
  1703. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1704. (passthr_mode == LEGACY_PCM))
  1705. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1706. copp_idx, topology,
  1707. channels);
  1708. }
  1709. } else {
  1710. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1711. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1712. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1713. voc_start_playback(set, msm_bedais[reg].port_id);
  1714. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1715. fdai = &fe_dai_map[val][session_type];
  1716. if (msm_bedais[reg].active && fdai->strm_id !=
  1717. INVALID_SESSION) {
  1718. int idx;
  1719. int port_id;
  1720. unsigned long copp =
  1721. session_copp_map[val][session_type][reg];
  1722. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1723. if (test_bit(idx, &copp))
  1724. break;
  1725. port_id = msm_bedais[reg].port_id;
  1726. topology = adm_get_topology_for_port_copp_idx(port_id,
  1727. idx);
  1728. msm_routing_unload_topology(topology);
  1729. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1730. idx);
  1731. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1732. __func__, copp, val, session_type, reg,
  1733. topology);
  1734. clear_bit(idx,
  1735. &session_copp_map[val][session_type][reg]);
  1736. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1737. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1738. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1739. (passthr_mode == LEGACY_PCM))
  1740. msm_pcm_routing_deinit_pp(
  1741. msm_bedais[reg].port_id,
  1742. topology);
  1743. msm_pcm_routing_build_matrix(val, session_type,
  1744. path_type,
  1745. fdai->perf_mode,
  1746. passthr_mode);
  1747. }
  1748. }
  1749. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1750. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1751. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1752. mutex_unlock(&routing_lock);
  1753. }
  1754. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1755. struct snd_ctl_elem_value *ucontrol)
  1756. {
  1757. struct soc_mixer_control *mc =
  1758. (struct soc_mixer_control *)kcontrol->private_value;
  1759. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1760. ucontrol->value.integer.value[0] = 1;
  1761. else
  1762. ucontrol->value.integer.value[0] = 0;
  1763. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1764. ucontrol->value.integer.value[0]);
  1765. return 0;
  1766. }
  1767. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1768. struct snd_ctl_elem_value *ucontrol)
  1769. {
  1770. struct snd_soc_dapm_widget *widget =
  1771. snd_soc_dapm_kcontrol_widget(kcontrol);
  1772. struct soc_mixer_control *mc =
  1773. (struct soc_mixer_control *)kcontrol->private_value;
  1774. struct snd_soc_dapm_update *update = NULL;
  1775. if (ucontrol->value.integer.value[0] &&
  1776. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1777. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1778. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1779. update);
  1780. } else if (!ucontrol->value.integer.value[0] &&
  1781. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1782. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1783. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1784. update);
  1785. }
  1786. return 1;
  1787. }
  1788. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1789. struct snd_ctl_elem_value *ucontrol)
  1790. {
  1791. struct soc_mixer_control *mc =
  1792. (struct soc_mixer_control *)kcontrol->private_value;
  1793. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1794. ucontrol->value.integer.value[0] = 1;
  1795. else
  1796. ucontrol->value.integer.value[0] = 0;
  1797. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1798. ucontrol->value.integer.value[0]);
  1799. return 0;
  1800. }
  1801. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1802. struct snd_ctl_elem_value *ucontrol)
  1803. {
  1804. struct snd_soc_dapm_widget *widget =
  1805. snd_soc_dapm_kcontrol_widget(kcontrol);
  1806. struct soc_mixer_control *mc =
  1807. (struct soc_mixer_control *)kcontrol->private_value;
  1808. struct snd_soc_dapm_update *update = NULL;
  1809. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1810. ucontrol->value.integer.value[0]);
  1811. if (ucontrol->value.integer.value[0]) {
  1812. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1813. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1814. snd_soc_dapm_mixer_update_power(widget->dapm,
  1815. kcontrol, 1, update);
  1816. } else if (!ucontrol->value.integer.value[0]) {
  1817. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1818. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1819. snd_soc_dapm_mixer_update_power(widget->dapm,
  1820. kcontrol, 0, update);
  1821. }
  1822. return 1;
  1823. }
  1824. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1825. {
  1826. u32 session_id = 0;
  1827. u16 path_type;
  1828. struct media_format_info voc_be_media_format;
  1829. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1830. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1831. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1832. __func__, val, session_id);
  1833. mutex_lock(&routing_lock);
  1834. if (set)
  1835. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1836. else
  1837. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1838. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1839. afe_get_port_type(msm_bedais[reg].port_id) ==
  1840. MSM_AFE_PORT_TYPE_RX) {
  1841. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1842. __func__, set, msm_bedais[reg].port_id);
  1843. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1844. }
  1845. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1846. MSM_AFE_PORT_TYPE_RX)
  1847. path_type = RX_PATH;
  1848. else
  1849. path_type = TX_PATH;
  1850. if (set) {
  1851. if (msm_bedais[reg].active) {
  1852. voc_set_route_flag(session_id, path_type, 1);
  1853. memset(&voc_be_media_format, 0,
  1854. sizeof(struct media_format_info));
  1855. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1856. voc_be_media_format.num_channels =
  1857. msm_bedais[reg].channel;
  1858. voc_be_media_format.sample_rate =
  1859. msm_bedais[reg].sample_rate;
  1860. voc_be_media_format.bits_per_sample =
  1861. msm_bedais[reg].format;
  1862. /* Defaulting this to 1 for voice call usecases */
  1863. voc_be_media_format.channel_mapping[0] = 1;
  1864. voc_set_device_config(session_id, path_type,
  1865. &voc_be_media_format);
  1866. if (voc_get_route_flag(session_id, TX_PATH) &&
  1867. voc_get_route_flag(session_id, RX_PATH))
  1868. voc_enable_device(session_id);
  1869. } else {
  1870. pr_debug("%s BE is not active\n", __func__);
  1871. }
  1872. } else {
  1873. voc_set_route_flag(session_id, path_type, 0);
  1874. voc_disable_device(session_id);
  1875. }
  1876. mutex_unlock(&routing_lock);
  1877. }
  1878. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1879. struct snd_ctl_elem_value *ucontrol)
  1880. {
  1881. struct soc_mixer_control *mc =
  1882. (struct soc_mixer_control *)kcontrol->private_value;
  1883. mutex_lock(&routing_lock);
  1884. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1885. ucontrol->value.integer.value[0] = 1;
  1886. else
  1887. ucontrol->value.integer.value[0] = 0;
  1888. mutex_unlock(&routing_lock);
  1889. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1890. ucontrol->value.integer.value[0]);
  1891. return 0;
  1892. }
  1893. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1894. struct snd_ctl_elem_value *ucontrol)
  1895. {
  1896. struct snd_soc_dapm_widget *widget =
  1897. snd_soc_dapm_kcontrol_widget(kcontrol);
  1898. struct soc_mixer_control *mc =
  1899. (struct soc_mixer_control *)kcontrol->private_value;
  1900. struct snd_soc_dapm_update *update = NULL;
  1901. if (ucontrol->value.integer.value[0]) {
  1902. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1903. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1904. update);
  1905. } else {
  1906. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1907. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1908. update);
  1909. }
  1910. return 1;
  1911. }
  1912. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1913. struct snd_ctl_elem_value *ucontrol)
  1914. {
  1915. struct soc_mixer_control *mc =
  1916. (struct soc_mixer_control *)kcontrol->private_value;
  1917. mutex_lock(&routing_lock);
  1918. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1919. ucontrol->value.integer.value[0] = 1;
  1920. else
  1921. ucontrol->value.integer.value[0] = 0;
  1922. mutex_unlock(&routing_lock);
  1923. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1924. ucontrol->value.integer.value[0]);
  1925. return 0;
  1926. }
  1927. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1928. struct snd_ctl_elem_value *ucontrol)
  1929. {
  1930. struct snd_soc_dapm_widget *widget =
  1931. snd_soc_dapm_kcontrol_widget(kcontrol);
  1932. struct soc_mixer_control *mc =
  1933. (struct soc_mixer_control *)kcontrol->private_value;
  1934. struct snd_soc_dapm_update *update = NULL;
  1935. if (ucontrol->value.integer.value[0]) {
  1936. mutex_lock(&routing_lock);
  1937. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1938. mutex_unlock(&routing_lock);
  1939. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1940. update);
  1941. } else {
  1942. mutex_lock(&routing_lock);
  1943. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1944. mutex_unlock(&routing_lock);
  1945. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1946. update);
  1947. }
  1948. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1949. ucontrol->value.integer.value[0]);
  1950. return 1;
  1951. }
  1952. /*
  1953. * Return the mapping between port ID and backend ID to enable the AFE callback
  1954. * to determine the acdb_dev_id from the port id
  1955. */
  1956. int msm_pcm_get_be_id_from_port_id(int port_id)
  1957. {
  1958. int i;
  1959. int be_id = -EINVAL;
  1960. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1961. if (msm_bedais[i].port_id == port_id) {
  1962. be_id = i;
  1963. break;
  1964. }
  1965. }
  1966. return be_id;
  1967. }
  1968. /*
  1969. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1970. * correct AFE calibration information by comparing the header information.
  1971. */
  1972. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1973. {
  1974. int acdb_id = -EINVAL;
  1975. int i = 0;
  1976. int session;
  1977. int port_type = afe_get_port_type(port_id);
  1978. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1979. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1980. __func__, port_id, be_id, port_type);
  1981. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1982. session = SESSION_TYPE_TX;
  1983. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1984. session = SESSION_TYPE_RX;
  1985. } else {
  1986. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1987. acdb_id = -EINVAL;
  1988. goto exit;
  1989. }
  1990. if (be_id < 0) {
  1991. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1992. goto exit;
  1993. }
  1994. mutex_lock(&routing_lock);
  1995. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1996. MSM_FRONTEND_DAI_MAX);
  1997. if (i < MSM_FRONTEND_DAI_MAX)
  1998. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1999. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2000. __func__, i, session, be_id, acdb_id);
  2001. mutex_unlock(&routing_lock);
  2002. exit:
  2003. return acdb_id;
  2004. }
  2005. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2006. struct snd_ctl_elem_value *ucontrol)
  2007. {
  2008. ucontrol->value.integer.value[0] = fm_switch_enable;
  2009. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2010. ucontrol->value.integer.value[0]);
  2011. return 0;
  2012. }
  2013. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2014. struct snd_ctl_elem_value *ucontrol)
  2015. {
  2016. struct snd_soc_dapm_widget *widget =
  2017. snd_soc_dapm_kcontrol_widget(kcontrol);
  2018. struct snd_soc_dapm_update *update = NULL;
  2019. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2020. ucontrol->value.integer.value[0]);
  2021. if (ucontrol->value.integer.value[0])
  2022. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2023. update);
  2024. else
  2025. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2026. update);
  2027. fm_switch_enable = ucontrol->value.integer.value[0];
  2028. return 1;
  2029. }
  2030. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2031. struct snd_ctl_elem_value *ucontrol)
  2032. {
  2033. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2034. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2035. ucontrol->value.integer.value[0]);
  2036. return 0;
  2037. }
  2038. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2039. struct snd_ctl_elem_value *ucontrol)
  2040. {
  2041. struct snd_soc_dapm_widget *widget =
  2042. snd_soc_dapm_kcontrol_widget(kcontrol);
  2043. struct snd_soc_dapm_update *update = NULL;
  2044. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2045. ucontrol->value.integer.value[0]);
  2046. if (ucontrol->value.integer.value[0])
  2047. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2048. 1, update);
  2049. else
  2050. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2051. 0, update);
  2052. hfp_switch_enable = ucontrol->value.integer.value[0];
  2053. return 1;
  2054. }
  2055. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2059. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2060. ucontrol->value.integer.value[0]);
  2061. return 0;
  2062. }
  2063. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2064. struct snd_ctl_elem_value *ucontrol)
  2065. {
  2066. struct snd_soc_dapm_widget *widget =
  2067. snd_soc_dapm_kcontrol_widget(kcontrol);
  2068. struct snd_soc_dapm_update *update = NULL;
  2069. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2070. ucontrol->value.integer.value[0]);
  2071. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2072. if (a2dp_switch_enable)
  2073. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2074. 1, update);
  2075. else
  2076. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2077. 0, update);
  2078. return 1;
  2079. }
  2080. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2081. struct snd_ctl_elem_value *ucontrol)
  2082. {
  2083. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2084. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2085. ucontrol->value.integer.value[0]);
  2086. return 0;
  2087. }
  2088. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2089. struct snd_ctl_elem_value *ucontrol)
  2090. {
  2091. struct snd_soc_dapm_widget *widget =
  2092. snd_soc_dapm_kcontrol_widget(kcontrol);
  2093. struct snd_soc_dapm_update *update = NULL;
  2094. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2095. ucontrol->value.integer.value[0]);
  2096. if (ucontrol->value.integer.value[0])
  2097. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2098. update);
  2099. else
  2100. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2101. update);
  2102. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2103. return 1;
  2104. }
  2105. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2106. struct snd_ctl_elem_value *ucontrol)
  2107. {
  2108. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2109. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2110. ucontrol->value.integer.value[0]);
  2111. return 0;
  2112. }
  2113. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2114. struct snd_ctl_elem_value *ucontrol)
  2115. {
  2116. struct snd_soc_dapm_widget *widget =
  2117. snd_soc_dapm_kcontrol_widget(kcontrol);
  2118. struct snd_soc_dapm_update *update = NULL;
  2119. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2120. ucontrol->value.integer.value[0]);
  2121. if (ucontrol->value.integer.value[0])
  2122. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2123. update);
  2124. else
  2125. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2126. update);
  2127. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2128. return 1;
  2129. }
  2130. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2131. struct snd_ctl_elem_value *ucontrol)
  2132. {
  2133. ucontrol->value.integer.value[0] = usb_switch_enable;
  2134. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2135. ucontrol->value.integer.value[0]);
  2136. return 0;
  2137. }
  2138. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2139. struct snd_ctl_elem_value *ucontrol)
  2140. {
  2141. struct snd_soc_dapm_widget *widget =
  2142. snd_soc_dapm_kcontrol_widget(kcontrol);
  2143. struct snd_soc_dapm_update *update = NULL;
  2144. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2145. ucontrol->value.integer.value[0]);
  2146. if (ucontrol->value.integer.value[0])
  2147. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2148. 1, update);
  2149. else
  2150. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2151. 0, update);
  2152. usb_switch_enable = ucontrol->value.integer.value[0];
  2153. return 1;
  2154. }
  2155. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2156. struct snd_ctl_elem_value *ucontrol)
  2157. {
  2158. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2159. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2160. ucontrol->value.integer.value[0]);
  2161. return 0;
  2162. }
  2163. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2164. struct snd_ctl_elem_value *ucontrol)
  2165. {
  2166. struct snd_soc_dapm_widget *widget =
  2167. snd_soc_dapm_kcontrol_widget(kcontrol);
  2168. struct snd_soc_dapm_update *update = NULL;
  2169. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2170. ucontrol->value.integer.value[0]);
  2171. if (ucontrol->value.integer.value[0])
  2172. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2173. update);
  2174. else
  2175. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2176. update);
  2177. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2178. return 1;
  2179. }
  2180. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2181. struct snd_ctl_elem_value *ucontrol)
  2182. {
  2183. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2184. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2185. ucontrol->value.integer.value[0]);
  2186. return 0;
  2187. }
  2188. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2189. struct snd_ctl_elem_value *ucontrol)
  2190. {
  2191. struct snd_soc_dapm_widget *widget =
  2192. snd_soc_dapm_kcontrol_widget(kcontrol);
  2193. struct snd_soc_dapm_update *update = NULL;
  2194. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2195. ucontrol->value.integer.value[0]);
  2196. if (ucontrol->value.integer.value[0])
  2197. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2198. update);
  2199. else
  2200. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2201. update);
  2202. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2203. return 1;
  2204. }
  2205. static int msm_routing_get_tert_mi2s_switch_mixer(
  2206. struct snd_kcontrol *kcontrol,
  2207. struct snd_ctl_elem_value *ucontrol)
  2208. {
  2209. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2210. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2211. ucontrol->value.integer.value[0]);
  2212. return 0;
  2213. }
  2214. static int msm_routing_put_tert_mi2s_switch_mixer(
  2215. struct snd_kcontrol *kcontrol,
  2216. struct snd_ctl_elem_value *ucontrol)
  2217. {
  2218. struct snd_soc_dapm_widget *widget =
  2219. snd_soc_dapm_kcontrol_widget(kcontrol);
  2220. struct snd_soc_dapm_update *update = NULL;
  2221. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2222. ucontrol->value.integer.value[0]);
  2223. if (ucontrol->value.integer.value[0])
  2224. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2225. update);
  2226. else
  2227. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2228. update);
  2229. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2230. return 1;
  2231. }
  2232. static int msm_routing_get_quat_mi2s_switch_mixer(
  2233. struct snd_kcontrol *kcontrol,
  2234. struct snd_ctl_elem_value *ucontrol)
  2235. {
  2236. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2237. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2238. ucontrol->value.integer.value[0]);
  2239. return 0;
  2240. }
  2241. static int msm_routing_put_quat_mi2s_switch_mixer(
  2242. struct snd_kcontrol *kcontrol,
  2243. struct snd_ctl_elem_value *ucontrol)
  2244. {
  2245. struct snd_soc_dapm_widget *widget =
  2246. snd_soc_dapm_kcontrol_widget(kcontrol);
  2247. struct snd_soc_dapm_update *update = NULL;
  2248. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2249. ucontrol->value.integer.value[0]);
  2250. if (ucontrol->value.integer.value[0])
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2252. update);
  2253. else
  2254. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2255. update);
  2256. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2257. return 1;
  2258. }
  2259. static int msm_routing_get_quin_mi2s_switch_mixer(
  2260. struct snd_kcontrol *kcontrol,
  2261. struct snd_ctl_elem_value *ucontrol)
  2262. {
  2263. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2264. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2265. ucontrol->value.integer.value[0]);
  2266. return 0;
  2267. }
  2268. static int msm_routing_put_quin_mi2s_switch_mixer(
  2269. struct snd_kcontrol *kcontrol,
  2270. struct snd_ctl_elem_value *ucontrol)
  2271. {
  2272. struct snd_soc_dapm_widget *widget =
  2273. snd_soc_dapm_kcontrol_widget(kcontrol);
  2274. struct snd_soc_dapm_update *update = NULL;
  2275. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2276. ucontrol->value.integer.value[0]);
  2277. if (ucontrol->value.integer.value[0])
  2278. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2279. update);
  2280. else
  2281. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2282. update);
  2283. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2284. return 1;
  2285. }
  2286. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2287. struct snd_ctl_elem_value *ucontrol)
  2288. {
  2289. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2290. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2291. ucontrol->value.integer.value[0]);
  2292. return 0;
  2293. }
  2294. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2295. struct snd_ctl_elem_value *ucontrol)
  2296. {
  2297. struct snd_soc_dapm_widget *widget =
  2298. snd_soc_dapm_kcontrol_widget(kcontrol);
  2299. struct snd_soc_dapm_update *update = NULL;
  2300. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2301. ucontrol->value.integer.value[0]);
  2302. if (ucontrol->value.integer.value[0])
  2303. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2304. update);
  2305. else
  2306. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2307. update);
  2308. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2309. return 1;
  2310. }
  2311. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2312. struct snd_ctl_elem_value *ucontrol)
  2313. {
  2314. ucontrol->value.integer.value[0] = lsm_port_index;
  2315. return 0;
  2316. }
  2317. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2318. struct snd_ctl_elem_value *ucontrol)
  2319. {
  2320. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2321. int mux = ucontrol->value.enumerated.item[0];
  2322. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2323. if (mux >= e->items) {
  2324. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2325. return -EINVAL;
  2326. }
  2327. pr_debug("%s: LSM enable %ld\n", __func__,
  2328. ucontrol->value.integer.value[0]);
  2329. switch (ucontrol->value.integer.value[0]) {
  2330. case 1:
  2331. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2332. break;
  2333. case 2:
  2334. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2335. break;
  2336. case 3:
  2337. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2338. break;
  2339. case 4:
  2340. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2341. break;
  2342. case 5:
  2343. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2344. break;
  2345. case 6:
  2346. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2347. break;
  2348. case 7:
  2349. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2350. break;
  2351. case 8:
  2352. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2353. break;
  2354. case 9:
  2355. lsm_port = ADM_LSM_PORT_ID;
  2356. break;
  2357. case 10:
  2358. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2359. break;
  2360. case 11:
  2361. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2362. break;
  2363. case 12:
  2364. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2365. break;
  2366. default:
  2367. pr_err("Default lsm port");
  2368. break;
  2369. }
  2370. set_lsm_port(lsm_port);
  2371. lsm_port_index = ucontrol->value.integer.value[0];
  2372. return 0;
  2373. }
  2374. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. int i;
  2378. u16 port_id;
  2379. enum afe_mad_type mad_type;
  2380. pr_debug("%s: enter\n", __func__);
  2381. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2382. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2383. strlen(lsm_port_text[i])))
  2384. break;
  2385. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2386. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2387. return -EINVAL;
  2388. }
  2389. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2390. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2391. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2392. strlen(lsm_port_text[7])))
  2393. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2394. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2395. strlen(lsm_port_text[8])))
  2396. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2397. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2398. strlen(lsm_port_text[10])))
  2399. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2400. mad_type = afe_port_get_mad_type(port_id);
  2401. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2402. mad_type);
  2403. switch (mad_type) {
  2404. case MAD_HW_NONE:
  2405. ucontrol->value.integer.value[0] = MADNONE;
  2406. break;
  2407. case MAD_HW_AUDIO:
  2408. ucontrol->value.integer.value[0] = MADAUDIO;
  2409. break;
  2410. case MAD_HW_BEACON:
  2411. ucontrol->value.integer.value[0] = MADBEACON;
  2412. break;
  2413. case MAD_HW_ULTRASOUND:
  2414. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2415. break;
  2416. case MAD_SW_AUDIO:
  2417. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2418. break;
  2419. default:
  2420. WARN(1, "Unknown\n");
  2421. return -EINVAL;
  2422. }
  2423. return 0;
  2424. }
  2425. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2426. struct snd_ctl_elem_value *ucontrol)
  2427. {
  2428. int i;
  2429. u16 port_id;
  2430. enum afe_mad_type mad_type;
  2431. pr_debug("%s: enter\n", __func__);
  2432. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2433. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2434. strlen(lsm_port_text[i])))
  2435. break;
  2436. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2437. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2438. return -EINVAL;
  2439. }
  2440. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2441. switch (ucontrol->value.integer.value[0]) {
  2442. case MADNONE:
  2443. mad_type = MAD_HW_NONE;
  2444. break;
  2445. case MADAUDIO:
  2446. mad_type = MAD_HW_AUDIO;
  2447. break;
  2448. case MADBEACON:
  2449. mad_type = MAD_HW_BEACON;
  2450. break;
  2451. case MADULTRASOUND:
  2452. mad_type = MAD_HW_ULTRASOUND;
  2453. break;
  2454. case MADSWAUDIO:
  2455. mad_type = MAD_SW_AUDIO;
  2456. break;
  2457. default:
  2458. WARN(1, "Unknown\n");
  2459. return -EINVAL;
  2460. }
  2461. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2462. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2463. strlen(lsm_port_text[7])))
  2464. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2465. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2466. strlen(lsm_port_text[8])))
  2467. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2468. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2469. strlen(lsm_port_text[10])))
  2470. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2471. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2472. mad_type);
  2473. return afe_port_set_mad_type(port_id, mad_type);
  2474. }
  2475. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2476. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2477. adm_override_chs_text);
  2478. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2479. {
  2480. int backend_id;
  2481. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2482. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2483. } else {
  2484. pr_err("%s: unsupported backend id: %s",
  2485. __func__, kcontrol->id.name);
  2486. return -EINVAL;
  2487. }
  2488. return backend_id;
  2489. }
  2490. static int msm_routing_adm_channel_config_get(
  2491. struct snd_kcontrol *kcontrol,
  2492. struct snd_ctl_elem_value *ucontrol)
  2493. {
  2494. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2495. if (backend_id >= 0) {
  2496. mutex_lock(&routing_lock);
  2497. ucontrol->value.integer.value[0] =
  2498. msm_bedais[backend_id].adm_override_ch;
  2499. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2500. ucontrol->value.integer.value[0], backend_id);
  2501. mutex_unlock(&routing_lock);
  2502. }
  2503. return 0;
  2504. }
  2505. static int msm_routing_adm_channel_config_put(
  2506. struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2510. if (backend_id >= 0) {
  2511. mutex_lock(&routing_lock);
  2512. msm_bedais[backend_id].adm_override_ch =
  2513. ucontrol->value.integer.value[0];
  2514. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2515. __func__, backend_id,
  2516. msm_bedais[backend_id].adm_override_ch);
  2517. mutex_unlock(&routing_lock);
  2518. }
  2519. return 0;
  2520. }
  2521. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2522. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2523. msm_routing_adm_channel_config_get,
  2524. msm_routing_adm_channel_config_put),
  2525. };
  2526. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2527. struct snd_ctl_elem_value *ucontrol)
  2528. {
  2529. mutex_lock(&routing_lock);
  2530. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2531. mutex_unlock(&routing_lock);
  2532. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2533. ucontrol->value.integer.value[0]);
  2534. return 0;
  2535. };
  2536. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2537. struct snd_ctl_elem_value *ucontrol)
  2538. {
  2539. struct aanc_data aanc_info;
  2540. mutex_lock(&routing_lock);
  2541. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2542. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2545. if (ucontrol->value.integer.value[0] == 0) {
  2546. aanc_info.aanc_active = false;
  2547. aanc_info.aanc_tx_port = 0;
  2548. aanc_info.aanc_rx_port = 0;
  2549. } else {
  2550. aanc_info.aanc_active = true;
  2551. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2552. aanc_info.aanc_tx_port =
  2553. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2554. }
  2555. afe_set_aanc_info(&aanc_info);
  2556. mutex_unlock(&routing_lock);
  2557. return 0;
  2558. };
  2559. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. int idx = 0, shift = 0;
  2563. struct soc_mixer_control *mc =
  2564. (struct soc_mixer_control *)kcontrol->private_value;
  2565. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2566. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2567. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2568. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2569. return -EINVAL;
  2570. }
  2571. if (test_bit(shift,
  2572. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2573. ucontrol->value.integer.value[0] = 1;
  2574. else
  2575. ucontrol->value.integer.value[0] = 0;
  2576. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2577. ucontrol->value.integer.value[0]);
  2578. return 0;
  2579. }
  2580. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2581. struct snd_ctl_elem_value *ucontrol)
  2582. {
  2583. int idx = 0, shift = 0;
  2584. struct soc_mixer_control *mc =
  2585. (struct soc_mixer_control *)kcontrol->private_value;
  2586. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2587. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2588. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2589. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2590. return -EINVAL;
  2591. }
  2592. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2593. __func__, mc->shift, mc->rshift,
  2594. ucontrol->value.integer.value[0], idx, shift);
  2595. if (ucontrol->value.integer.value[0]) {
  2596. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2597. msm_bedais[mc->rshift].port_id);
  2598. set_bit(shift,
  2599. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2600. } else {
  2601. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2602. msm_bedais[mc->rshift].port_id);
  2603. clear_bit(shift,
  2604. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2605. }
  2606. return 1;
  2607. }
  2608. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2609. struct snd_ctl_elem_value *ucontrol)
  2610. {
  2611. u16 fe_id = 0;
  2612. fe_id = ((struct soc_mixer_control *)
  2613. kcontrol->private_value)->shift;
  2614. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2615. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2616. return -EINVAL;
  2617. }
  2618. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2619. return 0;
  2620. }
  2621. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2622. struct snd_ctl_elem_value *ucontrol)
  2623. {
  2624. u16 fe_id = 0;
  2625. fe_id = ((struct soc_mixer_control *)
  2626. kcontrol->private_value)->shift;
  2627. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2628. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2629. return -EINVAL;
  2630. }
  2631. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2632. return 1;
  2633. }
  2634. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2635. struct snd_ctl_elem_value *ucontrol)
  2636. {
  2637. u16 fe_id = 0;
  2638. fe_id = ((struct soc_multi_mixer_control *)
  2639. kcontrol->private_value)->shift;
  2640. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2641. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2642. return -EINVAL;
  2643. }
  2644. ucontrol->value.integer.value[0] =
  2645. channel_mixer[fe_id].output_channel;
  2646. return 0;
  2647. }
  2648. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2649. struct snd_ctl_elem_value *ucontrol)
  2650. {
  2651. u16 fe_id = 0;
  2652. fe_id = ((struct soc_multi_mixer_control *)
  2653. kcontrol->private_value)->shift;
  2654. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2655. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2656. return -EINVAL;
  2657. }
  2658. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2659. fe_id,
  2660. (unsigned int)(ucontrol->value.integer.value[0]));
  2661. channel_mixer[fe_id].output_channel =
  2662. (unsigned int)(ucontrol->value.integer.value[0]);
  2663. return 1;
  2664. }
  2665. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2666. /* If new backend is added, need update this array */
  2667. static const char *const be_name[] = {
  2668. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2669. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2670. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2671. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2672. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2673. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2674. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2675. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2676. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2677. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2678. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2679. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2680. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2681. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2682. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2683. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2684. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2685. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2686. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2687. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2688. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2689. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2690. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2691. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2692. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2693. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2694. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2695. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2696. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2697. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2698. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2699. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2700. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2701. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2702. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2703. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2704. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2705. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2706. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2707. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2708. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2709. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2710. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1"
  2711. };
  2712. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2713. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2714. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2715. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2716. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2717. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2718. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2719. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2720. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2721. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2722. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2723. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2724. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2725. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2726. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2727. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2728. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2729. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2730. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2731. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2732. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2733. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2734. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2735. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2736. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2737. unsigned int channels,
  2738. unsigned int items, const char *const names[])
  2739. {
  2740. if (uinfo->value.enumerated.item >= items)
  2741. uinfo->value.enumerated.item = items - 1;
  2742. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2743. sizeof(uinfo->value.enumerated.name),
  2744. "ALSA: too long item name '%s'\n",
  2745. names[uinfo->value.enumerated.item]);
  2746. strlcpy(uinfo->value.enumerated.name,
  2747. names[uinfo->value.enumerated.item],
  2748. sizeof(uinfo->value.enumerated.name));
  2749. return 0;
  2750. }
  2751. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2752. struct snd_ctl_elem_info *uinfo)
  2753. {
  2754. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2755. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2756. uinfo->count = 1;
  2757. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2758. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2759. return 0;
  2760. }
  2761. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2762. struct snd_ctl_elem_value *ucontrol)
  2763. {
  2764. u16 fe_id = 0;
  2765. fe_id = ((struct soc_enum *)
  2766. kcontrol->private_value)->shift_l;
  2767. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2768. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2769. return -EINVAL;
  2770. }
  2771. pr_debug("%s: FE %d %s\n", __func__,
  2772. fe_id,
  2773. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2774. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2775. return 0;
  2776. }
  2777. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2778. struct snd_ctl_elem_value *ucontrol)
  2779. {
  2780. u16 fe_id = 0;
  2781. fe_id = ((struct soc_enum *)
  2782. kcontrol->private_value)->shift_l;
  2783. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2784. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2785. return -EINVAL;
  2786. }
  2787. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2788. pr_debug("%s: %s FE %d\n", __func__,
  2789. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2790. fe_id);
  2791. return 0;
  2792. }
  2793. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2794. struct snd_ctl_elem_info *uinfo)
  2795. {
  2796. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2797. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2798. uinfo->count = 1;
  2799. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2800. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2801. return 0;
  2802. }
  2803. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2804. struct snd_ctl_elem_value *ucontrol)
  2805. {
  2806. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2807. u16 fe_id = 0, in_ch = 0;
  2808. fe_id = e->shift_l;
  2809. in_ch = e->shift_r;
  2810. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2811. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2812. return -EINVAL;
  2813. }
  2814. if (in_ch >= ADM_MAX_CHANNELS) {
  2815. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2816. return -EINVAL;
  2817. }
  2818. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2819. return 1;
  2820. }
  2821. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2822. struct snd_ctl_elem_value *ucontrol)
  2823. {
  2824. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2825. u16 fe_id = 0, in_ch = 0;
  2826. fe_id = e->shift_l;
  2827. in_ch = e->shift_r;
  2828. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2829. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2830. return -EINVAL;
  2831. }
  2832. if (in_ch >= ADM_MAX_CHANNELS) {
  2833. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2834. return -EINVAL;
  2835. }
  2836. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2837. return 1;
  2838. }
  2839. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2840. struct snd_ctl_elem_info *uinfo)
  2841. {
  2842. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2843. uinfo->count = ADM_MAX_CHANNELS;
  2844. uinfo->value.integer.min = 0;
  2845. uinfo->value.integer.max = WEIGHT_0_DB;
  2846. return 0;
  2847. }
  2848. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2849. struct snd_ctl_elem_value *ucontrol)
  2850. {
  2851. u16 fe_id = 0, out_ch = 0;
  2852. int i, weight;
  2853. fe_id = ((struct soc_multi_mixer_control *)
  2854. kcontrol->private_value)->shift;
  2855. out_ch = ((struct soc_multi_mixer_control *)
  2856. kcontrol->private_value)->rshift;
  2857. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2858. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2859. return -EINVAL;
  2860. }
  2861. if (out_ch >= ADM_MAX_CHANNELS) {
  2862. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2863. return -EINVAL;
  2864. }
  2865. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2866. __func__, fe_id,
  2867. ucontrol->value.integer.value[0],
  2868. ucontrol->value.integer.value[1],
  2869. ucontrol->value.integer.value[2],
  2870. ucontrol->value.integer.value[3],
  2871. ucontrol->value.integer.value[4],
  2872. ucontrol->value.integer.value[5],
  2873. ucontrol->value.integer.value[6],
  2874. ucontrol->value.integer.value[7]);
  2875. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2876. weight = ucontrol->value.integer.value[i];
  2877. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2878. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2879. __func__, fe_id, out_ch, i,
  2880. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2881. }
  2882. return 0;
  2883. }
  2884. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2885. struct snd_ctl_elem_value *ucontrol)
  2886. {
  2887. u16 fe_id = 0, out_ch = 0;
  2888. int i;
  2889. fe_id = ((struct soc_multi_mixer_control *)
  2890. kcontrol->private_value)->shift;
  2891. out_ch = ((struct soc_multi_mixer_control *)
  2892. kcontrol->private_value)->rshift;
  2893. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2894. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2895. return -EINVAL;
  2896. }
  2897. if (out_ch >= ADM_MAX_CHANNELS) {
  2898. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2899. return -EINVAL;
  2900. }
  2901. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2902. ucontrol->value.integer.value[i] =
  2903. channel_mixer[fe_id].channel_weight[out_ch][i];
  2904. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2905. __func__, fe_id,
  2906. ucontrol->value.integer.value[0],
  2907. ucontrol->value.integer.value[1],
  2908. ucontrol->value.integer.value[2],
  2909. ucontrol->value.integer.value[3],
  2910. ucontrol->value.integer.value[4],
  2911. ucontrol->value.integer.value[5],
  2912. ucontrol->value.integer.value[6],
  2913. ucontrol->value.integer.value[7]);
  2914. return 0;
  2915. }
  2916. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2917. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2918. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2919. msm_pcm_get_channel_rule_index,
  2920. msm_pcm_put_channel_rule_index),
  2921. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2922. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2923. msm_pcm_get_channel_rule_index,
  2924. msm_pcm_put_channel_rule_index),
  2925. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2926. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2927. msm_pcm_get_channel_rule_index,
  2928. msm_pcm_put_channel_rule_index),
  2929. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2930. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2931. msm_pcm_get_channel_rule_index,
  2932. msm_pcm_put_channel_rule_index),
  2933. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2934. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2935. msm_pcm_get_channel_rule_index,
  2936. msm_pcm_put_channel_rule_index),
  2937. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2938. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2939. msm_pcm_get_channel_rule_index,
  2940. msm_pcm_put_channel_rule_index),
  2941. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2942. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2943. msm_pcm_get_out_chs,
  2944. msm_pcm_put_out_chs),
  2945. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2946. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2947. msm_pcm_get_out_chs,
  2948. msm_pcm_put_out_chs),
  2949. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2950. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2951. msm_pcm_get_out_chs,
  2952. msm_pcm_put_out_chs),
  2953. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2954. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2955. msm_pcm_get_out_chs,
  2956. msm_pcm_put_out_chs),
  2957. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2958. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2959. msm_pcm_get_out_chs,
  2960. msm_pcm_put_out_chs),
  2961. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2962. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2963. msm_pcm_get_out_chs,
  2964. msm_pcm_put_out_chs),
  2965. {
  2966. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2967. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2968. .name = "MultiMedia1 Channel Mixer",
  2969. .info = msm_pcm_channel_mixer_info,
  2970. .get = msm_pcm_channel_mixer_get,
  2971. .put = msm_pcm_channel_mixer_put,
  2972. .private_value = (unsigned long)&(mm1_channel_mux)
  2973. },
  2974. {
  2975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2977. .name = "MultiMedia2 Channel Mixer",
  2978. .info = msm_pcm_channel_mixer_info,
  2979. .get = msm_pcm_channel_mixer_get,
  2980. .put = msm_pcm_channel_mixer_put,
  2981. .private_value = (unsigned long)&(mm2_channel_mux)
  2982. },
  2983. {
  2984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2985. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2986. .name = "MultiMedia3 Channel Mixer",
  2987. .info = msm_pcm_channel_mixer_info,
  2988. .get = msm_pcm_channel_mixer_get,
  2989. .put = msm_pcm_channel_mixer_put,
  2990. .private_value = (unsigned long)&(mm3_channel_mux)
  2991. },
  2992. {
  2993. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2994. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2995. .name = "MultiMedia4 Channel Mixer",
  2996. .info = msm_pcm_channel_mixer_info,
  2997. .get = msm_pcm_channel_mixer_get,
  2998. .put = msm_pcm_channel_mixer_put,
  2999. .private_value = (unsigned long)&(mm4_channel_mux)
  3000. },
  3001. {
  3002. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3003. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3004. .name = "MultiMedia1 Output Channel1",
  3005. .info = msm_pcm_channel_weight_info,
  3006. .get = msm_pcm_channel_weight_get,
  3007. .put = msm_pcm_channel_weight_put,
  3008. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3009. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3010. },
  3011. {
  3012. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3014. .name = "MultiMedia1 Output Channel2",
  3015. .info = msm_pcm_channel_weight_info,
  3016. .get = msm_pcm_channel_weight_get,
  3017. .put = msm_pcm_channel_weight_put,
  3018. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3019. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3020. },
  3021. {
  3022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3023. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3024. .name = "MultiMedia1 Output Channel3",
  3025. .info = msm_pcm_channel_weight_info,
  3026. .get = msm_pcm_channel_weight_get,
  3027. .put = msm_pcm_channel_weight_put,
  3028. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3029. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3030. },
  3031. {
  3032. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3033. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3034. .name = "MultiMedia1 Output Channel4",
  3035. .info = msm_pcm_channel_weight_info,
  3036. .get = msm_pcm_channel_weight_get,
  3037. .put = msm_pcm_channel_weight_put,
  3038. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3039. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3040. },
  3041. {
  3042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3044. .name = "MultiMedia1 Output Channel5",
  3045. .info = msm_pcm_channel_weight_info,
  3046. .get = msm_pcm_channel_weight_get,
  3047. .put = msm_pcm_channel_weight_put,
  3048. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3049. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3050. },
  3051. {
  3052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3053. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3054. .name = "MultiMedia1 Output Channel6",
  3055. .info = msm_pcm_channel_weight_info,
  3056. .get = msm_pcm_channel_weight_get,
  3057. .put = msm_pcm_channel_weight_put,
  3058. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3059. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3060. },
  3061. {
  3062. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3063. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3064. .name = "MultiMedia1 Output Channel7",
  3065. .info = msm_pcm_channel_weight_info,
  3066. .get = msm_pcm_channel_weight_get,
  3067. .put = msm_pcm_channel_weight_put,
  3068. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3069. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3070. },
  3071. {
  3072. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3074. .name = "MultiMedia1 Output Channel8",
  3075. .info = msm_pcm_channel_weight_info,
  3076. .get = msm_pcm_channel_weight_get,
  3077. .put = msm_pcm_channel_weight_put,
  3078. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3079. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3080. },
  3081. {
  3082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3083. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3084. .name = "MultiMedia2 Output Channel1",
  3085. .info = msm_pcm_channel_weight_info,
  3086. .get = msm_pcm_channel_weight_get,
  3087. .put = msm_pcm_channel_weight_put,
  3088. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3089. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3090. },
  3091. {
  3092. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3093. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3094. .name = "MultiMedia2 Output Channel2",
  3095. .info = msm_pcm_channel_weight_info,
  3096. .get = msm_pcm_channel_weight_get,
  3097. .put = msm_pcm_channel_weight_put,
  3098. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3099. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3100. },
  3101. {
  3102. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3104. .name = "MultiMedia2 Output Channel3",
  3105. .info = msm_pcm_channel_weight_info,
  3106. .get = msm_pcm_channel_weight_get,
  3107. .put = msm_pcm_channel_weight_put,
  3108. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3109. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3110. },
  3111. {
  3112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3113. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3114. .name = "MultiMedia3 Output Channel1",
  3115. .info = msm_pcm_channel_weight_info,
  3116. .get = msm_pcm_channel_weight_get,
  3117. .put = msm_pcm_channel_weight_put,
  3118. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3119. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3120. },
  3121. {
  3122. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3123. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3124. .name = "MultiMedia3 Output Channel2",
  3125. .info = msm_pcm_channel_weight_info,
  3126. .get = msm_pcm_channel_weight_get,
  3127. .put = msm_pcm_channel_weight_put,
  3128. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3129. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3130. },
  3131. {
  3132. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3133. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3134. .name = "MultiMedia1 Channel1",
  3135. .info = msm_pcm_channel_input_be_info,
  3136. .get = msm_pcm_channel_input_be_get,
  3137. .put = msm_pcm_channel_input_be_put,
  3138. .private_value = (unsigned long)&(mm1_ch1_enum)
  3139. },
  3140. {
  3141. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3142. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3143. .name = "MultiMedia1 Channel2",
  3144. .info = msm_pcm_channel_input_be_info,
  3145. .get = msm_pcm_channel_input_be_get,
  3146. .put = msm_pcm_channel_input_be_put,
  3147. .private_value = (unsigned long)&(mm1_ch2_enum)
  3148. },
  3149. {
  3150. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3151. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3152. .name = "MultiMedia1 Channel3",
  3153. .info = msm_pcm_channel_input_be_info,
  3154. .get = msm_pcm_channel_input_be_get,
  3155. .put = msm_pcm_channel_input_be_put,
  3156. .private_value = (unsigned long)&(mm1_ch3_enum)
  3157. },
  3158. {
  3159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3161. .name = "MultiMedia1 Channel4",
  3162. .info = msm_pcm_channel_input_be_info,
  3163. .get = msm_pcm_channel_input_be_get,
  3164. .put = msm_pcm_channel_input_be_put,
  3165. .private_value = (unsigned long)&(mm1_ch4_enum)
  3166. },
  3167. {
  3168. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3169. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3170. .name = "MultiMedia1 Channel5",
  3171. .info = msm_pcm_channel_input_be_info,
  3172. .get = msm_pcm_channel_input_be_get,
  3173. .put = msm_pcm_channel_input_be_put,
  3174. .private_value = (unsigned long)&(mm1_ch5_enum)
  3175. },
  3176. {
  3177. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3178. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3179. .name = "MultiMedia1 Channel6",
  3180. .info = msm_pcm_channel_input_be_info,
  3181. .get = msm_pcm_channel_input_be_get,
  3182. .put = msm_pcm_channel_input_be_put,
  3183. .private_value = (unsigned long)&(mm1_ch6_enum)
  3184. },
  3185. {
  3186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3187. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3188. .name = "MultiMedia1 Channel7",
  3189. .info = msm_pcm_channel_input_be_info,
  3190. .get = msm_pcm_channel_input_be_get,
  3191. .put = msm_pcm_channel_input_be_put,
  3192. .private_value = (unsigned long)&(mm1_ch7_enum)
  3193. },
  3194. {
  3195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3197. .name = "MultiMedia1 Channel8",
  3198. .info = msm_pcm_channel_input_be_info,
  3199. .get = msm_pcm_channel_input_be_get,
  3200. .put = msm_pcm_channel_input_be_put,
  3201. .private_value = (unsigned long)&(mm1_ch8_enum)
  3202. },
  3203. };
  3204. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3205. struct snd_ctl_elem_value *ucontrol)
  3206. {
  3207. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3208. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3209. ucontrol->value.integer.value[0]);
  3210. return 0;
  3211. }
  3212. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3213. struct snd_ctl_elem_value *ucontrol)
  3214. {
  3215. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3216. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3217. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3218. return 0;
  3219. }
  3220. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3221. "Four", "Five", "Six", "Seven", "Eight"};
  3222. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3223. struct snd_ctl_elem_value *ucontrol)
  3224. {
  3225. switch (msm_ec_ref_bit_format) {
  3226. case SNDRV_PCM_FORMAT_S24_LE:
  3227. ucontrol->value.integer.value[0] = 2;
  3228. break;
  3229. case SNDRV_PCM_FORMAT_S16_LE:
  3230. ucontrol->value.integer.value[0] = 1;
  3231. break;
  3232. default:
  3233. ucontrol->value.integer.value[0] = 0;
  3234. break;
  3235. }
  3236. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3237. __func__, ucontrol->value.integer.value[0]);
  3238. return 0;
  3239. }
  3240. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3241. struct snd_ctl_elem_value *ucontrol)
  3242. {
  3243. u16 bit_width = 0;
  3244. switch (ucontrol->value.integer.value[0]) {
  3245. case 2:
  3246. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3247. break;
  3248. case 1:
  3249. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3250. break;
  3251. default:
  3252. msm_ec_ref_bit_format = 0;
  3253. break;
  3254. }
  3255. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3256. bit_width = 16;
  3257. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3258. bit_width = 24;
  3259. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3260. __func__, msm_ec_ref_bit_format);
  3261. adm_ec_ref_rx_bit_width(bit_width);
  3262. return 0;
  3263. }
  3264. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3265. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3266. struct snd_ctl_elem_value *ucontrol)
  3267. {
  3268. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3269. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3270. __func__, ucontrol->value.integer.value[0]);
  3271. return 0;
  3272. }
  3273. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3274. struct snd_ctl_elem_value *ucontrol)
  3275. {
  3276. switch (ucontrol->value.integer.value[0]) {
  3277. case 0:
  3278. msm_ec_ref_sampling_rate = 0;
  3279. break;
  3280. case 1:
  3281. msm_ec_ref_sampling_rate = 8000;
  3282. break;
  3283. case 2:
  3284. msm_ec_ref_sampling_rate = 16000;
  3285. break;
  3286. case 3:
  3287. msm_ec_ref_sampling_rate = 32000;
  3288. break;
  3289. case 4:
  3290. msm_ec_ref_sampling_rate = 44100;
  3291. break;
  3292. case 5:
  3293. msm_ec_ref_sampling_rate = 48000;
  3294. break;
  3295. case 6:
  3296. msm_ec_ref_sampling_rate = 96000;
  3297. break;
  3298. case 7:
  3299. msm_ec_ref_sampling_rate = 192000;
  3300. break;
  3301. case 8:
  3302. msm_ec_ref_sampling_rate = 384000;
  3303. break;
  3304. default:
  3305. msm_ec_ref_sampling_rate = 48000;
  3306. break;
  3307. }
  3308. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3309. __func__, msm_ec_ref_sampling_rate);
  3310. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3311. return 0;
  3312. }
  3313. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3314. "32000", "44100", "48000", "96000", "192000", "384000"};
  3315. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3316. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3317. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3318. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3319. };
  3320. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3321. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3322. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3323. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3324. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3325. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3326. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3327. };
  3328. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3329. struct snd_ctl_elem_value *ucontrol)
  3330. {
  3331. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3332. mutex_lock(&routing_lock);
  3333. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3334. mutex_unlock(&routing_lock);
  3335. return 0;
  3336. }
  3337. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3338. struct snd_ctl_elem_value *ucontrol)
  3339. {
  3340. int ec_ref_port_id;
  3341. struct snd_soc_dapm_widget *widget =
  3342. snd_soc_dapm_kcontrol_widget(kcontrol);
  3343. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3344. struct snd_soc_dapm_update *update = NULL;
  3345. mutex_lock(&routing_lock);
  3346. switch (ucontrol->value.integer.value[0]) {
  3347. case 0:
  3348. msm_route_ec_ref_rx = 0;
  3349. ec_ref_port_id = AFE_PORT_INVALID;
  3350. break;
  3351. case 1:
  3352. msm_route_ec_ref_rx = 1;
  3353. ec_ref_port_id = SLIMBUS_0_RX;
  3354. break;
  3355. case 2:
  3356. msm_route_ec_ref_rx = 2;
  3357. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3358. break;
  3359. case 3:
  3360. msm_route_ec_ref_rx = 3;
  3361. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3362. break;
  3363. case 4:
  3364. msm_route_ec_ref_rx = 4;
  3365. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3366. break;
  3367. case 5:
  3368. msm_route_ec_ref_rx = 5;
  3369. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3370. break;
  3371. case 6:
  3372. msm_route_ec_ref_rx = 6;
  3373. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3374. break;
  3375. case 7:
  3376. msm_route_ec_ref_rx = 7;
  3377. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3378. break;
  3379. case 9:
  3380. msm_route_ec_ref_rx = 9;
  3381. ec_ref_port_id = SLIMBUS_5_RX;
  3382. break;
  3383. case 10:
  3384. msm_route_ec_ref_rx = 10;
  3385. ec_ref_port_id = SLIMBUS_1_TX;
  3386. break;
  3387. case 11:
  3388. msm_route_ec_ref_rx = 11;
  3389. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3390. break;
  3391. case 12:
  3392. msm_route_ec_ref_rx = 12;
  3393. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3394. break;
  3395. case 13:
  3396. msm_route_ec_ref_rx = 13;
  3397. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3398. break;
  3399. case 14:
  3400. msm_route_ec_ref_rx = 14;
  3401. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3402. break;
  3403. case 15:
  3404. msm_route_ec_ref_rx = 15;
  3405. ec_ref_port_id = SLIMBUS_6_RX;
  3406. break;
  3407. case 16:
  3408. msm_route_ec_ref_rx = 16;
  3409. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3410. break;
  3411. case 17:
  3412. msm_route_ec_ref_rx = 17;
  3413. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3414. break;
  3415. case 18:
  3416. msm_route_ec_ref_rx = 18;
  3417. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3418. break;
  3419. case 19:
  3420. msm_route_ec_ref_rx = 19;
  3421. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3422. break;
  3423. case 20:
  3424. msm_route_ec_ref_rx = 20;
  3425. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3426. break;
  3427. case 21:
  3428. msm_route_ec_ref_rx = 21;
  3429. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3430. break;
  3431. case 22:
  3432. msm_route_ec_ref_rx = 22;
  3433. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3434. break;
  3435. case 23:
  3436. msm_route_ec_ref_rx = 23;
  3437. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3438. break;
  3439. case 24:
  3440. msm_route_ec_ref_rx = 24;
  3441. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3442. break;
  3443. case 25:
  3444. msm_route_ec_ref_rx = 25;
  3445. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3446. break;
  3447. case 26:
  3448. msm_route_ec_ref_rx = 26;
  3449. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3450. break;
  3451. case 27:
  3452. msm_route_ec_ref_rx = 27;
  3453. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3454. break;
  3455. case 28:
  3456. msm_route_ec_ref_rx = 28;
  3457. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3458. break;
  3459. case 29:
  3460. msm_route_ec_ref_rx = 29;
  3461. ec_ref_port_id = SLIMBUS_7_RX;
  3462. break;
  3463. default:
  3464. msm_route_ec_ref_rx = 0; /* NONE */
  3465. pr_err("%s EC ref rx %ld not valid\n",
  3466. __func__, ucontrol->value.integer.value[0]);
  3467. ec_ref_port_id = AFE_PORT_INVALID;
  3468. break;
  3469. }
  3470. adm_ec_ref_rx_id(ec_ref_port_id);
  3471. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3472. __func__, msm_route_ec_ref_rx);
  3473. mutex_unlock(&routing_lock);
  3474. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3475. msm_route_ec_ref_rx, e, update);
  3476. return 0;
  3477. }
  3478. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3479. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3480. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3481. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3482. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3483. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3484. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3485. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3486. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3487. "SLIM_7_RX"
  3488. };
  3489. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3490. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3491. };
  3492. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3493. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3494. msm_route_ec_ref_rx_enum[0],
  3495. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3496. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3497. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3498. msm_route_ec_ref_rx_enum[0],
  3499. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3500. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3501. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3502. msm_route_ec_ref_rx_enum[0],
  3503. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3504. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3505. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3506. msm_route_ec_ref_rx_enum[0],
  3507. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3508. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3509. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3510. msm_route_ec_ref_rx_enum[0],
  3511. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3512. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3513. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3514. msm_route_ec_ref_rx_enum[0],
  3515. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3516. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3517. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3518. msm_route_ec_ref_rx_enum[0],
  3519. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3520. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3521. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3522. msm_route_ec_ref_rx_enum[0],
  3523. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3524. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3525. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3526. msm_route_ec_ref_rx_enum[0],
  3527. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3528. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3529. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3530. msm_route_ec_ref_rx_enum[0],
  3531. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3532. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3533. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3534. msm_route_ec_ref_rx_enum[0],
  3535. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3536. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3537. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3538. msm_route_ec_ref_rx_enum[0],
  3539. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3540. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3541. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3542. msm_route_ec_ref_rx_enum[0],
  3543. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3544. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3545. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3546. msm_route_ec_ref_rx_enum[0],
  3547. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3548. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3549. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3550. msm_route_ec_ref_rx_enum[0],
  3551. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3552. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3553. struct snd_ctl_elem_value *ucontrol)
  3554. {
  3555. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3556. mutex_lock(&routing_lock);
  3557. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3558. mutex_unlock(&routing_lock);
  3559. return 0;
  3560. }
  3561. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3562. struct snd_ctl_elem_value *ucontrol)
  3563. {
  3564. struct snd_soc_dapm_widget *widget =
  3565. snd_soc_dapm_kcontrol_widget(kcontrol);
  3566. int mux = ucontrol->value.enumerated.item[0];
  3567. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3568. int ret = 1;
  3569. bool state = true;
  3570. uint16_t ext_ec_ref_port_id;
  3571. struct snd_soc_dapm_update *update = NULL;
  3572. if (mux >= e->items) {
  3573. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3574. return -EINVAL;
  3575. }
  3576. mutex_lock(&routing_lock);
  3577. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3578. switch (msm_route_ext_ec_ref) {
  3579. case EXT_EC_REF_PRI_MI2S_TX:
  3580. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3581. break;
  3582. case EXT_EC_REF_SEC_MI2S_TX:
  3583. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3584. break;
  3585. case EXT_EC_REF_TERT_MI2S_TX:
  3586. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3587. break;
  3588. case EXT_EC_REF_QUAT_MI2S_TX:
  3589. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3590. break;
  3591. case EXT_EC_REF_QUIN_MI2S_TX:
  3592. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3593. break;
  3594. case EXT_EC_REF_SLIM_1_TX:
  3595. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3596. break;
  3597. case EXT_EC_REF_SEC_TDM_TX:
  3598. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3599. break;
  3600. case EXT_EC_REF_NONE:
  3601. default:
  3602. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3603. state = false;
  3604. break;
  3605. }
  3606. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3607. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3608. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3609. mutex_unlock(&routing_lock);
  3610. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3611. update);
  3612. } else {
  3613. ret = -EINVAL;
  3614. mutex_unlock(&routing_lock);
  3615. }
  3616. return ret;
  3617. }
  3618. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3619. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3620. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3621. "SLIM_1_TX", "SEC_TDM_TX"};
  3622. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3623. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3624. };
  3625. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3626. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3627. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3628. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3629. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3630. MSM_BACKEND_DAI_PRI_I2S_RX,
  3631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3632. msm_routing_put_audio_mixer),
  3633. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3634. MSM_BACKEND_DAI_PRI_I2S_RX,
  3635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3636. msm_routing_put_audio_mixer),
  3637. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3638. MSM_BACKEND_DAI_PRI_I2S_RX,
  3639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3640. msm_routing_put_audio_mixer),
  3641. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3642. MSM_BACKEND_DAI_PRI_I2S_RX,
  3643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3644. msm_routing_put_audio_mixer),
  3645. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3646. MSM_BACKEND_DAI_PRI_I2S_RX,
  3647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3648. msm_routing_put_audio_mixer),
  3649. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3650. MSM_BACKEND_DAI_PRI_I2S_RX,
  3651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3652. msm_routing_put_audio_mixer),
  3653. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3654. MSM_BACKEND_DAI_PRI_I2S_RX,
  3655. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3656. msm_routing_put_audio_mixer),
  3657. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3658. MSM_BACKEND_DAI_PRI_I2S_RX,
  3659. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3660. msm_routing_put_audio_mixer),
  3661. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3662. MSM_BACKEND_DAI_PRI_I2S_RX,
  3663. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3664. msm_routing_put_audio_mixer),
  3665. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3666. MSM_BACKEND_DAI_PRI_I2S_RX,
  3667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3668. msm_routing_put_audio_mixer),
  3669. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3670. MSM_BACKEND_DAI_PRI_I2S_RX,
  3671. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3672. msm_routing_put_audio_mixer),
  3673. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3674. MSM_BACKEND_DAI_PRI_I2S_RX,
  3675. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3676. msm_routing_put_audio_mixer),
  3677. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3678. MSM_BACKEND_DAI_PRI_I2S_RX,
  3679. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3680. msm_routing_put_audio_mixer),
  3681. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3682. MSM_BACKEND_DAI_PRI_I2S_RX,
  3683. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3684. msm_routing_put_audio_mixer),
  3685. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3686. MSM_BACKEND_DAI_PRI_I2S_RX,
  3687. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3688. msm_routing_put_audio_mixer),
  3689. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3690. MSM_BACKEND_DAI_PRI_I2S_RX,
  3691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3692. msm_routing_put_audio_mixer),
  3693. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3694. MSM_BACKEND_DAI_PRI_I2S_RX,
  3695. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3696. msm_routing_put_audio_mixer),
  3697. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3698. MSM_BACKEND_DAI_PRI_I2S_RX,
  3699. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3700. msm_routing_put_audio_mixer),
  3701. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3702. MSM_BACKEND_DAI_PRI_I2S_RX,
  3703. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3704. msm_routing_put_audio_mixer),
  3705. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3706. MSM_BACKEND_DAI_PRI_I2S_RX,
  3707. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3708. msm_routing_put_audio_mixer),
  3709. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3710. MSM_BACKEND_DAI_PRI_I2S_RX,
  3711. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3712. msm_routing_put_audio_mixer),
  3713. };
  3714. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3715. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3716. MSM_BACKEND_DAI_SEC_I2S_RX,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3718. msm_routing_put_audio_mixer),
  3719. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3720. MSM_BACKEND_DAI_SEC_I2S_RX,
  3721. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3722. msm_routing_put_audio_mixer),
  3723. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3724. MSM_BACKEND_DAI_SEC_I2S_RX,
  3725. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3726. msm_routing_put_audio_mixer),
  3727. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3728. MSM_BACKEND_DAI_SEC_I2S_RX,
  3729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3730. msm_routing_put_audio_mixer),
  3731. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3732. MSM_BACKEND_DAI_SEC_I2S_RX,
  3733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3734. msm_routing_put_audio_mixer),
  3735. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3736. MSM_BACKEND_DAI_SEC_I2S_RX,
  3737. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3738. msm_routing_put_audio_mixer),
  3739. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3740. MSM_BACKEND_DAI_SEC_I2S_RX,
  3741. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3742. msm_routing_put_audio_mixer),
  3743. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3744. MSM_BACKEND_DAI_SEC_I2S_RX,
  3745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3746. msm_routing_put_audio_mixer),
  3747. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3748. MSM_BACKEND_DAI_SEC_I2S_RX,
  3749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3750. msm_routing_put_audio_mixer),
  3751. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3752. MSM_BACKEND_DAI_SEC_I2S_RX,
  3753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3754. msm_routing_put_audio_mixer),
  3755. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3756. MSM_BACKEND_DAI_SEC_I2S_RX,
  3757. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3758. msm_routing_put_audio_mixer),
  3759. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3760. MSM_BACKEND_DAI_SEC_I2S_RX,
  3761. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3762. msm_routing_put_audio_mixer),
  3763. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3764. MSM_BACKEND_DAI_SEC_I2S_RX,
  3765. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3766. msm_routing_put_audio_mixer),
  3767. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3768. MSM_BACKEND_DAI_SEC_I2S_RX,
  3769. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3770. msm_routing_put_audio_mixer),
  3771. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3772. MSM_BACKEND_DAI_SEC_I2S_RX,
  3773. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3774. msm_routing_put_audio_mixer),
  3775. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3776. MSM_BACKEND_DAI_SEC_I2S_RX,
  3777. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3778. msm_routing_put_audio_mixer),
  3779. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3780. MSM_BACKEND_DAI_SEC_I2S_RX,
  3781. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3782. msm_routing_put_audio_mixer),
  3783. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3784. MSM_BACKEND_DAI_SEC_I2S_RX,
  3785. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3786. msm_routing_put_audio_mixer),
  3787. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3788. MSM_BACKEND_DAI_SEC_I2S_RX,
  3789. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3790. msm_routing_put_audio_mixer),
  3791. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3792. MSM_BACKEND_DAI_SEC_I2S_RX,
  3793. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3794. msm_routing_put_audio_mixer),
  3795. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3796. MSM_BACKEND_DAI_SEC_I2S_RX,
  3797. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3798. msm_routing_put_audio_mixer),
  3799. };
  3800. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3801. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3802. MSM_BACKEND_DAI_SPDIF_RX,
  3803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3804. msm_routing_put_audio_mixer),
  3805. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3806. MSM_BACKEND_DAI_SPDIF_RX,
  3807. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3808. msm_routing_put_audio_mixer),
  3809. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3810. MSM_BACKEND_DAI_SPDIF_RX,
  3811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3812. msm_routing_put_audio_mixer),
  3813. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3814. MSM_BACKEND_DAI_SPDIF_RX,
  3815. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3816. msm_routing_put_audio_mixer),
  3817. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3818. MSM_BACKEND_DAI_SPDIF_RX,
  3819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3820. msm_routing_put_audio_mixer),
  3821. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3822. MSM_BACKEND_DAI_SPDIF_RX,
  3823. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3824. msm_routing_put_audio_mixer),
  3825. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3826. MSM_BACKEND_DAI_SPDIF_RX,
  3827. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3828. msm_routing_put_audio_mixer),
  3829. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3830. MSM_BACKEND_DAI_SPDIF_RX,
  3831. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3832. msm_routing_put_audio_mixer),
  3833. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3834. MSM_BACKEND_DAI_SPDIF_RX,
  3835. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3836. msm_routing_put_audio_mixer),
  3837. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3838. MSM_BACKEND_DAI_SPDIF_RX,
  3839. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3840. msm_routing_put_audio_mixer),
  3841. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3842. MSM_BACKEND_DAI_SPDIF_RX,
  3843. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3844. msm_routing_put_audio_mixer),
  3845. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3846. MSM_BACKEND_DAI_SPDIF_RX,
  3847. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3848. msm_routing_put_audio_mixer),
  3849. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3850. MSM_BACKEND_DAI_SPDIF_RX,
  3851. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3852. msm_routing_put_audio_mixer),
  3853. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3854. MSM_BACKEND_DAI_SPDIF_RX,
  3855. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3856. msm_routing_put_audio_mixer),
  3857. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3858. MSM_BACKEND_DAI_SPDIF_RX,
  3859. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3860. msm_routing_put_audio_mixer),
  3861. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3862. MSM_BACKEND_DAI_SPDIF_RX,
  3863. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3864. msm_routing_put_audio_mixer),
  3865. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3866. MSM_BACKEND_DAI_SPDIF_RX,
  3867. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3868. msm_routing_put_audio_mixer),
  3869. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3870. MSM_BACKEND_DAI_SPDIF_RX,
  3871. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3872. msm_routing_put_audio_mixer),
  3873. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3874. MSM_BACKEND_DAI_SPDIF_RX,
  3875. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3876. msm_routing_put_audio_mixer),
  3877. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3878. MSM_BACKEND_DAI_SPDIF_RX,
  3879. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3880. msm_routing_put_audio_mixer),
  3881. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3882. MSM_BACKEND_DAI_SPDIF_RX,
  3883. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3884. msm_routing_put_audio_mixer),
  3885. };
  3886. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3887. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3888. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3890. msm_routing_put_audio_mixer),
  3891. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3892. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3894. msm_routing_put_audio_mixer),
  3895. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3896. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3898. msm_routing_put_audio_mixer),
  3899. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3900. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3902. msm_routing_put_audio_mixer),
  3903. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3904. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3906. msm_routing_put_audio_mixer),
  3907. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3908. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3910. msm_routing_put_audio_mixer),
  3911. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3912. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3913. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3914. msm_routing_put_audio_mixer),
  3915. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3916. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3918. msm_routing_put_audio_mixer),
  3919. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3920. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3921. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3922. msm_routing_put_audio_mixer),
  3923. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3924. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3925. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3926. msm_routing_put_audio_mixer),
  3927. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3928. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3929. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3930. msm_routing_put_audio_mixer),
  3931. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3932. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3933. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3934. msm_routing_put_audio_mixer),
  3935. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3936. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3937. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3938. msm_routing_put_audio_mixer),
  3939. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3940. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3941. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3942. msm_routing_put_audio_mixer),
  3943. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3944. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3945. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3946. msm_routing_put_audio_mixer),
  3947. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3948. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3949. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3950. msm_routing_put_audio_mixer),
  3951. };
  3952. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3953. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3954. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3956. msm_routing_put_audio_mixer),
  3957. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3958. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3960. msm_routing_put_audio_mixer),
  3961. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3962. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3964. msm_routing_put_audio_mixer),
  3965. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3966. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3968. msm_routing_put_audio_mixer),
  3969. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3970. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3972. msm_routing_put_audio_mixer),
  3973. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3974. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3976. msm_routing_put_audio_mixer),
  3977. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3978. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3979. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3980. msm_routing_put_audio_mixer),
  3981. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3982. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3984. msm_routing_put_audio_mixer),
  3985. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3986. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3987. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3988. msm_routing_put_audio_mixer),
  3989. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3990. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3992. msm_routing_put_audio_mixer),
  3993. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3994. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3995. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3996. msm_routing_put_audio_mixer),
  3997. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3998. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3999. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4000. msm_routing_put_audio_mixer),
  4001. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4002. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4003. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4004. msm_routing_put_audio_mixer),
  4005. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4006. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4007. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4008. msm_routing_put_audio_mixer),
  4009. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4010. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4011. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4012. msm_routing_put_audio_mixer),
  4013. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4014. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4016. msm_routing_put_audio_mixer),
  4017. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4018. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4019. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4020. msm_routing_put_audio_mixer),
  4021. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4022. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4023. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4024. msm_routing_put_audio_mixer),
  4025. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4026. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4027. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4028. msm_routing_put_audio_mixer),
  4029. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4030. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4031. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4032. msm_routing_put_audio_mixer),
  4033. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4034. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4035. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4036. msm_routing_put_audio_mixer),
  4037. };
  4038. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4039. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4040. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4041. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4042. msm_routing_put_audio_mixer),
  4043. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4044. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4045. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4046. msm_routing_put_audio_mixer),
  4047. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4048. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4049. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4050. msm_routing_put_audio_mixer),
  4051. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4052. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4053. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4054. msm_routing_put_audio_mixer),
  4055. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4056. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4057. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4058. msm_routing_put_audio_mixer),
  4059. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4060. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4062. msm_routing_put_audio_mixer),
  4063. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4064. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4065. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4066. msm_routing_put_audio_mixer),
  4067. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4068. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4069. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4070. msm_routing_put_audio_mixer),
  4071. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4072. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4073. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4074. msm_routing_put_audio_mixer),
  4075. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4076. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4077. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4078. msm_routing_put_audio_mixer),
  4079. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4080. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4081. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4082. msm_routing_put_audio_mixer),
  4083. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4084. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4085. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4086. msm_routing_put_audio_mixer),
  4087. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4088. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4089. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4090. msm_routing_put_audio_mixer),
  4091. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4092. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4093. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4094. msm_routing_put_audio_mixer),
  4095. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4096. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4097. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4098. msm_routing_put_audio_mixer),
  4099. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4100. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4101. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4102. msm_routing_put_audio_mixer),
  4103. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4104. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4105. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4106. msm_routing_put_audio_mixer),
  4107. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4108. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4109. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4110. msm_routing_put_audio_mixer),
  4111. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4112. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4113. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4114. msm_routing_put_audio_mixer),
  4115. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4116. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4117. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4118. msm_routing_put_audio_mixer),
  4119. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4120. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4121. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4122. msm_routing_put_audio_mixer),
  4123. };
  4124. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4125. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4126. MSM_BACKEND_DAI_MI2S_RX,
  4127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4128. msm_routing_put_audio_mixer),
  4129. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4130. MSM_BACKEND_DAI_MI2S_RX,
  4131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4132. msm_routing_put_audio_mixer),
  4133. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4134. MSM_BACKEND_DAI_MI2S_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4138. MSM_BACKEND_DAI_MI2S_RX,
  4139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4140. msm_routing_put_audio_mixer),
  4141. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4142. MSM_BACKEND_DAI_MI2S_RX,
  4143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4144. msm_routing_put_audio_mixer),
  4145. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4146. MSM_BACKEND_DAI_MI2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4150. MSM_BACKEND_DAI_MI2S_RX,
  4151. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4152. msm_routing_put_audio_mixer),
  4153. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4154. MSM_BACKEND_DAI_MI2S_RX,
  4155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4156. msm_routing_put_audio_mixer),
  4157. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4158. MSM_BACKEND_DAI_MI2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4162. MSM_BACKEND_DAI_MI2S_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_MI2S_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_MI2S_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_MI2S_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_MI2S_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_MI2S_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4186. MSM_BACKEND_DAI_MI2S_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4190. MSM_BACKEND_DAI_MI2S_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4194. MSM_BACKEND_DAI_MI2S_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4198. MSM_BACKEND_DAI_MI2S_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4202. MSM_BACKEND_DAI_MI2S_RX,
  4203. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4204. msm_routing_put_audio_mixer),
  4205. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4206. MSM_BACKEND_DAI_MI2S_RX,
  4207. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4208. msm_routing_put_audio_mixer),
  4209. };
  4210. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4211. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4212. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4213. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4214. msm_routing_put_audio_mixer),
  4215. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4216. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4218. msm_routing_put_audio_mixer),
  4219. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4220. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4224. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4225. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4226. msm_routing_put_audio_mixer),
  4227. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4228. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4232. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4234. msm_routing_put_audio_mixer),
  4235. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4236. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4237. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4238. msm_routing_put_audio_mixer),
  4239. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4240. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4244. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4246. msm_routing_put_audio_mixer),
  4247. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4248. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4249. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4250. msm_routing_put_audio_mixer),
  4251. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4252. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4272. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4276. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4280. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4284. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4292. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4293. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4294. msm_routing_put_audio_mixer),
  4295. };
  4296. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4298. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4300. msm_routing_put_audio_mixer),
  4301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4302. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4306. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4308. msm_routing_put_audio_mixer),
  4309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4310. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4312. msm_routing_put_audio_mixer),
  4313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4314. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4318. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4320. msm_routing_put_audio_mixer),
  4321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4322. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4324. msm_routing_put_audio_mixer),
  4325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4326. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4330. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4332. msm_routing_put_audio_mixer),
  4333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4334. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4336. msm_routing_put_audio_mixer),
  4337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4338. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4342. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4358. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4362. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4370. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4372. msm_routing_put_audio_mixer),
  4373. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4374. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4375. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4376. msm_routing_put_audio_mixer),
  4377. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4378. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4379. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4380. msm_routing_put_audio_mixer),
  4381. };
  4382. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4383. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4384. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4385. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4386. msm_routing_put_audio_mixer),
  4387. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4388. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4389. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4390. msm_routing_put_audio_mixer),
  4391. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4392. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4393. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4394. msm_routing_put_audio_mixer),
  4395. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4396. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4397. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4398. msm_routing_put_audio_mixer),
  4399. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4400. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4404. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4408. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4410. msm_routing_put_audio_mixer),
  4411. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4412. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4413. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4414. msm_routing_put_audio_mixer),
  4415. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4416. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4420. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4421. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4422. msm_routing_put_audio_mixer),
  4423. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4424. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4428. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4429. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4430. msm_routing_put_audio_mixer),
  4431. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4432. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4456. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. };
  4460. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4461. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4462. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4463. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4464. msm_routing_put_audio_mixer),
  4465. };
  4466. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4467. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4472. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4474. msm_routing_put_audio_mixer),
  4475. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4476. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4478. msm_routing_put_audio_mixer),
  4479. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4480. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4482. msm_routing_put_audio_mixer),
  4483. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4484. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4486. msm_routing_put_audio_mixer),
  4487. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4488. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4490. msm_routing_put_audio_mixer),
  4491. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4492. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4493. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4494. msm_routing_put_audio_mixer),
  4495. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4496. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4498. msm_routing_put_audio_mixer),
  4499. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4500. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4502. msm_routing_put_audio_mixer),
  4503. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4504. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4506. msm_routing_put_audio_mixer),
  4507. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4508. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4509. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4510. msm_routing_put_audio_mixer),
  4511. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4512. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4513. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4514. msm_routing_put_audio_mixer),
  4515. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4516. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4518. msm_routing_put_audio_mixer),
  4519. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4520. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4521. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4522. msm_routing_put_audio_mixer),
  4523. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4524. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4525. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4526. msm_routing_put_audio_mixer),
  4527. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4528. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4530. msm_routing_put_audio_mixer),
  4531. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4532. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4533. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4534. msm_routing_put_audio_mixer),
  4535. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4536. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4537. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4538. msm_routing_put_audio_mixer),
  4539. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4540. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4542. msm_routing_put_audio_mixer),
  4543. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4544. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4545. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4546. msm_routing_put_audio_mixer),
  4547. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4548. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. };
  4552. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4553. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4554. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4555. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4556. msm_routing_put_audio_mixer),
  4557. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4558. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4560. msm_routing_put_audio_mixer),
  4561. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4562. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4564. msm_routing_put_audio_mixer),
  4565. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4566. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4568. msm_routing_put_audio_mixer),
  4569. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4570. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4572. msm_routing_put_audio_mixer),
  4573. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4574. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4576. msm_routing_put_audio_mixer),
  4577. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4578. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4579. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4580. msm_routing_put_audio_mixer),
  4581. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4582. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4583. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4584. msm_routing_put_audio_mixer),
  4585. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4586. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4587. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4588. msm_routing_put_audio_mixer),
  4589. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4590. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4591. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4592. msm_routing_put_audio_mixer),
  4593. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4594. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4595. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4596. msm_routing_put_audio_mixer),
  4597. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4598. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4599. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4600. msm_routing_put_audio_mixer),
  4601. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4602. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4603. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4604. msm_routing_put_audio_mixer),
  4605. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4606. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4607. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4608. msm_routing_put_audio_mixer),
  4609. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4610. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4611. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4612. msm_routing_put_audio_mixer),
  4613. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4614. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4615. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4616. msm_routing_put_audio_mixer),
  4617. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4618. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4619. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4620. msm_routing_put_audio_mixer),
  4621. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4622. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4623. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4624. msm_routing_put_audio_mixer),
  4625. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4626. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4627. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4628. msm_routing_put_audio_mixer),
  4629. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4630. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4631. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4632. msm_routing_put_audio_mixer),
  4633. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4634. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. };
  4638. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4639. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4640. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4642. msm_routing_put_audio_mixer),
  4643. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4644. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4646. msm_routing_put_audio_mixer),
  4647. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4648. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4650. msm_routing_put_audio_mixer),
  4651. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4652. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4654. msm_routing_put_audio_mixer),
  4655. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4656. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4658. msm_routing_put_audio_mixer),
  4659. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4660. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4662. msm_routing_put_audio_mixer),
  4663. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4664. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4665. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4666. msm_routing_put_audio_mixer),
  4667. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4668. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4670. msm_routing_put_audio_mixer),
  4671. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4672. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4674. msm_routing_put_audio_mixer),
  4675. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4676. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4678. msm_routing_put_audio_mixer),
  4679. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4680. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4681. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4682. msm_routing_put_audio_mixer),
  4683. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4684. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4685. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4686. msm_routing_put_audio_mixer),
  4687. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4688. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4689. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4690. msm_routing_put_audio_mixer),
  4691. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4692. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4693. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4694. msm_routing_put_audio_mixer),
  4695. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4696. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4698. msm_routing_put_audio_mixer),
  4699. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4700. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4702. msm_routing_put_audio_mixer),
  4703. };
  4704. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4705. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4706. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4708. msm_routing_put_audio_mixer),
  4709. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4710. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4714. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4716. msm_routing_put_audio_mixer),
  4717. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4718. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4719. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4720. msm_routing_put_audio_mixer),
  4721. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4722. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4724. msm_routing_put_audio_mixer),
  4725. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4726. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4728. msm_routing_put_audio_mixer),
  4729. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4730. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4731. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4732. msm_routing_put_audio_mixer),
  4733. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4734. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4736. msm_routing_put_audio_mixer),
  4737. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4738. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4740. msm_routing_put_audio_mixer),
  4741. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4742. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4743. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4744. msm_routing_put_audio_mixer),
  4745. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4746. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4747. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4748. msm_routing_put_audio_mixer),
  4749. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4750. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4751. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4752. msm_routing_put_audio_mixer),
  4753. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4754. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4755. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4756. msm_routing_put_audio_mixer),
  4757. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4758. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4759. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4760. msm_routing_put_audio_mixer),
  4761. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4762. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4763. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4764. msm_routing_put_audio_mixer),
  4765. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4766. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4767. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4768. msm_routing_put_audio_mixer),
  4769. };
  4770. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_HDMI_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_HDMI_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_HDMI_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_HDMI_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4788. MSM_BACKEND_DAI_HDMI_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4792. MSM_BACKEND_DAI_HDMI_RX,
  4793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4794. msm_routing_put_audio_mixer),
  4795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4796. MSM_BACKEND_DAI_HDMI_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4800. MSM_BACKEND_DAI_HDMI_RX,
  4801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4802. msm_routing_put_audio_mixer),
  4803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4804. MSM_BACKEND_DAI_HDMI_RX,
  4805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4806. msm_routing_put_audio_mixer),
  4807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4808. MSM_BACKEND_DAI_HDMI_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4812. MSM_BACKEND_DAI_HDMI_RX,
  4813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4814. msm_routing_put_audio_mixer),
  4815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4816. MSM_BACKEND_DAI_HDMI_RX,
  4817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4818. msm_routing_put_audio_mixer),
  4819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4820. MSM_BACKEND_DAI_HDMI_RX,
  4821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4822. msm_routing_put_audio_mixer),
  4823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4824. MSM_BACKEND_DAI_HDMI_RX,
  4825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4826. msm_routing_put_audio_mixer),
  4827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4828. MSM_BACKEND_DAI_HDMI_RX,
  4829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4830. msm_routing_put_audio_mixer),
  4831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4832. MSM_BACKEND_DAI_HDMI_RX,
  4833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4834. msm_routing_put_audio_mixer),
  4835. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4836. MSM_BACKEND_DAI_HDMI_RX,
  4837. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4838. msm_routing_put_audio_mixer),
  4839. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4840. MSM_BACKEND_DAI_HDMI_RX,
  4841. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4842. msm_routing_put_audio_mixer),
  4843. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4844. MSM_BACKEND_DAI_HDMI_RX,
  4845. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4846. msm_routing_put_audio_mixer),
  4847. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4848. MSM_BACKEND_DAI_HDMI_RX,
  4849. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4850. msm_routing_put_audio_mixer),
  4851. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4852. MSM_BACKEND_DAI_HDMI_RX,
  4853. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4854. msm_routing_put_audio_mixer),
  4855. };
  4856. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4878. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4882. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4884. msm_routing_put_audio_mixer),
  4885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4886. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4888. msm_routing_put_audio_mixer),
  4889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4890. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4894. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4896. msm_routing_put_audio_mixer),
  4897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4898. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4900. msm_routing_put_audio_mixer),
  4901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4902. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4904. msm_routing_put_audio_mixer),
  4905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4906. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4908. msm_routing_put_audio_mixer),
  4909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4910. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4912. msm_routing_put_audio_mixer),
  4913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4914. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4916. msm_routing_put_audio_mixer),
  4917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4918. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4920. msm_routing_put_audio_mixer),
  4921. };
  4922. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4944. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4948. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4950. msm_routing_put_audio_mixer),
  4951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4952. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4956. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4958. msm_routing_put_audio_mixer),
  4959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4960. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4962. msm_routing_put_audio_mixer),
  4963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4964. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4968. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4972. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4976. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4978. msm_routing_put_audio_mixer),
  4979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4980. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4984. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. };
  4988. /* incall music delivery mixer */
  4989. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4990. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4991. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4993. msm_routing_put_audio_mixer),
  4994. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4995. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4996. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4997. msm_routing_put_audio_mixer),
  4998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4999. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5003. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. };
  5007. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5008. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5013. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5017. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5018. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5019. msm_routing_put_audio_mixer),
  5020. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5021. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5022. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5023. msm_routing_put_audio_mixer),
  5024. };
  5025. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5026. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5027. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5031. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5035. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5037. msm_routing_put_audio_mixer),
  5038. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5039. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. };
  5043. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5044. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5045. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5046. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5047. msm_routing_put_audio_mixer),
  5048. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5049. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5050. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5051. msm_routing_put_audio_mixer),
  5052. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5053. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5054. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5055. msm_routing_put_audio_mixer),
  5056. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5057. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5058. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5059. msm_routing_put_audio_mixer),
  5060. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5061. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5062. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5063. msm_routing_put_audio_mixer),
  5064. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5065. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5066. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5067. msm_routing_put_audio_mixer),
  5068. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5069. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5070. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5071. msm_routing_put_audio_mixer),
  5072. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5073. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5074. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5075. msm_routing_put_audio_mixer),
  5076. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5077. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5078. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5079. msm_routing_put_audio_mixer),
  5080. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5081. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5082. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5083. msm_routing_put_audio_mixer),
  5084. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5085. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5086. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5087. msm_routing_put_audio_mixer),
  5088. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5089. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5093. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5097. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5101. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5105. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. };
  5109. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5110. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5111. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5112. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5113. msm_routing_put_audio_mixer),
  5114. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5115. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5117. msm_routing_put_audio_mixer),
  5118. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5119. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5120. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5121. msm_routing_put_audio_mixer),
  5122. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5123. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5124. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5125. msm_routing_put_audio_mixer),
  5126. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5127. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5128. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5129. msm_routing_put_audio_mixer),
  5130. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5131. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5132. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5133. msm_routing_put_audio_mixer),
  5134. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5135. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5136. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5137. msm_routing_put_audio_mixer),
  5138. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5139. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5140. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5141. msm_routing_put_audio_mixer),
  5142. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5143. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5144. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5145. msm_routing_put_audio_mixer),
  5146. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5147. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5148. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5149. msm_routing_put_audio_mixer),
  5150. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5151. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5152. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5153. msm_routing_put_audio_mixer),
  5154. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5155. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5156. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5157. msm_routing_put_audio_mixer),
  5158. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5159. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5160. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5161. msm_routing_put_audio_mixer),
  5162. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5163. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5164. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5165. msm_routing_put_audio_mixer),
  5166. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5167. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5168. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5169. msm_routing_put_audio_mixer),
  5170. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5171. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. };
  5175. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5176. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5177. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5181. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5185. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5201. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5205. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5209. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5237. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. };
  5241. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5242. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. };
  5307. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5308. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5309. MSM_BACKEND_DAI_USB_RX,
  5310. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5311. msm_routing_put_audio_mixer),
  5312. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5313. MSM_BACKEND_DAI_USB_RX,
  5314. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5315. msm_routing_put_audio_mixer),
  5316. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5317. MSM_BACKEND_DAI_USB_RX,
  5318. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5319. msm_routing_put_audio_mixer),
  5320. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5321. MSM_BACKEND_DAI_USB_RX,
  5322. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5323. msm_routing_put_audio_mixer),
  5324. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5325. MSM_BACKEND_DAI_USB_RX,
  5326. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5327. msm_routing_put_audio_mixer),
  5328. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5329. MSM_BACKEND_DAI_USB_RX,
  5330. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5331. msm_routing_put_audio_mixer),
  5332. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5333. MSM_BACKEND_DAI_USB_RX,
  5334. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5335. msm_routing_put_audio_mixer),
  5336. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5337. MSM_BACKEND_DAI_USB_RX,
  5338. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5339. msm_routing_put_audio_mixer),
  5340. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5341. MSM_BACKEND_DAI_USB_RX,
  5342. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5343. msm_routing_put_audio_mixer),
  5344. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5345. MSM_BACKEND_DAI_USB_RX,
  5346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5347. msm_routing_put_audio_mixer),
  5348. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_USB_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_USB_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_USB_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_USB_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_USB_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_USB_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. };
  5373. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5374. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5383. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5385. msm_routing_put_audio_mixer),
  5386. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5387. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5389. msm_routing_put_audio_mixer),
  5390. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5391. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5392. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5393. msm_routing_put_audio_mixer),
  5394. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5395. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5397. msm_routing_put_audio_mixer),
  5398. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5399. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5400. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5401. msm_routing_put_audio_mixer),
  5402. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5403. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5405. msm_routing_put_audio_mixer),
  5406. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5407. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5408. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5409. msm_routing_put_audio_mixer),
  5410. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5411. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5412. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5413. msm_routing_put_audio_mixer),
  5414. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5415. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5416. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5417. msm_routing_put_audio_mixer),
  5418. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5419. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5420. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5421. msm_routing_put_audio_mixer),
  5422. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. };
  5459. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5460. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5477. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5478. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5479. msm_routing_put_audio_mixer),
  5480. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5481. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5482. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5483. msm_routing_put_audio_mixer),
  5484. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5485. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5486. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5487. msm_routing_put_audio_mixer),
  5488. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. };
  5525. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5526. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_INT_FM_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_INT_FM_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_INT_FM_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_INT_FM_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_INT_FM_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_INT_FM_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_INT_FM_RX,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_INT_FM_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_INT_FM_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_INT_FM_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_INT_FM_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5571. MSM_BACKEND_DAI_INT_FM_RX,
  5572. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5573. msm_routing_put_audio_mixer),
  5574. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5575. MSM_BACKEND_DAI_INT_FM_RX,
  5576. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5577. msm_routing_put_audio_mixer),
  5578. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_INT_FM_RX,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_INT_FM_RX,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5587. MSM_BACKEND_DAI_INT_FM_RX,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5591. MSM_BACKEND_DAI_INT_FM_RX,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5595. MSM_BACKEND_DAI_INT_FM_RX,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5599. MSM_BACKEND_DAI_INT_FM_RX,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_INT_FM_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_INT_FM_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. };
  5611. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5612. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_AFE_PCM_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_AFE_PCM_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_AFE_PCM_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_AFE_PCM_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_AFE_PCM_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_AFE_PCM_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_AFE_PCM_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_AFE_PCM_RX,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_AFE_PCM_RX,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_AFE_PCM_RX,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_AFE_PCM_RX,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_AFE_PCM_RX,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_AFE_PCM_RX,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5665. MSM_BACKEND_DAI_AFE_PCM_RX,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_AFE_PCM_RX,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_AFE_PCM_RX,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_AFE_PCM_RX,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_AFE_PCM_RX,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_AFE_PCM_RX,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_AFE_PCM_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_AFE_PCM_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. };
  5697. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5698. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_AUXPCM_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_AUXPCM_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_AUXPCM_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_AUXPCM_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_AUXPCM_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_AUXPCM_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_AUXPCM_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_AUXPCM_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_AUXPCM_RX,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5735. MSM_BACKEND_DAI_AUXPCM_RX,
  5736. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5737. msm_routing_put_audio_mixer),
  5738. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5739. MSM_BACKEND_DAI_AUXPCM_RX,
  5740. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5741. msm_routing_put_audio_mixer),
  5742. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5743. MSM_BACKEND_DAI_AUXPCM_RX,
  5744. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5745. msm_routing_put_audio_mixer),
  5746. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5747. MSM_BACKEND_DAI_AUXPCM_RX,
  5748. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5749. msm_routing_put_audio_mixer),
  5750. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5751. MSM_BACKEND_DAI_AUXPCM_RX,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5755. MSM_BACKEND_DAI_AUXPCM_RX,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_AUXPCM_RX,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_AUXPCM_RX,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_AUXPCM_RX,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_AUXPCM_RX,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_AUXPCM_RX,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_AUXPCM_RX,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. };
  5783. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5784. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5837. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5838. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5839. msm_routing_put_audio_mixer),
  5840. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5841. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5842. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5843. msm_routing_put_audio_mixer),
  5844. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5845. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5846. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5847. msm_routing_put_audio_mixer),
  5848. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5849. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5850. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5851. msm_routing_put_audio_mixer),
  5852. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5853. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5854. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5855. msm_routing_put_audio_mixer),
  5856. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5857. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5858. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5859. msm_routing_put_audio_mixer),
  5860. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5861. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5862. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5863. msm_routing_put_audio_mixer),
  5864. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5865. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5866. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5867. msm_routing_put_audio_mixer),
  5868. };
  5869. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5870. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5923. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5924. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5925. msm_routing_put_audio_mixer),
  5926. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5927. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5928. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5929. msm_routing_put_audio_mixer),
  5930. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5931. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5932. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5933. msm_routing_put_audio_mixer),
  5934. };
  5935. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5936. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. };
  6001. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  6002. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. };
  6067. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6068. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. };
  6133. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6134. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6139. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. };
  6199. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6200. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. };
  6265. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6327. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6329. msm_routing_put_audio_mixer),
  6330. };
  6331. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6332. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. };
  6397. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6398. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6439. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6440. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6441. msm_routing_put_audio_mixer),
  6442. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6443. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6444. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6445. msm_routing_put_audio_mixer),
  6446. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. };
  6463. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6464. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. };
  6529. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6530. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  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_SEC_TDM_RX_2,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. };
  6595. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6596. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. };
  6661. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6662. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. };
  6727. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6728. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. };
  6793. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6794. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. };
  6859. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6860. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. };
  6925. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6926. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6927. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6929. msm_routing_put_audio_mixer),
  6930. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6931. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6932. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6933. msm_routing_put_audio_mixer),
  6934. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6935. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6936. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6937. msm_routing_put_audio_mixer),
  6938. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6939. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6940. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6941. msm_routing_put_audio_mixer),
  6942. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6943. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6944. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6945. msm_routing_put_audio_mixer),
  6946. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. };
  6991. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  6992. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6997. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6998. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6999. msm_routing_put_audio_mixer),
  7000. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7001. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7002. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7003. msm_routing_put_audio_mixer),
  7004. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7005. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7006. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7007. msm_routing_put_audio_mixer),
  7008. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7009. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7010. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7011. msm_routing_put_audio_mixer),
  7012. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7013. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7015. msm_routing_put_audio_mixer),
  7016. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. };
  7057. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7058. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7087. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7088. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7089. msm_routing_put_audio_mixer),
  7090. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7091. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7092. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7093. msm_routing_put_audio_mixer),
  7094. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7095. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7096. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7097. msm_routing_put_audio_mixer),
  7098. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7099. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7100. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7101. msm_routing_put_audio_mixer),
  7102. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7103. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7104. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7105. msm_routing_put_audio_mixer),
  7106. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7107. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7108. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7109. msm_routing_put_audio_mixer),
  7110. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7111. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7112. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7113. msm_routing_put_audio_mixer),
  7114. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7115. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7116. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7117. msm_routing_put_audio_mixer),
  7118. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7119. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7120. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7121. msm_routing_put_audio_mixer),
  7122. };
  7123. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7124. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7157. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7181. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7182. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7183. msm_routing_put_audio_mixer),
  7184. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7185. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7186. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7187. msm_routing_put_audio_mixer),
  7188. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7189. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. };
  7193. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7194. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. };
  7259. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7260. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. };
  7329. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7330. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7387. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7391. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. };
  7399. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7400. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7457. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7461. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7465. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7466. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7467. msm_routing_put_audio_mixer),
  7468. };
  7469. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7527. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7529. msm_routing_put_audio_mixer),
  7530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7531. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7533. msm_routing_put_audio_mixer),
  7534. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7535. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7536. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7537. msm_routing_put_audio_mixer),
  7538. };
  7539. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7540. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7593. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7594. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7595. msm_routing_put_audio_mixer),
  7596. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7597. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7598. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7599. msm_routing_put_audio_mixer),
  7600. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7601. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7602. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7603. msm_routing_put_audio_mixer),
  7604. };
  7605. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7606. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7667. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7668. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7669. msm_routing_put_audio_mixer),
  7670. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7671. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7672. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7673. msm_routing_put_audio_mixer),
  7674. };
  7675. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7676. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7737. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7738. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7739. msm_routing_put_audio_mixer),
  7740. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7741. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7742. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7743. msm_routing_put_audio_mixer),
  7744. };
  7745. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7746. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7803. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7804. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7805. msm_routing_put_audio_mixer),
  7806. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7807. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7808. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7809. msm_routing_put_audio_mixer),
  7810. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7811. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7812. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7813. msm_routing_put_audio_mixer),
  7814. };
  7815. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7816. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_PRI_I2S_TX,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_MI2S_TX,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_AUXPCM_TX,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7877. MSM_BACKEND_DAI_INT_FM_TX,
  7878. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7879. msm_routing_put_audio_mixer),
  7880. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7881. MSM_BACKEND_DAI_AFE_PCM_TX,
  7882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7883. msm_routing_put_audio_mixer),
  7884. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7885. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7886. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7887. msm_routing_put_audio_mixer),
  7888. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7889. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7890. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7891. msm_routing_put_audio_mixer),
  7892. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7893. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7894. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7895. msm_routing_put_audio_mixer),
  7896. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7897. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7899. msm_routing_put_audio_mixer),
  7900. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7901. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7903. msm_routing_put_audio_mixer),
  7904. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7905. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7906. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7907. msm_routing_put_audio_mixer),
  7908. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7909. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7911. msm_routing_put_audio_mixer),
  7912. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7913. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7914. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7915. msm_routing_put_audio_mixer),
  7916. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7917. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7918. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7919. msm_routing_put_audio_mixer),
  7920. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7921. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7922. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7923. msm_routing_put_audio_mixer),
  7924. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7925. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7927. msm_routing_put_audio_mixer),
  7928. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7929. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7930. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7931. msm_routing_put_audio_mixer),
  7932. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7933. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7935. msm_routing_put_audio_mixer),
  7936. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7937. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7938. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7939. msm_routing_put_audio_mixer),
  7940. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_USB_TX,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. };
  8017. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8018. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_INT_FM_TX,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_MI2S_TX,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8095. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8096. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8097. msm_routing_put_audio_mixer),
  8098. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8099. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8100. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8101. msm_routing_put_audio_mixer),
  8102. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8103. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8104. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8105. msm_routing_put_audio_mixer),
  8106. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8107. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8108. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8109. msm_routing_put_audio_mixer),
  8110. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8111. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8112. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8113. msm_routing_put_audio_mixer),
  8114. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8115. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8116. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8117. msm_routing_put_audio_mixer),
  8118. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8119. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8120. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8121. msm_routing_put_audio_mixer),
  8122. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8123. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8124. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8125. msm_routing_put_audio_mixer),
  8126. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8139. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8141. msm_routing_put_audio_mixer),
  8142. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8143. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8145. msm_routing_put_audio_mixer),
  8146. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8147. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8149. msm_routing_put_audio_mixer),
  8150. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8151. MSM_BACKEND_DAI_USB_TX,
  8152. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8153. msm_routing_put_audio_mixer),
  8154. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8155. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8156. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8157. msm_routing_put_audio_mixer),
  8158. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8159. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8161. msm_routing_put_audio_mixer),
  8162. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8163. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8165. msm_routing_put_audio_mixer),
  8166. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. };
  8175. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8176. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8177. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8178. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8179. msm_routing_put_audio_mixer),
  8180. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8181. MSM_BACKEND_DAI_INT_FM_TX,
  8182. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8183. msm_routing_put_audio_mixer),
  8184. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8185. MSM_BACKEND_DAI_MI2S_TX,
  8186. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8187. msm_routing_put_audio_mixer),
  8188. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8189. MSM_BACKEND_DAI_AFE_PCM_TX,
  8190. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8191. msm_routing_put_audio_mixer),
  8192. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8193. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8194. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8195. msm_routing_put_audio_mixer),
  8196. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_AUXPCM_TX,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8217. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8218. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8219. msm_routing_put_audio_mixer),
  8220. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8221. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8222. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8223. msm_routing_put_audio_mixer),
  8224. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8225. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8226. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8227. msm_routing_put_audio_mixer),
  8228. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8229. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8230. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8231. msm_routing_put_audio_mixer),
  8232. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8233. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8234. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8235. msm_routing_put_audio_mixer),
  8236. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8309. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8310. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8311. msm_routing_put_audio_mixer),
  8312. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8313. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8314. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8315. msm_routing_put_audio_mixer),
  8316. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8317. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8318. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8319. msm_routing_put_audio_mixer),
  8320. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8321. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8322. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8323. msm_routing_put_audio_mixer),
  8324. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8325. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8326. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8327. msm_routing_put_audio_mixer),
  8328. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8329. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8330. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8331. msm_routing_put_audio_mixer),
  8332. };
  8333. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8334. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_INT_FM_TX,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_AFE_PCM_TX,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8391. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8392. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8393. msm_routing_put_audio_mixer),
  8394. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8395. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8396. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8397. msm_routing_put_audio_mixer),
  8398. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8399. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8400. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8401. msm_routing_put_audio_mixer),
  8402. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8403. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8404. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8405. msm_routing_put_audio_mixer),
  8406. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8407. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8408. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8409. msm_routing_put_audio_mixer),
  8410. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8411. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8412. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8413. msm_routing_put_audio_mixer),
  8414. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8443. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8444. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8445. msm_routing_put_audio_mixer),
  8446. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8447. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8448. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8449. msm_routing_put_audio_mixer),
  8450. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8451. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8452. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8453. msm_routing_put_audio_mixer),
  8454. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_USB_TX,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. };
  8487. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8488. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_INT_FM_TX,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_MI2S_TX,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_AFE_PCM_TX,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_AUXPCM_TX,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8513. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8514. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8515. msm_routing_put_audio_mixer),
  8516. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8517. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8518. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8519. msm_routing_put_audio_mixer),
  8520. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8521. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8522. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8523. msm_routing_put_audio_mixer),
  8524. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_USB_TX,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. };
  8665. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8666. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_INT_FM_TX,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8671. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8673. msm_routing_put_audio_mixer),
  8674. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8683. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8684. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8685. msm_routing_put_audio_mixer),
  8686. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_AUXPCM_TX,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8775. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8776. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8777. msm_routing_put_audio_mixer),
  8778. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8779. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8780. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8781. msm_routing_put_audio_mixer),
  8782. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8783. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8784. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8785. msm_routing_put_audio_mixer),
  8786. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8787. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8789. msm_routing_put_audio_mixer),
  8790. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8791. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8792. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8793. msm_routing_put_audio_mixer),
  8794. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8795. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8797. msm_routing_put_audio_mixer),
  8798. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8799. MSM_BACKEND_DAI_USB_TX,
  8800. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8801. msm_routing_put_audio_mixer),
  8802. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8803. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8804. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8805. msm_routing_put_audio_mixer),
  8806. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8807. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8808. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8809. msm_routing_put_audio_mixer),
  8810. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8811. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8812. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8813. msm_routing_put_audio_mixer),
  8814. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8815. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8816. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8817. msm_routing_put_audio_mixer),
  8818. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8819. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8820. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8821. msm_routing_put_audio_mixer),
  8822. };
  8823. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8824. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8853. MSM_BACKEND_DAI_INT_FM_TX,
  8854. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8855. msm_routing_put_audio_mixer),
  8856. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8857. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8858. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8859. msm_routing_put_audio_mixer),
  8860. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8861. MSM_BACKEND_DAI_AFE_PCM_TX,
  8862. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8863. msm_routing_put_audio_mixer),
  8864. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8865. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8866. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8867. msm_routing_put_audio_mixer),
  8868. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8869. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8870. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8871. msm_routing_put_audio_mixer),
  8872. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8873. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8874. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8875. msm_routing_put_audio_mixer),
  8876. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8877. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8878. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8879. msm_routing_put_audio_mixer),
  8880. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8881. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8882. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8883. msm_routing_put_audio_mixer),
  8884. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8885. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8886. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8887. msm_routing_put_audio_mixer),
  8888. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8889. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8890. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8891. msm_routing_put_audio_mixer),
  8892. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8893. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8895. msm_routing_put_audio_mixer),
  8896. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8897. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8898. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8899. msm_routing_put_audio_mixer),
  8900. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8901. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8902. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8903. msm_routing_put_audio_mixer),
  8904. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8905. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8906. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8907. msm_routing_put_audio_mixer),
  8908. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8909. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8910. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8911. msm_routing_put_audio_mixer),
  8912. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8913. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8914. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8915. msm_routing_put_audio_mixer),
  8916. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8917. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8918. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8919. msm_routing_put_audio_mixer),
  8920. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8921. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8922. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8923. msm_routing_put_audio_mixer),
  8924. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_USB_TX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. };
  8985. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  8986. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8987. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8989. msm_routing_put_audio_mixer),
  8990. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8991. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8993. msm_routing_put_audio_mixer),
  8994. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_INT_FM_TX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_AFE_PCM_TX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9091. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9092. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9093. msm_routing_put_audio_mixer),
  9094. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9095. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9096. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9097. msm_routing_put_audio_mixer),
  9098. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9099. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9100. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9101. msm_routing_put_audio_mixer),
  9102. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9103. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9104. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9105. msm_routing_put_audio_mixer),
  9106. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9107. MSM_BACKEND_DAI_USB_TX,
  9108. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9109. msm_routing_put_audio_mixer),
  9110. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9111. MSM_BACKEND_DAI_MI2S_TX,
  9112. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9113. msm_routing_put_audio_mixer),
  9114. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9115. MSM_BACKEND_DAI_AUXPCM_TX,
  9116. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9117. msm_routing_put_audio_mixer),
  9118. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9119. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9120. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9121. msm_routing_put_audio_mixer),
  9122. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9123. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9124. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9125. msm_routing_put_audio_mixer),
  9126. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9127. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9128. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9129. msm_routing_put_audio_mixer),
  9130. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9131. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9132. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9133. msm_routing_put_audio_mixer),
  9134. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. };
  9147. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9148. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_INT_FM_TX,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_AFE_PCM_TX,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9213. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9214. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9215. msm_routing_put_audio_mixer),
  9216. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9217. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9218. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9219. msm_routing_put_audio_mixer),
  9220. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA9, 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_MULTIMEDIA9, 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_MULTIMEDIA9, 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_MULTIMEDIA9, 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_MULTIMEDIA9, 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_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. };
  9249. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9250. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9251. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9252. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9253. msm_routing_put_audio_mixer),
  9254. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9255. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9256. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9257. msm_routing_put_audio_mixer),
  9258. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9259. MSM_BACKEND_DAI_INT_FM_TX,
  9260. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9261. msm_routing_put_audio_mixer),
  9262. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9263. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9264. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9265. msm_routing_put_audio_mixer),
  9266. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9267. MSM_BACKEND_DAI_AFE_PCM_TX,
  9268. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9269. msm_routing_put_audio_mixer),
  9270. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9271. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9272. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9273. msm_routing_put_audio_mixer),
  9274. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9275. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9276. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9277. msm_routing_put_audio_mixer),
  9278. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9279. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9280. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9281. msm_routing_put_audio_mixer),
  9282. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9283. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9284. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9285. msm_routing_put_audio_mixer),
  9286. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9287. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9288. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9289. msm_routing_put_audio_mixer),
  9290. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9291. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9292. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9293. msm_routing_put_audio_mixer),
  9294. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9295. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9296. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9297. msm_routing_put_audio_mixer),
  9298. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9299. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9300. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9301. msm_routing_put_audio_mixer),
  9302. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9303. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9305. msm_routing_put_audio_mixer),
  9306. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_USB_TX,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_MI2S_TX,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_AUXPCM_TX,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. };
  9375. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9376. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9377. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9378. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9379. msm_routing_put_audio_mixer),
  9380. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9381. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9382. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9383. msm_routing_put_audio_mixer),
  9384. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9385. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9386. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9387. msm_routing_put_audio_mixer),
  9388. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_INT_FM_TX,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_AFE_PCM_TX,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. };
  9437. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9438. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9439. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9440. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9441. msm_routing_put_audio_mixer),
  9442. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9443. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9444. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9445. msm_routing_put_audio_mixer),
  9446. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9447. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9448. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9449. msm_routing_put_audio_mixer),
  9450. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9451. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9452. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9453. msm_routing_put_audio_mixer),
  9454. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9455. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9456. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9457. msm_routing_put_audio_mixer),
  9458. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9459. MSM_BACKEND_DAI_INT_FM_TX,
  9460. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9461. msm_routing_put_audio_mixer),
  9462. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_AFE_PCM_TX,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. };
  9499. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9500. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9509. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9510. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9511. msm_routing_put_audio_mixer),
  9512. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9513. MSM_BACKEND_DAI_INT_FM_TX,
  9514. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9515. msm_routing_put_audio_mixer),
  9516. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9517. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9518. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9519. msm_routing_put_audio_mixer),
  9520. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9521. MSM_BACKEND_DAI_AFE_PCM_TX,
  9522. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9523. msm_routing_put_audio_mixer),
  9524. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9525. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9526. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9527. msm_routing_put_audio_mixer),
  9528. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. };
  9561. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9562. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9563. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9564. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9565. msm_routing_put_audio_mixer),
  9566. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9567. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9568. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9569. msm_routing_put_audio_mixer),
  9570. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9587. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9588. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9589. msm_routing_put_audio_mixer),
  9590. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9591. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9592. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9593. msm_routing_put_audio_mixer),
  9594. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9595. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9596. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9597. msm_routing_put_audio_mixer),
  9598. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9599. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9600. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9601. msm_routing_put_audio_mixer),
  9602. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9603. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9604. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9605. msm_routing_put_audio_mixer),
  9606. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9607. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9608. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9609. msm_routing_put_audio_mixer),
  9610. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9611. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9612. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9613. msm_routing_put_audio_mixer),
  9614. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9615. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9616. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9617. msm_routing_put_audio_mixer),
  9618. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9619. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9620. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9621. msm_routing_put_audio_mixer),
  9622. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9623. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9624. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9625. msm_routing_put_audio_mixer),
  9626. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9627. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9628. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9629. msm_routing_put_audio_mixer),
  9630. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9631. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9632. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9633. msm_routing_put_audio_mixer),
  9634. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9635. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9636. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9637. msm_routing_put_audio_mixer),
  9638. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9639. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9640. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9641. msm_routing_put_audio_mixer),
  9642. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9643. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9644. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9645. msm_routing_put_audio_mixer),
  9646. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9647. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9648. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9649. msm_routing_put_audio_mixer),
  9650. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. };
  9683. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9684. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9685. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9686. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9687. msm_routing_put_audio_mixer),
  9688. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9689. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9690. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9691. msm_routing_put_audio_mixer),
  9692. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9693. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9694. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9695. msm_routing_put_audio_mixer),
  9696. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9697. MSM_BACKEND_DAI_INT_FM_TX,
  9698. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9699. msm_routing_put_audio_mixer),
  9700. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9701. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9702. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9703. msm_routing_put_audio_mixer),
  9704. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9705. MSM_BACKEND_DAI_AFE_PCM_TX,
  9706. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9707. msm_routing_put_audio_mixer),
  9708. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9709. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9710. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9711. msm_routing_put_audio_mixer),
  9712. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9713. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9714. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9715. msm_routing_put_audio_mixer),
  9716. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9717. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9718. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9719. msm_routing_put_audio_mixer),
  9720. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9721. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9722. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9723. msm_routing_put_audio_mixer),
  9724. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9725. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9726. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9727. msm_routing_put_audio_mixer),
  9728. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9730. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9731. msm_routing_put_audio_mixer),
  9732. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. };
  9745. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9746. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_INT_FM_TX,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_AFE_PCM_TX,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9784. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9785. msm_routing_put_audio_mixer),
  9786. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9788. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9789. msm_routing_put_audio_mixer),
  9790. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9791. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9792. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9793. msm_routing_put_audio_mixer),
  9794. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9795. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9796. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9797. msm_routing_put_audio_mixer),
  9798. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. };
  9807. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9808. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_PRI_I2S_RX,
  9810. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9811. msm_routing_put_voice_mixer),
  9812. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_PRI_I2S_RX,
  9814. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9815. msm_routing_put_voice_mixer),
  9816. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9817. MSM_BACKEND_DAI_PRI_I2S_RX,
  9818. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9819. msm_routing_put_voice_mixer),
  9820. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_PRI_I2S_RX,
  9822. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9823. msm_routing_put_voice_mixer),
  9824. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9825. MSM_BACKEND_DAI_PRI_I2S_RX,
  9826. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9827. msm_routing_put_voice_mixer),
  9828. };
  9829. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  9830. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_SEC_I2S_RX,
  9832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9833. msm_routing_put_voice_mixer),
  9834. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_SEC_I2S_RX,
  9836. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9837. msm_routing_put_voice_mixer),
  9838. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_SEC_I2S_RX,
  9840. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9841. msm_routing_put_voice_mixer),
  9842. };
  9843. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  9844. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9845. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9846. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9847. msm_routing_put_voice_mixer),
  9848. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9849. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9850. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9851. msm_routing_put_voice_mixer),
  9852. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9853. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9854. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9855. msm_routing_put_voice_mixer),
  9856. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9857. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9858. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9859. msm_routing_put_voice_mixer),
  9860. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9861. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9862. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9863. msm_routing_put_voice_mixer),
  9864. };
  9865. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  9866. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9868. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9869. msm_routing_put_voice_mixer),
  9870. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9872. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9873. msm_routing_put_voice_mixer),
  9874. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9876. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9877. msm_routing_put_voice_mixer),
  9878. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9880. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9881. msm_routing_put_voice_mixer),
  9882. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9884. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9885. msm_routing_put_voice_mixer),
  9886. };
  9887. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  9888. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9889. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9890. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9891. msm_routing_put_voice_mixer),
  9892. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9893. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9894. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9895. msm_routing_put_voice_mixer),
  9896. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9897. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9898. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9899. msm_routing_put_voice_mixer),
  9900. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9902. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9903. msm_routing_put_voice_mixer),
  9904. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9906. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9907. msm_routing_put_voice_mixer),
  9908. };
  9909. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  9910. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_USB_RX,
  9912. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9913. msm_routing_put_voice_mixer),
  9914. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_USB_RX,
  9916. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9917. msm_routing_put_voice_mixer),
  9918. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_USB_RX,
  9920. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9921. msm_routing_put_voice_mixer),
  9922. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9923. MSM_BACKEND_DAI_USB_RX,
  9924. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9925. msm_routing_put_voice_mixer),
  9926. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9927. MSM_BACKEND_DAI_USB_RX,
  9928. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9929. msm_routing_put_voice_mixer),
  9930. };
  9931. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  9932. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9934. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9935. msm_routing_put_voice_mixer),
  9936. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9938. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9939. msm_routing_put_voice_mixer),
  9940. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9942. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9943. msm_routing_put_voice_mixer),
  9944. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9946. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9947. msm_routing_put_voice_mixer),
  9948. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9950. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9951. msm_routing_put_voice_mixer),
  9952. };
  9953. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  9954. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9955. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9956. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9957. msm_routing_put_voice_mixer),
  9958. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9959. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9960. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9961. msm_routing_put_voice_mixer),
  9962. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9963. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9964. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9965. msm_routing_put_voice_mixer),
  9966. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9967. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9968. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9969. msm_routing_put_voice_mixer),
  9970. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9971. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9972. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9973. msm_routing_put_voice_mixer),
  9974. };
  9975. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  9976. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9978. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9979. msm_routing_put_voice_mixer),
  9980. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9982. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9983. msm_routing_put_voice_mixer),
  9984. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9986. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9987. msm_routing_put_voice_mixer),
  9988. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9990. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9991. msm_routing_put_voice_mixer),
  9992. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9994. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9995. msm_routing_put_voice_mixer),
  9996. };
  9997. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  9998. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_MI2S_RX,
  10000. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10001. msm_routing_put_voice_mixer),
  10002. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_MI2S_RX,
  10004. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10005. msm_routing_put_voice_mixer),
  10006. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_MI2S_RX,
  10008. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10009. msm_routing_put_voice_mixer),
  10010. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_MI2S_RX,
  10012. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10013. msm_routing_put_voice_mixer),
  10014. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_MI2S_RX,
  10016. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10017. msm_routing_put_voice_mixer),
  10018. };
  10019. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  10020. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10021. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10022. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10023. msm_routing_put_voice_mixer),
  10024. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10026. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10027. msm_routing_put_voice_mixer),
  10028. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10030. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10031. msm_routing_put_voice_mixer),
  10032. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10034. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10035. msm_routing_put_voice_mixer),
  10036. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10038. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10039. msm_routing_put_voice_mixer),
  10040. };
  10041. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  10042. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10044. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10045. msm_routing_put_voice_mixer),
  10046. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10048. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10049. msm_routing_put_voice_mixer),
  10050. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10052. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10053. msm_routing_put_voice_mixer),
  10054. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10056. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10057. msm_routing_put_voice_mixer),
  10058. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10060. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10061. msm_routing_put_voice_mixer),
  10062. };
  10063. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  10064. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10066. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10067. msm_routing_put_voice_mixer),
  10068. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10070. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10071. msm_routing_put_voice_mixer),
  10072. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10074. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10075. msm_routing_put_voice_mixer),
  10076. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10078. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10079. msm_routing_put_voice_mixer),
  10080. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10082. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10083. msm_routing_put_voice_mixer),
  10084. };
  10085. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  10086. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10088. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10089. msm_routing_put_voice_mixer),
  10090. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10092. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10093. msm_routing_put_voice_mixer),
  10094. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10096. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10097. msm_routing_put_voice_mixer),
  10098. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10100. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10101. msm_routing_put_voice_mixer),
  10102. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10103. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10104. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10105. msm_routing_put_voice_mixer),
  10106. };
  10107. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  10108. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10110. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10111. msm_routing_put_voice_mixer),
  10112. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10114. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10115. msm_routing_put_voice_mixer),
  10116. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10118. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10119. msm_routing_put_voice_mixer),
  10120. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10122. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10123. msm_routing_put_voice_mixer),
  10124. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10126. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10127. msm_routing_put_voice_mixer),
  10128. };
  10129. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  10130. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10131. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10132. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10133. msm_routing_put_voice_mixer),
  10134. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10135. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10136. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10137. msm_routing_put_voice_mixer),
  10138. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10139. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10140. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10141. msm_routing_put_voice_mixer),
  10142. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10144. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10145. msm_routing_put_voice_mixer),
  10146. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10148. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10149. msm_routing_put_voice_mixer),
  10150. };
  10151. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  10152. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10153. MSM_BACKEND_DAI_AFE_PCM_RX,
  10154. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10155. msm_routing_put_voice_mixer),
  10156. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_AFE_PCM_RX,
  10158. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10159. msm_routing_put_voice_mixer),
  10160. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10161. MSM_BACKEND_DAI_AFE_PCM_RX,
  10162. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10163. msm_routing_put_voice_mixer),
  10164. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10165. MSM_BACKEND_DAI_AFE_PCM_RX,
  10166. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10167. msm_routing_put_voice_mixer),
  10168. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10169. MSM_BACKEND_DAI_AFE_PCM_RX,
  10170. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10171. msm_routing_put_voice_mixer),
  10172. };
  10173. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  10174. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_AUXPCM_RX,
  10176. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10177. msm_routing_put_voice_mixer),
  10178. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_AUXPCM_RX,
  10180. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10181. msm_routing_put_voice_mixer),
  10182. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_AUXPCM_RX,
  10184. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10185. msm_routing_put_voice_mixer),
  10186. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_AUXPCM_RX,
  10188. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10189. msm_routing_put_voice_mixer),
  10190. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_AUXPCM_RX,
  10192. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10193. msm_routing_put_voice_mixer),
  10194. };
  10195. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  10196. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10197. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10198. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10199. msm_routing_put_voice_mixer),
  10200. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10201. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10202. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10203. msm_routing_put_voice_mixer),
  10204. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10205. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10206. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10207. msm_routing_put_voice_mixer),
  10208. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10209. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10210. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10211. msm_routing_put_voice_mixer),
  10212. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10213. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10214. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10215. msm_routing_put_voice_mixer),
  10216. };
  10217. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  10218. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10220. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10221. msm_routing_put_voice_mixer),
  10222. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10224. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10225. msm_routing_put_voice_mixer),
  10226. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10228. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10229. msm_routing_put_voice_mixer),
  10230. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10232. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10233. msm_routing_put_voice_mixer),
  10234. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10236. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10237. msm_routing_put_voice_mixer),
  10238. };
  10239. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  10240. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10242. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10243. msm_routing_put_voice_mixer),
  10244. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10246. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10247. msm_routing_put_voice_mixer),
  10248. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10251. msm_routing_put_voice_mixer),
  10252. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10254. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10255. msm_routing_put_voice_mixer),
  10256. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10258. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10259. msm_routing_put_voice_mixer),
  10260. };
  10261. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  10262. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10263. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10264. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10265. msm_routing_put_voice_mixer),
  10266. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10267. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10268. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10269. msm_routing_put_voice_mixer),
  10270. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10271. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10272. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10273. msm_routing_put_voice_mixer),
  10274. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10275. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10276. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10277. msm_routing_put_voice_mixer),
  10278. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10279. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10280. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10281. msm_routing_put_voice_mixer),
  10282. };
  10283. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  10284. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_HDMI_RX,
  10286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10287. msm_routing_put_voice_mixer),
  10288. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_HDMI_RX,
  10290. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10291. msm_routing_put_voice_mixer),
  10292. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_HDMI_RX,
  10294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10295. msm_routing_put_voice_mixer),
  10296. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_HDMI_RX,
  10298. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10299. msm_routing_put_voice_mixer),
  10300. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_HDMI_RX,
  10302. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10303. msm_routing_put_voice_mixer),
  10304. };
  10305. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  10306. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10307. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10308. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10309. msm_routing_put_voice_mixer),
  10310. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10311. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10312. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10313. msm_routing_put_voice_mixer),
  10314. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10316. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10317. msm_routing_put_voice_mixer),
  10318. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10320. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10321. msm_routing_put_voice_mixer),
  10322. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10324. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10325. msm_routing_put_voice_mixer),
  10326. };
  10327. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  10328. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10330. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10331. msm_routing_put_voice_mixer),
  10332. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10334. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10335. msm_routing_put_voice_mixer),
  10336. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10338. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10339. msm_routing_put_voice_mixer),
  10340. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10342. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10343. msm_routing_put_voice_mixer),
  10344. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10346. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10347. msm_routing_put_voice_mixer),
  10348. };
  10349. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  10350. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10352. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10353. msm_routing_put_voice_mixer),
  10354. };
  10355. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10356. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10357. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10358. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10359. msm_routing_put_voice_mixer),
  10360. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10361. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10362. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10363. msm_routing_put_voice_mixer),
  10364. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10365. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10366. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10367. msm_routing_put_voice_mixer),
  10368. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10369. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10370. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10371. msm_routing_put_voice_mixer),
  10372. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10373. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10374. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10375. msm_routing_put_voice_mixer),
  10376. };
  10377. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10378. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10380. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10381. msm_routing_put_voice_mixer),
  10382. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10384. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10385. msm_routing_put_voice_mixer),
  10386. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10388. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10389. msm_routing_put_voice_mixer),
  10390. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10392. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10393. msm_routing_put_voice_mixer),
  10394. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10396. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10397. msm_routing_put_voice_mixer),
  10398. };
  10399. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10400. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_EXTPROC_RX,
  10402. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10403. msm_routing_put_voice_mixer),
  10404. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_EXTPROC_RX,
  10406. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10407. msm_routing_put_voice_mixer),
  10408. };
  10409. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10410. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10411. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10412. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10413. msm_routing_put_voice_mixer),
  10414. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10415. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10416. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10417. msm_routing_put_voice_mixer),
  10418. };
  10419. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10420. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10422. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10423. msm_routing_put_voice_mixer),
  10424. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10426. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10427. msm_routing_put_voice_mixer),
  10428. };
  10429. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10430. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10431. MSM_BACKEND_DAI_PRI_I2S_TX,
  10432. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10433. msm_routing_put_voice_mixer),
  10434. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10435. MSM_BACKEND_DAI_MI2S_TX,
  10436. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10437. msm_routing_put_voice_mixer),
  10438. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10439. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10440. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10441. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10443. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10444. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10446. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10447. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10449. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10450. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10452. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10453. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10455. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10456. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10458. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10459. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10461. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10462. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10464. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10465. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10467. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10468. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10470. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10471. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10473. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10474. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10475. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10476. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10477. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_USB_TX,
  10479. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10480. msm_routing_put_voice_mixer),
  10481. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10483. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10484. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10486. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10487. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10489. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10490. };
  10491. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10492. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_PRI_I2S_TX,
  10494. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10495. msm_routing_put_voice_mixer),
  10496. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_MI2S_TX,
  10498. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10499. msm_routing_put_voice_mixer),
  10500. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10502. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10503. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10505. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10506. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10508. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10509. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10511. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10512. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10514. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10515. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10517. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10518. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10520. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10521. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10523. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10524. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10526. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10527. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10529. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10530. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10532. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10533. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10535. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10536. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10538. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10539. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10541. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10544. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10548. };
  10549. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10550. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_PRI_I2S_TX,
  10552. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10553. msm_routing_put_voice_mixer),
  10554. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_MI2S_TX,
  10556. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10557. msm_routing_put_voice_mixer),
  10558. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10560. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10561. msm_routing_put_voice_mixer),
  10562. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10564. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10565. msm_routing_put_voice_mixer),
  10566. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_AFE_PCM_TX,
  10568. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10569. msm_routing_put_voice_mixer),
  10570. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_AUXPCM_TX,
  10572. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10573. msm_routing_put_voice_mixer),
  10574. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10575. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10576. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10577. msm_routing_put_voice_mixer),
  10578. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10579. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10580. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10581. msm_routing_put_voice_mixer),
  10582. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10583. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10584. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10585. msm_routing_put_voice_mixer),
  10586. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10587. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10588. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10589. msm_routing_put_voice_mixer),
  10590. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10591. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10592. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10593. msm_routing_put_voice_mixer),
  10594. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10596. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10597. msm_routing_put_voice_mixer),
  10598. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10600. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10601. msm_routing_put_voice_mixer),
  10602. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10603. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10604. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10605. msm_routing_put_voice_mixer),
  10606. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10607. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10609. msm_routing_put_voice_mixer),
  10610. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10611. MSM_BACKEND_DAI_USB_TX,
  10612. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10613. msm_routing_put_voice_mixer),
  10614. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10615. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10616. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10617. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10619. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10620. };
  10621. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10622. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10623. MSM_BACKEND_DAI_EXTPROC_TX,
  10624. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10625. msm_routing_put_voice_stub_mixer),
  10626. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10627. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10628. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10629. msm_routing_put_voice_stub_mixer),
  10630. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10631. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10632. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10633. msm_routing_put_voice_stub_mixer),
  10634. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10635. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10636. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10637. msm_routing_put_voice_stub_mixer),
  10638. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10639. MSM_BACKEND_DAI_MI2S_TX,
  10640. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10641. msm_routing_put_voice_stub_mixer),
  10642. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10643. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10644. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10645. msm_routing_put_voice_stub_mixer),
  10646. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10647. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10648. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10649. msm_routing_put_voice_stub_mixer),
  10650. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10651. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10652. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10653. msm_routing_put_voice_stub_mixer),
  10654. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10656. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10657. msm_routing_put_voice_stub_mixer),
  10658. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_AUXPCM_TX,
  10660. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10661. msm_routing_put_voice_stub_mixer),
  10662. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10664. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10665. msm_routing_put_voice_stub_mixer),
  10666. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10668. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10669. msm_routing_put_voice_stub_mixer),
  10670. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10672. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10673. msm_routing_put_voice_stub_mixer),
  10674. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10676. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10677. msm_routing_put_voice_stub_mixer),
  10678. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10680. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10681. msm_routing_put_voice_stub_mixer),
  10682. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10684. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10685. msm_routing_put_voice_stub_mixer),
  10686. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_AFE_PCM_TX,
  10688. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10689. msm_routing_put_voice_stub_mixer),
  10690. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10692. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10693. msm_routing_put_voice_stub_mixer),
  10694. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10696. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10697. msm_routing_put_voice_stub_mixer),
  10698. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10700. 1, 0, msm_routing_get_voice_stub_mixer,
  10701. msm_routing_put_voice_stub_mixer),
  10702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10704. 1, 0, msm_routing_get_voice_stub_mixer,
  10705. msm_routing_put_voice_stub_mixer),
  10706. };
  10707. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10708. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10709. MSM_BACKEND_DAI_EXTPROC_TX,
  10710. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10711. msm_routing_put_voice_stub_mixer),
  10712. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10713. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10714. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10715. msm_routing_put_voice_stub_mixer),
  10716. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10717. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10718. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10719. msm_routing_put_voice_stub_mixer),
  10720. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10721. MSM_BACKEND_DAI_AUXPCM_TX,
  10722. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10723. msm_routing_put_voice_stub_mixer),
  10724. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10725. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10726. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10727. msm_routing_put_voice_stub_mixer),
  10728. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10729. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10730. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10731. msm_routing_put_voice_stub_mixer),
  10732. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10733. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10734. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10735. msm_routing_put_voice_stub_mixer),
  10736. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10737. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10738. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10739. msm_routing_put_voice_stub_mixer),
  10740. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10741. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10742. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10743. msm_routing_put_voice_stub_mixer),
  10744. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10745. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10746. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10747. msm_routing_put_voice_stub_mixer),
  10748. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_AFE_PCM_TX,
  10750. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10751. msm_routing_put_voice_stub_mixer),
  10752. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10754. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10755. msm_routing_put_voice_stub_mixer),
  10756. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10758. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10759. msm_routing_put_voice_stub_mixer),
  10760. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10762. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10763. msm_routing_put_voice_stub_mixer),
  10764. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10766. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10767. msm_routing_put_voice_stub_mixer),
  10768. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10770. 1, 0, msm_routing_get_voice_stub_mixer,
  10771. msm_routing_put_voice_stub_mixer),
  10772. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  10774. 1, 0, msm_routing_get_voice_stub_mixer,
  10775. msm_routing_put_voice_stub_mixer),
  10776. };
  10777. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10778. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_EXTPROC_TX,
  10780. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10781. msm_routing_put_voice_stub_mixer),
  10782. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10784. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10785. msm_routing_put_voice_stub_mixer),
  10786. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10788. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10789. msm_routing_put_voice_stub_mixer),
  10790. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10791. MSM_BACKEND_DAI_AUXPCM_TX,
  10792. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10793. msm_routing_put_voice_stub_mixer),
  10794. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10795. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10796. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10797. msm_routing_put_voice_stub_mixer),
  10798. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10799. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10800. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10801. msm_routing_put_voice_stub_mixer),
  10802. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10804. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10805. msm_routing_put_voice_stub_mixer),
  10806. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10808. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10809. msm_routing_put_voice_stub_mixer),
  10810. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10812. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10813. msm_routing_put_voice_stub_mixer),
  10814. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10816. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10817. msm_routing_put_voice_stub_mixer),
  10818. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_AFE_PCM_TX,
  10820. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10821. msm_routing_put_voice_stub_mixer),
  10822. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10823. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10824. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10825. msm_routing_put_voice_stub_mixer),
  10826. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10827. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10828. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10829. msm_routing_put_voice_stub_mixer),
  10830. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10831. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10832. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10833. msm_routing_put_voice_stub_mixer),
  10834. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10836. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10837. msm_routing_put_voice_stub_mixer),
  10838. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  10840. 1, 0, msm_routing_get_voice_stub_mixer,
  10841. msm_routing_put_voice_stub_mixer),
  10842. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  10844. 1, 0, msm_routing_get_voice_stub_mixer,
  10845. msm_routing_put_voice_stub_mixer),
  10846. };
  10847. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  10848. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_PRI_I2S_TX,
  10850. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10851. msm_routing_put_voice_mixer),
  10852. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10854. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10855. msm_routing_put_voice_mixer),
  10856. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10858. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  10859. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10860. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  10861. MSM_BACKEND_DAI_AFE_PCM_TX,
  10862. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10863. msm_routing_put_voice_mixer),
  10864. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10865. MSM_BACKEND_DAI_AUXPCM_TX,
  10866. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10867. msm_routing_put_voice_mixer),
  10868. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10869. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10870. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10871. msm_routing_put_voice_mixer),
  10872. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10873. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10874. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10875. msm_routing_put_voice_mixer),
  10876. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10877. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10878. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10879. msm_routing_put_voice_mixer),
  10880. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10881. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10882. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10883. msm_routing_put_voice_mixer),
  10884. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  10885. MSM_BACKEND_DAI_MI2S_TX,
  10886. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10887. msm_routing_put_voice_mixer),
  10888. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10889. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10890. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10891. msm_routing_put_voice_mixer),
  10892. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10893. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10894. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10895. msm_routing_put_voice_mixer),
  10896. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10897. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10898. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10899. msm_routing_put_voice_mixer),
  10900. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  10901. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10902. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10903. msm_routing_put_voice_mixer),
  10904. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  10905. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10906. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10907. msm_routing_put_voice_mixer),
  10908. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  10909. MSM_BACKEND_DAI_USB_TX,
  10910. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10911. msm_routing_put_voice_mixer),
  10912. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  10913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  10914. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10915. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  10917. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10918. };
  10919. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  10920. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10921. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10922. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10923. msm_routing_put_port_mixer),
  10924. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10925. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10926. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10927. msm_routing_put_port_mixer),
  10928. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10930. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10931. msm_routing_put_port_mixer),
  10932. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10934. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10935. msm_routing_put_port_mixer),
  10936. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10938. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10939. msm_routing_put_port_mixer),
  10940. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10942. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10943. msm_routing_put_port_mixer),
  10944. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10946. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10947. msm_routing_put_port_mixer),
  10948. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10950. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10951. msm_routing_put_port_mixer),
  10952. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10954. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10955. msm_routing_put_port_mixer),
  10956. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10958. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10959. msm_routing_put_port_mixer),
  10960. };
  10961. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  10962. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10963. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10964. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10965. msm_routing_put_port_mixer),
  10966. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10967. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10968. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10969. msm_routing_put_port_mixer),
  10970. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10971. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10972. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10973. msm_routing_put_port_mixer),
  10974. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10975. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10976. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10977. msm_routing_put_port_mixer),
  10978. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10979. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10980. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10981. msm_routing_put_port_mixer),
  10982. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10983. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10984. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10985. msm_routing_put_port_mixer),
  10986. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10987. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10988. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10989. msm_routing_put_port_mixer),
  10990. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10991. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10992. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10993. msm_routing_put_port_mixer),
  10994. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10995. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10996. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10997. msm_routing_put_port_mixer),
  10998. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10999. MSM_BACKEND_DAI_INT4_MI2S_RX,
  11000. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11001. msm_routing_put_port_mixer),
  11002. };
  11003. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  11004. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11006. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11007. msm_routing_put_port_mixer),
  11008. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11010. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11011. msm_routing_put_port_mixer),
  11012. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11014. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11015. msm_routing_put_port_mixer),
  11016. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11017. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11018. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11019. msm_routing_put_port_mixer),
  11020. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11021. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11022. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11023. msm_routing_put_port_mixer),
  11024. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11025. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11026. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11027. msm_routing_put_port_mixer),
  11028. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11030. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11031. msm_routing_put_port_mixer),
  11032. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11033. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11034. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11035. msm_routing_put_port_mixer),
  11036. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11037. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11038. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11039. msm_routing_put_port_mixer),
  11040. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11041. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11042. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11043. msm_routing_put_port_mixer),
  11044. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11045. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11046. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11047. msm_routing_put_port_mixer),
  11048. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11049. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11050. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11051. msm_routing_put_port_mixer),
  11052. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11053. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11054. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11055. msm_routing_put_port_mixer),
  11056. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11058. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11059. msm_routing_put_port_mixer),
  11060. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11062. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11063. msm_routing_put_port_mixer),
  11064. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11065. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11066. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11067. msm_routing_put_port_mixer),
  11068. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11069. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11070. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11071. msm_routing_put_port_mixer),
  11072. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  11073. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11074. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11075. msm_routing_put_port_mixer),
  11076. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  11077. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11078. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11079. msm_routing_put_port_mixer),
  11080. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  11081. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11082. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11083. msm_routing_put_port_mixer),
  11084. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11086. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11087. msm_routing_put_port_mixer),
  11088. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11090. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11091. msm_routing_put_port_mixer),
  11092. };
  11093. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  11094. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_AUXPCM_RX,
  11096. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11097. msm_routing_put_port_mixer),
  11098. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_AUXPCM_RX,
  11100. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11101. msm_routing_put_port_mixer),
  11102. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_AUXPCM_RX,
  11104. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11105. msm_routing_put_port_mixer),
  11106. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_AUXPCM_RX,
  11108. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11109. msm_routing_put_port_mixer),
  11110. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_AUXPCM_RX,
  11112. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11113. msm_routing_put_port_mixer),
  11114. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_AUXPCM_RX,
  11116. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11117. msm_routing_put_port_mixer),
  11118. };
  11119. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11120. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11122. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11123. msm_routing_put_port_mixer),
  11124. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11126. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11127. msm_routing_put_port_mixer),
  11128. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11130. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11131. msm_routing_put_port_mixer),
  11132. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11134. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11135. msm_routing_put_port_mixer),
  11136. };
  11137. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11138. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11139. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11140. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11141. msm_routing_put_port_mixer),
  11142. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11143. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11144. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11145. msm_routing_put_port_mixer),
  11146. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11147. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11148. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11149. msm_routing_put_port_mixer),
  11150. };
  11151. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11152. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11154. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11155. msm_routing_put_port_mixer),
  11156. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11157. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11158. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11159. msm_routing_put_port_mixer),
  11160. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11162. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11163. msm_routing_put_port_mixer),
  11164. };
  11165. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11166. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11168. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11169. msm_routing_put_port_mixer),
  11170. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11172. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11173. msm_routing_put_port_mixer),
  11174. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11176. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11177. msm_routing_put_port_mixer),
  11178. };
  11179. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11180. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11181. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11182. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11183. msm_routing_put_port_mixer),
  11184. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11186. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11187. msm_routing_put_port_mixer),
  11188. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11189. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11190. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11191. msm_routing_put_port_mixer),
  11192. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11193. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11194. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11195. msm_routing_put_port_mixer),
  11196. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11197. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11198. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11199. msm_routing_put_port_mixer),
  11200. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11201. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11202. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11203. msm_routing_put_port_mixer),
  11204. };
  11205. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11206. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11208. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11209. msm_routing_put_port_mixer),
  11210. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11212. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11213. msm_routing_put_port_mixer),
  11214. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11216. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11217. msm_routing_put_port_mixer),
  11218. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11220. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11221. msm_routing_put_port_mixer),
  11222. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11224. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11225. msm_routing_put_port_mixer),
  11226. };
  11227. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11229. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11231. msm_routing_put_port_mixer),
  11232. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11233. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11234. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11235. msm_routing_put_port_mixer),
  11236. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11238. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11239. msm_routing_put_port_mixer),
  11240. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11242. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11243. msm_routing_put_port_mixer),
  11244. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11246. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11247. msm_routing_put_port_mixer),
  11248. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11250. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11251. msm_routing_put_port_mixer),
  11252. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11254. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11255. msm_routing_put_port_mixer),
  11256. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11258. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11259. msm_routing_put_port_mixer),
  11260. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11262. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11263. msm_routing_put_port_mixer),
  11264. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11266. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11267. msm_routing_put_port_mixer),
  11268. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11270. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11271. msm_routing_put_port_mixer),
  11272. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11274. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11275. msm_routing_put_port_mixer),
  11276. };
  11277. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11278. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11279. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11280. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11281. msm_routing_put_port_mixer),
  11282. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11283. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11284. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11285. msm_routing_put_port_mixer),
  11286. };
  11287. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11288. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_AFE_PCM_RX,
  11290. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11291. msm_routing_put_port_mixer),
  11292. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_AFE_PCM_RX,
  11294. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11295. msm_routing_put_port_mixer),
  11296. };
  11297. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11298. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11299. MSM_BACKEND_DAI_HDMI_RX,
  11300. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11301. msm_routing_put_port_mixer),
  11302. };
  11303. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11304. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11306. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11307. msm_routing_put_port_mixer),
  11308. };
  11309. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11310. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11311. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11312. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11313. msm_routing_put_port_mixer),
  11314. };
  11315. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11316. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_SEC_I2S_RX,
  11318. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11319. msm_routing_put_port_mixer),
  11320. };
  11321. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11322. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_MI2S_RX,
  11324. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11325. msm_routing_put_port_mixer),
  11326. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_MI2S_RX,
  11328. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11329. msm_routing_put_port_mixer),
  11330. };
  11331. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11332. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11334. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11335. msm_routing_put_port_mixer),
  11336. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11338. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11339. msm_routing_put_port_mixer),
  11340. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11342. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11343. msm_routing_put_port_mixer),
  11344. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11346. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11347. msm_routing_put_port_mixer),
  11348. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11350. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11351. msm_routing_put_port_mixer),
  11352. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11354. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11355. msm_routing_put_port_mixer),
  11356. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11358. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11359. msm_routing_put_port_mixer),
  11360. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11362. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11363. msm_routing_put_port_mixer),
  11364. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11366. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11367. msm_routing_put_port_mixer),
  11368. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11369. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11370. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11371. msm_routing_put_port_mixer),
  11372. };
  11373. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11374. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_USB_RX,
  11376. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11377. msm_routing_put_port_mixer),
  11378. };
  11379. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11380. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11381. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11382. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11383. msm_routing_put_port_mixer),
  11384. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11385. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11386. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11387. msm_routing_put_port_mixer),
  11388. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11390. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11391. msm_routing_put_port_mixer),
  11392. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11394. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11395. msm_routing_put_port_mixer),
  11396. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11398. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11399. msm_routing_put_port_mixer),
  11400. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11402. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11403. msm_routing_put_port_mixer),
  11404. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11406. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11407. msm_routing_put_port_mixer),
  11408. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11410. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11411. msm_routing_put_port_mixer),
  11412. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11414. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11415. msm_routing_put_port_mixer),
  11416. };
  11417. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11418. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11420. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11421. msm_routing_put_port_mixer),
  11422. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11424. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11425. msm_routing_put_port_mixer),
  11426. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11428. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11429. msm_routing_put_port_mixer),
  11430. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11432. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11433. msm_routing_put_port_mixer),
  11434. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11435. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11436. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11437. msm_routing_put_port_mixer),
  11438. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11439. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11440. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11441. msm_routing_put_port_mixer),
  11442. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11443. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11444. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11445. msm_routing_put_port_mixer),
  11446. };
  11447. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11448. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11450. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11451. msm_routing_get_port_mixer,
  11452. msm_routing_put_port_mixer),
  11453. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11455. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11456. msm_routing_get_port_mixer,
  11457. msm_routing_put_port_mixer),
  11458. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11459. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11460. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11461. msm_routing_get_port_mixer,
  11462. msm_routing_put_port_mixer),
  11463. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11465. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11466. msm_routing_get_port_mixer,
  11467. msm_routing_put_port_mixer),
  11468. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11470. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11471. msm_routing_get_port_mixer,
  11472. msm_routing_put_port_mixer),
  11473. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11475. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11476. msm_routing_get_port_mixer,
  11477. msm_routing_put_port_mixer),
  11478. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11480. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11481. msm_routing_get_port_mixer,
  11482. msm_routing_put_port_mixer),
  11483. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11485. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11486. msm_routing_get_port_mixer,
  11487. msm_routing_put_port_mixer),
  11488. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11490. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11491. msm_routing_get_port_mixer,
  11492. msm_routing_put_port_mixer),
  11493. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11495. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11496. msm_routing_get_port_mixer,
  11497. msm_routing_put_port_mixer),
  11498. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11500. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11501. msm_routing_get_port_mixer,
  11502. msm_routing_put_port_mixer),
  11503. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11505. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11506. msm_routing_get_port_mixer,
  11507. msm_routing_put_port_mixer),
  11508. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11510. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11511. msm_routing_get_port_mixer,
  11512. msm_routing_put_port_mixer),
  11513. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11515. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11516. msm_routing_get_port_mixer,
  11517. msm_routing_put_port_mixer),
  11518. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11520. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11521. msm_routing_get_port_mixer,
  11522. msm_routing_put_port_mixer),
  11523. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11525. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11526. msm_routing_get_port_mixer,
  11527. msm_routing_put_port_mixer),
  11528. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11530. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11531. msm_routing_get_port_mixer,
  11532. msm_routing_put_port_mixer),
  11533. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11535. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11536. msm_routing_get_port_mixer,
  11537. msm_routing_put_port_mixer),
  11538. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11540. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11541. msm_routing_get_port_mixer,
  11542. msm_routing_put_port_mixer),
  11543. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11545. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11546. msm_routing_get_port_mixer,
  11547. msm_routing_put_port_mixer),
  11548. };
  11549. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11550. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11552. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11553. msm_routing_get_port_mixer,
  11554. msm_routing_put_port_mixer),
  11555. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11557. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11558. msm_routing_get_port_mixer,
  11559. msm_routing_put_port_mixer),
  11560. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11562. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11563. msm_routing_get_port_mixer,
  11564. msm_routing_put_port_mixer),
  11565. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11567. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11568. msm_routing_get_port_mixer,
  11569. msm_routing_put_port_mixer),
  11570. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11572. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11573. msm_routing_get_port_mixer,
  11574. msm_routing_put_port_mixer),
  11575. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11577. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11578. msm_routing_get_port_mixer,
  11579. msm_routing_put_port_mixer),
  11580. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11582. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11583. msm_routing_get_port_mixer,
  11584. msm_routing_put_port_mixer),
  11585. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11587. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11588. msm_routing_get_port_mixer,
  11589. msm_routing_put_port_mixer),
  11590. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11591. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11592. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11593. msm_routing_get_port_mixer,
  11594. msm_routing_put_port_mixer),
  11595. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11597. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11598. msm_routing_get_port_mixer,
  11599. msm_routing_put_port_mixer),
  11600. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11602. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11603. msm_routing_get_port_mixer,
  11604. msm_routing_put_port_mixer),
  11605. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11607. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11608. msm_routing_get_port_mixer,
  11609. msm_routing_put_port_mixer),
  11610. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11611. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11612. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11613. msm_routing_get_port_mixer,
  11614. msm_routing_put_port_mixer),
  11615. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11617. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11618. msm_routing_get_port_mixer,
  11619. msm_routing_put_port_mixer),
  11620. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11622. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11623. msm_routing_get_port_mixer,
  11624. msm_routing_put_port_mixer),
  11625. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11627. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11628. msm_routing_get_port_mixer,
  11629. msm_routing_put_port_mixer),
  11630. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11631. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11632. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11633. msm_routing_get_port_mixer,
  11634. msm_routing_put_port_mixer),
  11635. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11637. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11638. msm_routing_get_port_mixer,
  11639. msm_routing_put_port_mixer),
  11640. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11642. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11643. msm_routing_get_port_mixer,
  11644. msm_routing_put_port_mixer),
  11645. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11647. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11648. msm_routing_get_port_mixer,
  11649. msm_routing_put_port_mixer),
  11650. };
  11651. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11652. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11654. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11655. msm_routing_get_port_mixer,
  11656. msm_routing_put_port_mixer),
  11657. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11659. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11660. msm_routing_get_port_mixer,
  11661. msm_routing_put_port_mixer),
  11662. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11664. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11665. msm_routing_get_port_mixer,
  11666. msm_routing_put_port_mixer),
  11667. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11668. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11669. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11670. msm_routing_get_port_mixer,
  11671. msm_routing_put_port_mixer),
  11672. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11673. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11674. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11675. msm_routing_get_port_mixer,
  11676. msm_routing_put_port_mixer),
  11677. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11679. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11680. msm_routing_get_port_mixer,
  11681. msm_routing_put_port_mixer),
  11682. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11684. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11685. msm_routing_get_port_mixer,
  11686. msm_routing_put_port_mixer),
  11687. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11689. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11690. msm_routing_get_port_mixer,
  11691. msm_routing_put_port_mixer),
  11692. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11694. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11695. msm_routing_get_port_mixer,
  11696. msm_routing_put_port_mixer),
  11697. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11699. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11700. msm_routing_get_port_mixer,
  11701. msm_routing_put_port_mixer),
  11702. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11703. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11704. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11705. msm_routing_get_port_mixer,
  11706. msm_routing_put_port_mixer),
  11707. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11709. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11710. msm_routing_get_port_mixer,
  11711. msm_routing_put_port_mixer),
  11712. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11714. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11715. msm_routing_get_port_mixer,
  11716. msm_routing_put_port_mixer),
  11717. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11719. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11720. msm_routing_get_port_mixer,
  11721. msm_routing_put_port_mixer),
  11722. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11724. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11725. msm_routing_get_port_mixer,
  11726. msm_routing_put_port_mixer),
  11727. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11729. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11730. msm_routing_get_port_mixer,
  11731. msm_routing_put_port_mixer),
  11732. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11734. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11735. msm_routing_get_port_mixer,
  11736. msm_routing_put_port_mixer),
  11737. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11739. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11740. msm_routing_get_port_mixer,
  11741. msm_routing_put_port_mixer),
  11742. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11743. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11744. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11745. msm_routing_get_port_mixer,
  11746. msm_routing_put_port_mixer),
  11747. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11749. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11750. msm_routing_get_port_mixer,
  11751. msm_routing_put_port_mixer),
  11752. };
  11753. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11754. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11756. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11757. msm_routing_get_port_mixer,
  11758. msm_routing_put_port_mixer),
  11759. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11761. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11762. msm_routing_get_port_mixer,
  11763. msm_routing_put_port_mixer),
  11764. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11766. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11767. msm_routing_get_port_mixer,
  11768. msm_routing_put_port_mixer),
  11769. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11771. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11772. msm_routing_get_port_mixer,
  11773. msm_routing_put_port_mixer),
  11774. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11776. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11777. msm_routing_get_port_mixer,
  11778. msm_routing_put_port_mixer),
  11779. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11781. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11782. msm_routing_get_port_mixer,
  11783. msm_routing_put_port_mixer),
  11784. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11786. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11787. msm_routing_get_port_mixer,
  11788. msm_routing_put_port_mixer),
  11789. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11791. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11792. msm_routing_get_port_mixer,
  11793. msm_routing_put_port_mixer),
  11794. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11796. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11797. msm_routing_get_port_mixer,
  11798. msm_routing_put_port_mixer),
  11799. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11801. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11802. msm_routing_get_port_mixer,
  11803. msm_routing_put_port_mixer),
  11804. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11805. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11806. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11807. msm_routing_get_port_mixer,
  11808. msm_routing_put_port_mixer),
  11809. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11811. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11812. msm_routing_get_port_mixer,
  11813. msm_routing_put_port_mixer),
  11814. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11816. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11817. msm_routing_get_port_mixer,
  11818. msm_routing_put_port_mixer),
  11819. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11821. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11822. msm_routing_get_port_mixer,
  11823. msm_routing_put_port_mixer),
  11824. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11826. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11827. msm_routing_get_port_mixer,
  11828. msm_routing_put_port_mixer),
  11829. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11831. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11832. msm_routing_get_port_mixer,
  11833. msm_routing_put_port_mixer),
  11834. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11836. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11837. msm_routing_get_port_mixer,
  11838. msm_routing_put_port_mixer),
  11839. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11841. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11842. msm_routing_get_port_mixer,
  11843. msm_routing_put_port_mixer),
  11844. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11845. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11846. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11847. msm_routing_get_port_mixer,
  11848. msm_routing_put_port_mixer),
  11849. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11850. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11851. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11852. msm_routing_get_port_mixer,
  11853. msm_routing_put_port_mixer),
  11854. };
  11855. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  11856. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11858. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11859. msm_routing_get_port_mixer,
  11860. msm_routing_put_port_mixer),
  11861. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11862. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11863. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11864. msm_routing_get_port_mixer,
  11865. msm_routing_put_port_mixer),
  11866. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11868. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11869. msm_routing_get_port_mixer,
  11870. msm_routing_put_port_mixer),
  11871. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11873. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11874. msm_routing_get_port_mixer,
  11875. msm_routing_put_port_mixer),
  11876. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11878. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11879. msm_routing_get_port_mixer,
  11880. msm_routing_put_port_mixer),
  11881. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11883. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11884. msm_routing_get_port_mixer,
  11885. msm_routing_put_port_mixer),
  11886. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11888. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11889. msm_routing_get_port_mixer,
  11890. msm_routing_put_port_mixer),
  11891. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11893. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11894. msm_routing_get_port_mixer,
  11895. msm_routing_put_port_mixer),
  11896. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11898. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11899. msm_routing_get_port_mixer,
  11900. msm_routing_put_port_mixer),
  11901. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11903. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11904. msm_routing_get_port_mixer,
  11905. msm_routing_put_port_mixer),
  11906. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11908. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11909. msm_routing_get_port_mixer,
  11910. msm_routing_put_port_mixer),
  11911. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11913. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11914. msm_routing_get_port_mixer,
  11915. msm_routing_put_port_mixer),
  11916. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11918. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11919. msm_routing_get_port_mixer,
  11920. msm_routing_put_port_mixer),
  11921. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11923. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11924. msm_routing_get_port_mixer,
  11925. msm_routing_put_port_mixer),
  11926. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11928. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11929. msm_routing_get_port_mixer,
  11930. msm_routing_put_port_mixer),
  11931. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11933. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11934. msm_routing_get_port_mixer,
  11935. msm_routing_put_port_mixer),
  11936. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11937. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11938. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11939. msm_routing_get_port_mixer,
  11940. msm_routing_put_port_mixer),
  11941. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11943. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11944. msm_routing_get_port_mixer,
  11945. msm_routing_put_port_mixer),
  11946. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11948. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11949. msm_routing_get_port_mixer,
  11950. msm_routing_put_port_mixer),
  11951. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11953. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11954. msm_routing_get_port_mixer,
  11955. msm_routing_put_port_mixer),
  11956. };
  11957. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  11958. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11959. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11960. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11961. msm_routing_get_port_mixer,
  11962. msm_routing_put_port_mixer),
  11963. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11965. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11966. msm_routing_get_port_mixer,
  11967. msm_routing_put_port_mixer),
  11968. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11970. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11971. msm_routing_get_port_mixer,
  11972. msm_routing_put_port_mixer),
  11973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11975. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11976. msm_routing_get_port_mixer,
  11977. msm_routing_put_port_mixer),
  11978. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11980. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11981. msm_routing_get_port_mixer,
  11982. msm_routing_put_port_mixer),
  11983. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11985. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11986. msm_routing_get_port_mixer,
  11987. msm_routing_put_port_mixer),
  11988. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11989. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11990. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11991. msm_routing_get_port_mixer,
  11992. msm_routing_put_port_mixer),
  11993. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11995. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11996. msm_routing_get_port_mixer,
  11997. msm_routing_put_port_mixer),
  11998. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12000. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12001. msm_routing_get_port_mixer,
  12002. msm_routing_put_port_mixer),
  12003. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12005. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12006. msm_routing_get_port_mixer,
  12007. msm_routing_put_port_mixer),
  12008. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12009. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12010. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12011. msm_routing_get_port_mixer,
  12012. msm_routing_put_port_mixer),
  12013. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12015. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12016. msm_routing_get_port_mixer,
  12017. msm_routing_put_port_mixer),
  12018. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12020. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12021. msm_routing_get_port_mixer,
  12022. msm_routing_put_port_mixer),
  12023. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12025. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12026. msm_routing_get_port_mixer,
  12027. msm_routing_put_port_mixer),
  12028. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12029. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12030. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12031. msm_routing_get_port_mixer,
  12032. msm_routing_put_port_mixer),
  12033. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12035. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12036. msm_routing_get_port_mixer,
  12037. msm_routing_put_port_mixer),
  12038. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12040. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12041. msm_routing_get_port_mixer,
  12042. msm_routing_put_port_mixer),
  12043. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12045. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12046. msm_routing_get_port_mixer,
  12047. msm_routing_put_port_mixer),
  12048. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12049. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12050. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12051. msm_routing_get_port_mixer,
  12052. msm_routing_put_port_mixer),
  12053. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12055. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12056. msm_routing_get_port_mixer,
  12057. msm_routing_put_port_mixer),
  12058. };
  12059. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  12060. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12061. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12062. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12063. msm_routing_get_port_mixer,
  12064. msm_routing_put_port_mixer),
  12065. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12067. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12068. msm_routing_get_port_mixer,
  12069. msm_routing_put_port_mixer),
  12070. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12072. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12073. msm_routing_get_port_mixer,
  12074. msm_routing_put_port_mixer),
  12075. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12077. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12078. msm_routing_get_port_mixer,
  12079. msm_routing_put_port_mixer),
  12080. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12082. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12083. msm_routing_get_port_mixer,
  12084. msm_routing_put_port_mixer),
  12085. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12087. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12088. msm_routing_get_port_mixer,
  12089. msm_routing_put_port_mixer),
  12090. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12091. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12092. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12093. msm_routing_get_port_mixer,
  12094. msm_routing_put_port_mixer),
  12095. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12097. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12098. msm_routing_get_port_mixer,
  12099. msm_routing_put_port_mixer),
  12100. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12102. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12103. msm_routing_get_port_mixer,
  12104. msm_routing_put_port_mixer),
  12105. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12107. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12108. msm_routing_get_port_mixer,
  12109. msm_routing_put_port_mixer),
  12110. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12112. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12113. msm_routing_get_port_mixer,
  12114. msm_routing_put_port_mixer),
  12115. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12117. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12118. msm_routing_get_port_mixer,
  12119. msm_routing_put_port_mixer),
  12120. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12122. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12123. msm_routing_get_port_mixer,
  12124. msm_routing_put_port_mixer),
  12125. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12127. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12128. msm_routing_get_port_mixer,
  12129. msm_routing_put_port_mixer),
  12130. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12132. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12133. msm_routing_get_port_mixer,
  12134. msm_routing_put_port_mixer),
  12135. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12137. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12138. msm_routing_get_port_mixer,
  12139. msm_routing_put_port_mixer),
  12140. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12141. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12142. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12143. msm_routing_get_port_mixer,
  12144. msm_routing_put_port_mixer),
  12145. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12147. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12148. msm_routing_get_port_mixer,
  12149. msm_routing_put_port_mixer),
  12150. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12152. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12153. msm_routing_get_port_mixer,
  12154. msm_routing_put_port_mixer),
  12155. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12157. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12158. msm_routing_get_port_mixer,
  12159. msm_routing_put_port_mixer),
  12160. };
  12161. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12162. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12164. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12165. msm_routing_get_port_mixer,
  12166. msm_routing_put_port_mixer),
  12167. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12169. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12170. msm_routing_get_port_mixer,
  12171. msm_routing_put_port_mixer),
  12172. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12174. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12175. msm_routing_get_port_mixer,
  12176. msm_routing_put_port_mixer),
  12177. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12179. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12180. msm_routing_get_port_mixer,
  12181. msm_routing_put_port_mixer),
  12182. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12184. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12185. msm_routing_get_port_mixer,
  12186. msm_routing_put_port_mixer),
  12187. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12189. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12190. msm_routing_get_port_mixer,
  12191. msm_routing_put_port_mixer),
  12192. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12193. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12194. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12195. msm_routing_get_port_mixer,
  12196. msm_routing_put_port_mixer),
  12197. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12199. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12200. msm_routing_get_port_mixer,
  12201. msm_routing_put_port_mixer),
  12202. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12204. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12205. msm_routing_get_port_mixer,
  12206. msm_routing_put_port_mixer),
  12207. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12209. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12210. msm_routing_get_port_mixer,
  12211. msm_routing_put_port_mixer),
  12212. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12214. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12215. msm_routing_get_port_mixer,
  12216. msm_routing_put_port_mixer),
  12217. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12219. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12220. msm_routing_get_port_mixer,
  12221. msm_routing_put_port_mixer),
  12222. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12224. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12225. msm_routing_get_port_mixer,
  12226. msm_routing_put_port_mixer),
  12227. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12229. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12230. msm_routing_get_port_mixer,
  12231. msm_routing_put_port_mixer),
  12232. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12234. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12235. msm_routing_get_port_mixer,
  12236. msm_routing_put_port_mixer),
  12237. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12239. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12240. msm_routing_get_port_mixer,
  12241. msm_routing_put_port_mixer),
  12242. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12243. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12244. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12245. msm_routing_get_port_mixer,
  12246. msm_routing_put_port_mixer),
  12247. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12249. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12250. msm_routing_get_port_mixer,
  12251. msm_routing_put_port_mixer),
  12252. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12254. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12255. msm_routing_get_port_mixer,
  12256. msm_routing_put_port_mixer),
  12257. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12259. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12260. msm_routing_get_port_mixer,
  12261. msm_routing_put_port_mixer),
  12262. };
  12263. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12264. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12266. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12267. msm_routing_get_port_mixer,
  12268. msm_routing_put_port_mixer),
  12269. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12271. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12272. msm_routing_get_port_mixer,
  12273. msm_routing_put_port_mixer),
  12274. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12275. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12276. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12277. msm_routing_get_port_mixer,
  12278. msm_routing_put_port_mixer),
  12279. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12281. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12282. msm_routing_get_port_mixer,
  12283. msm_routing_put_port_mixer),
  12284. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12286. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12287. msm_routing_get_port_mixer,
  12288. msm_routing_put_port_mixer),
  12289. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12291. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12292. msm_routing_get_port_mixer,
  12293. msm_routing_put_port_mixer),
  12294. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12295. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12296. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12297. msm_routing_get_port_mixer,
  12298. msm_routing_put_port_mixer),
  12299. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12301. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12302. msm_routing_get_port_mixer,
  12303. msm_routing_put_port_mixer),
  12304. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12306. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12307. msm_routing_get_port_mixer,
  12308. msm_routing_put_port_mixer),
  12309. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12311. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12312. msm_routing_get_port_mixer,
  12313. msm_routing_put_port_mixer),
  12314. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12316. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12317. msm_routing_get_port_mixer,
  12318. msm_routing_put_port_mixer),
  12319. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12321. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12322. msm_routing_get_port_mixer,
  12323. msm_routing_put_port_mixer),
  12324. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12326. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12327. msm_routing_get_port_mixer,
  12328. msm_routing_put_port_mixer),
  12329. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12331. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12332. msm_routing_get_port_mixer,
  12333. msm_routing_put_port_mixer),
  12334. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12335. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12336. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12337. msm_routing_get_port_mixer,
  12338. msm_routing_put_port_mixer),
  12339. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12341. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12342. msm_routing_get_port_mixer,
  12343. msm_routing_put_port_mixer),
  12344. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12346. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12347. msm_routing_get_port_mixer,
  12348. msm_routing_put_port_mixer),
  12349. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12351. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12352. msm_routing_get_port_mixer,
  12353. msm_routing_put_port_mixer),
  12354. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12356. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12357. msm_routing_get_port_mixer,
  12358. msm_routing_put_port_mixer),
  12359. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12361. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12362. msm_routing_get_port_mixer,
  12363. msm_routing_put_port_mixer),
  12364. };
  12365. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12366. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12368. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12369. msm_routing_get_port_mixer,
  12370. msm_routing_put_port_mixer),
  12371. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12373. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12374. msm_routing_get_port_mixer,
  12375. msm_routing_put_port_mixer),
  12376. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12378. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12379. msm_routing_get_port_mixer,
  12380. msm_routing_put_port_mixer),
  12381. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12383. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12384. msm_routing_get_port_mixer,
  12385. msm_routing_put_port_mixer),
  12386. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12388. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12389. msm_routing_get_port_mixer,
  12390. msm_routing_put_port_mixer),
  12391. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12393. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12394. msm_routing_get_port_mixer,
  12395. msm_routing_put_port_mixer),
  12396. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12398. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12399. msm_routing_get_port_mixer,
  12400. msm_routing_put_port_mixer),
  12401. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12403. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12404. msm_routing_get_port_mixer,
  12405. msm_routing_put_port_mixer),
  12406. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12408. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12409. msm_routing_get_port_mixer,
  12410. msm_routing_put_port_mixer),
  12411. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12413. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12414. msm_routing_get_port_mixer,
  12415. msm_routing_put_port_mixer),
  12416. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12418. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12419. msm_routing_get_port_mixer,
  12420. msm_routing_put_port_mixer),
  12421. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12423. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12424. msm_routing_get_port_mixer,
  12425. msm_routing_put_port_mixer),
  12426. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12428. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12429. msm_routing_get_port_mixer,
  12430. msm_routing_put_port_mixer),
  12431. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12433. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12434. msm_routing_get_port_mixer,
  12435. msm_routing_put_port_mixer),
  12436. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12438. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12439. msm_routing_get_port_mixer,
  12440. msm_routing_put_port_mixer),
  12441. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12443. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12444. msm_routing_get_port_mixer,
  12445. msm_routing_put_port_mixer),
  12446. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12448. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12449. msm_routing_get_port_mixer,
  12450. msm_routing_put_port_mixer),
  12451. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12453. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12454. msm_routing_get_port_mixer,
  12455. msm_routing_put_port_mixer),
  12456. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12458. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12459. msm_routing_get_port_mixer,
  12460. msm_routing_put_port_mixer),
  12461. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12463. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12464. msm_routing_get_port_mixer,
  12465. msm_routing_put_port_mixer),
  12466. };
  12467. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12468. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12470. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12471. msm_routing_get_port_mixer,
  12472. msm_routing_put_port_mixer),
  12473. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12475. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12476. msm_routing_get_port_mixer,
  12477. msm_routing_put_port_mixer),
  12478. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12480. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12481. msm_routing_get_port_mixer,
  12482. msm_routing_put_port_mixer),
  12483. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12485. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12486. msm_routing_get_port_mixer,
  12487. msm_routing_put_port_mixer),
  12488. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12490. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12491. msm_routing_get_port_mixer,
  12492. msm_routing_put_port_mixer),
  12493. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12495. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12496. msm_routing_get_port_mixer,
  12497. msm_routing_put_port_mixer),
  12498. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12500. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12501. msm_routing_get_port_mixer,
  12502. msm_routing_put_port_mixer),
  12503. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12505. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12506. msm_routing_get_port_mixer,
  12507. msm_routing_put_port_mixer),
  12508. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12510. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12511. msm_routing_get_port_mixer,
  12512. msm_routing_put_port_mixer),
  12513. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12515. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12516. msm_routing_get_port_mixer,
  12517. msm_routing_put_port_mixer),
  12518. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12520. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12521. msm_routing_get_port_mixer,
  12522. msm_routing_put_port_mixer),
  12523. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12525. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12526. msm_routing_get_port_mixer,
  12527. msm_routing_put_port_mixer),
  12528. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12530. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12531. msm_routing_get_port_mixer,
  12532. msm_routing_put_port_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12535. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12536. msm_routing_get_port_mixer,
  12537. msm_routing_put_port_mixer),
  12538. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12540. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12541. msm_routing_get_port_mixer,
  12542. msm_routing_put_port_mixer),
  12543. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12545. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12546. msm_routing_get_port_mixer,
  12547. msm_routing_put_port_mixer),
  12548. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12550. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12551. msm_routing_get_port_mixer,
  12552. msm_routing_put_port_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12555. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12556. msm_routing_get_port_mixer,
  12557. msm_routing_put_port_mixer),
  12558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12560. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12561. msm_routing_get_port_mixer,
  12562. msm_routing_put_port_mixer),
  12563. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12565. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12566. msm_routing_get_port_mixer,
  12567. msm_routing_put_port_mixer),
  12568. };
  12569. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12570. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12572. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12573. msm_routing_get_port_mixer,
  12574. msm_routing_put_port_mixer),
  12575. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12577. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12578. msm_routing_get_port_mixer,
  12579. msm_routing_put_port_mixer),
  12580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12581. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12582. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12583. msm_routing_get_port_mixer,
  12584. msm_routing_put_port_mixer),
  12585. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12587. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12588. msm_routing_get_port_mixer,
  12589. msm_routing_put_port_mixer),
  12590. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12592. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12593. msm_routing_get_port_mixer,
  12594. msm_routing_put_port_mixer),
  12595. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12597. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12598. msm_routing_get_port_mixer,
  12599. msm_routing_put_port_mixer),
  12600. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12602. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12603. msm_routing_get_port_mixer,
  12604. msm_routing_put_port_mixer),
  12605. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12607. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12608. msm_routing_get_port_mixer,
  12609. msm_routing_put_port_mixer),
  12610. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12612. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12613. msm_routing_get_port_mixer,
  12614. msm_routing_put_port_mixer),
  12615. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12617. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12618. msm_routing_get_port_mixer,
  12619. msm_routing_put_port_mixer),
  12620. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12621. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12622. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12623. msm_routing_get_port_mixer,
  12624. msm_routing_put_port_mixer),
  12625. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12627. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12628. msm_routing_get_port_mixer,
  12629. msm_routing_put_port_mixer),
  12630. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12632. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12633. msm_routing_get_port_mixer,
  12634. msm_routing_put_port_mixer),
  12635. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12637. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12638. msm_routing_get_port_mixer,
  12639. msm_routing_put_port_mixer),
  12640. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12641. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12642. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12643. msm_routing_get_port_mixer,
  12644. msm_routing_put_port_mixer),
  12645. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12647. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12648. msm_routing_get_port_mixer,
  12649. msm_routing_put_port_mixer),
  12650. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12652. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12653. msm_routing_get_port_mixer,
  12654. msm_routing_put_port_mixer),
  12655. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12657. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12658. msm_routing_get_port_mixer,
  12659. msm_routing_put_port_mixer),
  12660. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12662. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12663. msm_routing_get_port_mixer,
  12664. msm_routing_put_port_mixer),
  12665. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12667. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12668. msm_routing_get_port_mixer,
  12669. msm_routing_put_port_mixer),
  12670. };
  12671. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12672. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12674. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12675. msm_routing_get_port_mixer,
  12676. msm_routing_put_port_mixer),
  12677. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12679. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12680. msm_routing_get_port_mixer,
  12681. msm_routing_put_port_mixer),
  12682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12685. msm_routing_get_port_mixer,
  12686. msm_routing_put_port_mixer),
  12687. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12689. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12690. msm_routing_get_port_mixer,
  12691. msm_routing_put_port_mixer),
  12692. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12694. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12695. msm_routing_get_port_mixer,
  12696. msm_routing_put_port_mixer),
  12697. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12699. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12700. msm_routing_get_port_mixer,
  12701. msm_routing_put_port_mixer),
  12702. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12704. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12705. msm_routing_get_port_mixer,
  12706. msm_routing_put_port_mixer),
  12707. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12709. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12710. msm_routing_get_port_mixer,
  12711. msm_routing_put_port_mixer),
  12712. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12714. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12715. msm_routing_get_port_mixer,
  12716. msm_routing_put_port_mixer),
  12717. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12719. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12720. msm_routing_get_port_mixer,
  12721. msm_routing_put_port_mixer),
  12722. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12723. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12724. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12725. msm_routing_get_port_mixer,
  12726. msm_routing_put_port_mixer),
  12727. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12729. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12730. msm_routing_get_port_mixer,
  12731. msm_routing_put_port_mixer),
  12732. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12734. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12735. msm_routing_get_port_mixer,
  12736. msm_routing_put_port_mixer),
  12737. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12739. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12740. msm_routing_get_port_mixer,
  12741. msm_routing_put_port_mixer),
  12742. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12743. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12744. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12745. msm_routing_get_port_mixer,
  12746. msm_routing_put_port_mixer),
  12747. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12749. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12750. msm_routing_get_port_mixer,
  12751. msm_routing_put_port_mixer),
  12752. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12754. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12755. msm_routing_get_port_mixer,
  12756. msm_routing_put_port_mixer),
  12757. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12759. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12760. msm_routing_get_port_mixer,
  12761. msm_routing_put_port_mixer),
  12762. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12763. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12764. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12765. msm_routing_get_port_mixer,
  12766. msm_routing_put_port_mixer),
  12767. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12769. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12770. msm_routing_get_port_mixer,
  12771. msm_routing_put_port_mixer),
  12772. };
  12773. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12774. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12775. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12776. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12777. msm_routing_get_port_mixer,
  12778. msm_routing_put_port_mixer),
  12779. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12781. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12782. msm_routing_get_port_mixer,
  12783. msm_routing_put_port_mixer),
  12784. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12786. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12787. msm_routing_get_port_mixer,
  12788. msm_routing_put_port_mixer),
  12789. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12791. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12792. msm_routing_get_port_mixer,
  12793. msm_routing_put_port_mixer),
  12794. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12796. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12797. msm_routing_get_port_mixer,
  12798. msm_routing_put_port_mixer),
  12799. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12801. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12802. msm_routing_get_port_mixer,
  12803. msm_routing_put_port_mixer),
  12804. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12806. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12807. msm_routing_get_port_mixer,
  12808. msm_routing_put_port_mixer),
  12809. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12811. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12812. msm_routing_get_port_mixer,
  12813. msm_routing_put_port_mixer),
  12814. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12815. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12816. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12817. msm_routing_get_port_mixer,
  12818. msm_routing_put_port_mixer),
  12819. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12821. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12822. msm_routing_get_port_mixer,
  12823. msm_routing_put_port_mixer),
  12824. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12826. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12827. msm_routing_get_port_mixer,
  12828. msm_routing_put_port_mixer),
  12829. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12831. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12832. msm_routing_get_port_mixer,
  12833. msm_routing_put_port_mixer),
  12834. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12835. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12836. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12837. msm_routing_get_port_mixer,
  12838. msm_routing_put_port_mixer),
  12839. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12841. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12842. msm_routing_get_port_mixer,
  12843. msm_routing_put_port_mixer),
  12844. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12846. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12847. msm_routing_get_port_mixer,
  12848. msm_routing_put_port_mixer),
  12849. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12851. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12852. msm_routing_get_port_mixer,
  12853. msm_routing_put_port_mixer),
  12854. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12855. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12856. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12857. msm_routing_get_port_mixer,
  12858. msm_routing_put_port_mixer),
  12859. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12861. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12862. msm_routing_get_port_mixer,
  12863. msm_routing_put_port_mixer),
  12864. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12866. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12867. msm_routing_get_port_mixer,
  12868. msm_routing_put_port_mixer),
  12869. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12871. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12872. msm_routing_get_port_mixer,
  12873. msm_routing_put_port_mixer),
  12874. };
  12875. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  12876. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12878. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12879. msm_routing_get_port_mixer,
  12880. msm_routing_put_port_mixer),
  12881. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12883. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12884. msm_routing_get_port_mixer,
  12885. msm_routing_put_port_mixer),
  12886. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12888. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12889. msm_routing_get_port_mixer,
  12890. msm_routing_put_port_mixer),
  12891. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12893. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12894. msm_routing_get_port_mixer,
  12895. msm_routing_put_port_mixer),
  12896. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12898. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12899. msm_routing_get_port_mixer,
  12900. msm_routing_put_port_mixer),
  12901. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12903. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12904. msm_routing_get_port_mixer,
  12905. msm_routing_put_port_mixer),
  12906. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12908. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12909. msm_routing_get_port_mixer,
  12910. msm_routing_put_port_mixer),
  12911. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12913. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12914. msm_routing_get_port_mixer,
  12915. msm_routing_put_port_mixer),
  12916. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12918. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12919. msm_routing_get_port_mixer,
  12920. msm_routing_put_port_mixer),
  12921. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12923. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12924. msm_routing_get_port_mixer,
  12925. msm_routing_put_port_mixer),
  12926. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12928. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12929. msm_routing_get_port_mixer,
  12930. msm_routing_put_port_mixer),
  12931. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12933. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12934. msm_routing_get_port_mixer,
  12935. msm_routing_put_port_mixer),
  12936. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12937. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12938. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12939. msm_routing_get_port_mixer,
  12940. msm_routing_put_port_mixer),
  12941. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12943. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12944. msm_routing_get_port_mixer,
  12945. msm_routing_put_port_mixer),
  12946. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12948. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12949. msm_routing_get_port_mixer,
  12950. msm_routing_put_port_mixer),
  12951. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12953. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12954. msm_routing_get_port_mixer,
  12955. msm_routing_put_port_mixer),
  12956. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12958. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12959. msm_routing_get_port_mixer,
  12960. msm_routing_put_port_mixer),
  12961. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12963. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12964. msm_routing_get_port_mixer,
  12965. msm_routing_put_port_mixer),
  12966. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12968. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12969. msm_routing_get_port_mixer,
  12970. msm_routing_put_port_mixer),
  12971. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12973. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12974. msm_routing_get_port_mixer,
  12975. msm_routing_put_port_mixer),
  12976. };
  12977. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  12978. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12980. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12981. msm_routing_get_port_mixer,
  12982. msm_routing_put_port_mixer),
  12983. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12985. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12986. msm_routing_get_port_mixer,
  12987. msm_routing_put_port_mixer),
  12988. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12989. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12990. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12991. msm_routing_get_port_mixer,
  12992. msm_routing_put_port_mixer),
  12993. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12995. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12996. msm_routing_get_port_mixer,
  12997. msm_routing_put_port_mixer),
  12998. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13000. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13001. msm_routing_get_port_mixer,
  13002. msm_routing_put_port_mixer),
  13003. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13005. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13006. msm_routing_get_port_mixer,
  13007. msm_routing_put_port_mixer),
  13008. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13010. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13011. msm_routing_get_port_mixer,
  13012. msm_routing_put_port_mixer),
  13013. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13015. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13016. msm_routing_get_port_mixer,
  13017. msm_routing_put_port_mixer),
  13018. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13020. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13021. msm_routing_get_port_mixer,
  13022. msm_routing_put_port_mixer),
  13023. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13025. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13026. msm_routing_get_port_mixer,
  13027. msm_routing_put_port_mixer),
  13028. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13029. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13030. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13031. msm_routing_get_port_mixer,
  13032. msm_routing_put_port_mixer),
  13033. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13035. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13036. msm_routing_get_port_mixer,
  13037. msm_routing_put_port_mixer),
  13038. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13040. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13041. msm_routing_get_port_mixer,
  13042. msm_routing_put_port_mixer),
  13043. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13045. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13046. msm_routing_get_port_mixer,
  13047. msm_routing_put_port_mixer),
  13048. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13050. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13051. msm_routing_get_port_mixer,
  13052. msm_routing_put_port_mixer),
  13053. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13055. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13056. msm_routing_get_port_mixer,
  13057. msm_routing_put_port_mixer),
  13058. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13060. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13061. msm_routing_get_port_mixer,
  13062. msm_routing_put_port_mixer),
  13063. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13065. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13066. msm_routing_get_port_mixer,
  13067. msm_routing_put_port_mixer),
  13068. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13069. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13070. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13071. msm_routing_get_port_mixer,
  13072. msm_routing_put_port_mixer),
  13073. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13075. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13076. msm_routing_get_port_mixer,
  13077. msm_routing_put_port_mixer),
  13078. };
  13079. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  13080. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13081. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13082. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13083. msm_routing_get_port_mixer,
  13084. msm_routing_put_port_mixer),
  13085. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13087. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13088. msm_routing_get_port_mixer,
  13089. msm_routing_put_port_mixer),
  13090. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13092. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13093. msm_routing_get_port_mixer,
  13094. msm_routing_put_port_mixer),
  13095. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13097. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13098. msm_routing_get_port_mixer,
  13099. msm_routing_put_port_mixer),
  13100. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13101. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13102. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13103. msm_routing_get_port_mixer,
  13104. msm_routing_put_port_mixer),
  13105. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13107. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13108. msm_routing_get_port_mixer,
  13109. msm_routing_put_port_mixer),
  13110. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13112. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13113. msm_routing_get_port_mixer,
  13114. msm_routing_put_port_mixer),
  13115. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13117. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13118. msm_routing_get_port_mixer,
  13119. msm_routing_put_port_mixer),
  13120. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13122. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13123. msm_routing_get_port_mixer,
  13124. msm_routing_put_port_mixer),
  13125. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13127. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13128. msm_routing_get_port_mixer,
  13129. msm_routing_put_port_mixer),
  13130. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13132. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13133. msm_routing_get_port_mixer,
  13134. msm_routing_put_port_mixer),
  13135. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13137. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13138. msm_routing_get_port_mixer,
  13139. msm_routing_put_port_mixer),
  13140. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13142. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13143. msm_routing_get_port_mixer,
  13144. msm_routing_put_port_mixer),
  13145. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13147. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13148. msm_routing_get_port_mixer,
  13149. msm_routing_put_port_mixer),
  13150. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13151. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13152. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13153. msm_routing_get_port_mixer,
  13154. msm_routing_put_port_mixer),
  13155. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13157. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13158. msm_routing_get_port_mixer,
  13159. msm_routing_put_port_mixer),
  13160. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13162. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13163. msm_routing_get_port_mixer,
  13164. msm_routing_put_port_mixer),
  13165. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13167. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13168. msm_routing_get_port_mixer,
  13169. msm_routing_put_port_mixer),
  13170. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13171. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13172. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13173. msm_routing_get_port_mixer,
  13174. msm_routing_put_port_mixer),
  13175. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13177. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13178. msm_routing_get_port_mixer,
  13179. msm_routing_put_port_mixer),
  13180. };
  13181. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13182. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13184. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13185. msm_routing_get_port_mixer,
  13186. msm_routing_put_port_mixer),
  13187. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13189. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13190. msm_routing_get_port_mixer,
  13191. msm_routing_put_port_mixer),
  13192. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13194. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13195. msm_routing_get_port_mixer,
  13196. msm_routing_put_port_mixer),
  13197. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13199. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13200. msm_routing_get_port_mixer,
  13201. msm_routing_put_port_mixer),
  13202. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13203. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13204. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13205. msm_routing_get_port_mixer,
  13206. msm_routing_put_port_mixer),
  13207. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13209. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13210. msm_routing_get_port_mixer,
  13211. msm_routing_put_port_mixer),
  13212. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13214. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13215. msm_routing_get_port_mixer,
  13216. msm_routing_put_port_mixer),
  13217. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13219. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13220. msm_routing_get_port_mixer,
  13221. msm_routing_put_port_mixer),
  13222. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13224. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13225. msm_routing_get_port_mixer,
  13226. msm_routing_put_port_mixer),
  13227. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13229. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13230. msm_routing_get_port_mixer,
  13231. msm_routing_put_port_mixer),
  13232. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13234. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13235. msm_routing_get_port_mixer,
  13236. msm_routing_put_port_mixer),
  13237. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13239. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13240. msm_routing_get_port_mixer,
  13241. msm_routing_put_port_mixer),
  13242. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13243. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13244. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13245. msm_routing_get_port_mixer,
  13246. msm_routing_put_port_mixer),
  13247. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13249. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13250. msm_routing_get_port_mixer,
  13251. msm_routing_put_port_mixer),
  13252. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13254. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13255. msm_routing_get_port_mixer,
  13256. msm_routing_put_port_mixer),
  13257. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13259. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13260. msm_routing_get_port_mixer,
  13261. msm_routing_put_port_mixer),
  13262. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13263. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13264. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13265. msm_routing_get_port_mixer,
  13266. msm_routing_put_port_mixer),
  13267. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13269. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13270. msm_routing_get_port_mixer,
  13271. msm_routing_put_port_mixer),
  13272. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13274. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13275. msm_routing_get_port_mixer,
  13276. msm_routing_put_port_mixer),
  13277. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13279. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13280. msm_routing_get_port_mixer,
  13281. msm_routing_put_port_mixer),
  13282. };
  13283. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13284. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13286. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13287. msm_routing_get_port_mixer,
  13288. msm_routing_put_port_mixer),
  13289. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13291. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13292. msm_routing_get_port_mixer,
  13293. msm_routing_put_port_mixer),
  13294. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13296. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13297. msm_routing_get_port_mixer,
  13298. msm_routing_put_port_mixer),
  13299. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13301. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13302. msm_routing_get_port_mixer,
  13303. msm_routing_put_port_mixer),
  13304. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13306. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13307. msm_routing_get_port_mixer,
  13308. msm_routing_put_port_mixer),
  13309. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13311. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13312. msm_routing_get_port_mixer,
  13313. msm_routing_put_port_mixer),
  13314. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13315. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13316. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13317. msm_routing_get_port_mixer,
  13318. msm_routing_put_port_mixer),
  13319. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13321. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13322. msm_routing_get_port_mixer,
  13323. msm_routing_put_port_mixer),
  13324. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13326. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13327. msm_routing_get_port_mixer,
  13328. msm_routing_put_port_mixer),
  13329. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13331. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13332. msm_routing_get_port_mixer,
  13333. msm_routing_put_port_mixer),
  13334. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13336. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13337. msm_routing_get_port_mixer,
  13338. msm_routing_put_port_mixer),
  13339. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13341. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13342. msm_routing_get_port_mixer,
  13343. msm_routing_put_port_mixer),
  13344. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13346. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13347. msm_routing_get_port_mixer,
  13348. msm_routing_put_port_mixer),
  13349. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13351. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13352. msm_routing_get_port_mixer,
  13353. msm_routing_put_port_mixer),
  13354. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13355. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13356. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13357. msm_routing_get_port_mixer,
  13358. msm_routing_put_port_mixer),
  13359. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13361. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13362. msm_routing_get_port_mixer,
  13363. msm_routing_put_port_mixer),
  13364. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13366. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13367. msm_routing_get_port_mixer,
  13368. msm_routing_put_port_mixer),
  13369. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13371. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13372. msm_routing_get_port_mixer,
  13373. msm_routing_put_port_mixer),
  13374. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13376. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13377. msm_routing_get_port_mixer,
  13378. msm_routing_put_port_mixer),
  13379. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13381. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13382. msm_routing_get_port_mixer,
  13383. msm_routing_put_port_mixer),
  13384. };
  13385. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13386. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13388. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13389. msm_routing_get_port_mixer,
  13390. msm_routing_put_port_mixer),
  13391. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13393. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13394. msm_routing_get_port_mixer,
  13395. msm_routing_put_port_mixer),
  13396. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13398. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13399. msm_routing_get_port_mixer,
  13400. msm_routing_put_port_mixer),
  13401. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13403. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13404. msm_routing_get_port_mixer,
  13405. msm_routing_put_port_mixer),
  13406. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13408. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13409. msm_routing_get_port_mixer,
  13410. msm_routing_put_port_mixer),
  13411. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13413. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13414. msm_routing_get_port_mixer,
  13415. msm_routing_put_port_mixer),
  13416. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13417. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13418. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13419. msm_routing_get_port_mixer,
  13420. msm_routing_put_port_mixer),
  13421. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13423. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13424. msm_routing_get_port_mixer,
  13425. msm_routing_put_port_mixer),
  13426. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13428. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13429. msm_routing_get_port_mixer,
  13430. msm_routing_put_port_mixer),
  13431. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13433. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13434. msm_routing_get_port_mixer,
  13435. msm_routing_put_port_mixer),
  13436. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13437. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13438. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13439. msm_routing_get_port_mixer,
  13440. msm_routing_put_port_mixer),
  13441. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13442. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13443. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13444. msm_routing_get_port_mixer,
  13445. msm_routing_put_port_mixer),
  13446. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13448. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13449. msm_routing_get_port_mixer,
  13450. msm_routing_put_port_mixer),
  13451. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13453. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13454. msm_routing_get_port_mixer,
  13455. msm_routing_put_port_mixer),
  13456. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13458. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13459. msm_routing_get_port_mixer,
  13460. msm_routing_put_port_mixer),
  13461. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13463. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13464. msm_routing_get_port_mixer,
  13465. msm_routing_put_port_mixer),
  13466. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13468. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13469. msm_routing_get_port_mixer,
  13470. msm_routing_put_port_mixer),
  13471. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13473. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13474. msm_routing_get_port_mixer,
  13475. msm_routing_put_port_mixer),
  13476. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13478. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13479. msm_routing_get_port_mixer,
  13480. msm_routing_put_port_mixer),
  13481. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13483. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13484. msm_routing_get_port_mixer,
  13485. msm_routing_put_port_mixer),
  13486. };
  13487. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13488. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13490. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13491. msm_routing_put_port_mixer),
  13492. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13493. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13494. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13495. msm_routing_put_port_mixer),
  13496. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13497. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13498. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13499. msm_routing_put_port_mixer),
  13500. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13502. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13503. msm_routing_put_port_mixer),
  13504. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13505. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13506. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13507. msm_routing_put_port_mixer),
  13508. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13510. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13511. msm_routing_put_port_mixer),
  13512. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13514. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13515. msm_routing_put_port_mixer),
  13516. };
  13517. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13518. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13520. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13521. msm_routing_put_port_mixer),
  13522. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13524. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13525. msm_routing_put_port_mixer),
  13526. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13528. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13529. msm_routing_put_port_mixer),
  13530. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13532. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13533. msm_routing_put_port_mixer),
  13534. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13536. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13537. msm_routing_put_port_mixer),
  13538. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13540. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13541. msm_routing_put_port_mixer),
  13542. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13544. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13545. msm_routing_put_port_mixer),
  13546. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13548. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13549. msm_routing_put_port_mixer),
  13550. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13552. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13553. msm_routing_put_port_mixer),
  13554. };
  13555. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13556. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13558. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13559. msm_routing_put_listen_mixer),
  13560. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13561. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13562. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13563. msm_routing_put_listen_mixer),
  13564. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13566. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13567. msm_routing_put_listen_mixer),
  13568. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13570. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13571. msm_routing_put_listen_mixer),
  13572. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13574. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13575. msm_routing_put_listen_mixer),
  13576. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13578. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13579. msm_routing_put_listen_mixer),
  13580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13582. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13583. msm_routing_put_listen_mixer),
  13584. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13586. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13587. msm_routing_put_listen_mixer),
  13588. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13590. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13591. msm_routing_put_listen_mixer),
  13592. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13594. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13595. msm_routing_put_listen_mixer),
  13596. };
  13597. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13598. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13600. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13601. msm_routing_put_listen_mixer),
  13602. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13603. SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13605. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13606. msm_routing_put_listen_mixer),
  13607. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13609. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13610. msm_routing_put_listen_mixer),
  13611. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13613. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13614. msm_routing_put_listen_mixer),
  13615. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13617. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13618. msm_routing_put_listen_mixer),
  13619. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13621. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13622. msm_routing_put_listen_mixer),
  13623. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13625. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13626. msm_routing_put_listen_mixer),
  13627. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13629. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13630. msm_routing_put_listen_mixer),
  13631. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13633. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13634. msm_routing_put_listen_mixer),
  13635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13637. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13638. msm_routing_put_listen_mixer),
  13639. };
  13640. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13641. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13643. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13644. msm_routing_put_listen_mixer),
  13645. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13647. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13648. msm_routing_put_listen_mixer),
  13649. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13651. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13652. msm_routing_put_listen_mixer),
  13653. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13655. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13656. msm_routing_put_listen_mixer),
  13657. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13659. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13660. msm_routing_put_listen_mixer),
  13661. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13663. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13664. msm_routing_put_listen_mixer),
  13665. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13667. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13668. msm_routing_put_listen_mixer),
  13669. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13671. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13672. msm_routing_put_listen_mixer),
  13673. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13675. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13676. msm_routing_put_listen_mixer),
  13677. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13679. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13680. msm_routing_put_listen_mixer),
  13681. };
  13682. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13683. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13685. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13686. msm_routing_put_listen_mixer),
  13687. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13689. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13690. msm_routing_put_listen_mixer),
  13691. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13693. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13694. msm_routing_put_listen_mixer),
  13695. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13697. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13698. msm_routing_put_listen_mixer),
  13699. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13701. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13702. msm_routing_put_listen_mixer),
  13703. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13705. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13706. msm_routing_put_listen_mixer),
  13707. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13709. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13710. msm_routing_put_listen_mixer),
  13711. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13713. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13714. msm_routing_put_listen_mixer),
  13715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13717. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13718. msm_routing_put_listen_mixer),
  13719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13721. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13722. msm_routing_put_listen_mixer),
  13723. };
  13724. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13725. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13727. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13728. msm_routing_put_listen_mixer),
  13729. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13731. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13732. msm_routing_put_listen_mixer),
  13733. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13735. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13736. msm_routing_put_listen_mixer),
  13737. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13739. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13740. msm_routing_put_listen_mixer),
  13741. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13743. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13744. msm_routing_put_listen_mixer),
  13745. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13747. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13748. msm_routing_put_listen_mixer),
  13749. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13751. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13752. msm_routing_put_listen_mixer),
  13753. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13755. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13756. msm_routing_put_listen_mixer),
  13757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13759. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13760. msm_routing_put_listen_mixer),
  13761. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13763. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13764. msm_routing_put_listen_mixer),
  13765. };
  13766. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13767. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13769. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13770. msm_routing_put_listen_mixer),
  13771. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13773. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13774. msm_routing_put_listen_mixer),
  13775. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13777. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13778. msm_routing_put_listen_mixer),
  13779. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13781. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13782. msm_routing_put_listen_mixer),
  13783. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13785. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13786. msm_routing_put_listen_mixer),
  13787. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13789. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13790. msm_routing_put_listen_mixer),
  13791. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13793. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13794. msm_routing_put_listen_mixer),
  13795. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13797. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13798. msm_routing_put_listen_mixer),
  13799. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13801. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13802. msm_routing_put_listen_mixer),
  13803. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13805. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13806. msm_routing_put_listen_mixer),
  13807. };
  13808. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13809. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13811. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13812. msm_routing_put_listen_mixer),
  13813. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13815. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13816. msm_routing_put_listen_mixer),
  13817. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13819. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13820. msm_routing_put_listen_mixer),
  13821. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13823. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13824. msm_routing_put_listen_mixer),
  13825. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13827. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13828. msm_routing_put_listen_mixer),
  13829. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13831. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13832. msm_routing_put_listen_mixer),
  13833. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13835. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13836. msm_routing_put_listen_mixer),
  13837. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13838. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13839. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13840. msm_routing_put_listen_mixer),
  13841. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13843. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13844. msm_routing_put_listen_mixer),
  13845. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13847. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13848. msm_routing_put_listen_mixer),
  13849. };
  13850. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  13851. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13853. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13854. msm_routing_put_listen_mixer),
  13855. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13857. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13858. msm_routing_put_listen_mixer),
  13859. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13861. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13862. msm_routing_put_listen_mixer),
  13863. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13865. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13866. msm_routing_put_listen_mixer),
  13867. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13869. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13870. msm_routing_put_listen_mixer),
  13871. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13873. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13874. msm_routing_put_listen_mixer),
  13875. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13877. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13878. msm_routing_put_listen_mixer),
  13879. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13881. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13882. msm_routing_put_listen_mixer),
  13883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13885. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13886. msm_routing_put_listen_mixer),
  13887. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13889. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13890. msm_routing_put_listen_mixer),
  13891. };
  13892. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  13893. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13894. 0, 1, 0, msm_routing_get_switch_mixer,
  13895. msm_routing_put_switch_mixer);
  13896. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  13897. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13898. 0, 1, 0, msm_routing_get_switch_mixer,
  13899. msm_routing_put_switch_mixer);
  13900. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  13901. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13902. 0, 1, 0, msm_routing_get_switch_mixer,
  13903. msm_routing_put_switch_mixer);
  13904. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  13905. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13906. 0, 1, 0, msm_routing_get_switch_mixer,
  13907. msm_routing_put_switch_mixer);
  13908. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  13909. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13910. 0, 1, 0, msm_routing_get_switch_mixer,
  13911. msm_routing_put_switch_mixer);
  13912. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  13913. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13914. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  13915. msm_routing_put_fm_pcmrx_switch_mixer);
  13916. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  13917. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13918. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  13919. msm_routing_put_int0_mi2s_switch_mixer);
  13920. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  13921. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13922. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  13923. msm_routing_put_int4_mi2s_switch_mixer);
  13924. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  13925. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13926. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  13927. msm_routing_put_pri_mi2s_switch_mixer);
  13928. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  13929. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13930. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  13931. msm_routing_put_sec_mi2s_switch_mixer);
  13932. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  13933. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13934. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  13935. msm_routing_put_tert_mi2s_switch_mixer);
  13936. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  13937. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13938. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  13939. msm_routing_put_quat_mi2s_switch_mixer);
  13940. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  13941. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13942. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  13943. msm_routing_put_quin_mi2s_switch_mixer);
  13944. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  13945. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13946. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13947. msm_routing_put_hfp_switch_mixer);
  13948. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  13949. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13950. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13951. msm_routing_put_hfp_switch_mixer);
  13952. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  13953. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13954. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13955. msm_routing_put_hfp_switch_mixer);
  13956. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  13957. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13958. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13959. msm_routing_put_hfp_switch_mixer);
  13960. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  13961. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13962. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  13963. msm_routing_put_usb_switch_mixer);
  13964. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  13965. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13966. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  13967. msm_routing_a2dp_switch_mixer_put);
  13968. static const struct soc_enum lsm_port_enum =
  13969. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  13970. static const char * const lsm_func_text[] = {
  13971. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  13972. };
  13973. static const struct soc_enum lsm_func_enum =
  13974. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  13975. static const struct snd_kcontrol_new lsm_controls[] = {
  13976. /* kcontrol of lsm_function */
  13977. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13978. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13979. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13980. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13981. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13982. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13983. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13984. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13985. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13986. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13987. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13988. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13989. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13990. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13991. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13992. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13993. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13994. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13995. /* kcontrol of lsm_port */
  13996. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  13997. msm_routing_lsm_port_get,
  13998. msm_routing_lsm_port_put),
  13999. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  14000. msm_routing_lsm_port_get,
  14001. msm_routing_lsm_port_put),
  14002. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  14003. msm_routing_lsm_port_get,
  14004. msm_routing_lsm_port_put),
  14005. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  14006. msm_routing_lsm_port_get,
  14007. msm_routing_lsm_port_put),
  14008. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  14009. msm_routing_lsm_port_get,
  14010. msm_routing_lsm_port_put),
  14011. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  14012. msm_routing_lsm_port_get,
  14013. msm_routing_lsm_port_put),
  14014. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  14015. msm_routing_lsm_port_get,
  14016. msm_routing_lsm_port_put),
  14017. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  14018. msm_routing_lsm_port_get,
  14019. msm_routing_lsm_port_put),
  14020. };
  14021. static const char * const aanc_slim_0_rx_text[] = {
  14022. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  14023. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  14024. };
  14025. static const struct soc_enum aanc_slim_0_rx_enum =
  14026. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  14027. aanc_slim_0_rx_text);
  14028. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  14029. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  14030. msm_routing_slim_0_rx_aanc_mux_get,
  14031. msm_routing_slim_0_rx_aanc_mux_put)
  14032. };
  14033. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  14034. struct snd_ctl_elem_value *ucontrol)
  14035. {
  14036. ucontrol->value.integer.value[0] = aanc_level;
  14037. return 0;
  14038. }
  14039. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  14040. struct snd_ctl_elem_value *ucontrol)
  14041. {
  14042. int ret = 0;
  14043. mutex_lock(&routing_lock);
  14044. aanc_level = ucontrol->value.integer.value[0];
  14045. pr_debug("%s: value: %ld\n",
  14046. __func__, ucontrol->value.integer.value[0]);
  14047. ret = afe_set_aanc_noise_level(aanc_level);
  14048. mutex_unlock(&routing_lock);
  14049. return ret;
  14050. }
  14051. static const struct snd_kcontrol_new aanc_noise_level[] = {
  14052. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  14053. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  14054. };
  14055. static int msm_routing_get_stereo_to_custom_stereo_control(
  14056. struct snd_kcontrol *kcontrol,
  14057. struct snd_ctl_elem_value *ucontrol)
  14058. {
  14059. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  14060. return 0;
  14061. }
  14062. static int msm_routing_put_stereo_to_custom_stereo_control(
  14063. struct snd_kcontrol *kcontrol,
  14064. struct snd_ctl_elem_value *ucontrol)
  14065. {
  14066. int flag = 0, i = 0, rc = 0, idx = 0;
  14067. int be_index = 0, port_id, topo_id;
  14068. unsigned int session_id = 0;
  14069. uint16_t op_FL_ip_FL_weight = 0;
  14070. uint16_t op_FL_ip_FR_weight = 0;
  14071. uint16_t op_FR_ip_FL_weight = 0;
  14072. uint16_t op_FR_ip_FR_weight = 0;
  14073. flag = ucontrol->value.integer.value[0];
  14074. pr_debug("%s E flag %d\n", __func__, flag);
  14075. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  14076. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  14077. __func__, is_custom_stereo_on, flag);
  14078. return 0;
  14079. }
  14080. is_custom_stereo_on = flag ? true : false;
  14081. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  14082. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14083. port_id = msm_bedais[be_index].port_id;
  14084. if (!msm_bedais[be_index].active)
  14085. continue;
  14086. if ((port_id != SLIMBUS_0_RX) &&
  14087. (port_id != RT_PROXY_PORT_001_RX) &&
  14088. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  14089. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  14090. continue;
  14091. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14092. MSM_FRONTEND_DAI_MM_SIZE) {
  14093. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  14094. LEGACY_PCM_MODE)
  14095. goto skip_send_custom_stereo;
  14096. session_id =
  14097. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  14098. if (is_custom_stereo_on) {
  14099. op_FL_ip_FL_weight =
  14100. Q14_GAIN_ZERO_POINT_FIVE;
  14101. op_FL_ip_FR_weight =
  14102. Q14_GAIN_ZERO_POINT_FIVE;
  14103. op_FR_ip_FL_weight =
  14104. Q14_GAIN_ZERO_POINT_FIVE;
  14105. op_FR_ip_FR_weight =
  14106. Q14_GAIN_ZERO_POINT_FIVE;
  14107. } else {
  14108. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  14109. op_FL_ip_FR_weight = 0;
  14110. op_FR_ip_FL_weight = 0;
  14111. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  14112. }
  14113. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14114. unsigned long copp =
  14115. session_copp_map[i]
  14116. [SESSION_TYPE_RX][be_index];
  14117. if (!test_bit(idx, &copp))
  14118. goto skip_send_custom_stereo;
  14119. topo_id = adm_get_topology_for_port_copp_idx(
  14120. msm_bedais[be_index].port_id, idx);
  14121. if (topo_id < 0)
  14122. pr_debug("%s:Err:custom stereo topo %d",
  14123. __func__, topo_id);
  14124. pr_debug("idx %d\n", idx);
  14125. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14126. rc = msm_ds2_dap_set_custom_stereo_onoff
  14127. (msm_bedais[be_index].port_id,
  14128. idx, is_custom_stereo_on);
  14129. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14130. rc = dolby_dap_set_custom_stereo_onoff(
  14131. msm_bedais[be_index].port_id,
  14132. idx, is_custom_stereo_on);
  14133. else
  14134. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14135. (msm_bedais[be_index].port_id,
  14136. idx, session_id,
  14137. op_FL_ip_FL_weight,
  14138. op_FL_ip_FR_weight,
  14139. op_FR_ip_FL_weight,
  14140. op_FR_ip_FR_weight);
  14141. if (rc < 0)
  14142. skip_send_custom_stereo:
  14143. pr_err("%s: err setting custom stereo\n",
  14144. __func__);
  14145. }
  14146. }
  14147. }
  14148. return 0;
  14149. }
  14150. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14151. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14152. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14153. msm_routing_put_stereo_to_custom_stereo_control),
  14154. };
  14155. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14156. struct snd_ctl_elem_value *ucontrol)
  14157. {
  14158. return 0;
  14159. }
  14160. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14161. struct snd_ctl_elem_value *ucontrol)
  14162. {
  14163. int i = 0, j;
  14164. int num_app_types = ucontrol->value.integer.value[i++];
  14165. pr_debug("%s\n", __func__);
  14166. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14167. sizeof(struct msm_pcm_routing_app_type_data));
  14168. if (num_app_types > MAX_APP_TYPES) {
  14169. pr_err("%s: number of app types exceed the max supported\n",
  14170. __func__);
  14171. return -EINVAL;
  14172. }
  14173. for (j = 0; j < num_app_types; j++) {
  14174. app_type_cfg[j].app_type =
  14175. ucontrol->value.integer.value[i++];
  14176. app_type_cfg[j].sample_rate =
  14177. ucontrol->value.integer.value[i++];
  14178. app_type_cfg[j].bit_width =
  14179. ucontrol->value.integer.value[i++];
  14180. }
  14181. return 0;
  14182. }
  14183. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14184. struct snd_ctl_elem_value *ucontrol)
  14185. {
  14186. int j, fe_id, be_id, port_type;
  14187. int ret = 0;
  14188. unsigned long copp;
  14189. struct msm_pcm_routing_bdai_data *bedai;
  14190. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14191. SESSION_TYPE_RX;
  14192. int app_type = ucontrol->value.integer.value[1];
  14193. int gain = (ucontrol->value.integer.value[2] +
  14194. ucontrol->value.integer.value[3])/2;
  14195. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14196. MSM_AFE_PORT_TYPE_TX;
  14197. mutex_lock(&routing_lock);
  14198. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14199. if (is_be_dai_extproc(be_id))
  14200. continue;
  14201. bedai = &msm_bedais[be_id];
  14202. if (afe_get_port_type(bedai->port_id) != port_type)
  14203. continue;
  14204. if (!bedai->active)
  14205. continue;
  14206. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14207. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14208. continue;
  14209. if (app_type !=
  14210. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14211. continue;
  14212. copp = session_copp_map[fe_id][dir][be_id];
  14213. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14214. if (!test_bit(j, &copp))
  14215. continue;
  14216. ret |= adm_set_volume(bedai->port_id, j, gain);
  14217. }
  14218. }
  14219. }
  14220. mutex_unlock(&routing_lock);
  14221. return ret ? -EINVAL : 0;
  14222. }
  14223. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14224. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14225. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14226. msm_routing_put_app_type_cfg_control),
  14227. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14228. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14229. };
  14230. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14231. struct snd_ctl_elem_value *ucontrol)
  14232. {
  14233. int copp_idx, fe_id, be_id, port_type;
  14234. int ret = 0;
  14235. unsigned long copp;
  14236. struct msm_pcm_routing_bdai_data *bedai;
  14237. u8 *packed_params = NULL;
  14238. struct param_hdr_v3 param_hdr;
  14239. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14240. sizeof(uint32_t));
  14241. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14242. SESSION_TYPE_RX;
  14243. int app_type = ucontrol->value.integer.value[1];
  14244. int module_id = ucontrol->value.integer.value[2];
  14245. int instance_id = ucontrol->value.integer.value[3];
  14246. int param_id = ucontrol->value.integer.value[4];
  14247. int param_value = ucontrol->value.integer.value[5];
  14248. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14249. MSM_AFE_PORT_TYPE_TX;
  14250. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14251. __func__, app_type, module_id,
  14252. instance_id, param_id, param_value);
  14253. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14254. if (!packed_params)
  14255. return -ENOMEM;
  14256. memset(&param_hdr, 0, sizeof(param_hdr));
  14257. param_hdr.module_id = module_id;
  14258. param_hdr.instance_id = instance_id;
  14259. param_hdr.param_id = param_id;
  14260. param_hdr.param_size = sizeof(uint32_t);
  14261. packed_param_size = 0;
  14262. mutex_lock(&routing_lock);
  14263. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14264. if (is_be_dai_extproc(be_id))
  14265. continue;
  14266. bedai = &msm_bedais[be_id];
  14267. if (afe_get_port_type(bedai->port_id) != port_type)
  14268. continue;
  14269. if (!bedai->active)
  14270. continue;
  14271. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14272. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14273. continue;
  14274. if (app_type !=
  14275. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14276. continue;
  14277. copp = session_copp_map[fe_id][dir][be_id];
  14278. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14279. copp_idx++) {
  14280. if (!test_bit(copp_idx, &copp))
  14281. continue;
  14282. ret = q6common_pack_pp_params(packed_params,
  14283. &param_hdr,
  14284. (u8 *) &param_value,
  14285. &packed_param_size);
  14286. if (ret) {
  14287. pr_err("%s: Failed to pack params, error %d\n",
  14288. __func__, ret);
  14289. goto done;
  14290. }
  14291. ret = adm_set_pp_params(bedai->port_id,
  14292. copp_idx, NULL,
  14293. packed_params,
  14294. packed_param_size);
  14295. if (ret) {
  14296. pr_err("%s: Setting param failed with err=%d\n",
  14297. __func__, ret);
  14298. ret = -EINVAL;
  14299. goto done;
  14300. }
  14301. }
  14302. }
  14303. }
  14304. done:
  14305. mutex_unlock(&routing_lock);
  14306. kfree(packed_params);
  14307. return ret;
  14308. }
  14309. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14310. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14311. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14312. };
  14313. static int msm_routing_get_lsm_app_type_cfg_control(
  14314. struct snd_kcontrol *kcontrol,
  14315. struct snd_ctl_elem_value *ucontrol)
  14316. {
  14317. return 0;
  14318. }
  14319. static int msm_routing_put_lsm_app_type_cfg_control(
  14320. struct snd_kcontrol *kcontrol,
  14321. struct snd_ctl_elem_value *ucontrol)
  14322. {
  14323. int shift = ((struct soc_multi_mixer_control *)
  14324. kcontrol->private_value)->shift;
  14325. int i = 0, j;
  14326. int num_app_types = ucontrol->value.integer.value[i++];
  14327. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14328. sizeof(struct msm_pcm_routing_app_type_data));
  14329. if (num_app_types > MAX_APP_TYPES) {
  14330. pr_err("%s: number of app types exceed the max supported\n",
  14331. __func__);
  14332. return -EINVAL;
  14333. }
  14334. for (j = 0; j < num_app_types; j++) {
  14335. lsm_app_type_cfg[j].app_type =
  14336. ucontrol->value.integer.value[i++];
  14337. lsm_app_type_cfg[j].sample_rate =
  14338. ucontrol->value.integer.value[i++];
  14339. lsm_app_type_cfg[j].bit_width =
  14340. ucontrol->value.integer.value[i++];
  14341. /* Shift of 1 indicates this is V2 mixer control */
  14342. if (shift == 1)
  14343. lsm_app_type_cfg[j].num_out_channels =
  14344. ucontrol->value.integer.value[i++];
  14345. }
  14346. return 0;
  14347. }
  14348. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14349. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14350. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14351. msm_routing_put_lsm_app_type_cfg_control),
  14352. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14353. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14354. msm_routing_put_lsm_app_type_cfg_control),
  14355. };
  14356. static int msm_routing_get_use_ds1_or_ds2_control(
  14357. struct snd_kcontrol *kcontrol,
  14358. struct snd_ctl_elem_value *ucontrol)
  14359. {
  14360. ucontrol->value.integer.value[0] = is_ds2_on;
  14361. return 0;
  14362. }
  14363. static int msm_routing_put_use_ds1_or_ds2_control(
  14364. struct snd_kcontrol *kcontrol,
  14365. struct snd_ctl_elem_value *ucontrol)
  14366. {
  14367. is_ds2_on = ucontrol->value.integer.value[0];
  14368. return 0;
  14369. }
  14370. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14371. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14372. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14373. msm_routing_put_use_ds1_or_ds2_control),
  14374. };
  14375. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14376. struct snd_ctl_elem_value *ucontrol) {
  14377. int rc = 0;
  14378. int be_idx = 0;
  14379. char *param_value;
  14380. int *update_param_value;
  14381. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14382. struct param_hdr_v3 param_hdr;
  14383. param_value = kzalloc(param_size, GFP_KERNEL);
  14384. if (!param_value)
  14385. return -ENOMEM;
  14386. memset(&param_hdr, 0, sizeof(param_hdr));
  14387. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14388. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14389. break;
  14390. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14391. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14392. param_hdr.instance_id = INSTANCE_ID_0;
  14393. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14394. param_hdr.param_size = param_size;
  14395. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14396. NULL, &param_hdr, (u8 *) param_value);
  14397. if (rc) {
  14398. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14399. kfree(param_value);
  14400. return -EINVAL;
  14401. }
  14402. update_param_value = (int *)param_value;
  14403. ucontrol->value.integer.value[0] = update_param_value[0];
  14404. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14405. __func__, update_param_value[0]);
  14406. }
  14407. kfree(param_value);
  14408. return 0;
  14409. }
  14410. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14411. struct snd_ctl_elem_value *ucontrol)
  14412. {
  14413. voc_session_id = ucontrol->value.integer.value[0];
  14414. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14415. return 0;
  14416. }
  14417. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14418. struct snd_ctl_elem_value *ucontrol)
  14419. {
  14420. ucontrol->value.integer.value[0] = voc_session_id;
  14421. return 0;
  14422. }
  14423. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14424. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14425. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14426. msm_voc_session_id_put),
  14427. };
  14428. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14429. struct snd_ctl_elem_info *uinfo)
  14430. {
  14431. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14432. uinfo->count = sizeof(struct sound_focus_param);
  14433. return 0;
  14434. }
  14435. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14436. struct snd_ctl_elem_value *ucontrol)
  14437. {
  14438. int ret = 0;
  14439. struct sound_focus_param soundFocusData;
  14440. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14441. sizeof(struct sound_focus_param));
  14442. ret = voc_set_sound_focus(soundFocusData);
  14443. if (ret) {
  14444. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14445. __func__, ret);
  14446. ret = -EINVAL;
  14447. }
  14448. return ret;
  14449. }
  14450. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14451. struct snd_ctl_elem_value *ucontrol)
  14452. {
  14453. int ret = 0;
  14454. struct sound_focus_param soundFocusData;
  14455. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14456. ret = voc_get_sound_focus(&soundFocusData);
  14457. if (ret) {
  14458. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14459. __func__, ret);
  14460. ret = -EINVAL;
  14461. goto done;
  14462. }
  14463. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14464. sizeof(struct sound_focus_param));
  14465. done:
  14466. return ret;
  14467. }
  14468. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14469. struct snd_ctl_elem_info *uinfo)
  14470. {
  14471. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14472. uinfo->count = sizeof(struct source_tracking_param);
  14473. return 0;
  14474. }
  14475. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14476. struct snd_ctl_elem_value *ucontrol)
  14477. {
  14478. int ret = 0;
  14479. struct source_tracking_param sourceTrackingData;
  14480. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14481. ret = voc_get_source_tracking(&sourceTrackingData);
  14482. if (ret) {
  14483. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14484. __func__, ret);
  14485. ret = -EINVAL;
  14486. goto done;
  14487. }
  14488. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14489. sizeof(struct source_tracking_param));
  14490. done:
  14491. return ret;
  14492. }
  14493. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14494. int *copp_idx)
  14495. {
  14496. int i, idx, be_idx;
  14497. int ret = 0;
  14498. unsigned long copp;
  14499. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14500. ret = q6audio_validate_port(port_id);
  14501. if (ret < 0) {
  14502. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14503. __func__, port_id, ret);
  14504. ret = -EINVAL;
  14505. goto done;
  14506. }
  14507. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14508. if (msm_bedais[be_idx].port_id == port_id)
  14509. break;
  14510. }
  14511. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14512. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14513. ret = -EINVAL;
  14514. goto done;
  14515. }
  14516. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14517. MSM_FRONTEND_DAI_MM_SIZE) {
  14518. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14519. copp = session_copp_map[i]
  14520. [session_type][be_idx];
  14521. if (test_bit(idx, &copp))
  14522. break;
  14523. }
  14524. if (idx >= MAX_COPPS_PER_PORT)
  14525. continue;
  14526. else
  14527. break;
  14528. }
  14529. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14530. pr_err("%s: Invalid FE, exiting\n", __func__);
  14531. ret = -EINVAL;
  14532. goto done;
  14533. }
  14534. *copp_idx = idx;
  14535. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14536. done:
  14537. return ret;
  14538. }
  14539. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14540. const char *prefix, int *port_id)
  14541. {
  14542. int ret = 0;
  14543. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14544. /*
  14545. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14546. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14547. * and compare the string with the backend name to derive the port id.
  14548. */
  14549. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14550. "SLIMBUS_0")) {
  14551. *port_id = SLIMBUS_0_TX;
  14552. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14553. "TERT_MI2S")) {
  14554. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14555. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14556. "INT3_MI2S")) {
  14557. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14558. } else {
  14559. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14560. __func__, kcontrol->id.name);
  14561. ret = -EINVAL;
  14562. goto done;
  14563. }
  14564. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14565. __func__, kcontrol->id.name, *port_id);
  14566. done:
  14567. return ret;
  14568. }
  14569. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14570. struct snd_ctl_elem_value *ucontrol)
  14571. {
  14572. int ret = 0;
  14573. struct sound_focus_param soundFocusData;
  14574. int port_id, copp_idx;
  14575. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14576. "Sound Focus Audio Tx ", &port_id);
  14577. if (ret != 0) {
  14578. pr_err("%s: Error in deriving port id, err=%d\n",
  14579. __func__, ret);
  14580. ret = -EINVAL;
  14581. goto done;
  14582. }
  14583. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14584. &copp_idx);
  14585. if (ret) {
  14586. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14587. __func__, port_id);
  14588. ret = -EINVAL;
  14589. goto done;
  14590. }
  14591. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14592. sizeof(struct sound_focus_param));
  14593. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14594. if (ret) {
  14595. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14596. __func__, ret);
  14597. ret = -EINVAL;
  14598. goto done;
  14599. }
  14600. done:
  14601. return ret;
  14602. }
  14603. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14604. struct snd_ctl_elem_value *ucontrol)
  14605. {
  14606. int ret = 0;
  14607. struct sound_focus_param soundFocusData;
  14608. int port_id, copp_idx;
  14609. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14610. "Sound Focus Audio Tx ", &port_id);
  14611. if (ret) {
  14612. pr_err("%s: Error in deriving port id, err=%d\n",
  14613. __func__, ret);
  14614. ret = -EINVAL;
  14615. goto done;
  14616. }
  14617. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14618. &copp_idx);
  14619. if (ret) {
  14620. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14621. __func__, port_id);
  14622. ret = -EINVAL;
  14623. goto done;
  14624. }
  14625. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14626. if (ret) {
  14627. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14628. __func__, ret);
  14629. ret = -EINVAL;
  14630. goto done;
  14631. }
  14632. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14633. sizeof(struct sound_focus_param));
  14634. done:
  14635. return ret;
  14636. }
  14637. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14638. struct snd_ctl_elem_value *ucontrol)
  14639. {
  14640. int ret = 0;
  14641. struct source_tracking_param sourceTrackingData;
  14642. int port_id, copp_idx;
  14643. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14644. "Source Tracking Audio Tx ", &port_id);
  14645. if (ret) {
  14646. pr_err("%s: Error in deriving port id, err=%d\n",
  14647. __func__, ret);
  14648. ret = -EINVAL;
  14649. goto done;
  14650. }
  14651. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14652. &copp_idx);
  14653. if (ret) {
  14654. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14655. __func__, port_id);
  14656. ret = -EINVAL;
  14657. goto done;
  14658. }
  14659. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14660. if (ret) {
  14661. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14662. __func__, ret);
  14663. ret = -EINVAL;
  14664. goto done;
  14665. }
  14666. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14667. sizeof(struct source_tracking_param));
  14668. done:
  14669. return ret;
  14670. }
  14671. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14672. {
  14673. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14674. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14675. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14676. .info = msm_sound_focus_info,
  14677. .get = msm_voice_sound_focus_get,
  14678. .put = msm_voice_sound_focus_put,
  14679. },
  14680. {
  14681. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14682. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14683. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14684. .info = msm_source_tracking_info,
  14685. .get = msm_voice_source_tracking_get,
  14686. },
  14687. {
  14688. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14690. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14691. .info = msm_sound_focus_info,
  14692. .get = msm_audio_sound_focus_get,
  14693. .put = msm_audio_sound_focus_put,
  14694. },
  14695. {
  14696. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14697. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14698. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14699. .info = msm_source_tracking_info,
  14700. .get = msm_audio_source_tracking_get,
  14701. },
  14702. {
  14703. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14704. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14705. .name = "Sound Focus Voice Tx TERT_MI2S",
  14706. .info = msm_sound_focus_info,
  14707. .get = msm_voice_sound_focus_get,
  14708. .put = msm_voice_sound_focus_put,
  14709. },
  14710. {
  14711. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14712. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14713. .name = "Source Tracking Voice Tx TERT_MI2S",
  14714. .info = msm_source_tracking_info,
  14715. .get = msm_voice_source_tracking_get,
  14716. },
  14717. {
  14718. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14720. .name = "Sound Focus Audio Tx TERT_MI2S",
  14721. .info = msm_sound_focus_info,
  14722. .get = msm_audio_sound_focus_get,
  14723. .put = msm_audio_sound_focus_put,
  14724. },
  14725. {
  14726. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14727. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14728. .name = "Source Tracking Audio Tx TERT_MI2S",
  14729. .info = msm_source_tracking_info,
  14730. .get = msm_audio_source_tracking_get,
  14731. },
  14732. {
  14733. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14734. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14735. .name = "Sound Focus Voice Tx INT3_MI2S",
  14736. .info = msm_sound_focus_info,
  14737. .get = msm_voice_sound_focus_get,
  14738. .put = msm_voice_sound_focus_put,
  14739. },
  14740. {
  14741. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14742. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14743. .name = "Source Tracking Voice Tx INT3_MI2S",
  14744. .info = msm_source_tracking_info,
  14745. .get = msm_voice_source_tracking_get,
  14746. },
  14747. {
  14748. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14750. .name = "Sound Focus Audio Tx INT3_MI2S",
  14751. .info = msm_sound_focus_info,
  14752. .get = msm_audio_sound_focus_get,
  14753. .put = msm_audio_sound_focus_put,
  14754. },
  14755. {
  14756. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14757. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14758. .name = "Source Tracking Audio Tx INT3_MI2S",
  14759. .info = msm_source_tracking_info,
  14760. .get = msm_audio_source_tracking_get,
  14761. },
  14762. };
  14763. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14764. struct snd_ctl_elem_value *ucontrol)
  14765. {
  14766. int ret = 0;
  14767. int item;
  14768. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14769. pr_debug("%s item is %d\n", __func__,
  14770. ucontrol->value.enumerated.item[0]);
  14771. mutex_lock(&routing_lock);
  14772. item = ucontrol->value.enumerated.item[0];
  14773. if (item < e->items) {
  14774. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14775. __func__, e->shift_l, e->values[item]);
  14776. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14777. e->values[item] < MSM_BACKEND_DAI_MAX)
  14778. /* Enable feedback TX path */
  14779. ret = afe_spk_prot_feed_back_cfg(
  14780. msm_bedais[e->values[item]].port_id,
  14781. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14782. else {
  14783. pr_debug("%s values are out of range item %d\n",
  14784. __func__, e->values[item]);
  14785. /* Disable feedback TX path */
  14786. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14787. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14788. else
  14789. ret = -EINVAL;
  14790. }
  14791. } else {
  14792. pr_err("%s item value is out of range item\n", __func__);
  14793. ret = -EINVAL;
  14794. }
  14795. mutex_unlock(&routing_lock);
  14796. return ret;
  14797. }
  14798. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14799. struct snd_ctl_elem_value *ucontrol)
  14800. {
  14801. int ret = 0;
  14802. int item;
  14803. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14804. pr_debug("%s item is %d\n", __func__,
  14805. ucontrol->value.enumerated.item[0]);
  14806. mutex_lock(&routing_lock);
  14807. item = ucontrol->value.enumerated.item[0];
  14808. if (item < e->items) {
  14809. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14810. __func__, e->shift_l, e->values[item]);
  14811. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14812. e->values[item] < MSM_BACKEND_DAI_MAX)
  14813. /* Enable feedback TX path */
  14814. ret = afe_spk_prot_feed_back_cfg(
  14815. msm_bedais[e->values[item]].port_id,
  14816. msm_bedais[e->shift_l].port_id,
  14817. 1, 1, 1);
  14818. else {
  14819. pr_debug("%s values are out of range item %d\n",
  14820. __func__, e->values[item]);
  14821. /* Disable feedback TX path */
  14822. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14823. ret = afe_spk_prot_feed_back_cfg(0,
  14824. 0, 0, 0, 0);
  14825. else
  14826. ret = -EINVAL;
  14827. }
  14828. } else {
  14829. pr_err("%s item value is out of range item\n", __func__);
  14830. ret = -EINVAL;
  14831. }
  14832. mutex_unlock(&routing_lock);
  14833. return ret;
  14834. }
  14835. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  14836. struct snd_ctl_elem_value *ucontrol)
  14837. {
  14838. pr_debug("%s\n", __func__);
  14839. return 0;
  14840. }
  14841. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  14842. struct snd_ctl_elem_value *ucontrol)
  14843. {
  14844. pr_debug("%s\n", __func__);
  14845. ucontrol->value.enumerated.item[0] = 0;
  14846. return 0;
  14847. }
  14848. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  14849. "ZERO", "SLIM4_TX"
  14850. };
  14851. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  14852. "ZERO", "SLIM4_TX"
  14853. };
  14854. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  14855. "ZERO", "WSA_CDC_DMA_TX_0"
  14856. };
  14857. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  14858. "ZERO", "WSA_CDC_DMA_TX_0"
  14859. };
  14860. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  14861. "ZERO", "SENARY_TX"
  14862. };
  14863. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  14864. "ZERO", "INT5_MI2S_TX"
  14865. };
  14866. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  14867. "ZERO", "INT5_MI2S_TX"
  14868. };
  14869. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  14870. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14871. };
  14872. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  14873. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14874. };
  14875. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  14876. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14877. };
  14878. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  14879. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14880. };
  14881. static const int const mi2s_rx_vi_fb_tx_value[] = {
  14882. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  14883. };
  14884. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  14885. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14886. };
  14887. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  14888. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14889. };
  14890. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  14891. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14892. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  14893. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  14894. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  14895. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14896. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  14897. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  14898. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  14899. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14900. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  14901. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  14902. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  14903. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14904. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  14905. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  14906. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  14907. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  14908. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  14909. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  14910. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  14911. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14912. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  14913. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  14914. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  14915. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  14916. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14917. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  14918. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  14919. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  14920. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  14921. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  14922. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14923. spkr_prot_put_vi_lch_port);
  14924. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  14925. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  14926. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14927. spkr_prot_put_vi_rch_port);
  14928. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  14929. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  14930. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14931. spkr_prot_put_vi_lch_port);
  14932. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  14933. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  14934. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14935. spkr_prot_put_vi_rch_port);
  14936. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  14937. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  14938. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  14939. spkr_prot_put_vi_lch_port);
  14940. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  14941. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  14942. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  14943. spkr_prot_put_vi_lch_port);
  14944. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  14945. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  14946. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  14947. spkr_prot_put_vi_rch_port);
  14948. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  14949. /* Frontend AIF */
  14950. /* Widget name equals to Front-End DAI name<Need confirmation>,
  14951. * Stream name must contains substring of front-end dai name
  14952. */
  14953. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  14954. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  14955. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  14956. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  14957. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  14958. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  14959. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  14960. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  14961. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  14962. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  14963. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  14964. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  14965. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  14966. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  14967. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  14968. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  14969. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  14970. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  14971. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  14972. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  14973. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  14974. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  14975. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  14976. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  14977. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  14978. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  14979. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  14980. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  14981. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  14982. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  14983. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  14984. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  14985. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  14986. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  14987. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  14988. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  14989. "VoiceMMode1 Playback", 0, 0, 0, 0),
  14990. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  14991. "VoiceMMode1 Capture", 0, 0, 0, 0),
  14992. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  14993. "VoiceMMode2 Playback", 0, 0, 0, 0),
  14994. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  14995. "VoiceMMode2 Capture", 0, 0, 0, 0),
  14996. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  14997. 0, 0, 0, 0),
  14998. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  14999. 0, 0, 0, 0),
  15000. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  15001. 0, 0, 0, 0),
  15002. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  15003. 0, 0, 0, 0),
  15004. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  15005. 0, 0, 0, 0),
  15006. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  15007. 0, 0, 0, 0),
  15008. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  15009. 0, 0, 0, 0),
  15010. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  15011. 0, 0, 0, 0),
  15012. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  15013. 0, 0, 0, 0),
  15014. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  15015. 0, 0, 0, 0),
  15016. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  15017. 0, 0, 0, 0),
  15018. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  15019. 0, 0, 0, 0),
  15020. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  15021. 0, 0, 0, 0),
  15022. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  15023. 0, 0, 0, 0),
  15024. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  15025. 0, 0, 0, 0),
  15026. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  15027. 0, 0, 0, 0),
  15028. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  15029. 0, 0, 0, 0),
  15030. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  15031. 0, 0, 0, 0),
  15032. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  15033. 0, 0, 0, 0),
  15034. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  15035. 0, 0, 0, 0),
  15036. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  15037. 0, 0, 0, 0),
  15038. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  15039. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  15040. 0, 0, 0, 0),
  15041. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  15042. "INT0 MI2S_RX Hostless Playback",
  15043. 0, 0, 0, 0),
  15044. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  15045. "INT4 MI2S_RX Hostless Playback",
  15046. 0, 0, 0, 0),
  15047. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  15048. "Primary MI2S_RX Hostless Playback",
  15049. 0, 0, 0, 0),
  15050. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  15051. "Secondary MI2S_RX Hostless Playback",
  15052. 0, 0, 0, 0),
  15053. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  15054. "Tertiary MI2S_RX Hostless Playback",
  15055. 0, 0, 0, 0),
  15056. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  15057. "Quaternary MI2S_RX Hostless Playback",
  15058. 0, 0, 0, 0),
  15059. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  15060. "Quinary MI2S_RX Hostless Playback",
  15061. 0, 0, 0, 0),
  15062. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  15063. 0, 0, 0, 0),
  15064. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  15065. 0, 0, 0, 0),
  15066. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  15067. 0, 0, 0, 0),
  15068. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  15069. 0, 0, 0, 0),
  15070. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  15071. 0, 0, 0, 0),
  15072. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  15073. "INT3 MI2S_TX Hostless Capture",
  15074. 0, 0, 0, 0),
  15075. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  15076. "Tertiary MI2S_TX Hostless Capture",
  15077. 0, 0, 0, 0),
  15078. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  15079. "Secondary MI2S_TX Hostless Capture",
  15080. 0, 0, 0, 0),
  15081. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  15082. "Primary MI2S_TX Hostless Capture",
  15083. 0, 0, 0, 0),
  15084. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  15085. 0, 0, 0, 0),
  15086. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  15087. 0, 0, 0, 0),
  15088. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  15089. "Quaternary MI2S_TX Hostless Capture",
  15090. 0, 0, 0, 0),
  15091. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  15092. "Quinary MI2S_TX Hostless Capture",
  15093. 0, 0, 0, 0),
  15094. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  15095. "Primary TDM0 Hostless Playback",
  15096. 0, 0, 0, 0),
  15097. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  15098. "Primary TDM0 Hostless Capture",
  15099. 0, 0, 0, 0),
  15100. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  15101. "Primary TDM1 Hostless Playback",
  15102. 0, 0, 0, 0),
  15103. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  15104. "Primary TDM1 Hostless Capture",
  15105. 0, 0, 0, 0),
  15106. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  15107. "Primary TDM2 Hostless Playback",
  15108. 0, 0, 0, 0),
  15109. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  15110. "Primary TDM2 Hostless Capture",
  15111. 0, 0, 0, 0),
  15112. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  15113. "Primary TDM3 Hostless Playback",
  15114. 0, 0, 0, 0),
  15115. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  15116. "Primary TDM3 Hostless Capture",
  15117. 0, 0, 0, 0),
  15118. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15119. "Primary TDM4 Hostless Playback",
  15120. 0, 0, 0, 0),
  15121. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15122. "Primary TDM4 Hostless Capture",
  15123. 0, 0, 0, 0),
  15124. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15125. "Primary TDM5 Hostless Playback",
  15126. 0, 0, 0, 0),
  15127. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15128. "Primary TDM5 Hostless Capture",
  15129. 0, 0, 0, 0),
  15130. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15131. "Primary TDM6 Hostless Playback",
  15132. 0, 0, 0, 0),
  15133. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15134. "Primary TDM6 Hostless Capture",
  15135. 0, 0, 0, 0),
  15136. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15137. "Primary TDM7 Hostless Playback",
  15138. 0, 0, 0, 0),
  15139. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15140. "Primary TDM7 Hostless Capture",
  15141. 0, 0, 0, 0),
  15142. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15143. "Secondary TDM0 Hostless Playback",
  15144. 0, 0, 0, 0),
  15145. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15146. "Secondary TDM0 Hostless Capture",
  15147. 0, 0, 0, 0),
  15148. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15149. "Secondary TDM1 Hostless Playback",
  15150. 0, 0, 0, 0),
  15151. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15152. "Secondary TDM1 Hostless Capture",
  15153. 0, 0, 0, 0),
  15154. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15155. "Secondary TDM2 Hostless Playback",
  15156. 0, 0, 0, 0),
  15157. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15158. "Secondary TDM2 Hostless Capture",
  15159. 0, 0, 0, 0),
  15160. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15161. "Secondary TDM3 Hostless Playback",
  15162. 0, 0, 0, 0),
  15163. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15164. "Secondary TDM3 Hostless Capture",
  15165. 0, 0, 0, 0),
  15166. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15167. "Secondary TDM4 Hostless Playback",
  15168. 0, 0, 0, 0),
  15169. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15170. "Secondary TDM4 Hostless Capture",
  15171. 0, 0, 0, 0),
  15172. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15173. "Secondary TDM5 Hostless Playback",
  15174. 0, 0, 0, 0),
  15175. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15176. "Secondary TDM5 Hostless Capture",
  15177. 0, 0, 0, 0),
  15178. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15179. "Secondary TDM6 Hostless Playback",
  15180. 0, 0, 0, 0),
  15181. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15182. "Secondary TDM6 Hostless Capture",
  15183. 0, 0, 0, 0),
  15184. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15185. "Secondary TDM7 Hostless Playback",
  15186. 0, 0, 0, 0),
  15187. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15188. "Secondary TDM7 Hostless Capture",
  15189. 0, 0, 0, 0),
  15190. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15191. "Tertiary TDM0 Hostless Playback",
  15192. 0, 0, 0, 0),
  15193. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15194. "Tertiary TDM0 Hostless Capture",
  15195. 0, 0, 0, 0),
  15196. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15197. "Tertiary TDM1 Hostless Playback",
  15198. 0, 0, 0, 0),
  15199. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15200. "Tertiary TDM1 Hostless Capture",
  15201. 0, 0, 0, 0),
  15202. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15203. "Tertiary TDM2 Hostless Playback",
  15204. 0, 0, 0, 0),
  15205. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15206. "Tertiary TDM2 Hostless Capture",
  15207. 0, 0, 0, 0),
  15208. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15209. "Tertiary TDM3 Hostless Playback",
  15210. 0, 0, 0, 0),
  15211. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15212. "Tertiary TDM3 Hostless Capture",
  15213. 0, 0, 0, 0),
  15214. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15215. "Tertiary TDM4 Hostless Playback",
  15216. 0, 0, 0, 0),
  15217. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15218. "Tertiary TDM4 Hostless Capture",
  15219. 0, 0, 0, 0),
  15220. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15221. "Tertiary TDM5 Hostless Playback",
  15222. 0, 0, 0, 0),
  15223. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15224. "Tertiary TDM5 Hostless Capture",
  15225. 0, 0, 0, 0),
  15226. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15227. "Tertiary TDM6 Hostless Playback",
  15228. 0, 0, 0, 0),
  15229. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15230. "Tertiary TDM6 Hostless Capture",
  15231. 0, 0, 0, 0),
  15232. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15233. "Tertiary TDM7 Hostless Playback",
  15234. 0, 0, 0, 0),
  15235. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15236. "Tertiary TDM7 Hostless Capture",
  15237. 0, 0, 0, 0),
  15238. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15239. "Quaternary TDM0 Hostless Playback",
  15240. 0, 0, 0, 0),
  15241. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15242. "Quaternary TDM0 Hostless Capture",
  15243. 0, 0, 0, 0),
  15244. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15245. "Quaternary TDM1 Hostless Playback",
  15246. 0, 0, 0, 0),
  15247. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15248. "Quaternary TDM1 Hostless Capture",
  15249. 0, 0, 0, 0),
  15250. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15251. "Quaternary TDM2 Hostless Playback",
  15252. 0, 0, 0, 0),
  15253. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15254. "Quaternary TDM2 Hostless Capture",
  15255. 0, 0, 0, 0),
  15256. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15257. "Quaternary TDM3 Hostless Playback",
  15258. 0, 0, 0, 0),
  15259. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15260. "Quaternary TDM3 Hostless Capture",
  15261. 0, 0, 0, 0),
  15262. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15263. "Quaternary TDM4 Hostless Playback",
  15264. 0, 0, 0, 0),
  15265. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15266. "Quaternary TDM4 Hostless Capture",
  15267. 0, 0, 0, 0),
  15268. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15269. "Quaternary TDM5 Hostless Playback",
  15270. 0, 0, 0, 0),
  15271. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15272. "Quaternary TDM5 Hostless Capture",
  15273. 0, 0, 0, 0),
  15274. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15275. "Quaternary TDM6 Hostless Playback",
  15276. 0, 0, 0, 0),
  15277. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15278. "Quaternary TDM6 Hostless Capture",
  15279. 0, 0, 0, 0),
  15280. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15281. "Quaternary TDM7 Hostless Playback",
  15282. 0, 0, 0, 0),
  15283. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15284. "Quaternary TDM7 Hostless Capture",
  15285. 0, 0, 0, 0),
  15286. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15287. "Quinary TDM0 Hostless Playback",
  15288. 0, 0, 0, 0),
  15289. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15290. "Quinary TDM0 Hostless Capture",
  15291. 0, 0, 0, 0),
  15292. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15293. "Quinary TDM1 Hostless Playback",
  15294. 0, 0, 0, 0),
  15295. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15296. "Quinary TDM1 Hostless Capture",
  15297. 0, 0, 0, 0),
  15298. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15299. "Quinary TDM2 Hostless Playback",
  15300. 0, 0, 0, 0),
  15301. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15302. "Quinary TDM2 Hostless Capture",
  15303. 0, 0, 0, 0),
  15304. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15305. "Quinary TDM3 Hostless Playback",
  15306. 0, 0, 0, 0),
  15307. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15308. "Quinary TDM3 Hostless Capture",
  15309. 0, 0, 0, 0),
  15310. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15311. "Quinary TDM4 Hostless Playback",
  15312. 0, 0, 0, 0),
  15313. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15314. "Quinary TDM4 Hostless Capture",
  15315. 0, 0, 0, 0),
  15316. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15317. "Quinary TDM5 Hostless Playback",
  15318. 0, 0, 0, 0),
  15319. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15320. "Quinary TDM5 Hostless Capture",
  15321. 0, 0, 0, 0),
  15322. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15323. "Quinary TDM6 Hostless Playback",
  15324. 0, 0, 0, 0),
  15325. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15326. "Quinary TDM6 Hostless Capture",
  15327. 0, 0, 0, 0),
  15328. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15329. "Quinary TDM7 Hostless Playback",
  15330. 0, 0, 0, 0),
  15331. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15332. "Quinary TDM7 Hostless Capture",
  15333. 0, 0, 0, 0),
  15334. /* LSM */
  15335. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15336. 0, 0, 0, 0),
  15337. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15338. 0, 0, 0, 0),
  15339. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15340. 0, 0, 0, 0),
  15341. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15342. 0, 0, 0, 0),
  15343. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15344. 0, 0, 0, 0),
  15345. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15346. 0, 0, 0, 0),
  15347. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15348. 0, 0, 0, 0),
  15349. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15350. 0, 0, 0, 0),
  15351. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15352. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15353. /* Backend AIF */
  15354. /* Stream name equals to backend dai link stream name */
  15355. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15356. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15357. 0, 0, 0, 0),
  15358. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  15359. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15360. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15361. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15362. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15363. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15364. 0, 0, 0, 0),
  15365. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15366. 0, 0, 0, 0),
  15367. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15368. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15369. 0, 0, 0, 0),
  15370. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15371. 0, 0, 0, 0),
  15372. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15373. 0, 0, 0, 0),
  15374. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15375. "Secondary MI2S Playback SD1",
  15376. 0, 0, 0, 0),
  15377. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15378. 0, 0, 0, 0),
  15379. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15380. 0, 0, 0, 0),
  15381. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15382. 0, 0, 0, 0),
  15383. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15384. 0, 0, 0, 0),
  15385. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15386. 0, 0, 0, 0),
  15387. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15388. 0, 0, 0, 0),
  15389. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15390. 0, 0, 0, 0),
  15391. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15392. 0, 0, 0, 0),
  15393. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15394. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15395. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15396. 0, 0, 0, 0),
  15397. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15398. 0, 0, 0, 0),
  15399. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15400. 0, 0, 0, 0),
  15401. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15402. 0, 0, 0, 0),
  15403. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15404. 0, 0, 0, 0),
  15405. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15406. 0, 0, 0, 0),
  15407. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15408. 0, 0, 0, 0),
  15409. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15410. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15411. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15412. 0, 0, 0, 0),
  15413. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15414. 0, 0, 0, 0),
  15415. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15416. 0, 0, 0, 0),
  15417. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15418. 0, 0, 0, 0),
  15419. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15420. 0, 0, 0, 0),
  15421. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15422. 0, 0, 0, 0),
  15423. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15424. 0, 0, 0, 0),
  15425. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15426. 0, 0, 0, 0),
  15427. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15428. 0, 0, 0, 0),
  15429. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15430. 0, 0, 0, 0),
  15431. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15432. 0, 0, 0, 0),
  15433. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15434. 0, 0, 0, 0),
  15435. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15436. 0, 0, 0, 0),
  15437. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15438. 0, 0, 0, 0),
  15439. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15440. 0, 0, 0, 0),
  15441. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15442. 0, 0, 0, 0),
  15443. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15444. 0, 0, 0, 0),
  15445. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15446. 0, 0, 0, 0),
  15447. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15448. 0, 0, 0, 0),
  15449. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15450. 0, 0, 0, 0),
  15451. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15452. 0, 0, 0, 0),
  15453. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15454. 0, 0, 0, 0),
  15455. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15456. 0, 0, 0, 0),
  15457. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15458. 0, 0, 0, 0),
  15459. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15460. 0, 0, 0, 0),
  15461. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15462. 0, 0, 0, 0),
  15463. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15464. 0, 0, 0, 0),
  15465. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15466. 0, 0, 0, 0),
  15467. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15468. 0, 0, 0, 0),
  15469. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15470. 0, 0, 0, 0),
  15471. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15472. 0, 0, 0, 0),
  15473. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15474. 0, 0, 0, 0),
  15475. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15476. 0, 0, 0, 0),
  15477. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15478. 0, 0, 0, 0),
  15479. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15480. 0, 0, 0, 0),
  15481. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15482. 0, 0, 0, 0),
  15483. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15484. 0, 0, 0, 0),
  15485. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15486. 0, 0, 0, 0),
  15487. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15488. 0, 0, 0, 0),
  15489. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15490. 0, 0, 0, 0),
  15491. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15492. 0, 0, 0, 0),
  15493. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15494. 0, 0, 0, 0),
  15495. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15496. 0, 0, 0, 0),
  15497. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15498. 0, 0, 0, 0),
  15499. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15500. 0, 0, 0, 0),
  15501. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15502. 0, 0, 0, 0),
  15503. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15504. 0, 0, 0, 0),
  15505. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15506. 0, 0, 0, 0),
  15507. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15508. 0, 0, 0, 0),
  15509. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15510. 0, 0, 0, 0),
  15511. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15512. 0, 0, 0, 0),
  15513. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15514. 0, 0, 0, 0),
  15515. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15516. 0, 0, 0, 0),
  15517. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15518. 0, 0, 0, 0),
  15519. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15520. 0, 0, 0, 0),
  15521. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15522. 0, 0, 0, 0),
  15523. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15524. 0, 0, 0, 0),
  15525. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15526. 0, 0, 0, 0),
  15527. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15528. 0, 0, 0, 0),
  15529. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15530. 0, 0, 0, 0),
  15531. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15532. 0, 0, 0, 0),
  15533. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15534. 0, 0, 0, 0),
  15535. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15536. 0, 0, 0, 0),
  15537. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15538. 0, 0, 0, 0),
  15539. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15540. 0, 0, 0, 0),
  15541. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15542. 0, 0, 0, 0),
  15543. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15544. 0, 0, 0, 0),
  15545. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15546. 0, 0, 0, 0),
  15547. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15548. 0, 0, 0, 0),
  15549. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15550. 0, 0, 0, 0),
  15551. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15552. 0, 0, 0, 0),
  15553. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15554. 0, 0, 0, 0),
  15555. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15556. 0, 0, 0, 0),
  15557. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15558. 0, 0, 0, 0),
  15559. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15560. 0, 0, 0, 0),
  15561. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15562. 0, 0, 0, 0),
  15563. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15564. 0, 0, 0, 0),
  15565. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15566. 0, 0, 0, 0),
  15567. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15568. 0, 0, 0, 0),
  15569. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15570. 0, 0, 0, 0),
  15571. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15572. 0, 0, 0, 0),
  15573. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15574. 0, 0, 0, 0),
  15575. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15576. 0, 0, 0, 0),
  15577. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15578. 0, 0, 0, 0),
  15579. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15580. 0, 0, 0, 0),
  15581. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15582. 0, 0, 0, 0),
  15583. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15584. 0, 0, 0, 0),
  15585. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15586. 0, 0, 0, 0),
  15587. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15588. 0, 0, 0, 0),
  15589. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15590. 0, 0, 0, 0),
  15591. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15592. 0, 0, 0, 0),
  15593. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15594. 0, 0, 0, 0),
  15595. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15596. 0, 0, 0, 0),
  15597. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15598. 0, 0, 0, 0),
  15599. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15600. 0, 0, 0, 0),
  15601. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15602. 0, 0, 0, 0),
  15603. /* incall */
  15604. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15605. 0, 0, 0, 0),
  15606. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15607. 0, 0, 0, 0),
  15608. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15609. 0, 0, 0, 0),
  15610. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15611. 0, 0, 0, 0),
  15612. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15613. 0, 0, 0, 0),
  15614. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15615. 0, 0, 0, 0),
  15616. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15617. 0, 0, 0, 0),
  15618. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15619. 0, 0, 0, 0),
  15620. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15621. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15622. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15623. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15624. 0, 0, 0, 0),
  15625. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15626. 0, 0, 0, 0),
  15627. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15628. 0, 0, 0, 0),
  15629. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15630. 0, 0, 0, 0),
  15631. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15632. 0, 0, 0, 0),
  15633. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15634. 0, 0, 0, 0),
  15635. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15636. 0, 0, 0, 0),
  15637. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15638. 0, 0, 0, 0),
  15639. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15640. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15641. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15642. 0, 0, 0, 0),
  15643. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15644. 0, 0, 0, 0),
  15645. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15646. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15647. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15648. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15649. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15650. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15651. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15652. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15653. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15654. /* In- call recording */
  15655. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15656. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15657. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15658. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15659. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15660. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15661. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15662. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15663. /* Switch Definitions */
  15664. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15665. &slim_fm_switch_mixer_controls),
  15666. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15667. &slim1_fm_switch_mixer_controls),
  15668. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15669. &slim3_fm_switch_mixer_controls),
  15670. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15671. &slim4_fm_switch_mixer_controls),
  15672. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15673. &slim6_fm_switch_mixer_controls),
  15674. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15675. &pcm_rx_switch_mixer_controls),
  15676. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15677. &int0_mi2s_rx_switch_mixer_controls),
  15678. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15679. &int4_mi2s_rx_switch_mixer_controls),
  15680. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15681. &pri_mi2s_rx_switch_mixer_controls),
  15682. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15683. &sec_mi2s_rx_switch_mixer_controls),
  15684. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15685. &tert_mi2s_rx_switch_mixer_controls),
  15686. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15687. &quat_mi2s_rx_switch_mixer_controls),
  15688. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15689. &quin_mi2s_rx_switch_mixer_controls),
  15690. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15691. &hfp_pri_aux_switch_mixer_controls),
  15692. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15693. &hfp_aux_switch_mixer_controls),
  15694. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15695. &hfp_int_switch_mixer_controls),
  15696. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15697. &hfp_slim7_switch_mixer_controls),
  15698. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15699. &usb_switch_mixer_controls),
  15700. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15701. &a2dp_slim7_switch_mixer_controls),
  15702. /* Mixer definitions */
  15703. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15704. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15705. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15706. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15707. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15708. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15709. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15710. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15711. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15712. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15713. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15714. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15715. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15716. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15717. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15718. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15719. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15720. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15721. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15722. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  15723. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15724. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15725. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15726. quaternary_mi2s_rx_mixer_controls,
  15727. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15728. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15729. tertiary_mi2s_rx_mixer_controls,
  15730. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15731. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15732. secondary_mi2s_rx_mixer_controls,
  15733. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15734. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15735. secondary_mi2s_rx2_mixer_controls,
  15736. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15737. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15738. primary_mi2s_rx_mixer_controls,
  15739. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15740. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15741. int0_mi2s_rx_mixer_controls,
  15742. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15743. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15744. int4_mi2s_rx_mixer_controls,
  15745. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15746. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15747. quinary_mi2s_rx_mixer_controls,
  15748. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15749. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15750. pri_tdm_rx_0_mixer_controls,
  15751. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15752. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15753. pri_tdm_rx_1_mixer_controls,
  15754. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  15755. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15756. pri_tdm_rx_2_mixer_controls,
  15757. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  15758. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15759. pri_tdm_rx_3_mixer_controls,
  15760. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  15761. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15762. pri_tdm_tx_0_mixer_controls,
  15763. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  15764. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15765. sec_tdm_rx_0_mixer_controls,
  15766. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  15767. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15768. sec_tdm_rx_1_mixer_controls,
  15769. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  15770. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15771. sec_tdm_rx_2_mixer_controls,
  15772. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  15773. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15774. sec_tdm_rx_3_mixer_controls,
  15775. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  15776. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15777. sec_tdm_tx_0_mixer_controls,
  15778. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  15779. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15780. tert_tdm_rx_0_mixer_controls,
  15781. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  15782. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15783. tert_tdm_tx_0_mixer_controls,
  15784. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  15785. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15786. tert_tdm_rx_1_mixer_controls,
  15787. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  15788. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15789. tert_tdm_rx_2_mixer_controls,
  15790. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  15791. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15792. tert_tdm_rx_3_mixer_controls,
  15793. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  15794. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15795. tert_tdm_rx_4_mixer_controls,
  15796. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  15797. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15798. quat_tdm_rx_0_mixer_controls,
  15799. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  15800. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15801. quat_tdm_tx_0_mixer_controls,
  15802. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  15803. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15804. quat_tdm_rx_1_mixer_controls,
  15805. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  15806. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15807. quat_tdm_rx_2_mixer_controls,
  15808. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  15809. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15810. quat_tdm_rx_3_mixer_controls,
  15811. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  15812. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15813. quin_tdm_rx_0_mixer_controls,
  15814. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  15815. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15816. quin_tdm_tx_0_mixer_controls,
  15817. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  15818. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15819. quin_tdm_rx_1_mixer_controls,
  15820. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  15821. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15822. quin_tdm_rx_2_mixer_controls,
  15823. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  15824. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15825. quin_tdm_rx_3_mixer_controls,
  15826. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  15827. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15828. wsa_cdc_dma_rx_0_mixer_controls,
  15829. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  15830. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15831. wsa_cdc_dma_rx_1_mixer_controls,
  15832. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  15833. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  15834. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  15835. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  15836. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  15837. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  15838. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  15839. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  15840. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  15841. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  15842. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  15843. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  15844. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  15845. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  15846. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  15847. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  15848. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  15849. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  15850. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  15851. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  15852. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  15853. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  15854. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  15855. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  15856. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  15857. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  15858. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  15859. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  15860. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  15861. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  15862. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  15863. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  15864. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  15865. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15866. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  15867. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15868. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  15869. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15870. tert_auxpcm_rx_mixer_controls,
  15871. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  15872. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15873. quat_auxpcm_rx_mixer_controls,
  15874. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  15875. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15876. quin_auxpcm_rx_mixer_controls,
  15877. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  15878. /* incall */
  15879. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  15880. incall_music_delivery_mixer_controls,
  15881. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  15882. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15883. incall_music2_delivery_mixer_controls,
  15884. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  15885. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15886. slimbus_4_rx_mixer_controls,
  15887. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  15888. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15889. slimbus_6_rx_mixer_controls,
  15890. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  15891. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15892. usb_audio_rx_mixer_controls,
  15893. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  15894. /* Voice Mixer */
  15895. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  15896. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  15897. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  15898. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  15899. SND_SOC_NOPM, 0, 0,
  15900. sec_i2s_rx_voice_mixer_controls,
  15901. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  15902. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  15903. SND_SOC_NOPM, 0, 0,
  15904. sec_mi2s_rx_voice_mixer_controls,
  15905. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  15906. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  15907. SND_SOC_NOPM, 0, 0,
  15908. slimbus_rx_voice_mixer_controls,
  15909. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  15910. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  15911. SND_SOC_NOPM, 0, 0,
  15912. bt_sco_rx_voice_mixer_controls,
  15913. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  15914. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  15915. SND_SOC_NOPM, 0, 0,
  15916. afe_pcm_rx_voice_mixer_controls,
  15917. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  15918. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  15919. SND_SOC_NOPM, 0, 0,
  15920. aux_pcm_rx_voice_mixer_controls,
  15921. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  15922. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  15923. SND_SOC_NOPM, 0, 0,
  15924. sec_aux_pcm_rx_voice_mixer_controls,
  15925. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  15926. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  15927. SND_SOC_NOPM, 0, 0,
  15928. tert_aux_pcm_rx_voice_mixer_controls,
  15929. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  15930. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  15931. SND_SOC_NOPM, 0, 0,
  15932. quat_aux_pcm_rx_voice_mixer_controls,
  15933. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  15934. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  15935. SND_SOC_NOPM, 0, 0,
  15936. quin_aux_pcm_rx_voice_mixer_controls,
  15937. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  15938. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  15939. SND_SOC_NOPM, 0, 0,
  15940. hdmi_rx_voice_mixer_controls,
  15941. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  15942. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  15943. SND_SOC_NOPM, 0, 0,
  15944. mi2s_rx_voice_mixer_controls,
  15945. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  15946. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  15947. SND_SOC_NOPM, 0, 0,
  15948. pri_mi2s_rx_voice_mixer_controls,
  15949. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  15950. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  15951. SND_SOC_NOPM, 0, 0,
  15952. int0_mi2s_rx_voice_mixer_controls,
  15953. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  15954. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  15955. SND_SOC_NOPM, 0, 0,
  15956. int4_mi2s_rx_voice_mixer_controls,
  15957. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  15958. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  15959. SND_SOC_NOPM, 0, 0,
  15960. tert_mi2s_rx_voice_mixer_controls,
  15961. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  15962. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  15963. SND_SOC_NOPM, 0, 0,
  15964. quat_mi2s_rx_voice_mixer_controls,
  15965. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  15966. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  15967. SND_SOC_NOPM, 0, 0,
  15968. quin_mi2s_rx_voice_mixer_controls,
  15969. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  15970. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  15971. SND_SOC_NOPM, 0, 0,
  15972. quat_tdm_rx_2_voice_mixer_controls,
  15973. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  15974. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  15975. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  15976. ARRAY_SIZE(tx_voip_mixer_controls)),
  15977. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  15978. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  15979. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  15980. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  15981. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  15982. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  15983. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15984. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  15985. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15986. int_bt_a2dp_rx_mixer_controls,
  15987. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  15988. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15989. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  15990. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15991. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  15992. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15993. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  15994. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15995. tx_voice2_stub_mixer_controls,
  15996. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  15997. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15998. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  15999. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  16000. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  16001. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  16002. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  16003. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16004. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  16005. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  16006. SND_SOC_NOPM, 0, 0,
  16007. slimbus_6_rx_voice_mixer_controls,
  16008. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  16009. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16010. slimbus_7_rx_voice_mixer_controls,
  16011. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  16012. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  16013. slimbus_8_rx_voice_mixer_controls,
  16014. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  16015. /* port mixer */
  16016. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  16017. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  16018. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  16019. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  16020. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  16021. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  16022. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  16023. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  16024. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  16025. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  16026. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  16027. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  16028. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  16029. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  16030. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  16031. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  16032. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  16033. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  16034. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16035. sbus_1_rx_port_mixer_controls,
  16036. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  16037. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16038. bt_sco_rx_port_mixer_controls,
  16039. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  16040. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  16041. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  16042. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  16043. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  16044. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  16045. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  16046. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  16047. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  16048. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  16049. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  16050. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  16051. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  16052. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  16053. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  16054. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  16055. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  16056. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  16057. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  16058. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  16059. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  16060. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  16061. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16062. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  16063. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16064. primary_mi2s_rx_port_mixer_controls,
  16065. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  16066. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16067. sec_mi2s_rx_port_mixer_controls,
  16068. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  16069. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16070. tert_mi2s_rx_port_mixer_controls,
  16071. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  16072. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16073. quat_mi2s_rx_port_mixer_controls,
  16074. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  16075. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16076. quin_mi2s_rx_port_mixer_controls,
  16077. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  16078. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16079. pri_tdm_rx_0_port_mixer_controls,
  16080. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  16081. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16082. pri_tdm_rx_1_port_mixer_controls,
  16083. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  16084. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16085. pri_tdm_rx_2_port_mixer_controls,
  16086. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  16087. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16088. pri_tdm_rx_3_port_mixer_controls,
  16089. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  16090. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16091. sec_tdm_rx_0_port_mixer_controls,
  16092. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  16093. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16094. sec_tdm_rx_1_port_mixer_controls,
  16095. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  16096. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16097. sec_tdm_rx_2_port_mixer_controls,
  16098. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  16099. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16100. sec_tdm_rx_3_port_mixer_controls,
  16101. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  16102. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16103. tert_tdm_rx_0_port_mixer_controls,
  16104. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  16105. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16106. tert_tdm_rx_1_port_mixer_controls,
  16107. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  16108. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16109. tert_tdm_rx_2_port_mixer_controls,
  16110. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  16111. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16112. tert_tdm_rx_3_port_mixer_controls,
  16113. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  16114. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16115. quat_tdm_rx_0_port_mixer_controls,
  16116. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  16117. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16118. quat_tdm_rx_1_port_mixer_controls,
  16119. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16120. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16121. quat_tdm_rx_2_port_mixer_controls,
  16122. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16123. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16124. quat_tdm_rx_3_port_mixer_controls,
  16125. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16126. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16127. quin_tdm_rx_0_port_mixer_controls,
  16128. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16129. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16130. quin_tdm_rx_1_port_mixer_controls,
  16131. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16132. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16133. quin_tdm_rx_2_port_mixer_controls,
  16134. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16135. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16136. quin_tdm_rx_3_port_mixer_controls,
  16137. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16138. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16139. int0_mi2s_rx_port_mixer_controls,
  16140. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16141. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16142. int4_mi2s_rx_port_mixer_controls,
  16143. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16144. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16145. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16146. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16147. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16148. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16149. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16150. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16151. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16152. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16153. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16154. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16155. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16156. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16157. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16158. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16159. /* lsm mixer definitions */
  16160. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16161. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16162. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16163. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16164. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16165. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16166. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16167. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16168. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16169. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16170. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16171. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16172. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16173. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16174. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16175. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16176. /* Virtual Pins to force backends ON atm */
  16177. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16178. SND_SOC_DAPM_INPUT("BE_IN"),
  16179. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16180. &slim0_rx_vi_fb_lch_mux),
  16181. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16182. &slim0_rx_vi_fb_rch_mux),
  16183. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16184. &wsa_rx_0_vi_fb_lch_mux),
  16185. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16186. &wsa_rx_0_vi_fb_rch_mux),
  16187. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16188. &mi2s_rx_vi_fb_mux),
  16189. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16190. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16191. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16192. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16193. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16194. &voc_ext_ec_mux),
  16195. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16196. &ext_ec_ref_mux_ul1),
  16197. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16198. &ext_ec_ref_mux_ul2),
  16199. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16200. &ext_ec_ref_mux_ul3),
  16201. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16202. &ext_ec_ref_mux_ul4),
  16203. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16204. &ext_ec_ref_mux_ul5),
  16205. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16206. &ext_ec_ref_mux_ul6),
  16207. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16208. &ext_ec_ref_mux_ul8),
  16209. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16210. &ext_ec_ref_mux_ul9),
  16211. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16212. &ext_ec_ref_mux_ul10),
  16213. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16214. &ext_ec_ref_mux_ul16),
  16215. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16216. &ext_ec_ref_mux_ul17),
  16217. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16218. &ext_ec_ref_mux_ul18),
  16219. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16220. &ext_ec_ref_mux_ul19),
  16221. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16222. &ext_ec_ref_mux_ul28),
  16223. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16224. &ext_ec_ref_mux_ul29),
  16225. };
  16226. static const struct snd_soc_dapm_route intercon[] = {
  16227. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16228. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16229. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16230. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16231. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16232. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16233. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16234. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16235. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16236. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16237. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16238. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16239. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16240. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16241. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16242. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16243. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16244. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16245. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16246. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16247. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16248. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16249. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16250. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16251. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16252. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16253. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16254. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16255. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16256. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16257. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16258. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16259. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16260. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16261. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16262. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16263. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16264. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16265. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16266. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16267. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16268. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16269. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16270. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16271. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16272. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16273. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16274. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16275. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16276. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16277. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16278. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16279. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16280. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16281. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16282. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16283. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16284. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16285. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16286. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16287. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16288. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16289. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16290. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16291. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16292. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16293. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16294. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16295. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16296. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16297. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16298. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16299. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16300. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16301. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16302. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16303. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16304. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16305. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16306. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16307. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16308. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16309. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16310. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16311. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16312. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16313. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16314. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16315. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16316. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16317. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16318. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16319. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16320. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16321. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16322. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16323. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16324. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16325. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16326. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16327. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16328. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16329. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16330. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16331. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16332. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16333. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16334. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16335. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16336. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16337. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16338. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16339. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16340. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16341. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16342. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16343. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16344. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16345. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16346. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16347. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16348. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16349. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16350. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16351. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16352. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16353. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16354. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16355. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16356. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16357. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16358. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16359. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16360. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16361. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16362. {"HDMI", NULL, "HDMI Mixer"},
  16363. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16364. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16365. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16366. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16367. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16368. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16369. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16370. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16371. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16372. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16373. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16374. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16375. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16376. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16377. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16378. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16379. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16380. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16381. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16382. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16383. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16384. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16385. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16386. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16387. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16388. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16389. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16390. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16391. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16392. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16393. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16394. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16395. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16396. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16397. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16398. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16399. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16400. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16401. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16402. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16403. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16404. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16405. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16406. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16407. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16408. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16409. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16410. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16411. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16412. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16413. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  16414. /* incall */
  16415. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16416. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16417. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16418. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16419. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16420. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16421. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16422. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16423. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16424. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16425. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16426. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16427. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16428. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16429. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16430. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16431. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16432. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16433. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16434. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16435. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16436. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16437. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16438. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16439. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16440. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16441. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16442. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16443. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16444. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16445. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16446. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16447. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16448. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16449. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16450. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16451. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16452. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16453. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16454. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16455. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16456. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16457. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16458. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16459. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16460. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16461. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16462. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16463. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16464. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16465. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16466. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16467. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16468. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16469. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16470. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16471. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16472. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16473. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16474. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16475. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16476. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16477. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16478. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16479. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16480. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16481. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16482. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16483. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16484. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16485. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16486. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16487. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16488. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16489. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16490. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16491. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16492. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16493. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16494. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16495. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16496. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16497. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16498. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16499. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16500. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16501. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16502. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16503. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16504. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16505. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16506. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16507. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16508. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16509. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16510. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16511. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16512. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16513. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16514. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16515. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16516. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16517. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16518. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16519. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16520. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16521. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16522. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16523. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16524. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16525. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16526. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16527. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16528. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16529. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16530. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16531. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16532. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16533. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16534. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16535. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16536. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16537. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16538. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16539. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16540. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16541. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16542. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16543. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16544. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16545. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16546. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16547. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16548. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16549. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16550. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16551. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16552. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16553. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16554. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16555. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16556. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16557. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16558. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16559. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16560. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16561. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16562. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16563. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16564. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16565. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16566. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16567. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16568. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16569. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16570. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16571. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16572. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16573. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16574. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16575. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16576. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16577. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16578. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16579. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16580. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16581. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16582. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16583. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16584. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16585. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16586. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16587. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16588. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16589. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16590. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16591. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16592. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16593. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16594. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16595. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16596. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16597. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16598. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16599. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16600. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16601. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16602. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16603. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16604. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16605. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16606. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16607. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16608. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16609. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16610. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16611. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16612. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16613. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16614. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16615. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16616. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16617. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16618. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16619. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16620. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16621. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16622. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16623. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16624. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16625. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16626. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16627. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16628. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16629. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16630. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16631. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16632. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16633. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16634. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16635. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16636. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16637. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16638. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16639. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16640. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16641. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16642. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16643. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16644. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16645. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16646. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16647. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16648. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16649. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16650. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16651. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16652. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16653. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16654. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16655. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16656. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16657. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16658. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16659. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16660. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16661. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16662. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16663. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16664. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16665. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16666. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16667. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16668. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16669. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16670. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16671. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16672. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16673. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16674. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16675. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16676. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16677. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16678. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16679. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16680. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16681. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16682. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16683. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16684. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16685. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16686. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16687. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16688. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16689. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16690. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16691. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16692. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16693. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16694. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16695. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16696. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16697. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16698. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16699. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16700. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16701. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16702. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16703. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16704. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16705. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16706. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16707. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16708. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16709. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16710. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16711. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16712. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16713. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16714. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16715. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16716. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16717. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16718. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16719. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16720. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16721. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16722. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16723. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16724. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16725. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16726. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16727. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16728. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16729. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16730. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16731. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16732. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16733. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16734. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16735. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16736. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16737. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16738. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16739. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16740. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16741. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16742. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16743. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  16744. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16745. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16746. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16747. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16748. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16749. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16750. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16751. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16752. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16753. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16754. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16755. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16756. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16757. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16758. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16759. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16760. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  16761. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16762. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16763. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16764. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16765. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16766. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16767. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16768. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16769. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16770. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16771. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16772. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16773. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16774. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16775. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16776. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16777. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  16778. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16779. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16780. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16781. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16782. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16783. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16784. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16785. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16786. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16787. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16788. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16789. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16790. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16791. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16792. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16793. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16794. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  16795. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16796. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16797. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16798. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16799. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16800. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16801. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16802. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16803. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16804. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16805. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16806. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16807. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16808. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16809. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16810. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16811. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  16812. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16813. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16814. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16815. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16816. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16817. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16818. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16819. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16820. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16821. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16822. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16823. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16824. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16825. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16826. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16827. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16828. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  16829. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16830. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16831. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16832. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16833. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16834. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16835. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16836. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16837. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16838. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16839. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16840. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16841. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16842. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16843. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16844. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16845. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  16846. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16847. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16848. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16849. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16850. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16851. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16852. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16853. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16854. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16855. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16856. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16857. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16858. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16859. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16860. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16861. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16862. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  16863. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16864. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16865. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16866. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16867. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16868. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16869. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16870. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16871. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16872. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16873. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16874. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16875. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16876. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16877. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16878. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16879. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  16880. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16881. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16882. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16883. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16884. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16885. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16886. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16887. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16888. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16889. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16890. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16891. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16892. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16893. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16894. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16895. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16896. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  16897. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16898. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16899. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16900. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16901. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16902. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16903. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16904. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16905. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16906. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16907. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16908. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16909. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16910. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16911. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16912. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16913. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  16914. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16915. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16916. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16917. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16918. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16919. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16920. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16921. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16922. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16923. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16924. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16925. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16926. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16927. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16928. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16929. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16930. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  16931. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16932. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16933. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16934. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16935. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16936. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16937. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16938. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16939. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16940. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16941. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16942. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16943. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16944. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16945. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16946. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16947. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16948. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  16949. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16950. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16951. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16952. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16953. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16954. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16955. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16956. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16957. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16958. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16959. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16960. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16961. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16962. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16963. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16964. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16965. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  16966. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16967. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16968. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16969. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16970. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16971. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16972. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16973. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16974. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16975. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16976. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16977. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16978. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16979. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16980. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16981. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16982. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16983. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  16984. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16985. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16986. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16987. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16988. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16989. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16990. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16991. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16992. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16993. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16994. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16995. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16996. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16997. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16998. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16999. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17000. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17001. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  17002. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17003. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17004. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17005. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17006. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17007. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17008. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17009. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17010. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17011. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17012. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17013. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17014. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17015. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17016. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17017. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17018. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17019. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  17020. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17021. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17022. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17023. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17024. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17025. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17026. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17027. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17028. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17029. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17030. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17031. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17032. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17033. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17034. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17035. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17036. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17037. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  17038. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17039. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17040. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17041. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17042. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17043. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17044. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17045. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17046. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17047. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17048. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17049. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17050. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17051. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17052. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17053. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17054. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  17055. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17056. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17057. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17058. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17059. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17060. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17061. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17062. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17063. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17064. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17065. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17066. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17067. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17068. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17069. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17070. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17071. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17072. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  17073. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17074. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17075. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17076. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17077. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17078. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17079. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17080. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17081. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17082. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17083. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17084. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17085. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17086. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17087. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17088. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17089. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17090. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  17091. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17092. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17093. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17094. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17095. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17096. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17097. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17098. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17099. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17100. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17101. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17102. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17103. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17104. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17105. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17106. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17107. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17108. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  17109. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  17110. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  17111. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  17112. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  17113. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  17114. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  17115. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  17116. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17117. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17118. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17119. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17120. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17121. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17122. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17123. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17124. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17125. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17126. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17127. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17128. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17129. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17130. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17131. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17132. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17133. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17134. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17135. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17136. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17137. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17138. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17139. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17140. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17141. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17142. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17143. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17144. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17145. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17146. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17147. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17148. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17149. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17150. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17151. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17152. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17153. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17154. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17155. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17156. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17157. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17158. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17159. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17160. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17161. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17162. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17163. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17164. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17165. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17166. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17167. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17168. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17169. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17170. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17171. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17172. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17173. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17174. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17175. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17176. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17177. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17178. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17179. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17180. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17181. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17182. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17183. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17184. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17185. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17186. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17187. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17188. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17189. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17190. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17191. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17192. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17193. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17194. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17195. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17196. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17197. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17198. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17199. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17200. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17201. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17202. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17203. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17204. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17205. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17206. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17207. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17208. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17209. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17210. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17211. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17212. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17213. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17214. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17215. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17216. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17217. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17218. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17219. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17220. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17221. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17222. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17223. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17224. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17225. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17226. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17227. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17228. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17229. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17230. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17231. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17232. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17233. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17234. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17235. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17236. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17237. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17238. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17239. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17240. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17241. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17242. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17243. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17244. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17245. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17246. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17247. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17248. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17249. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17250. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17251. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17252. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17253. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17254. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17255. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17256. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17257. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17258. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17259. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17260. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17261. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17262. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17263. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17264. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17265. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17266. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17267. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17268. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17269. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17270. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17271. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17272. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17273. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17274. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17275. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17276. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17277. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17278. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17279. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17280. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17281. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17282. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17283. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17284. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17285. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17286. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17287. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17288. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17289. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17290. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17291. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17292. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17293. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17294. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17295. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17296. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17297. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17298. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17299. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17300. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17301. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17302. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17303. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17304. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17305. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17306. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17307. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17308. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17309. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17310. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17311. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17312. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17313. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17314. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17315. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17316. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17317. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17318. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17319. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17320. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17321. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17322. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17323. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17324. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17325. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17326. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17327. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17328. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17329. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17330. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17331. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17332. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17333. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17334. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17335. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17336. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17337. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17338. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17339. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17340. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17341. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17342. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17343. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17344. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17345. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17346. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17347. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17348. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17349. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17350. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17351. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17352. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17353. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17354. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17355. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17356. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17357. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17358. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17359. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17360. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17361. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17362. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17363. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17364. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17365. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17366. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17367. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17368. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17369. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17370. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17371. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17372. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17373. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17374. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17375. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17376. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17377. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17378. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17379. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17380. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17381. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17382. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17383. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17384. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17385. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17386. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17387. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17388. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17389. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17390. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17391. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17392. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17393. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17394. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17395. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17396. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17397. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17398. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17399. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17400. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17401. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17402. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17403. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17404. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17405. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17406. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17407. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17408. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17409. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17410. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17411. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17412. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17413. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17414. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17415. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17416. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17417. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17418. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17419. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17420. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17421. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17422. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17423. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17424. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17425. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17426. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17427. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17428. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17429. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17430. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17431. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17432. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17433. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17434. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17435. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17436. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17437. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17438. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17439. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17440. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17441. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17442. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17443. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17444. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17445. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17446. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17447. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17448. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17449. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17450. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17451. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17452. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17453. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17454. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17455. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17456. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17457. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17458. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17459. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17460. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17461. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17462. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17463. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17464. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17465. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17466. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17467. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17468. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17469. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17470. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17471. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17472. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17473. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17474. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17475. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17476. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17477. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17478. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17479. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17480. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17481. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17482. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17483. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17484. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17485. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17486. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17487. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17488. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17489. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17490. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17491. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17492. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17493. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17494. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17495. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17496. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17497. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17498. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17499. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17500. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17501. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17502. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17503. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17504. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17505. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17506. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17507. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17508. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17509. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17510. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17511. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17512. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17513. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17514. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17515. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17516. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17517. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17518. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17519. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17520. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17521. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17522. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17523. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17524. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17525. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17526. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17527. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17528. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17529. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17530. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17531. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17532. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17533. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17534. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17535. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17536. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17537. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17538. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17539. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17540. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17541. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17542. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17543. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17544. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17545. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17546. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17547. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17548. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17549. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17550. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17551. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17552. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17553. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17554. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17555. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17556. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17557. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17558. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17559. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17560. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17561. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17562. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17563. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17564. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17565. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17566. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17567. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17568. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17569. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17570. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17571. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17572. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17573. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17574. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17575. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17576. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17577. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17578. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17579. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17580. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17581. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17582. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17583. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17584. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17585. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17586. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17587. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17588. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17589. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17590. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17591. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17592. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17593. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17594. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17595. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17596. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17597. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17598. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17599. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17600. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17601. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17602. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17603. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17604. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17605. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17606. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17607. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17608. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17609. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17610. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17611. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17612. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17613. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17614. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17615. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17616. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17617. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17618. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17619. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17620. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17621. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17622. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17623. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17624. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17625. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17626. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17627. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17628. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17629. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17630. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17631. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17632. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17633. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17634. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17635. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17636. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17637. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17638. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17639. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17640. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17641. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17642. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17643. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17644. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17645. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17646. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17647. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17648. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17649. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17650. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17651. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17652. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17653. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17654. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17655. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17656. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17657. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17658. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17659. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17660. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17661. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17662. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17663. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17664. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17665. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17666. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17667. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17668. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17669. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17670. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17671. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17672. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17673. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17674. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17675. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17676. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17677. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17678. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17679. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17680. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17681. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17682. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17683. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17684. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17685. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17686. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17687. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17688. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17689. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17690. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17691. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17692. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17693. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17694. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17695. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17696. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17697. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17698. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17699. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17700. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17701. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17702. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17703. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17704. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17705. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17706. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17707. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17708. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17709. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17710. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17711. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17712. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17713. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17714. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17715. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  17716. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17717. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17718. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17719. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17720. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17721. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  17722. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17723. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17724. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17725. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17726. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17727. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  17728. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17729. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17730. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17731. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17732. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17733. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  17734. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17735. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17736. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17737. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17738. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17739. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  17740. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17741. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17742. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17743. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17744. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17745. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  17746. {"HDMI", NULL, "HDMI_DL_HL"},
  17747. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17748. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17749. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17750. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17751. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17752. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  17753. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17754. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17755. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17756. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17757. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17758. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  17759. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17760. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17761. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17762. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17763. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17764. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  17765. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17766. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17767. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17768. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17769. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17770. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  17771. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17772. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17773. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17774. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17775. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17776. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  17777. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17778. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17779. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17780. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17781. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  17782. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17783. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17784. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17785. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17786. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  17787. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17788. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  17789. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17790. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17791. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17792. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17793. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17794. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17795. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  17796. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  17797. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  17798. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17799. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17800. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17801. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17802. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17803. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17804. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17805. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17806. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17807. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17808. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17809. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17810. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17811. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17812. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17813. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17814. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17815. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17816. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17817. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17818. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17819. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17820. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17821. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17822. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17823. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17824. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17825. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17826. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17827. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17828. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17829. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17830. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17831. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17832. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17833. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17834. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17835. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17836. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17837. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17838. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17839. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17840. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17841. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17842. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17843. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17844. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17845. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17846. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17847. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17848. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17849. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17850. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17851. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17852. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17853. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17854. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17855. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17856. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17857. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17858. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17859. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17860. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17861. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17862. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17863. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17864. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17865. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17866. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17867. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17868. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17869. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17870. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17871. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17872. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17873. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17874. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17875. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17876. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17877. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17878. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17879. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  17880. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  17881. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  17882. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  17883. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  17884. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  17885. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  17886. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  17887. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  17888. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  17889. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  17890. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  17891. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  17892. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  17893. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  17894. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  17895. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  17896. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  17897. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  17898. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  17899. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  17900. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  17901. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  17902. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  17903. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  17904. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  17905. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  17906. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  17907. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  17908. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  17909. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  17910. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  17911. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  17912. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  17913. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  17914. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  17915. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  17916. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  17917. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  17918. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  17919. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  17920. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  17921. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  17922. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  17923. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  17924. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  17925. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  17926. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  17927. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  17928. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  17929. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  17930. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  17931. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  17932. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  17933. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  17934. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  17935. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  17936. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  17937. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  17938. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  17939. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  17940. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  17941. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  17942. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  17943. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  17944. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  17945. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  17946. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  17947. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  17948. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  17949. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  17950. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  17951. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  17952. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  17953. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  17954. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  17955. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  17956. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  17957. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  17958. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  17959. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  17960. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17961. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17962. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17963. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17964. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17965. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17966. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17967. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17968. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17969. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17970. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  17971. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17972. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17973. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17974. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17975. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17976. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17977. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17978. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17979. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17980. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17981. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  17982. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17983. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17984. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17985. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17986. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17987. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17988. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17989. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17990. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17991. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17992. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  17993. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17994. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17995. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17996. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17997. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17998. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17999. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18000. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18001. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18002. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18003. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  18004. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18005. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18006. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18007. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18008. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18009. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18010. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18011. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18012. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18013. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18014. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  18015. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18016. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18017. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18018. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18019. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18020. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18021. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18022. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18023. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  18024. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18025. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18026. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18027. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18028. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18029. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18030. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18031. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18032. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  18033. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18034. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18035. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18036. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18037. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18038. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18039. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18040. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18041. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  18042. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  18043. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  18044. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  18045. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  18046. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  18047. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  18048. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  18049. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  18050. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  18051. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  18052. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  18053. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  18054. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  18055. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  18056. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  18057. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  18058. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  18059. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  18060. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  18061. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  18062. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  18063. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  18064. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  18065. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  18066. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  18067. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  18068. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  18069. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18070. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  18071. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  18072. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  18073. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18074. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  18075. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  18076. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  18077. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  18078. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  18079. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  18080. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  18081. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  18082. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18083. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  18084. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18085. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  18086. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  18087. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  18088. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  18089. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  18090. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  18091. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  18092. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  18093. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  18094. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  18095. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  18096. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18097. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  18098. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18099. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  18100. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  18101. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  18102. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  18103. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  18104. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  18105. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  18106. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  18107. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  18108. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  18109. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  18110. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  18111. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  18112. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  18113. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  18114. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  18115. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  18116. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  18117. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18118. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18119. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18120. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18121. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18122. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18123. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18124. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18125. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18126. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18127. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18128. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18129. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18130. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18131. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18132. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18133. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18134. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18135. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18136. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18137. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18138. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18139. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18140. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18141. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18142. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18143. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18144. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18145. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18146. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18147. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18148. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18149. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18150. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18151. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18152. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18153. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18154. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18155. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18156. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18157. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18158. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18159. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18160. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18161. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18162. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18163. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18164. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18165. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18166. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18167. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18168. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18169. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18170. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18171. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18172. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18173. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18174. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18175. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18176. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18177. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18178. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18179. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18180. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18181. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18182. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18183. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18184. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18185. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18186. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18187. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18188. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18189. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18190. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18191. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18192. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18193. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18194. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18195. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18196. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18197. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18198. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18199. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18200. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18201. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18202. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18203. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18204. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18205. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18206. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18207. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18208. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18209. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18210. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18211. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18212. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18213. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18214. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18215. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18216. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18217. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18218. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18219. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18220. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18221. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18222. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18223. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18224. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18225. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18226. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18227. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18228. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18229. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18230. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18231. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18232. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18233. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18234. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18235. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18236. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18237. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18238. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18239. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18240. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18241. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18242. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18243. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18244. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18245. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18246. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18247. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18248. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18249. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18250. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18251. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18252. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18253. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18254. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18255. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18256. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18257. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18258. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18259. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18260. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18261. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18262. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18263. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18264. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18265. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18266. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18267. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18268. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18269. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18270. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18271. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18272. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18273. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18274. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18275. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18276. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18277. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18278. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18279. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18280. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18281. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18282. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18283. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18284. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18285. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18286. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18287. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18288. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18289. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18290. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18291. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18292. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18293. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18294. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18295. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18296. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18297. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18298. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18299. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18300. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18301. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18302. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18303. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18304. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18305. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18306. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18307. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18308. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18309. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18310. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18311. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18312. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18313. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18314. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18315. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18316. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18317. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18318. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18319. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18320. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18321. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18322. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18323. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18324. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18325. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18326. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18327. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18328. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18329. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18330. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18331. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18332. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18333. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18334. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18335. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18336. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18337. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18338. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18339. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18340. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18341. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18342. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18343. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18344. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18345. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18346. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18347. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18348. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18349. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18350. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18351. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18352. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18353. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18354. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18355. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18356. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18357. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18358. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18359. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18360. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18361. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18362. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18363. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18364. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18365. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18366. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18367. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18368. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18369. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18370. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18371. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18372. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18373. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18374. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18375. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18376. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18377. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18378. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18379. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18380. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18381. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18382. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18383. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18384. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18385. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18386. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18387. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18388. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18389. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18390. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18391. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18392. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18393. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18394. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18395. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18396. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18397. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18398. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18399. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18400. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18401. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18402. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18403. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18404. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18405. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18406. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18407. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18408. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18409. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18410. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18411. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18412. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18413. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18414. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18415. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18416. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18417. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18418. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18419. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18420. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18421. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18422. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18423. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18424. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18425. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18426. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18427. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18428. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18429. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18430. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18431. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18432. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18433. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18434. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18435. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18436. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18437. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18438. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18439. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18440. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18441. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18442. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18443. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18444. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18445. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18446. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18447. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18448. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18449. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18450. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18451. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18452. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18453. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18454. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18455. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18456. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18457. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18458. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18459. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18460. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18461. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18462. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18463. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18464. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18465. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18466. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18467. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18468. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18469. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18470. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18471. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18472. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18473. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18474. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18475. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18476. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18477. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18478. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18479. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18480. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18481. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18482. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18483. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18484. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18485. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18486. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18487. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18488. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18489. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18490. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18491. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18492. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18493. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18494. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18495. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18496. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18497. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18498. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18499. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18500. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18501. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18502. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18503. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18504. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18505. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18506. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18507. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18508. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18509. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18510. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18511. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18512. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18513. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18514. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18515. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18516. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18517. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18518. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18519. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18520. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18521. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18522. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18523. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18524. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18525. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18526. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18527. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18528. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18529. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18530. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18531. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18532. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18533. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18534. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18535. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18536. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18537. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18538. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18539. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18540. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18541. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18542. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18543. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18544. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18545. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18546. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18547. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18548. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18549. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18550. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18551. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18552. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18553. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18554. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18555. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18556. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18557. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18558. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18559. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18560. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18561. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18562. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18563. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18564. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18565. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18566. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18567. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18568. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18569. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18570. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18571. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18572. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18573. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18574. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18575. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18576. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18577. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18578. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18579. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18580. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18581. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18582. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18583. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18584. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18585. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18586. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18587. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18588. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18589. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18590. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18591. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18592. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18593. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18594. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18595. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18596. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18597. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18598. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18599. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18600. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18601. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18602. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18603. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18604. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18605. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18606. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18607. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18608. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18609. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18610. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18611. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18612. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18613. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18614. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18615. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18616. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18617. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18618. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18619. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18620. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18621. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18622. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18623. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18624. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18625. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18626. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18627. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18628. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18629. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18630. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18631. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18632. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18633. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18634. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18635. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18636. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18637. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18638. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18639. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18640. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18641. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18642. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18643. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18644. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18645. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18646. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18647. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18648. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18649. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18650. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18651. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18652. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18653. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18654. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18655. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18656. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18657. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18658. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18659. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18660. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18661. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18662. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18663. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18664. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18665. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18666. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18667. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18668. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18669. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18670. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18671. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18672. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18673. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18674. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18675. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18676. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18677. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18678. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18679. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18680. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18681. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18682. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18683. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18684. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18685. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18686. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18687. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18688. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18689. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18690. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18691. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18692. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18693. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18694. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18695. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18696. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18697. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18698. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18699. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18700. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18701. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18702. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18703. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18704. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18705. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18706. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18707. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18708. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18709. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18710. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  18711. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18712. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  18713. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  18714. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  18715. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  18716. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18717. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18718. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18719. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18720. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18721. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18722. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18723. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18724. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18725. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18726. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18727. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18728. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  18729. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18730. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  18731. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18732. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  18733. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  18734. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  18735. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18736. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  18737. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18738. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18739. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  18740. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18741. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18742. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18743. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18744. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18745. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18746. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18747. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18748. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18749. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18750. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  18751. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18752. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18753. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18754. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18755. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18756. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18757. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18758. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18759. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18760. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  18761. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18762. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18763. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18764. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18765. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18766. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18767. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18768. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  18769. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18770. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18771. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18772. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18773. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18774. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18775. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18776. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18777. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18778. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  18779. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18780. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18781. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18782. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18783. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18784. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18785. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18786. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  18787. /* Backend Enablement */
  18788. {"BE_OUT", NULL, "PRI_I2S_RX"},
  18789. {"BE_OUT", NULL, "SEC_I2S_RX"},
  18790. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  18791. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  18792. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  18793. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18794. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  18795. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  18796. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  18797. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  18798. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  18799. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  18800. {"BE_OUT", NULL, "HDMI"},
  18801. {"BE_OUT", NULL, "DISPLAY_PORT"},
  18802. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  18803. {"BE_OUT", NULL, "SPDIF_RX"},
  18804. {"BE_OUT", NULL, "MI2S_RX"},
  18805. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  18806. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  18807. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  18808. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  18809. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  18810. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  18811. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  18812. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  18813. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  18814. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  18815. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  18816. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18817. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  18818. {"BE_OUT", NULL, "INT_FM_RX"},
  18819. {"BE_OUT", NULL, "PCM_RX"},
  18820. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18821. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18822. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  18823. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  18824. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  18825. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  18826. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18827. {"BE_OUT", NULL, "INT_FM_RX"},
  18828. {"BE_OUT", NULL, "PCM_RX"},
  18829. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18830. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  18831. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  18832. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  18833. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  18834. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  18835. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  18836. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  18837. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  18838. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  18839. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  18840. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  18841. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  18842. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  18843. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  18844. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  18845. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  18846. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  18847. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  18848. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  18849. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  18850. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  18851. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  18852. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  18853. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  18854. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  18855. {"PRI_I2S_TX", NULL, "BE_IN"},
  18856. {"MI2S_TX", NULL, "BE_IN"},
  18857. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  18858. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  18859. {"PRI_MI2S_TX", NULL, "BE_IN"},
  18860. {"TERT_MI2S_TX", NULL, "BE_IN"},
  18861. {"INT0_MI2S_TX", NULL, "BE_IN"},
  18862. {"INT2_MI2S_TX", NULL, "BE_IN"},
  18863. {"INT3_MI2S_TX", NULL, "BE_IN"},
  18864. {"INT4_MI2S_TX", NULL, "BE_IN"},
  18865. {"INT5_MI2S_TX", NULL, "BE_IN"},
  18866. {"SEC_MI2S_TX", NULL, "BE_IN"},
  18867. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  18868. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  18869. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  18870. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  18871. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  18872. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  18873. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  18874. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  18875. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  18876. {"USB_AUDIO_TX", NULL, "BE_IN" },
  18877. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  18878. {"INT_FM_TX", NULL, "BE_IN"},
  18879. {"PCM_TX", NULL, "BE_IN"},
  18880. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18881. {"BE_OUT", NULL, "STUB_RX"},
  18882. {"STUB_TX", NULL, "BE_IN"},
  18883. {"STUB_1_TX", NULL, "BE_IN"},
  18884. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18885. {"AUX_PCM_TX", NULL, "BE_IN"},
  18886. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  18887. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  18888. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  18889. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  18890. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  18891. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  18892. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18893. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18894. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18895. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18896. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  18897. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18898. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18899. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  18900. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  18901. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  18902. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  18903. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  18904. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  18905. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  18906. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  18907. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  18908. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  18909. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  18910. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  18911. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  18912. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  18913. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  18914. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  18915. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  18916. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  18917. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  18918. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  18919. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  18920. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  18921. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  18922. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  18923. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  18924. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  18925. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  18926. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18927. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18928. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  18929. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18930. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18931. };
  18932. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  18933. struct snd_pcm_hw_params *params)
  18934. {
  18935. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18936. unsigned int be_id = rtd->dai_link->id;
  18937. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18938. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18939. return -EINVAL;
  18940. }
  18941. mutex_lock(&routing_lock);
  18942. msm_bedais[be_id].sample_rate = params_rate(params);
  18943. msm_bedais[be_id].channel = params_channels(params);
  18944. msm_bedais[be_id].format = params_format(params);
  18945. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  18946. __func__, msm_bedais[be_id].sample_rate,
  18947. msm_bedais[be_id].format, be_id);
  18948. mutex_unlock(&routing_lock);
  18949. return 0;
  18950. }
  18951. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  18952. {
  18953. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18954. unsigned int be_id = rtd->dai_link->id;
  18955. int i, session_type, path_type, topology;
  18956. struct msm_pcm_routing_bdai_data *bedai;
  18957. struct msm_pcm_routing_fdai_data *fdai;
  18958. pr_debug("%s: substream->pcm->id:%s\n",
  18959. __func__, substream->pcm->id);
  18960. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18961. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18962. return -EINVAL;
  18963. }
  18964. bedai = &msm_bedais[be_id];
  18965. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  18966. 0 : 1);
  18967. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18968. path_type = ADM_PATH_PLAYBACK;
  18969. else
  18970. path_type = ADM_PATH_LIVE_REC;
  18971. mutex_lock(&routing_lock);
  18972. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18973. if (!is_mm_lsm_fe_id(i))
  18974. continue;
  18975. fdai = &fe_dai_map[i][session_type];
  18976. if (fdai->strm_id != INVALID_SESSION) {
  18977. int idx;
  18978. int port_id;
  18979. unsigned long copp =
  18980. session_copp_map[i][session_type][be_id];
  18981. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  18982. if (test_bit(idx, &copp))
  18983. break;
  18984. fdai->be_srate = bedai->sample_rate;
  18985. port_id = bedai->port_id;
  18986. topology = adm_get_topology_for_port_copp_idx(port_id,
  18987. idx);
  18988. msm_routing_unload_topology(topology);
  18989. adm_close(bedai->port_id, fdai->perf_mode, idx);
  18990. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  18991. __func__, copp, i, session_type, be_id,
  18992. topology);
  18993. clear_bit(idx,
  18994. &session_copp_map[i][session_type][be_id]);
  18995. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  18996. (bedai->passthr_mode[i] == LEGACY_PCM))
  18997. msm_pcm_routing_deinit_pp(bedai->port_id,
  18998. topology);
  18999. }
  19000. }
  19001. bedai->active = 0;
  19002. bedai->sample_rate = 0;
  19003. bedai->channel = 0;
  19004. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  19005. if (bedai->passthr_mode[i] != LISTEN)
  19006. bedai->passthr_mode[i] = LEGACY_PCM;
  19007. }
  19008. mutex_unlock(&routing_lock);
  19009. return 0;
  19010. }
  19011. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  19012. {
  19013. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  19014. unsigned int be_id = rtd->dai_link->id;
  19015. int i, path_type, topology;
  19016. int session_type = INVALID_SESSION;
  19017. struct msm_pcm_routing_bdai_data *bedai;
  19018. u32 channels, sample_rate;
  19019. uint16_t bits_per_sample = 16, voc_path_type;
  19020. struct msm_pcm_routing_fdai_data *fdai;
  19021. u32 session_id;
  19022. struct media_format_info voc_be_media_format;
  19023. bool is_lsm;
  19024. pr_debug("%s: substream->pcm->id:%s\n",
  19025. __func__, substream->pcm->id);
  19026. if (be_id >= MSM_BACKEND_DAI_MAX) {
  19027. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  19028. return -EINVAL;
  19029. }
  19030. bedai = &msm_bedais[be_id];
  19031. mutex_lock(&routing_lock);
  19032. if (bedai->active == 1)
  19033. goto done; /* Ignore prepare if back-end already active */
  19034. /* AFE port is not active at this point. However, still
  19035. * go ahead setting active flag under the notion that
  19036. * QDSP6 is able to handle ADM starting before AFE port
  19037. * is started.
  19038. */
  19039. bedai->active = 1;
  19040. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19041. if (!(is_mm_lsm_fe_id(i) &&
  19042. route_check_fe_id_adm_support(i)))
  19043. continue;
  19044. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  19045. if (bedai->passthr_mode[i] != LEGACY_PCM)
  19046. path_type = ADM_PATH_COMPRESSED_RX;
  19047. else
  19048. path_type = ADM_PATH_PLAYBACK;
  19049. session_type = SESSION_TYPE_RX;
  19050. } else {
  19051. path_type = ADM_PATH_LIVE_REC;
  19052. session_type = SESSION_TYPE_TX;
  19053. }
  19054. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  19055. (i <= MSM_FRONTEND_DAI_LSM8);
  19056. fdai = &fe_dai_map[i][session_type];
  19057. if (fdai->strm_id != INVALID_SESSION) {
  19058. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  19059. if (session_type == SESSION_TYPE_TX &&
  19060. fdai->be_srate &&
  19061. (fdai->be_srate != bedai->sample_rate)) {
  19062. pr_debug("%s: flush strm %d diff BE rates\n",
  19063. __func__,
  19064. fdai->strm_id);
  19065. if (fdai->event_info.event_func)
  19066. fdai->event_info.event_func(
  19067. MSM_PCM_RT_EVT_BUF_RECFG,
  19068. fdai->event_info.priv_data);
  19069. fdai->be_srate = 0; /* might not need it */
  19070. }
  19071. bits_per_sample = msm_routing_get_bit_width(
  19072. bedai->format);
  19073. app_type =
  19074. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  19075. if (app_type && is_lsm) {
  19076. app_type_idx =
  19077. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  19078. sample_rate =
  19079. fe_dai_app_type_cfg[i][session_type][be_id]
  19080. .sample_rate;
  19081. bits_per_sample =
  19082. lsm_app_type_cfg[app_type_idx].bit_width;
  19083. } else if (app_type) {
  19084. app_type_idx =
  19085. msm_pcm_routing_get_app_type_idx(app_type);
  19086. sample_rate =
  19087. fe_dai_app_type_cfg[i][session_type]
  19088. [be_id].sample_rate;
  19089. bits_per_sample =
  19090. app_type_cfg[app_type_idx].bit_width;
  19091. } else
  19092. sample_rate = bedai->sample_rate;
  19093. /*
  19094. * check if ADM needs to be configured with different
  19095. * channel mapping than backend
  19096. */
  19097. if (!bedai->adm_override_ch)
  19098. channels = bedai->channel;
  19099. else
  19100. channels = bedai->adm_override_ch;
  19101. acdb_dev_id =
  19102. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  19103. topology = msm_routing_get_adm_topology(i, session_type,
  19104. be_id);
  19105. copp_idx = adm_open(bedai->port_id, path_type,
  19106. sample_rate, channels, topology,
  19107. fdai->perf_mode, bits_per_sample,
  19108. app_type, acdb_dev_id);
  19109. if ((copp_idx < 0) ||
  19110. (copp_idx >= MAX_COPPS_PER_PORT)) {
  19111. pr_err("%s: adm open failed\n", __func__);
  19112. mutex_unlock(&routing_lock);
  19113. return -EINVAL;
  19114. }
  19115. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  19116. __func__, i, session_type, be_id);
  19117. set_bit(copp_idx,
  19118. &session_copp_map[i][session_type][be_id]);
  19119. if (msm_is_resample_needed(
  19120. sample_rate,
  19121. bedai->sample_rate))
  19122. adm_copp_mfc_cfg(
  19123. bedai->port_id, copp_idx,
  19124. bedai->sample_rate);
  19125. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19126. fdai->perf_mode,
  19127. bedai->passthr_mode[i]);
  19128. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19129. (bedai->passthr_mode[i] == LEGACY_PCM))
  19130. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19131. topology, channels);
  19132. }
  19133. }
  19134. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19135. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19136. if (session_id) {
  19137. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19138. session_id);
  19139. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19140. voc_path_type = RX_PATH;
  19141. else
  19142. voc_path_type = TX_PATH;
  19143. voc_set_route_flag(session_id, voc_path_type, 1);
  19144. memset(&voc_be_media_format, 0,
  19145. sizeof(struct media_format_info));
  19146. voc_be_media_format.port_id = bedai->port_id;
  19147. voc_be_media_format.num_channels = bedai->channel;
  19148. voc_be_media_format.sample_rate = bedai->sample_rate;
  19149. voc_be_media_format.bits_per_sample = bedai->format;
  19150. /* Defaulting this to 1 for voice call usecases */
  19151. voc_be_media_format.channel_mapping[0] = 1;
  19152. voc_set_device_config(session_id, voc_path_type,
  19153. &voc_be_media_format);
  19154. if (voc_get_route_flag(session_id, RX_PATH) &&
  19155. voc_get_route_flag(session_id, TX_PATH))
  19156. voc_enable_device(session_id);
  19157. }
  19158. }
  19159. /* Check if backend is an external ec ref port and set as needed */
  19160. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19161. memset(&voc_be_media_format, 0,
  19162. sizeof(struct media_format_info));
  19163. /* Get format info for ec ref port from msm_bedais[] */
  19164. voc_be_media_format.port_id = bedai->port_id;
  19165. voc_be_media_format.num_channels = bedai->channel;
  19166. voc_be_media_format.bits_per_sample = bedai->format;
  19167. voc_be_media_format.sample_rate = bedai->sample_rate;
  19168. /* Defaulting this to 1 for voice call usecases */
  19169. voc_be_media_format.channel_mapping[0] = 1;
  19170. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19171. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19172. __func__, voc_be_media_format.port_id,
  19173. voc_be_media_format.num_channels,
  19174. voc_be_media_format.bits_per_sample,
  19175. voc_be_media_format.sample_rate);
  19176. }
  19177. done:
  19178. mutex_unlock(&routing_lock);
  19179. return 0;
  19180. }
  19181. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19182. int fe_id)
  19183. {
  19184. int index, topo_id, be_idx;
  19185. unsigned long pp_config = 0;
  19186. bool mute_on;
  19187. int latency;
  19188. bool compr_passthr_mode = true;
  19189. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19190. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19191. pr_err("%s: Device pp params on invalid port %d\n",
  19192. __func__, port_id);
  19193. return -EINVAL;
  19194. }
  19195. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19196. if (port_id == msm_bedais[be_idx].port_id)
  19197. break;
  19198. }
  19199. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19200. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19201. return -EINVAL;
  19202. }
  19203. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19204. if (msm_bedais_pp_params[index].port_id == port_id)
  19205. break;
  19206. }
  19207. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19208. pr_err("%s: Invalid backend pp params index %d\n",
  19209. __func__, index);
  19210. return -EINVAL;
  19211. }
  19212. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19213. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19214. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19215. __func__, topo_id);
  19216. return -EINVAL;
  19217. }
  19218. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19219. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19220. compr_passthr_mode = false;
  19221. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19222. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19223. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19224. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19225. mute_on = msm_bedais_pp_params[index].mute_on;
  19226. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19227. adm_send_compressed_device_mute(port_id,
  19228. copp_idx,
  19229. mute_on);
  19230. }
  19231. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19232. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19233. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19234. &pp_config);
  19235. latency = msm_bedais_pp_params[index].latency;
  19236. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19237. adm_send_compressed_device_latency(port_id,
  19238. copp_idx,
  19239. latency);
  19240. }
  19241. return 0;
  19242. }
  19243. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  19244. {
  19245. uint32_t topology = NULL_COPP_TOPOLOGY;
  19246. void *cal_info = NULL;
  19247. uint32_t size = 0;
  19248. /* Retrieve cal_info size from cal data*/
  19249. size = data_size - sizeof(struct audio_cal_type_basic);
  19250. cal_info = kzalloc(size, GFP_KERNEL);
  19251. if (!cal_info)
  19252. goto done;
  19253. memcpy(cal_info,
  19254. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  19255. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  19256. kfree(cal_info);
  19257. cal_info = NULL;
  19258. done:
  19259. pr_debug("%s: Using topology %d\n", __func__, topology);
  19260. return topology;
  19261. }
  19262. static void msm_routing_load_topology(size_t data_size, void *data)
  19263. {
  19264. uint32_t topology_id;
  19265. int ret = -EINVAL;
  19266. topology_id = msm_routing_get_topology(data_size, data);
  19267. if (topology_id != NULL_COPP_TOPOLOGY)
  19268. ret = q6core_load_unload_topo_modules(topology_id,
  19269. CORE_LOAD_TOPOLOGY);
  19270. if (ret < 0)
  19271. pr_debug("%s %d load topology failed\n",
  19272. __func__, topology_id);
  19273. }
  19274. static void msm_routing_unload_topology(uint32_t topology_id)
  19275. {
  19276. int ret = -EINVAL;
  19277. if (topology_id != NULL_COPP_TOPOLOGY)
  19278. ret = q6core_load_unload_topo_modules(topology_id,
  19279. CORE_UNLOAD_TOPOLOGY);
  19280. if (ret < 0)
  19281. pr_debug("%s %d unload topology failed\n",
  19282. __func__, topology_id);
  19283. }
  19284. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19285. struct snd_ctl_elem_value *ucontrol)
  19286. {
  19287. int pp_id = ucontrol->value.integer.value[0];
  19288. int port_id = 0;
  19289. int index, be_idx, i, topo_id, idx;
  19290. bool mute;
  19291. int latency;
  19292. bool compr_passthr_mode = true;
  19293. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19294. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19295. port_id = msm_bedais[be_idx].port_id;
  19296. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19297. break;
  19298. }
  19299. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19300. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19301. return -EINVAL;
  19302. }
  19303. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19304. if (msm_bedais_pp_params[index].port_id == port_id)
  19305. break;
  19306. }
  19307. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19308. pr_err("%s: Invalid pp params backend index %d\n",
  19309. __func__, index);
  19310. return -EINVAL;
  19311. }
  19312. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19313. MSM_FRONTEND_DAI_MM_SIZE) {
  19314. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19315. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19316. compr_passthr_mode = false;
  19317. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19318. unsigned long copp =
  19319. session_copp_map[i]
  19320. [SESSION_TYPE_RX][be_idx];
  19321. if (!test_bit(idx, &copp))
  19322. continue;
  19323. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19324. idx);
  19325. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19326. continue;
  19327. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19328. __func__, port_id, copp, msm_bedais[be_idx].active,
  19329. msm_bedais[be_idx].passthr_mode[i]);
  19330. switch (pp_id) {
  19331. case ADM_PP_PARAM_MUTE_ID:
  19332. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19333. mute = ucontrol->value.integer.value[1] ? true : false;
  19334. msm_bedais_pp_params[index].mute_on = mute;
  19335. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19336. &msm_bedais_pp_params[index].pp_params_config);
  19337. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19338. adm_send_compressed_device_mute(port_id,
  19339. idx, mute);
  19340. break;
  19341. case ADM_PP_PARAM_LATENCY_ID:
  19342. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19343. msm_bedais_pp_params[index].latency =
  19344. ucontrol->value.integer.value[1];
  19345. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19346. &msm_bedais_pp_params[index].pp_params_config);
  19347. latency = msm_bedais_pp_params[index].latency =
  19348. ucontrol->value.integer.value[1];
  19349. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19350. adm_send_compressed_device_latency(port_id,
  19351. idx, latency);
  19352. break;
  19353. default:
  19354. pr_info("%s, device pp param %d not supported\n",
  19355. __func__, pp_id);
  19356. break;
  19357. }
  19358. }
  19359. }
  19360. return 0;
  19361. }
  19362. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19363. struct snd_ctl_elem_value *ucontrol)
  19364. {
  19365. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19366. return 0;
  19367. }
  19368. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19369. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19370. 0, 3, msm_routing_get_device_pp_params_mixer,
  19371. msm_routing_put_device_pp_params_mixer),
  19372. };
  19373. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19374. struct snd_ctl_elem_value *ucontrol)
  19375. {
  19376. ucontrol->value.integer.value[0] =
  19377. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19378. pr_debug("%s: status %ld\n", __func__,
  19379. ucontrol->value.integer.value[0]);
  19380. return 0;
  19381. }
  19382. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19383. struct snd_ctl_elem_value *ucontrol)
  19384. {
  19385. int32_t status = 0;
  19386. status = core_set_license(ucontrol->value.integer.value[0],
  19387. APTX_CLASSIC_DEC_LICENSE_ID);
  19388. pr_debug("%s: status %d\n", __func__, status);
  19389. return status;
  19390. }
  19391. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19392. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19393. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19394. msm_aptx_dec_license_control_put),
  19395. };
  19396. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19397. struct snd_ctl_elem_info *uinfo)
  19398. {
  19399. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19400. uinfo->count = sizeof(be_dai_name_table);
  19401. return 0;
  19402. }
  19403. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19404. unsigned int __user *bytes,
  19405. unsigned int size)
  19406. {
  19407. int i;
  19408. int ret = 0;
  19409. if (size < sizeof(be_dai_name_table)) {
  19410. pr_err("%s: invalid size %d requested, returning\n",
  19411. __func__, size);
  19412. ret = -EINVAL;
  19413. goto done;
  19414. }
  19415. /*
  19416. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19417. * needed when adding new backends
  19418. */
  19419. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19420. be_dai_name_table[i].be_id = i;
  19421. strlcpy(be_dai_name_table[i].be_name,
  19422. msm_bedais[i].name,
  19423. LPASS_BE_NAME_MAX_LENGTH);
  19424. }
  19425. ret = copy_to_user(bytes, &be_dai_name_table,
  19426. sizeof(be_dai_name_table));
  19427. if (ret) {
  19428. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19429. ret = -EFAULT;
  19430. }
  19431. done:
  19432. return ret;
  19433. }
  19434. static const struct snd_kcontrol_new
  19435. msm_routing_be_dai_name_table_mixer_controls[] = {
  19436. {
  19437. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19438. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19439. .info = msm_routing_be_dai_name_table_info,
  19440. .name = "Backend DAI Name Table",
  19441. .tlv.c = snd_soc_bytes_tlv_callback,
  19442. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19443. .max = sizeof(be_dai_name_table),
  19444. .get = msm_routing_be_dai_name_table_tlv_get,
  19445. }
  19446. },
  19447. };
  19448. static int msm_routing_stereo_channel_reverse_control_get(
  19449. struct snd_kcontrol *kcontrol,
  19450. struct snd_ctl_elem_value *ucontrol)
  19451. {
  19452. ucontrol->value.integer.value[0] = swap_ch;
  19453. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19454. ucontrol->value.integer.value[0]);
  19455. return 0;
  19456. }
  19457. static int msm_routing_stereo_channel_reverse_control_put(
  19458. struct snd_kcontrol *kcontrol,
  19459. struct snd_ctl_elem_value *ucontrol)
  19460. {
  19461. int i, idx, be_index, port_id;
  19462. int ret = 0;
  19463. unsigned long copp;
  19464. pr_debug("%s Swap channel value:%ld\n", __func__,
  19465. ucontrol->value.integer.value[0]);
  19466. swap_ch = ucontrol->value.integer.value[0];
  19467. mutex_lock(&routing_lock);
  19468. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19469. port_id = msm_bedais[be_index].port_id;
  19470. if (!msm_bedais[be_index].active)
  19471. continue;
  19472. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19473. MSM_FRONTEND_DAI_MM_SIZE) {
  19474. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19475. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19476. if (!test_bit(idx, &copp))
  19477. continue;
  19478. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19479. __func__, port_id, idx);
  19480. ret = adm_swap_speaker_channels(
  19481. port_id, idx,
  19482. msm_bedais[be_index].sample_rate,
  19483. swap_ch);
  19484. if (ret) {
  19485. pr_err("%s:Swap_channel failed, err=%d\n",
  19486. __func__, ret);
  19487. goto done;
  19488. }
  19489. }
  19490. }
  19491. }
  19492. done:
  19493. mutex_unlock(&routing_lock);
  19494. return ret;
  19495. }
  19496. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19497. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19498. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19499. msm_routing_stereo_channel_reverse_control_put),
  19500. };
  19501. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19502. struct snd_ctl_elem_info *uinfo)
  19503. {
  19504. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19505. uinfo->count = 1;
  19506. return 0;
  19507. }
  19508. static int msm_routing_instance_id_support_put(
  19509. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19510. {
  19511. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19512. q6common_update_instance_id_support(supported);
  19513. return 0;
  19514. }
  19515. static int msm_routing_instance_id_support_get(
  19516. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19517. {
  19518. bool supported = false;
  19519. supported = q6common_is_instance_id_supported();
  19520. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19521. return 0;
  19522. }
  19523. static const struct snd_kcontrol_new
  19524. msm_routing_feature_support_mixer_controls[] = {
  19525. {
  19526. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19527. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19528. .info = msm_routing_instance_id_support_info,
  19529. .name = "Instance ID Support",
  19530. .put = msm_routing_instance_id_support_put,
  19531. .get = msm_routing_instance_id_support_get,
  19532. },
  19533. };
  19534. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19535. .hw_params = msm_pcm_routing_hw_params,
  19536. .close = msm_pcm_routing_close,
  19537. .prepare = msm_pcm_routing_prepare,
  19538. };
  19539. /* Not used but frame seems to require it */
  19540. static int msm_routing_probe(struct snd_soc_platform *platform)
  19541. {
  19542. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19543. ARRAY_SIZE(msm_qdsp6_widgets));
  19544. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19545. ARRAY_SIZE(intercon));
  19546. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19547. snd_soc_add_platform_controls(platform, lsm_controls,
  19548. ARRAY_SIZE(lsm_controls));
  19549. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19550. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19551. snd_soc_add_platform_controls(platform, aanc_noise_level,
  19552. ARRAY_SIZE(aanc_noise_level));
  19553. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19554. ARRAY_SIZE(msm_voc_session_controls));
  19555. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19556. ARRAY_SIZE(app_type_cfg_controls));
  19557. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19558. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19559. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19560. ARRAY_SIZE(module_cfg_controls));
  19561. snd_soc_add_platform_controls(platform,
  19562. stereo_to_custom_stereo_controls,
  19563. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19564. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19565. ARRAY_SIZE(ec_ref_param_controls));
  19566. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19567. ARRAY_SIZE(channel_mixer_controls));
  19568. msm_qti_pp_add_controls(platform);
  19569. msm_dts_srs_tm_add_controls(platform);
  19570. msm_dolby_dap_add_controls(platform);
  19571. snd_soc_add_platform_controls(platform,
  19572. use_ds1_or_ds2_controls,
  19573. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19574. snd_soc_add_platform_controls(platform,
  19575. device_pp_params_mixer_controls,
  19576. ARRAY_SIZE(device_pp_params_mixer_controls));
  19577. snd_soc_add_platform_controls(platform,
  19578. msm_routing_be_dai_name_table_mixer_controls,
  19579. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19580. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19581. ARRAY_SIZE(msm_source_tracking_controls));
  19582. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19583. ARRAY_SIZE(adm_channel_config_controls));
  19584. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19585. ARRAY_SIZE(aptx_dec_license_controls));
  19586. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19587. ARRAY_SIZE(stereo_channel_reverse_control));
  19588. snd_soc_add_platform_controls(
  19589. platform, msm_routing_feature_support_mixer_controls,
  19590. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19591. return 0;
  19592. }
  19593. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19594. {
  19595. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19596. }
  19597. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19598. {
  19599. msm_pcm_routing_hwdep_free(pcm);
  19600. }
  19601. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19602. .ops = &msm_routing_pcm_ops,
  19603. .probe = msm_routing_probe,
  19604. .pcm_new = msm_routing_pcm_new,
  19605. .pcm_free = msm_routing_pcm_free,
  19606. };
  19607. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19608. {
  19609. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19610. return snd_soc_register_platform(&pdev->dev,
  19611. &msm_soc_routing_platform);
  19612. }
  19613. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19614. {
  19615. snd_soc_unregister_platform(&pdev->dev);
  19616. return 0;
  19617. }
  19618. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19619. {.compatible = "qcom,msm-pcm-routing"},
  19620. {}
  19621. };
  19622. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19623. static struct platform_driver msm_routing_pcm_driver = {
  19624. .driver = {
  19625. .name = "msm-pcm-routing",
  19626. .owner = THIS_MODULE,
  19627. .of_match_table = msm_pcm_routing_dt_match,
  19628. },
  19629. .probe = msm_routing_pcm_probe,
  19630. .remove = msm_routing_pcm_remove,
  19631. };
  19632. int msm_routing_check_backend_enabled(int fedai_id)
  19633. {
  19634. int i;
  19635. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19636. /* bad ID assigned in machine driver */
  19637. pr_err("%s: bad MM ID\n", __func__);
  19638. return 0;
  19639. }
  19640. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19641. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19642. return msm_bedais[i].active;
  19643. }
  19644. return 0;
  19645. }
  19646. static int get_cal_type_index(int32_t cal_type)
  19647. {
  19648. int ret = -EINVAL;
  19649. switch (cal_type) {
  19650. case ADM_TOPOLOGY_CAL_TYPE:
  19651. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19652. break;
  19653. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19654. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19655. break;
  19656. default:
  19657. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19658. }
  19659. return ret;
  19660. }
  19661. static int msm_routing_set_cal(int32_t cal_type,
  19662. size_t data_size, void *data)
  19663. {
  19664. int ret = 0;
  19665. int cal_index;
  19666. pr_debug("%s\n", __func__);
  19667. cal_index = get_cal_type_index(cal_type);
  19668. if (cal_index < 0) {
  19669. pr_err("%s: Could not get cal index %d\n",
  19670. __func__, cal_index);
  19671. ret = -EINVAL;
  19672. goto done;
  19673. }
  19674. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19675. if (ret < 0) {
  19676. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19677. __func__, ret, cal_type);
  19678. ret = -EINVAL;
  19679. goto done;
  19680. }
  19681. /* Pre-load if it is ADM topology */
  19682. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  19683. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  19684. msm_routing_load_topology(data_size, data);
  19685. }
  19686. done:
  19687. return ret;
  19688. }
  19689. static void msm_routing_delete_cal_data(void)
  19690. {
  19691. pr_debug("%s\n", __func__);
  19692. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19693. }
  19694. static int msm_routing_init_cal_data(void)
  19695. {
  19696. int ret = 0;
  19697. struct cal_type_info cal_type_info[] = {
  19698. {{ADM_TOPOLOGY_CAL_TYPE,
  19699. {NULL, NULL, NULL,
  19700. msm_routing_set_cal, NULL, NULL} },
  19701. {NULL, NULL, cal_utils_match_buf_num} },
  19702. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  19703. {NULL, NULL, NULL,
  19704. msm_routing_set_cal, NULL, NULL} },
  19705. {NULL, NULL, cal_utils_match_buf_num} },
  19706. };
  19707. pr_debug("%s\n", __func__);
  19708. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  19709. &cal_type_info[0]);
  19710. if (ret < 0) {
  19711. pr_err("%s: could not create cal type!\n",
  19712. __func__);
  19713. ret = -EINVAL;
  19714. goto err;
  19715. }
  19716. return ret;
  19717. err:
  19718. msm_routing_delete_cal_data();
  19719. return ret;
  19720. }
  19721. int __init msm_soc_routing_platform_init(void)
  19722. {
  19723. mutex_init(&routing_lock);
  19724. if (msm_routing_init_cal_data())
  19725. pr_err("%s: could not init cal data!\n", __func__);
  19726. afe_set_routing_callback(
  19727. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  19728. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19729. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  19730. return platform_driver_register(&msm_routing_pcm_driver);
  19731. }
  19732. void msm_soc_routing_platform_exit(void)
  19733. {
  19734. msm_routing_delete_cal_data();
  19735. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19736. mutex_destroy(&routing_lock);
  19737. platform_driver_unregister(&msm_routing_pcm_driver);
  19738. }
  19739. MODULE_DESCRIPTION("MSM routing platform driver");
  19740. MODULE_LICENSE("GPL v2");