msm-pcm-routing-v2.c 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static int aanc_level;
  76. static int num_app_cfg_types;
  77. static int msm_ec_ref_port_id;
  78. static int afe_loopback_tx_port_index;
  79. static int afe_loopback_tx_port_id = -1;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* all the FES which can support channel mixer for bidirection */
  84. static struct msm_pcm_channel_mixer
  85. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  86. /* input BE for each FE */
  87. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  88. enum {
  89. MADNONE,
  90. MADAUDIO,
  91. MADBEACON,
  92. MADULTRASOUND,
  93. MADSWAUDIO,
  94. };
  95. #define ADM_LSM_PORT_INDEX 9
  96. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  97. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  98. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  99. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  100. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  101. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  102. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  103. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  104. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  105. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  106. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  107. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  108. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  109. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  110. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  111. #define LSM_FUNCTION_TEXT "LSM Function"
  112. static const char * const lsm_port_text[] = {
  113. "None",
  114. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  115. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  116. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  117. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  118. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  119. };
  120. struct msm_pcm_route_bdai_pp_params {
  121. u16 port_id; /* AFE port ID */
  122. unsigned long pp_params_config;
  123. bool mute_on;
  124. int latency;
  125. };
  126. static struct msm_pcm_route_bdai_pp_params
  127. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  128. {HDMI_RX, 0, 0, 0},
  129. {DISPLAY_PORT_RX, 0, 0, 0},
  130. };
  131. /*
  132. * The be_dai_name_table is passed to HAL so that it can specify the
  133. * BE ID for the BE it wants to enable based on the name. Thus there
  134. * is a matching table and structure in HAL that need to be updated
  135. * if any changes to these are made.
  136. */
  137. struct msm_pcm_route_bdai_name {
  138. unsigned int be_id;
  139. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  140. };
  141. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  142. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  143. int fe_id);
  144. static void msm_routing_load_topology(size_t data_size, void *data);
  145. static void msm_routing_unload_topology(uint32_t topology_id);
  146. static int msm_routing_get_bit_width(unsigned int format)
  147. {
  148. int bit_width;
  149. switch (format) {
  150. case SNDRV_PCM_FORMAT_S32_LE:
  151. bit_width = 32;
  152. break;
  153. case SNDRV_PCM_FORMAT_S24_LE:
  154. case SNDRV_PCM_FORMAT_S24_3LE:
  155. bit_width = 24;
  156. break;
  157. case SNDRV_PCM_FORMAT_S16_LE:
  158. default:
  159. bit_width = 16;
  160. }
  161. return bit_width;
  162. }
  163. static bool msm_is_resample_needed(int input_sr, int output_sr)
  164. {
  165. bool rc = false;
  166. if (input_sr != output_sr)
  167. rc = true;
  168. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  169. (rc ? "oh yes" : "not really"),
  170. input_sr, output_sr);
  171. return rc;
  172. }
  173. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  174. int channels)
  175. {
  176. int rc = 0;
  177. switch (topology) {
  178. case SRS_TRUMEDIA_TOPOLOGY_ID:
  179. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  180. msm_dts_srs_tm_init(port_id, copp_idx);
  181. break;
  182. case DS2_ADM_COPP_TOPOLOGY_ID:
  183. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  184. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  189. __func__, topology, port_id,
  190. is_custom_stereo_on, rc);
  191. break;
  192. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  193. if (is_ds2_on) {
  194. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  195. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. } else {
  201. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  202. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  203. is_custom_stereo_on);
  204. if (rc < 0)
  205. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  206. __func__, topology, port_id, rc);
  207. }
  208. break;
  209. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  210. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  211. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  212. if (rc < 0)
  213. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  214. __func__, topology, port_id, copp_idx, rc);
  215. break;
  216. default:
  217. /* custom topology specific feature param handlers */
  218. break;
  219. }
  220. }
  221. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  222. {
  223. switch (topology) {
  224. case SRS_TRUMEDIA_TOPOLOGY_ID:
  225. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  226. msm_dts_srs_tm_deinit(port_id);
  227. break;
  228. case DS2_ADM_COPP_TOPOLOGY_ID:
  229. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  230. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  231. msm_ds2_dap_deinit(port_id);
  232. break;
  233. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  234. if (is_ds2_on) {
  235. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  236. msm_ds2_dap_deinit(port_id);
  237. } else {
  238. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_dolby_dap_deinit(port_id);
  240. }
  241. break;
  242. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  243. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  244. msm_qti_pp_asphere_deinit(port_id);
  245. break;
  246. default:
  247. /* custom topology specific feature deinit handlers */
  248. break;
  249. }
  250. }
  251. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  252. int path_type, int perf_mode)
  253. {
  254. int itr = 0, rc = 0;
  255. if ((path_type == ADM_PATH_PLAYBACK) &&
  256. (perf_mode == LEGACY_PCM_MODE) &&
  257. is_custom_stereo_on) {
  258. for (itr = 0; itr < payload.num_copps; itr++) {
  259. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  260. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  261. continue;
  262. }
  263. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  264. payload.port_id[itr],
  265. payload.copp_idx[itr],
  266. payload.session_id,
  267. Q14_GAIN_ZERO_POINT_FIVE,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE);
  271. if (rc < 0)
  272. pr_err("%s: err setting custom stereo\n",
  273. __func__);
  274. }
  275. }
  276. }
  277. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  278. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  279. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  280. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  281. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  282. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  283. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  284. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  285. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  286. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  287. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  288. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AFE_PCM_RX},
  290. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AFE_PCM_TX},
  292. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AUXPCM_RX},
  294. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AUXPCM_TX},
  296. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_VOICE_PLAYBACK_TX},
  298. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_VOICE2_PLAYBACK_TX},
  300. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_INCALL_RECORD_RX},
  302. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_INCALL_RECORD_TX},
  304. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  305. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  306. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  307. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  308. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  309. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  310. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  311. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  312. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  313. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  314. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  315. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  316. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  317. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  318. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  319. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  320. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  321. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  322. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  323. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  326. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_QUAT_MI2S_RX},
  328. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_QUAT_MI2S_TX},
  330. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_SEC_MI2S_RX},
  332. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_SEC_MI2S_TX},
  334. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_PRI_MI2S_RX},
  336. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_PRI_MI2S_TX},
  338. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_TERT_MI2S_RX},
  340. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_TERT_MI2S_TX},
  342. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_AUDIO_I2S_RX},
  344. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_SEC_AUXPCM_RX},
  346. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_AUXPCM_TX},
  348. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_PRI_SPDIF_RX},
  350. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_MI2S_RX_SD1},
  352. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_QUIN_MI2S_RX},
  354. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_QUIN_MI2S_TX},
  356. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_SENARY_MI2S_TX},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_0},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_0},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_1},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_1},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_2},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_2},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_3},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_3},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_4},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_4},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_5},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_5},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_6},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_6},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_7},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_7},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_0},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_0},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_1},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_1},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_2},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_2},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_3},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_3},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_4},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_4},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_5},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_5},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_6},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_6},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_7},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_7},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_0},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_0},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_1},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_1},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_2},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_2},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_3},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_3},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_4},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_4},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_5},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_5},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_6},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_6},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_7},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_7},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_0},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_0},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_1},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_1},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_2},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_2},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_3},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_3},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_4},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_4},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_5},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_5},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_6},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_6},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_7},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_7},
  486. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_0},
  488. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_0},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_1},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_1},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_2},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_2},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_3},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_3},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_4},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_4},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_5},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_5},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_6},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_6},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_7},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_7},
  518. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_SEN_TDM_RX_0},
  520. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_SEN_TDM_TX_0},
  522. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_1},
  524. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_1},
  526. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_2},
  528. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_2},
  530. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_3},
  532. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_3},
  534. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_4},
  536. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_4},
  538. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_5},
  540. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_5},
  542. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_6},
  544. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_6},
  546. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_7},
  548. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_7},
  550. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT_BT_A2DP_RX},
  552. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_USB_AUDIO_RX},
  554. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_USB_AUDIO_TX},
  556. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_DISPLAY_PORT},
  558. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_DISPLAY_PORT1},
  560. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_TERT_AUXPCM_RX},
  562. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_TERT_AUXPCM_TX},
  564. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_QUAT_AUXPCM_RX},
  566. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_QUAT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUIN_AUXPCM_RX},
  570. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUIN_AUXPCM_TX},
  572. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_INT0_MI2S_RX},
  574. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_INT0_MI2S_TX},
  576. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT1_MI2S_RX},
  578. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT1_MI2S_TX},
  580. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT2_MI2S_RX},
  582. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT2_MI2S_TX},
  584. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT3_MI2S_RX},
  586. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT3_MI2S_TX},
  588. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT4_MI2S_RX},
  590. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT4_MI2S_TX},
  592. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT5_MI2S_RX},
  594. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT5_MI2S_TX},
  596. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT6_MI2S_RX},
  598. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT6_MI2S_TX},
  600. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_SEN_AUXPCM_RX},
  602. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_SEN_AUXPCM_TX},
  604. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SENARY_MI2S_RX},
  606. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_WSA_CDC_DMA_RX_0},
  608. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_WSA_CDC_DMA_TX_0},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_1},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_1},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_TX_2},
  616. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_VA_CDC_DMA_TX_0},
  618. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_VA_CDC_DMA_TX_1},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_2},
  622. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_RX_CDC_DMA_RX_0},
  624. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TX_CDC_DMA_TX_0},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_1},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_1},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_2},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_2},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_3},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_3},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_4},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_4},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_5},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_5},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_6},
  648. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_RX_CDC_DMA_RX_7},
  650. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_PRI_SPDIF_TX},
  652. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_SEC_SPDIF_RX},
  654. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_SEC_SPDIF_TX},
  656. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  657. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  658. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  659. };
  660. /* Track ASM playback & capture sessions of DAI
  661. * Track LSM listen sessions
  662. */
  663. static struct msm_pcm_routing_fdai_data
  664. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  665. /* MULTIMEDIA1 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA2 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA3 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA4 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA5 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA6 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA7*/
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA8 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA9 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA10 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA11 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA12 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* MULTIMEDIA13 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* MULTIMEDIA14 */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* MULTIMEDIA15 */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* MULTIMEDIA16 */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* MULTIMEDIA17 */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* MULTIMEDIA18 */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* MULTIMEDIA19 */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* MULTIMEDIA20 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* MULTIMEDIA21 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* MULTIMEDIA26 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* MULTIMEDIA27 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* MULTIMEDIA28 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* MULTIMEDIA29 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* VOIP */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* AFE_RX */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* AFE_TX */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* VOICE_STUB */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* DTMF_RX */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. /* QCHAT */
  756. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  757. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  758. /* VOLTE_STUB */
  759. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  760. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  761. /* LSM1 */
  762. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  763. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  764. /* LSM2 */
  765. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  766. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  767. /* LSM3 */
  768. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  769. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  770. /* LSM4 */
  771. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  772. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  773. /* LSM5 */
  774. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  775. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  776. /* LSM6 */
  777. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  778. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  779. /* LSM7 */
  780. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  781. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  782. /* LSM8 */
  783. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  784. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  785. /* VOICE2_STUB */
  786. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  787. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  788. /* VOICEMMODE1 */
  789. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  790. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  791. /* VOICEMMODE2 */
  792. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  793. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  794. };
  795. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  796. [MSM_BACKEND_DAI_MAX];
  797. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  798. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  799. static struct msm_pcm_stream_app_type_cfg
  800. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  801. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  802. /* The caller of this should acquire routing lock */
  803. void msm_pcm_routing_get_bedai_info(int be_idx,
  804. struct msm_pcm_routing_bdai_data *be_dai)
  805. {
  806. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  807. memcpy(be_dai, &msm_bedais[be_idx],
  808. sizeof(struct msm_pcm_routing_bdai_data));
  809. }
  810. /* The caller of this should acquire routing lock */
  811. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  812. struct msm_pcm_routing_fdai_data *fe_dai)
  813. {
  814. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  815. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  816. sizeof(struct msm_pcm_routing_fdai_data));
  817. }
  818. void msm_pcm_routing_acquire_lock(void)
  819. {
  820. mutex_lock(&routing_lock);
  821. }
  822. void msm_pcm_routing_release_lock(void)
  823. {
  824. mutex_unlock(&routing_lock);
  825. }
  826. static int msm_pcm_routing_get_app_type_idx(int app_type)
  827. {
  828. int idx;
  829. pr_debug("%s: app_type: %d\n", __func__, app_type);
  830. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  831. if (app_type_cfg[idx].app_type == app_type)
  832. return idx;
  833. }
  834. pr_info("%s: App type not available, fallback to default\n", __func__);
  835. return 0;
  836. }
  837. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  838. {
  839. int idx;
  840. pr_debug("%s: app_type: %d\n", __func__, app_type);
  841. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  842. if (lsm_app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_debug("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int get_port_id(int port_id)
  849. {
  850. int ret = port_id;
  851. if (port_id == AFE_LOOPBACK_TX) {
  852. /*
  853. * Return afe_loopback_tx_port_id if set. Else return
  854. * msm_ec_ref_port_id to maintain backward compatibility.
  855. */
  856. if (afe_loopback_tx_port_id != -1)
  857. ret = afe_loopback_tx_port_id;
  858. else
  859. ret = msm_ec_ref_port_id;
  860. }
  861. return ret;
  862. }
  863. static bool is_mm_lsm_fe_id(int fe_id)
  864. {
  865. bool rc = true;
  866. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  867. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  868. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  869. rc = false;
  870. }
  871. return rc;
  872. }
  873. /*
  874. * msm_pcm_routing_send_chmix_cfg:
  875. * send the channel mixer command to mix the input channels
  876. * into output channels.
  877. *
  878. * @fe_id: front end id
  879. * @ip_channel_cnt: input channel count
  880. * @op_channel_cnt: output channel count
  881. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  882. * @session_type: indicates session is of type TX or RX
  883. * @stream_type: indicates either Audio or Listen stream type
  884. */
  885. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  886. int op_channel_cnt, int *ch_wght_coeff,
  887. int session_type, int stream_type)
  888. {
  889. int rc = 0, idx = 0;
  890. int be_index = 0, port_id;
  891. unsigned int session_id = 0;
  892. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  893. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  894. stream_type);
  895. if (!is_mm_lsm_fe_id(fe_id)) {
  896. /* bad ID assigned in machine driver */
  897. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  898. return -EINVAL;
  899. }
  900. if (ch_wght_coeff == NULL) {
  901. pr_err("%s: Null channel weightage coefficients passed\n",
  902. __func__);
  903. return -EINVAL;
  904. }
  905. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  906. port_id = msm_bedais[be_index].port_id;
  907. if (!msm_bedais[be_index].active ||
  908. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  909. continue;
  910. session_id = fe_dai_map[fe_id][session_type].strm_id;
  911. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  912. unsigned long copp =
  913. session_copp_map[fe_id][session_type][be_index];
  914. if (!test_bit(idx, &copp))
  915. continue;
  916. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  917. session_id, ip_channel_cnt,
  918. op_channel_cnt, ch_wght_coeff,
  919. session_type, stream_type);
  920. if (rc < 0)
  921. pr_err("%s: err setting channel mix config\n",
  922. __func__);
  923. }
  924. }
  925. return 0;
  926. }
  927. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  928. /**
  929. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  930. * setting before use case start.
  931. *
  932. * @fe_id: frontend idx
  933. * @type: stream direction type
  934. * @params: parameters of channel mixer setting
  935. *
  936. * Return 0 for success
  937. */
  938. int msm_pcm_routing_set_channel_mixer_cfg(
  939. int fe_id, int type,
  940. struct msm_pcm_channel_mixer *params)
  941. {
  942. int i, j = 0;
  943. channel_mixer_v2[fe_id][type].enable = params->enable;
  944. channel_mixer_v2[fe_id][type].rule = params->rule;
  945. channel_mixer_v2[fe_id][type].input_channel =
  946. params->input_channel;
  947. channel_mixer_v2[fe_id][type].output_channel =
  948. params->output_channel;
  949. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  950. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  951. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  952. params->in_ch_map[i];
  953. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  954. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  955. params->out_ch_map[i];
  956. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  957. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  958. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  959. params->channel_weight[i][j];
  960. channel_mixer_v2[fe_id][type].override_in_ch_map =
  961. params->override_in_ch_map;
  962. channel_mixer_v2[fe_id][type].override_out_ch_map =
  963. params->override_out_ch_map;
  964. return 0;
  965. }
  966. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  967. int msm_pcm_routing_reg_stream_app_type_cfg(
  968. int fedai_id, int session_type, int be_id,
  969. struct msm_pcm_stream_app_type_cfg *cfg_data)
  970. {
  971. int ret = 0;
  972. if (cfg_data == NULL) {
  973. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  974. ret = -EINVAL;
  975. goto done;
  976. }
  977. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  978. __func__, fedai_id, session_type, be_id,
  979. cfg_data->app_type, cfg_data->acdb_dev_id,
  980. cfg_data->sample_rate);
  981. if (!is_mm_lsm_fe_id(fedai_id)) {
  982. pr_err("%s: Invalid machine driver ID %d\n",
  983. __func__, fedai_id);
  984. ret = -EINVAL;
  985. goto done;
  986. }
  987. if (session_type != SESSION_TYPE_RX &&
  988. session_type != SESSION_TYPE_TX) {
  989. pr_err("%s: Invalid session type %d\n",
  990. __func__, session_type);
  991. ret = -EINVAL;
  992. goto done;
  993. }
  994. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  995. pr_err("%s: Received out of bounds be_id %d\n",
  996. __func__, be_id);
  997. ret = -EINVAL;
  998. goto done;
  999. }
  1000. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1001. /*
  1002. * Store the BE ID of the configuration information set as the latest so
  1003. * the get mixer control knows what to return.
  1004. */
  1005. last_be_id_configured[fedai_id][session_type] = be_id;
  1006. done:
  1007. return ret;
  1008. }
  1009. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1010. /**
  1011. * msm_pcm_routing_get_stream_app_type_cfg
  1012. *
  1013. * Receives fedai_id, session_type, be_id, and populates app_type,
  1014. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1015. * -EINVAL and does not alter passed values.
  1016. *
  1017. * fedai_id - Passed value, front end ID for which app type config is wanted
  1018. * session_type - Passed value, session type for which app type config
  1019. * is wanted
  1020. * be_id - Returned value, back end device id the app type config data is for
  1021. * cfg_data - Returned value, configuration data used by app type config
  1022. */
  1023. int msm_pcm_routing_get_stream_app_type_cfg(
  1024. int fedai_id, int session_type, int *bedai_id,
  1025. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1026. {
  1027. int be_id;
  1028. int ret = 0;
  1029. if (bedai_id == NULL) {
  1030. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1031. ret = -EINVAL;
  1032. goto done;
  1033. } else if (cfg_data == NULL) {
  1034. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1035. ret = -EINVAL;
  1036. goto done;
  1037. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1038. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1039. ret = -EINVAL;
  1040. goto done;
  1041. } else if (session_type != SESSION_TYPE_RX &&
  1042. session_type != SESSION_TYPE_TX) {
  1043. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1044. ret = -EINVAL;
  1045. goto done;
  1046. }
  1047. be_id = last_be_id_configured[fedai_id][session_type];
  1048. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1049. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. }
  1053. *bedai_id = be_id;
  1054. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1055. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1056. __func__, fedai_id, session_type, *bedai_id,
  1057. cfg_data->app_type, cfg_data->acdb_dev_id,
  1058. cfg_data->sample_rate);
  1059. done:
  1060. return ret;
  1061. }
  1062. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1063. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1064. int cal_index)
  1065. {
  1066. struct list_head *ptr, *next;
  1067. struct cal_block_data *cal_block = NULL;
  1068. pr_debug("%s\n", __func__);
  1069. list_for_each_safe(ptr, next,
  1070. &cal_data[cal_index]->cal_blocks) {
  1071. cal_block = list_entry(ptr,
  1072. struct cal_block_data, list);
  1073. if (cal_utils_is_cal_stale(cal_block))
  1074. continue;
  1075. if (((struct audio_cal_info_adm_top *)cal_block
  1076. ->cal_info)->path == path) {
  1077. return cal_block;
  1078. }
  1079. }
  1080. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1081. return NULL;
  1082. }
  1083. static struct cal_block_data *msm_routing_find_topology(int path,
  1084. int app_type,
  1085. int acdb_id,
  1086. int cal_index,
  1087. bool exact)
  1088. {
  1089. struct list_head *ptr, *next;
  1090. struct cal_block_data *cal_block = NULL;
  1091. struct audio_cal_info_adm_top *cal_info;
  1092. pr_debug("%s\n", __func__);
  1093. list_for_each_safe(ptr, next,
  1094. &cal_data[cal_index]->cal_blocks) {
  1095. cal_block = list_entry(ptr,
  1096. struct cal_block_data, list);
  1097. if (cal_utils_is_cal_stale(cal_block))
  1098. continue;
  1099. cal_info = (struct audio_cal_info_adm_top *)
  1100. cal_block->cal_info;
  1101. if ((cal_info->path == path) &&
  1102. (cal_info->app_type == app_type) &&
  1103. (cal_info->acdb_id == acdb_id)) {
  1104. return cal_block;
  1105. }
  1106. }
  1107. pr_debug("%s: Can't find topology for path %d, app %d, "
  1108. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1109. exact ? "fail" : "defaulting to search by path");
  1110. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1111. cal_index);
  1112. }
  1113. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1114. int acdb_dev_id, int idx,
  1115. bool exact)
  1116. {
  1117. int topology = -EINVAL;
  1118. struct cal_block_data *cal_block = NULL;
  1119. mutex_lock(&cal_data[idx]->lock);
  1120. cal_block = msm_routing_find_topology(session_type, app_type,
  1121. acdb_dev_id, idx, exact);
  1122. if (cal_block != NULL) {
  1123. topology = ((struct audio_cal_info_adm_top *)
  1124. cal_block->cal_info)->topology;
  1125. }
  1126. mutex_unlock(&cal_data[idx]->lock);
  1127. return topology;
  1128. }
  1129. /*
  1130. * Retrieving cal_block will mark cal_block as stale.
  1131. * Hence it cannot be reused or resent unless the flag
  1132. * is reset.
  1133. */
  1134. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1135. int be_id)
  1136. {
  1137. int topology = NULL_COPP_TOPOLOGY;
  1138. int app_type = 0, acdb_dev_id = 0;
  1139. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1140. __func__, fedai_id, session_type, be_id);
  1141. if (cal_data == NULL)
  1142. goto done;
  1143. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1144. acdb_dev_id =
  1145. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1146. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1147. topology = msm_routing_find_topology_on_index(session_type,
  1148. app_type,
  1149. acdb_dev_id,
  1150. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1151. true /*exact*/);
  1152. if (topology < 0) {
  1153. pr_debug("%s: Check for compatible topology\n", __func__);
  1154. topology = msm_routing_find_topology_on_index(session_type,
  1155. app_type,
  1156. acdb_dev_id,
  1157. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1158. false /*exact*/);
  1159. if (topology < 0)
  1160. topology = NULL_COPP_TOPOLOGY;
  1161. }
  1162. done:
  1163. pr_debug("%s: Using topology %d\n", __func__, topology);
  1164. return topology;
  1165. }
  1166. static uint8_t is_be_dai_extproc(int be_dai)
  1167. {
  1168. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1169. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1170. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1171. return 1;
  1172. else
  1173. return 0;
  1174. }
  1175. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1176. int path_type, int perf_mode,
  1177. uint32_t passthr_mode)
  1178. {
  1179. int i, port_type, j, num_copps = 0;
  1180. struct route_payload payload;
  1181. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1182. path_type == ADM_PATH_COMPRESSED_RX) ?
  1183. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1184. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1185. if (!is_be_dai_extproc(i) &&
  1186. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1187. (msm_bedais[i].active) &&
  1188. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1189. int port_id = get_port_id(msm_bedais[i].port_id);
  1190. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1191. unsigned long copp =
  1192. session_copp_map[fedai_id][sess_type][i];
  1193. if (test_bit(j, &copp)) {
  1194. payload.port_id[num_copps] = port_id;
  1195. payload.copp_idx[num_copps] = j;
  1196. payload.app_type[num_copps] =
  1197. fe_dai_app_type_cfg
  1198. [fedai_id][sess_type][i]
  1199. .app_type;
  1200. payload.acdb_dev_id[num_copps] =
  1201. fe_dai_app_type_cfg
  1202. [fedai_id][sess_type][i]
  1203. .acdb_dev_id;
  1204. payload.sample_rate[num_copps] =
  1205. fe_dai_app_type_cfg
  1206. [fedai_id][sess_type][i]
  1207. .sample_rate;
  1208. num_copps++;
  1209. }
  1210. }
  1211. }
  1212. }
  1213. if (num_copps) {
  1214. payload.num_copps = num_copps;
  1215. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1216. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1217. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1218. }
  1219. }
  1220. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1221. int stream_type)
  1222. {
  1223. int i, session_type, path_type, port_type;
  1224. u32 mode = 0;
  1225. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1226. /* bad ID assigned in machine driver */
  1227. pr_err("%s: bad MM ID\n", __func__);
  1228. return;
  1229. }
  1230. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1231. session_type = SESSION_TYPE_RX;
  1232. path_type = ADM_PATH_PLAYBACK;
  1233. port_type = MSM_AFE_PORT_TYPE_RX;
  1234. } else {
  1235. session_type = SESSION_TYPE_TX;
  1236. path_type = ADM_PATH_LIVE_REC;
  1237. port_type = MSM_AFE_PORT_TYPE_TX;
  1238. }
  1239. mutex_lock(&routing_lock);
  1240. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1241. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1242. if (!is_be_dai_extproc(i) &&
  1243. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1244. (msm_bedais[i].active) &&
  1245. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1246. mode = afe_get_port_type(msm_bedais[i].port_id);
  1247. adm_connect_afe_port(mode, dspst_id,
  1248. msm_bedais[i].port_id);
  1249. break;
  1250. }
  1251. }
  1252. mutex_unlock(&routing_lock);
  1253. }
  1254. static bool route_check_fe_id_adm_support(int fe_id)
  1255. {
  1256. bool rc = true;
  1257. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1258. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1259. /* fe id is listen while port is set to afe */
  1260. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1261. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1262. __func__, fe_id, lsm_port_index);
  1263. rc = false;
  1264. }
  1265. }
  1266. return rc;
  1267. }
  1268. /*
  1269. * msm_pcm_routing_get_pp_ch_cnt:
  1270. * Read the processed channel count
  1271. *
  1272. * @fe_id: Front end ID
  1273. * @session_type: Inidicates RX or TX session type
  1274. */
  1275. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1276. {
  1277. struct msm_pcm_stream_app_type_cfg cfg_data;
  1278. int be_id = 0, app_type_idx = 0, app_type = 0;
  1279. int ret = -EINVAL;
  1280. memset(&cfg_data, 0, sizeof(cfg_data));
  1281. if (!is_mm_lsm_fe_id(fe_id)) {
  1282. pr_err("%s: bad MM ID\n", __func__);
  1283. return -EINVAL;
  1284. }
  1285. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1286. &be_id, &cfg_data);
  1287. if (ret) {
  1288. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1289. return ret;
  1290. }
  1291. app_type = cfg_data.app_type;
  1292. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1293. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1294. }
  1295. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1296. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1297. int dspst_id, int stream_type,
  1298. uint32_t passthr_mode)
  1299. {
  1300. int i, j, session_type, path_type, port_type, topology;
  1301. int num_copps = 0;
  1302. struct route_payload payload;
  1303. u32 channels, sample_rate;
  1304. u16 bit_width = 16;
  1305. bool is_lsm;
  1306. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1307. __func__, fe_id, perf_mode, dspst_id,
  1308. stream_type, passthr_mode);
  1309. if (!is_mm_lsm_fe_id(fe_id)) {
  1310. /* bad ID assigned in machine driver */
  1311. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1312. return -EINVAL;
  1313. }
  1314. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1315. session_type = SESSION_TYPE_RX;
  1316. if (passthr_mode != LEGACY_PCM)
  1317. path_type = ADM_PATH_COMPRESSED_RX;
  1318. else
  1319. path_type = ADM_PATH_PLAYBACK;
  1320. port_type = MSM_AFE_PORT_TYPE_RX;
  1321. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1322. session_type = SESSION_TYPE_TX;
  1323. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1324. path_type = ADM_PATH_COMPRESSED_TX;
  1325. else
  1326. path_type = ADM_PATH_LIVE_REC;
  1327. port_type = MSM_AFE_PORT_TYPE_TX;
  1328. } else {
  1329. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1330. return -EINVAL;
  1331. }
  1332. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1333. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1334. mutex_lock(&routing_lock);
  1335. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1336. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1337. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1338. if (!route_check_fe_id_adm_support(fe_id)) {
  1339. /* ignore adm open if not supported for fe_id */
  1340. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1341. mutex_unlock(&routing_lock);
  1342. return 0;
  1343. }
  1344. payload.num_copps = 0; /* only RX needs to use payload */
  1345. /* re-enable EQ if active */
  1346. msm_qti_pp_send_eq_values(fe_id);
  1347. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1348. if (!is_be_dai_extproc(i) &&
  1349. (afe_get_port_type(msm_bedais[i].port_id) ==
  1350. port_type) &&
  1351. (msm_bedais[i].active) &&
  1352. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1353. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1354. int port_id = get_port_id(msm_bedais[i].port_id);
  1355. /*
  1356. * check if ADM needs to be configured with different
  1357. * channel mapping than backend
  1358. */
  1359. if (!msm_bedais[i].adm_override_ch)
  1360. channels = msm_bedais[i].channel;
  1361. else
  1362. channels = msm_bedais[i].adm_override_ch;
  1363. bit_width = msm_routing_get_bit_width(
  1364. msm_bedais[i].format);
  1365. app_type =
  1366. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1367. if (app_type && is_lsm) {
  1368. app_type_idx =
  1369. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1370. sample_rate =
  1371. fe_dai_app_type_cfg[fe_id][session_type][i]
  1372. .sample_rate;
  1373. bit_width =
  1374. lsm_app_type_cfg[app_type_idx].bit_width;
  1375. } else if (app_type) {
  1376. app_type_idx =
  1377. msm_pcm_routing_get_app_type_idx(
  1378. app_type);
  1379. sample_rate =
  1380. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1381. bit_width =
  1382. app_type_cfg[app_type_idx].bit_width;
  1383. } else {
  1384. sample_rate = msm_bedais[i].sample_rate;
  1385. }
  1386. acdb_dev_id =
  1387. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1388. topology = msm_routing_get_adm_topology(fe_id,
  1389. session_type,
  1390. i);
  1391. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1392. || (passthr_mode ==
  1393. COMPRESSED_PASSTHROUGH_GEN)
  1394. || (passthr_mode ==
  1395. COMPRESSED_PASSTHROUGH_IEC61937))
  1396. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1397. pr_debug("%s: Before adm open topology %d\n", __func__,
  1398. topology);
  1399. copp_idx =
  1400. adm_open(port_id, path_type, sample_rate,
  1401. channels, topology, perf_mode,
  1402. bit_width, app_type, acdb_dev_id,
  1403. session_type);
  1404. if ((copp_idx < 0) ||
  1405. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1406. pr_err("%s:adm open failed coppid:%d\n",
  1407. __func__, copp_idx);
  1408. mutex_unlock(&routing_lock);
  1409. return -EINVAL;
  1410. }
  1411. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1412. __func__, fe_id, session_type, i);
  1413. set_bit(copp_idx,
  1414. &session_copp_map[fe_id][session_type][i]);
  1415. if (msm_is_resample_needed(
  1416. sample_rate,
  1417. msm_bedais[i].sample_rate))
  1418. adm_copp_mfc_cfg(port_id, copp_idx,
  1419. msm_bedais[i].sample_rate);
  1420. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1421. unsigned long copp =
  1422. session_copp_map[fe_id][session_type][i];
  1423. if (test_bit(j, &copp)) {
  1424. payload.port_id[num_copps] = port_id;
  1425. payload.copp_idx[num_copps] = j;
  1426. payload.app_type[num_copps] =
  1427. fe_dai_app_type_cfg
  1428. [fe_id][session_type][i]
  1429. .app_type;
  1430. payload.acdb_dev_id[num_copps] =
  1431. fe_dai_app_type_cfg
  1432. [fe_id][session_type][i]
  1433. .acdb_dev_id;
  1434. payload.sample_rate[num_copps] =
  1435. fe_dai_app_type_cfg
  1436. [fe_id][session_type][i]
  1437. .sample_rate;
  1438. num_copps++;
  1439. }
  1440. }
  1441. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1442. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1443. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1444. msm_routing_send_device_pp_params(port_id,
  1445. copp_idx, fe_id);
  1446. }
  1447. }
  1448. if (num_copps) {
  1449. payload.num_copps = num_copps;
  1450. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1451. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1452. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1453. }
  1454. mutex_unlock(&routing_lock);
  1455. return 0;
  1456. }
  1457. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1458. {
  1459. u32 session_id;
  1460. switch (val) {
  1461. case MSM_FRONTEND_DAI_QCHAT:
  1462. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1463. break;
  1464. case MSM_FRONTEND_DAI_VOIP:
  1465. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1466. break;
  1467. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1468. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1469. break;
  1470. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1471. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1472. break;
  1473. default:
  1474. session_id = 0;
  1475. }
  1476. pr_debug("%s session_id 0x%x", __func__, session_id);
  1477. return session_id;
  1478. }
  1479. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1480. int dspst_id, int stream_type)
  1481. {
  1482. int copp_idx = 0;
  1483. int sess_type = 0;
  1484. int j = 0, be_id = 0;
  1485. int ret = 0;
  1486. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1487. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1488. return 0;
  1489. }
  1490. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1491. sess_type = SESSION_TYPE_RX;
  1492. else
  1493. sess_type = SESSION_TYPE_TX;
  1494. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1495. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1496. __func__, fe_id, sess_type);
  1497. return 0;
  1498. }
  1499. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1500. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1501. channel_mixer_v2[fe_id][sess_type].input_channel;
  1502. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1503. __func__, sess_type, fe_id,
  1504. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1505. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1506. msm_bedais[be_id].active);
  1507. if ((msm_bedais[be_id].active) &&
  1508. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1509. unsigned long copp =
  1510. session_copp_map[fe_id][sess_type][be_id];
  1511. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1512. if (test_bit(j, &copp)) {
  1513. copp_idx = j;
  1514. break;
  1515. }
  1516. }
  1517. ret = adm_programable_channel_mixer(
  1518. msm_bedais[be_id].port_id,
  1519. copp_idx, dspst_id, sess_type,
  1520. &channel_mixer_v2[fe_id][sess_type], 0);
  1521. }
  1522. return ret;
  1523. }
  1524. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1525. int dspst_id, int stream_type)
  1526. {
  1527. int copp_idx = 0;
  1528. int sess_type = 0;
  1529. int i = 0, j = 0, be_id;
  1530. int ret = 0;
  1531. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1532. dspst_id, stream_type);
  1533. if (ret) {
  1534. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1535. fe_id);
  1536. return ret;
  1537. }
  1538. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1539. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1540. return 0;
  1541. }
  1542. if (!(channel_mixer[fe_id].enable)) {
  1543. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1544. __func__, fe_id);
  1545. return 0;
  1546. }
  1547. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1548. sess_type = SESSION_TYPE_RX;
  1549. else
  1550. sess_type = SESSION_TYPE_TX;
  1551. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1552. ++i) {
  1553. be_id = channel_input[fe_id][i] - 1;
  1554. channel_mixer[fe_id].input_channels[i] =
  1555. msm_bedais[be_id].channel;
  1556. if ((msm_bedais[be_id].active) &&
  1557. test_bit(fe_id,
  1558. &msm_bedais[be_id].fe_sessions[0])) {
  1559. unsigned long copp =
  1560. session_copp_map[fe_id][sess_type][be_id];
  1561. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1562. if (test_bit(j, &copp)) {
  1563. copp_idx = j;
  1564. break;
  1565. }
  1566. }
  1567. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1568. __func__,
  1569. fe_id, be_id, msm_bedais[be_id].channel,
  1570. copp_idx);
  1571. ret = adm_programable_channel_mixer(
  1572. get_port_id(msm_bedais[be_id].port_id),
  1573. copp_idx, dspst_id, sess_type,
  1574. channel_mixer + fe_id, i);
  1575. }
  1576. }
  1577. return ret;
  1578. }
  1579. /**
  1580. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1581. * setting during runtime.
  1582. *
  1583. * @be_id: backend index
  1584. * @session_id: session index
  1585. * @session_type: session type
  1586. * @params: parameters for channel mixer
  1587. *
  1588. * Retuen: 0 for success, else error
  1589. */
  1590. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1591. int session_type,
  1592. struct msm_pcm_channel_mixer *params)
  1593. {
  1594. int rc = 0;
  1595. int port_id, copp_idx = 0;
  1596. be_id--;
  1597. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1598. pr_err("%s: invalid backend id %d\n", __func__,
  1599. be_id);
  1600. return -EINVAL;
  1601. }
  1602. port_id = msm_bedais[be_id].port_id;
  1603. copp_idx = adm_get_default_copp_idx(port_id);
  1604. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1605. __func__, port_id, copp_idx, session_id);
  1606. if ((params->input_channel < 0) ||
  1607. (params->input_channel > ADM_MAX_CHANNELS)) {
  1608. pr_err("%s: invalid input channel %d\n", __func__,
  1609. params->input_channel);
  1610. return -EINVAL;
  1611. }
  1612. if ((params->output_channel < 0) ||
  1613. (params->output_channel > ADM_MAX_CHANNELS)) {
  1614. pr_err("%s: invalid output channel %d\n", __func__,
  1615. params->output_channel);
  1616. return -EINVAL;
  1617. }
  1618. params->input_channels[0] = params->input_channel;
  1619. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1620. __func__, session_type,
  1621. params->override_in_ch_map,
  1622. params->override_out_ch_map,
  1623. msm_bedais[be_id].active);
  1624. rc = adm_programable_channel_mixer(port_id,
  1625. copp_idx,
  1626. session_id,
  1627. session_type,
  1628. params,
  1629. 0);
  1630. if (rc) {
  1631. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1632. rc = -EINVAL;
  1633. }
  1634. return rc;
  1635. }
  1636. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1637. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1638. int dspst_id, int stream_type)
  1639. {
  1640. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1641. struct route_payload payload;
  1642. u32 channels, sample_rate;
  1643. uint16_t bits_per_sample = 16;
  1644. uint32_t passthr_mode = LEGACY_PCM;
  1645. int ret = 0;
  1646. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1647. /* bad ID assigned in machine driver */
  1648. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1649. return -EINVAL;
  1650. }
  1651. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1652. session_type = SESSION_TYPE_RX;
  1653. path_type = ADM_PATH_PLAYBACK;
  1654. port_type = MSM_AFE_PORT_TYPE_RX;
  1655. } else {
  1656. session_type = SESSION_TYPE_TX;
  1657. path_type = ADM_PATH_LIVE_REC;
  1658. port_type = MSM_AFE_PORT_TYPE_TX;
  1659. }
  1660. mutex_lock(&routing_lock);
  1661. payload.num_copps = 0; /* only RX needs to use payload */
  1662. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1663. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1664. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1665. /* re-enable EQ if active */
  1666. msm_qti_pp_send_eq_values(fedai_id);
  1667. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1668. if (!is_be_dai_extproc(i) &&
  1669. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1670. (msm_bedais[i].active) &&
  1671. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1672. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1673. int port_id = get_port_id(msm_bedais[i].port_id);
  1674. /*
  1675. * check if ADM needs to be configured with different
  1676. * channel mapping than backend
  1677. */
  1678. if (!msm_bedais[i].adm_override_ch)
  1679. channels = msm_bedais[i].channel;
  1680. else
  1681. channels = msm_bedais[i].adm_override_ch;
  1682. bits_per_sample = msm_routing_get_bit_width(
  1683. msm_bedais[i].format);
  1684. app_type =
  1685. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1686. if (app_type) {
  1687. app_type_idx =
  1688. msm_pcm_routing_get_app_type_idx(app_type);
  1689. sample_rate =
  1690. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1691. .sample_rate;
  1692. bits_per_sample =
  1693. app_type_cfg[app_type_idx].bit_width;
  1694. } else
  1695. sample_rate = msm_bedais[i].sample_rate;
  1696. acdb_dev_id =
  1697. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1698. .acdb_dev_id;
  1699. topology = msm_routing_get_adm_topology(fedai_id,
  1700. session_type,
  1701. i);
  1702. copp_idx = adm_open(port_id, path_type,
  1703. sample_rate, channels, topology,
  1704. perf_mode, bits_per_sample,
  1705. app_type, acdb_dev_id,
  1706. session_type);
  1707. if ((copp_idx < 0) ||
  1708. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1709. pr_err("%s: adm open failed copp_idx:%d\n",
  1710. __func__, copp_idx);
  1711. mutex_unlock(&routing_lock);
  1712. return -EINVAL;
  1713. }
  1714. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1715. __func__, fedai_id, session_type, i);
  1716. set_bit(copp_idx,
  1717. &session_copp_map[fedai_id][session_type][i]);
  1718. if (msm_is_resample_needed(
  1719. sample_rate,
  1720. msm_bedais[i].sample_rate))
  1721. adm_copp_mfc_cfg(port_id, copp_idx,
  1722. msm_bedais[i].sample_rate);
  1723. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1724. unsigned long copp =
  1725. session_copp_map[fedai_id][session_type][i];
  1726. if (test_bit(j, &copp)) {
  1727. payload.port_id[num_copps] = port_id;
  1728. payload.copp_idx[num_copps] = j;
  1729. payload.app_type[num_copps] =
  1730. fe_dai_app_type_cfg
  1731. [fedai_id][session_type]
  1732. [i].app_type;
  1733. payload.acdb_dev_id[num_copps] =
  1734. fe_dai_app_type_cfg
  1735. [fedai_id][session_type]
  1736. [i].acdb_dev_id;
  1737. payload.sample_rate[num_copps] =
  1738. fe_dai_app_type_cfg
  1739. [fedai_id][session_type]
  1740. [i].sample_rate;
  1741. num_copps++;
  1742. }
  1743. }
  1744. if (perf_mode == LEGACY_PCM_MODE)
  1745. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1746. topology, channels);
  1747. }
  1748. }
  1749. if (num_copps) {
  1750. payload.num_copps = num_copps;
  1751. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1752. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1753. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1754. }
  1755. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1756. dspst_id, stream_type);
  1757. mutex_unlock(&routing_lock);
  1758. return ret;
  1759. }
  1760. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1761. int dspst_id, int stream_type,
  1762. struct msm_pcm_routing_evt event_info)
  1763. {
  1764. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1765. stream_type)) {
  1766. pr_err("%s: failed to reg phy stream\n", __func__);
  1767. return -EINVAL;
  1768. }
  1769. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1770. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1771. else
  1772. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1773. return 0;
  1774. }
  1775. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1776. {
  1777. int i, port_type, session_type, path_type, topology, port_id;
  1778. struct msm_pcm_routing_fdai_data *fdai;
  1779. if (!is_mm_lsm_fe_id(fedai_id)) {
  1780. /* bad ID assigned in machine driver */
  1781. pr_err("%s: bad MM ID\n", __func__);
  1782. return;
  1783. }
  1784. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1785. port_type = MSM_AFE_PORT_TYPE_RX;
  1786. session_type = SESSION_TYPE_RX;
  1787. path_type = ADM_PATH_PLAYBACK;
  1788. } else {
  1789. port_type = MSM_AFE_PORT_TYPE_TX;
  1790. session_type = SESSION_TYPE_TX;
  1791. path_type = ADM_PATH_LIVE_REC;
  1792. }
  1793. mutex_lock(&routing_lock);
  1794. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1795. if (!is_be_dai_extproc(i) &&
  1796. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1797. (msm_bedais[i].active) &&
  1798. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1799. int idx;
  1800. unsigned long copp =
  1801. session_copp_map[fedai_id][session_type][i];
  1802. fdai = &fe_dai_map[fedai_id][session_type];
  1803. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1804. if (test_bit(idx, &copp))
  1805. break;
  1806. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1807. pr_debug("%s: copp idx is invalid, exiting\n",
  1808. __func__);
  1809. continue;
  1810. }
  1811. port_id = get_port_id(msm_bedais[i].port_id);
  1812. topology = adm_get_topology_for_port_copp_idx(
  1813. port_id, idx);
  1814. msm_routing_unload_topology(topology);
  1815. adm_close(port_id, fdai->perf_mode, idx);
  1816. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1817. __func__, copp, fedai_id, session_type, i);
  1818. clear_bit(idx,
  1819. &session_copp_map[fedai_id][session_type][i]);
  1820. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1821. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1822. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1823. (fdai->passthr_mode == LEGACY_PCM))
  1824. msm_pcm_routing_deinit_pp(port_id, topology);
  1825. }
  1826. }
  1827. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1828. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1829. mutex_unlock(&routing_lock);
  1830. }
  1831. /* Check if FE/BE route is set */
  1832. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1833. {
  1834. bool rc = false;
  1835. if (!is_mm_lsm_fe_id(fe_id)) {
  1836. /* recheck FE ID in the mixer control defined in this file */
  1837. pr_err("%s: bad MM ID\n", __func__);
  1838. return rc;
  1839. }
  1840. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1841. rc = true;
  1842. return rc;
  1843. }
  1844. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1845. {
  1846. int session_type, path_type, topology;
  1847. u32 channels, sample_rate;
  1848. uint16_t bits_per_sample = 16;
  1849. struct msm_pcm_routing_fdai_data *fdai;
  1850. uint32_t passthr_mode;
  1851. bool is_lsm;
  1852. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1853. if (!is_mm_lsm_fe_id(val)) {
  1854. /* recheck FE ID in the mixer control defined in this file */
  1855. pr_err("%s: bad MM ID\n", __func__);
  1856. return;
  1857. }
  1858. if (!route_check_fe_id_adm_support(val)) {
  1859. /* ignore adm open if not supported for fe_id */
  1860. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1861. if (set)
  1862. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1863. else
  1864. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1865. return;
  1866. }
  1867. session_type =
  1868. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1869. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1870. fdai = &fe_dai_map[val][session_type];
  1871. passthr_mode = fdai->passthr_mode;
  1872. if (session_type == SESSION_TYPE_RX) {
  1873. if (passthr_mode != LEGACY_PCM)
  1874. path_type = ADM_PATH_COMPRESSED_RX;
  1875. else
  1876. path_type = ADM_PATH_PLAYBACK;
  1877. } else {
  1878. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1879. path_type = ADM_PATH_COMPRESSED_TX;
  1880. else
  1881. path_type = ADM_PATH_LIVE_REC;
  1882. }
  1883. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1884. (val <= MSM_FRONTEND_DAI_LSM8);
  1885. mutex_lock(&routing_lock);
  1886. if (set) {
  1887. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1888. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1889. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1890. voc_start_playback(set, msm_bedais[reg].port_id);
  1891. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1892. if (msm_bedais[reg].active && fdai->strm_id !=
  1893. INVALID_SESSION) {
  1894. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1895. int port_id = get_port_id(msm_bedais[reg].port_id);
  1896. /*
  1897. * check if ADM needs to be configured with different
  1898. * channel mapping than backend
  1899. */
  1900. if (!msm_bedais[reg].adm_override_ch)
  1901. channels = msm_bedais[reg].channel;
  1902. else
  1903. channels = msm_bedais[reg].adm_override_ch;
  1904. if (session_type == SESSION_TYPE_TX &&
  1905. fdai->be_srate &&
  1906. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1907. pr_debug("%s: flush strm %d diff BE rates\n",
  1908. __func__, fdai->strm_id);
  1909. if (fdai->event_info.event_func)
  1910. fdai->event_info.event_func(
  1911. MSM_PCM_RT_EVT_BUF_RECFG,
  1912. fdai->event_info.priv_data);
  1913. fdai->be_srate = 0; /* might not need it */
  1914. }
  1915. bits_per_sample = msm_routing_get_bit_width(
  1916. msm_bedais[reg].format);
  1917. app_type =
  1918. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1919. if (app_type && is_lsm) {
  1920. app_type_idx =
  1921. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1922. sample_rate =
  1923. fe_dai_app_type_cfg[val][session_type][reg]
  1924. .sample_rate;
  1925. bits_per_sample =
  1926. lsm_app_type_cfg[app_type_idx].bit_width;
  1927. } else if (app_type) {
  1928. app_type_idx =
  1929. msm_pcm_routing_get_app_type_idx(app_type);
  1930. sample_rate =
  1931. fe_dai_app_type_cfg[val][session_type][reg]
  1932. .sample_rate;
  1933. bits_per_sample =
  1934. app_type_cfg[app_type_idx].bit_width;
  1935. } else
  1936. sample_rate = msm_bedais[reg].sample_rate;
  1937. topology = msm_routing_get_adm_topology(val,
  1938. session_type,
  1939. reg);
  1940. acdb_dev_id =
  1941. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1942. copp_idx = adm_open(port_id, path_type,
  1943. sample_rate, channels, topology,
  1944. fdai->perf_mode, bits_per_sample,
  1945. app_type, acdb_dev_id,
  1946. session_type);
  1947. if ((copp_idx < 0) ||
  1948. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1949. pr_err("%s: adm open failed\n", __func__);
  1950. mutex_unlock(&routing_lock);
  1951. return;
  1952. }
  1953. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1954. __func__, val, session_type, reg);
  1955. set_bit(copp_idx,
  1956. &session_copp_map[val][session_type][reg]);
  1957. if (msm_is_resample_needed(
  1958. sample_rate,
  1959. msm_bedais[reg].sample_rate))
  1960. adm_copp_mfc_cfg(port_id, copp_idx,
  1961. msm_bedais[reg].sample_rate);
  1962. if (session_type == SESSION_TYPE_RX &&
  1963. fdai->event_info.event_func)
  1964. fdai->event_info.event_func(
  1965. MSM_PCM_RT_EVT_DEVSWITCH,
  1966. fdai->event_info.priv_data);
  1967. msm_pcm_routing_build_matrix(val, session_type,
  1968. path_type,
  1969. fdai->perf_mode,
  1970. passthr_mode);
  1971. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1972. (passthr_mode == LEGACY_PCM))
  1973. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1974. topology, channels);
  1975. }
  1976. } else {
  1977. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1978. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1979. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1980. voc_start_playback(set, msm_bedais[reg].port_id);
  1981. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1982. if (msm_bedais[reg].active && fdai->strm_id !=
  1983. INVALID_SESSION) {
  1984. int idx;
  1985. int port_id;
  1986. unsigned long copp =
  1987. session_copp_map[val][session_type][reg];
  1988. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1989. if (test_bit(idx, &copp))
  1990. break;
  1991. if (idx >= MAX_COPPS_PER_PORT) {
  1992. pr_debug("%s: copp idx is invalid, exiting\n",
  1993. __func__);
  1994. mutex_unlock(&routing_lock);
  1995. return;
  1996. }
  1997. port_id = get_port_id(msm_bedais[reg].port_id);
  1998. topology = adm_get_topology_for_port_copp_idx(port_id,
  1999. idx);
  2000. msm_routing_unload_topology(topology);
  2001. adm_close(port_id, fdai->perf_mode, idx);
  2002. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2003. __func__, copp, val, session_type, reg,
  2004. topology);
  2005. clear_bit(idx,
  2006. &session_copp_map[val][session_type][reg]);
  2007. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2008. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2009. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2010. (passthr_mode == LEGACY_PCM))
  2011. msm_pcm_routing_deinit_pp(port_id, topology);
  2012. msm_pcm_routing_build_matrix(val, session_type,
  2013. path_type,
  2014. fdai->perf_mode,
  2015. passthr_mode);
  2016. }
  2017. }
  2018. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2019. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2020. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2021. mutex_unlock(&routing_lock);
  2022. }
  2023. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2024. struct snd_ctl_elem_value *ucontrol)
  2025. {
  2026. struct soc_mixer_control *mc =
  2027. (struct soc_mixer_control *)kcontrol->private_value;
  2028. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2029. ucontrol->value.integer.value[0] = 1;
  2030. else
  2031. ucontrol->value.integer.value[0] = 0;
  2032. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2033. ucontrol->value.integer.value[0]);
  2034. return 0;
  2035. }
  2036. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2037. struct snd_ctl_elem_value *ucontrol)
  2038. {
  2039. struct snd_soc_dapm_widget *widget =
  2040. snd_soc_dapm_kcontrol_widget(kcontrol);
  2041. struct soc_mixer_control *mc =
  2042. (struct soc_mixer_control *)kcontrol->private_value;
  2043. struct snd_soc_dapm_update *update = NULL;
  2044. if (ucontrol->value.integer.value[0] &&
  2045. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2046. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2047. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2048. update);
  2049. } else if (!ucontrol->value.integer.value[0] &&
  2050. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2051. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2052. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2053. update);
  2054. }
  2055. return 1;
  2056. }
  2057. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2058. struct snd_ctl_elem_value *ucontrol)
  2059. {
  2060. struct soc_mixer_control *mc =
  2061. (struct soc_mixer_control *)kcontrol->private_value;
  2062. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2063. ucontrol->value.integer.value[0] = 1;
  2064. else
  2065. ucontrol->value.integer.value[0] = 0;
  2066. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2067. ucontrol->value.integer.value[0]);
  2068. return 0;
  2069. }
  2070. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2071. struct snd_ctl_elem_value *ucontrol)
  2072. {
  2073. struct snd_soc_dapm_widget *widget =
  2074. snd_soc_dapm_kcontrol_widget(kcontrol);
  2075. struct soc_mixer_control *mc =
  2076. (struct soc_mixer_control *)kcontrol->private_value;
  2077. struct snd_soc_dapm_update *update = NULL;
  2078. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2079. ucontrol->value.integer.value[0]);
  2080. if (ucontrol->value.integer.value[0]) {
  2081. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2082. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2083. snd_soc_dapm_mixer_update_power(widget->dapm,
  2084. kcontrol, 1, update);
  2085. } else if (!ucontrol->value.integer.value[0]) {
  2086. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2087. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2088. snd_soc_dapm_mixer_update_power(widget->dapm,
  2089. kcontrol, 0, update);
  2090. }
  2091. return 1;
  2092. }
  2093. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2094. {
  2095. u32 session_id = 0;
  2096. u16 path_type;
  2097. struct media_format_info voc_be_media_format;
  2098. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2099. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2100. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2101. __func__, val, session_id);
  2102. mutex_lock(&routing_lock);
  2103. if (set)
  2104. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2105. else
  2106. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2107. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2108. afe_get_port_type(msm_bedais[reg].port_id) ==
  2109. MSM_AFE_PORT_TYPE_RX) {
  2110. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2111. __func__, set, msm_bedais[reg].port_id);
  2112. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2113. }
  2114. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2115. MSM_AFE_PORT_TYPE_RX)
  2116. path_type = RX_PATH;
  2117. else
  2118. path_type = TX_PATH;
  2119. if (set) {
  2120. if (msm_bedais[reg].active) {
  2121. voc_set_route_flag(session_id, path_type, 1);
  2122. memset(&voc_be_media_format, 0,
  2123. sizeof(struct media_format_info));
  2124. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2125. voc_be_media_format.num_channels =
  2126. msm_bedais[reg].channel;
  2127. voc_be_media_format.sample_rate =
  2128. msm_bedais[reg].sample_rate;
  2129. voc_be_media_format.bits_per_sample =
  2130. msm_bedais[reg].format;
  2131. /* Defaulting this to 1 for voice call usecases */
  2132. voc_be_media_format.channel_mapping[0] = 1;
  2133. voc_set_device_config(session_id, path_type,
  2134. &voc_be_media_format);
  2135. if (voc_get_route_flag(session_id, TX_PATH) &&
  2136. voc_get_route_flag(session_id, RX_PATH))
  2137. voc_enable_device(session_id);
  2138. } else {
  2139. pr_debug("%s BE is not active\n", __func__);
  2140. }
  2141. } else {
  2142. voc_set_route_flag(session_id, path_type, 0);
  2143. voc_disable_device(session_id);
  2144. }
  2145. mutex_unlock(&routing_lock);
  2146. }
  2147. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2148. struct snd_ctl_elem_value *ucontrol)
  2149. {
  2150. struct soc_mixer_control *mc =
  2151. (struct soc_mixer_control *)kcontrol->private_value;
  2152. mutex_lock(&routing_lock);
  2153. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2154. ucontrol->value.integer.value[0] = 1;
  2155. else
  2156. ucontrol->value.integer.value[0] = 0;
  2157. mutex_unlock(&routing_lock);
  2158. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2159. ucontrol->value.integer.value[0]);
  2160. return 0;
  2161. }
  2162. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2163. struct snd_ctl_elem_value *ucontrol)
  2164. {
  2165. struct snd_soc_dapm_widget *widget =
  2166. snd_soc_dapm_kcontrol_widget(kcontrol);
  2167. struct soc_mixer_control *mc =
  2168. (struct soc_mixer_control *)kcontrol->private_value;
  2169. struct snd_soc_dapm_update *update = NULL;
  2170. if (ucontrol->value.integer.value[0]) {
  2171. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2172. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2173. update);
  2174. } else {
  2175. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2176. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2177. update);
  2178. }
  2179. return 1;
  2180. }
  2181. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2182. struct snd_ctl_elem_value *ucontrol)
  2183. {
  2184. struct soc_mixer_control *mc =
  2185. (struct soc_mixer_control *)kcontrol->private_value;
  2186. mutex_lock(&routing_lock);
  2187. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2188. ucontrol->value.integer.value[0] = 1;
  2189. else
  2190. ucontrol->value.integer.value[0] = 0;
  2191. mutex_unlock(&routing_lock);
  2192. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2193. ucontrol->value.integer.value[0]);
  2194. return 0;
  2195. }
  2196. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2197. struct snd_ctl_elem_value *ucontrol)
  2198. {
  2199. struct snd_soc_dapm_widget *widget =
  2200. snd_soc_dapm_kcontrol_widget(kcontrol);
  2201. struct soc_mixer_control *mc =
  2202. (struct soc_mixer_control *)kcontrol->private_value;
  2203. struct snd_soc_dapm_update *update = NULL;
  2204. if (ucontrol->value.integer.value[0]) {
  2205. mutex_lock(&routing_lock);
  2206. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2207. mutex_unlock(&routing_lock);
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2209. update);
  2210. } else {
  2211. mutex_lock(&routing_lock);
  2212. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2213. mutex_unlock(&routing_lock);
  2214. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2215. update);
  2216. }
  2217. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2218. ucontrol->value.integer.value[0]);
  2219. return 1;
  2220. }
  2221. /*
  2222. * Return the mapping between port ID and backend ID to enable the AFE callback
  2223. * to determine the acdb_dev_id from the port id
  2224. */
  2225. int msm_pcm_get_be_id_from_port_id(int port_id)
  2226. {
  2227. int i;
  2228. int be_id = -EINVAL;
  2229. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2230. if (msm_bedais[i].port_id == port_id) {
  2231. be_id = i;
  2232. break;
  2233. }
  2234. }
  2235. return be_id;
  2236. }
  2237. /*
  2238. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2239. * correct AFE calibration information by comparing the header information.
  2240. */
  2241. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2242. {
  2243. int acdb_id = -EINVAL;
  2244. int i = 0;
  2245. int session;
  2246. int port_type = afe_get_port_type(port_id);
  2247. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2248. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2249. __func__, port_id, be_id, port_type);
  2250. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2251. session = SESSION_TYPE_TX;
  2252. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2253. session = SESSION_TYPE_RX;
  2254. } else {
  2255. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2256. acdb_id = -EINVAL;
  2257. goto exit;
  2258. }
  2259. if (be_id < 0) {
  2260. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2261. goto exit;
  2262. }
  2263. mutex_lock(&routing_lock);
  2264. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2265. MSM_FRONTEND_DAI_MAX);
  2266. if (i < MSM_FRONTEND_DAI_MAX)
  2267. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2268. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2269. __func__, i, session, be_id, acdb_id);
  2270. mutex_unlock(&routing_lock);
  2271. exit:
  2272. return acdb_id;
  2273. }
  2274. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2275. struct snd_ctl_elem_value *ucontrol)
  2276. {
  2277. ucontrol->value.integer.value[0] = fm_switch_enable;
  2278. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2279. ucontrol->value.integer.value[0]);
  2280. return 0;
  2281. }
  2282. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2283. struct snd_ctl_elem_value *ucontrol)
  2284. {
  2285. struct snd_soc_dapm_widget *widget =
  2286. snd_soc_dapm_kcontrol_widget(kcontrol);
  2287. struct snd_soc_dapm_update *update = NULL;
  2288. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2289. ucontrol->value.integer.value[0]);
  2290. if (ucontrol->value.integer.value[0])
  2291. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2292. update);
  2293. else
  2294. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2295. update);
  2296. fm_switch_enable = ucontrol->value.integer.value[0];
  2297. return 1;
  2298. }
  2299. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2300. struct snd_ctl_elem_value *ucontrol)
  2301. {
  2302. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2303. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2304. ucontrol->value.integer.value[0]);
  2305. return 0;
  2306. }
  2307. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2308. struct snd_ctl_elem_value *ucontrol)
  2309. {
  2310. struct snd_soc_dapm_widget *widget =
  2311. snd_soc_dapm_kcontrol_widget(kcontrol);
  2312. struct snd_soc_dapm_update *update = NULL;
  2313. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2314. ucontrol->value.integer.value[0]);
  2315. if (ucontrol->value.integer.value[0])
  2316. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2317. 1, update);
  2318. else
  2319. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2320. 0, update);
  2321. hfp_switch_enable = ucontrol->value.integer.value[0];
  2322. return 1;
  2323. }
  2324. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2325. struct snd_ctl_elem_value *ucontrol)
  2326. {
  2327. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2328. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2329. ucontrol->value.integer.value[0]);
  2330. return 0;
  2331. }
  2332. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2333. struct snd_ctl_elem_value *ucontrol)
  2334. {
  2335. struct snd_soc_dapm_widget *widget =
  2336. snd_soc_dapm_kcontrol_widget(kcontrol);
  2337. struct snd_soc_dapm_update *update = NULL;
  2338. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2339. ucontrol->value.integer.value[0]);
  2340. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2341. if (a2dp_switch_enable)
  2342. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2343. 1, update);
  2344. else
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2346. 0, update);
  2347. return 1;
  2348. }
  2349. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2350. struct snd_ctl_elem_value *ucontrol)
  2351. {
  2352. ucontrol->value.integer.value[0] = sco_switch_enable;
  2353. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2354. ucontrol->value.integer.value[0]);
  2355. return 0;
  2356. }
  2357. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2358. struct snd_ctl_elem_value *ucontrol)
  2359. {
  2360. struct snd_soc_dapm_widget *widget =
  2361. snd_soc_dapm_kcontrol_widget(kcontrol);
  2362. struct snd_soc_dapm_update *update = NULL;
  2363. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2364. ucontrol->value.integer.value[0]);
  2365. sco_switch_enable = ucontrol->value.integer.value[0];
  2366. if (sco_switch_enable)
  2367. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2368. 1, update);
  2369. else
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2371. 0, update);
  2372. return 1;
  2373. }
  2374. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2378. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2379. ucontrol->value.integer.value[0]);
  2380. return 0;
  2381. }
  2382. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2383. struct snd_ctl_elem_value *ucontrol)
  2384. {
  2385. struct snd_soc_dapm_widget *widget =
  2386. snd_soc_dapm_kcontrol_widget(kcontrol);
  2387. struct snd_soc_dapm_update *update = NULL;
  2388. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2389. ucontrol->value.integer.value[0]);
  2390. if (ucontrol->value.integer.value[0])
  2391. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2392. update);
  2393. else
  2394. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2395. update);
  2396. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2397. return 1;
  2398. }
  2399. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2400. struct snd_ctl_elem_value *ucontrol)
  2401. {
  2402. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2403. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2404. ucontrol->value.integer.value[0]);
  2405. return 0;
  2406. }
  2407. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2408. struct snd_ctl_elem_value *ucontrol)
  2409. {
  2410. struct snd_soc_dapm_widget *widget =
  2411. snd_soc_dapm_kcontrol_widget(kcontrol);
  2412. struct snd_soc_dapm_update *update = NULL;
  2413. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2414. ucontrol->value.integer.value[0]);
  2415. if (ucontrol->value.integer.value[0])
  2416. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2417. update);
  2418. else
  2419. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2420. update);
  2421. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2422. return 1;
  2423. }
  2424. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2425. struct snd_ctl_elem_value *ucontrol)
  2426. {
  2427. ucontrol->value.integer.value[0] = usb_switch_enable;
  2428. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2429. ucontrol->value.integer.value[0]);
  2430. return 0;
  2431. }
  2432. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2433. struct snd_ctl_elem_value *ucontrol)
  2434. {
  2435. struct snd_soc_dapm_widget *widget =
  2436. snd_soc_dapm_kcontrol_widget(kcontrol);
  2437. struct snd_soc_dapm_update *update = NULL;
  2438. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2439. ucontrol->value.integer.value[0]);
  2440. if (ucontrol->value.integer.value[0])
  2441. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2442. 1, update);
  2443. else
  2444. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2445. 0, update);
  2446. usb_switch_enable = ucontrol->value.integer.value[0];
  2447. return 1;
  2448. }
  2449. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2450. struct snd_ctl_elem_value *ucontrol)
  2451. {
  2452. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2453. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2454. ucontrol->value.integer.value[0]);
  2455. return 0;
  2456. }
  2457. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2458. struct snd_ctl_elem_value *ucontrol)
  2459. {
  2460. struct snd_soc_dapm_widget *widget =
  2461. snd_soc_dapm_kcontrol_widget(kcontrol);
  2462. struct snd_soc_dapm_update *update = NULL;
  2463. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2464. ucontrol->value.integer.value[0]);
  2465. if (ucontrol->value.integer.value[0])
  2466. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2467. update);
  2468. else
  2469. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2470. update);
  2471. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2472. return 1;
  2473. }
  2474. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2475. struct snd_ctl_elem_value *ucontrol)
  2476. {
  2477. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2478. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2479. ucontrol->value.integer.value[0]);
  2480. return 0;
  2481. }
  2482. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2483. struct snd_ctl_elem_value *ucontrol)
  2484. {
  2485. struct snd_soc_dapm_widget *widget =
  2486. snd_soc_dapm_kcontrol_widget(kcontrol);
  2487. struct snd_soc_dapm_update *update = NULL;
  2488. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2489. ucontrol->value.integer.value[0]);
  2490. if (ucontrol->value.integer.value[0])
  2491. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2492. update);
  2493. else
  2494. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2495. update);
  2496. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2497. return 1;
  2498. }
  2499. static int msm_routing_get_tert_mi2s_switch_mixer(
  2500. struct snd_kcontrol *kcontrol,
  2501. struct snd_ctl_elem_value *ucontrol)
  2502. {
  2503. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2504. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2505. ucontrol->value.integer.value[0]);
  2506. return 0;
  2507. }
  2508. static int msm_routing_put_tert_mi2s_switch_mixer(
  2509. struct snd_kcontrol *kcontrol,
  2510. struct snd_ctl_elem_value *ucontrol)
  2511. {
  2512. struct snd_soc_dapm_widget *widget =
  2513. snd_soc_dapm_kcontrol_widget(kcontrol);
  2514. struct snd_soc_dapm_update *update = NULL;
  2515. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2516. ucontrol->value.integer.value[0]);
  2517. if (ucontrol->value.integer.value[0])
  2518. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2519. update);
  2520. else
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2522. update);
  2523. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2524. return 1;
  2525. }
  2526. static int msm_routing_get_quat_mi2s_switch_mixer(
  2527. struct snd_kcontrol *kcontrol,
  2528. struct snd_ctl_elem_value *ucontrol)
  2529. {
  2530. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2531. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2532. ucontrol->value.integer.value[0]);
  2533. return 0;
  2534. }
  2535. static int msm_routing_put_quat_mi2s_switch_mixer(
  2536. struct snd_kcontrol *kcontrol,
  2537. struct snd_ctl_elem_value *ucontrol)
  2538. {
  2539. struct snd_soc_dapm_widget *widget =
  2540. snd_soc_dapm_kcontrol_widget(kcontrol);
  2541. struct snd_soc_dapm_update *update = NULL;
  2542. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. if (ucontrol->value.integer.value[0])
  2545. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2546. update);
  2547. else
  2548. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2549. update);
  2550. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2551. return 1;
  2552. }
  2553. static int msm_routing_get_quin_mi2s_switch_mixer(
  2554. struct snd_kcontrol *kcontrol,
  2555. struct snd_ctl_elem_value *ucontrol)
  2556. {
  2557. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2558. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2559. ucontrol->value.integer.value[0]);
  2560. return 0;
  2561. }
  2562. static int msm_routing_put_quin_mi2s_switch_mixer(
  2563. struct snd_kcontrol *kcontrol,
  2564. struct snd_ctl_elem_value *ucontrol)
  2565. {
  2566. struct snd_soc_dapm_widget *widget =
  2567. snd_soc_dapm_kcontrol_widget(kcontrol);
  2568. struct snd_soc_dapm_update *update = NULL;
  2569. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2570. ucontrol->value.integer.value[0]);
  2571. if (ucontrol->value.integer.value[0])
  2572. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2573. update);
  2574. else
  2575. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2576. update);
  2577. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2578. return 1;
  2579. }
  2580. static int msm_routing_get_sen_mi2s_switch_mixer(
  2581. struct snd_kcontrol *kcontrol,
  2582. struct snd_ctl_elem_value *ucontrol)
  2583. {
  2584. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2585. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2586. ucontrol->value.integer.value[0]);
  2587. return 0;
  2588. }
  2589. static int msm_routing_put_sen_mi2s_switch_mixer(
  2590. struct snd_kcontrol *kcontrol,
  2591. struct snd_ctl_elem_value *ucontrol)
  2592. {
  2593. struct snd_soc_dapm_widget *widget =
  2594. snd_soc_dapm_kcontrol_widget(kcontrol);
  2595. struct snd_soc_dapm_update *update = NULL;
  2596. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2597. ucontrol->value.integer.value[0]);
  2598. if (ucontrol->value.integer.value[0])
  2599. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2600. update);
  2601. else
  2602. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2603. update);
  2604. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2605. return 1;
  2606. }
  2607. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2611. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2612. ucontrol->value.integer.value[0]);
  2613. return 0;
  2614. }
  2615. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2616. struct snd_ctl_elem_value *ucontrol)
  2617. {
  2618. struct snd_soc_dapm_widget *widget =
  2619. snd_soc_dapm_kcontrol_widget(kcontrol);
  2620. struct snd_soc_dapm_update *update = NULL;
  2621. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2622. ucontrol->value.integer.value[0]);
  2623. if (ucontrol->value.integer.value[0])
  2624. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2625. update);
  2626. else
  2627. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2628. update);
  2629. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2630. return 1;
  2631. }
  2632. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2633. struct snd_ctl_elem_value *ucontrol)
  2634. {
  2635. ucontrol->value.integer.value[0] = lsm_port_index;
  2636. return 0;
  2637. }
  2638. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2639. struct snd_ctl_elem_value *ucontrol)
  2640. {
  2641. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2642. int mux = ucontrol->value.enumerated.item[0];
  2643. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2644. if (mux >= e->items) {
  2645. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2646. return -EINVAL;
  2647. }
  2648. pr_debug("%s: LSM enable %ld\n", __func__,
  2649. ucontrol->value.integer.value[0]);
  2650. switch (ucontrol->value.integer.value[0]) {
  2651. case 1:
  2652. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2653. break;
  2654. case 2:
  2655. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2656. break;
  2657. case 3:
  2658. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2659. break;
  2660. case 4:
  2661. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2662. break;
  2663. case 5:
  2664. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2665. break;
  2666. case 6:
  2667. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2668. break;
  2669. case 7:
  2670. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2671. break;
  2672. case 8:
  2673. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2674. break;
  2675. case 9:
  2676. lsm_port = ADM_LSM_PORT_ID;
  2677. break;
  2678. case 10:
  2679. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2680. break;
  2681. case 11:
  2682. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2683. break;
  2684. case 12:
  2685. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2686. break;
  2687. case 13:
  2688. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2689. break;
  2690. case 14:
  2691. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2692. break;
  2693. case 15:
  2694. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2695. break;
  2696. default:
  2697. pr_err("Default lsm port");
  2698. break;
  2699. }
  2700. set_lsm_port(lsm_port);
  2701. lsm_port_index = ucontrol->value.integer.value[0];
  2702. return 0;
  2703. }
  2704. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2705. struct snd_ctl_elem_value *ucontrol)
  2706. {
  2707. int i;
  2708. u16 port_id;
  2709. enum afe_mad_type mad_type;
  2710. pr_debug("%s: enter\n", __func__);
  2711. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2712. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2713. strlen(lsm_port_text[i])))
  2714. break;
  2715. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2716. pr_warn("%s: Invalid id name %s\n", __func__,
  2717. kcontrol->id.name);
  2718. return -EINVAL;
  2719. }
  2720. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2721. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2722. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2723. strlen(lsm_port_text[7])))
  2724. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2725. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2726. strlen(lsm_port_text[8])))
  2727. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2728. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2729. strlen(lsm_port_text[10])))
  2730. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2731. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2732. strlen(lsm_port_text[13])))
  2733. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2734. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2735. strlen(lsm_port_text[14])))
  2736. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2737. mad_type = afe_port_get_mad_type(port_id);
  2738. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2739. mad_type);
  2740. switch (mad_type) {
  2741. case MAD_HW_NONE:
  2742. ucontrol->value.integer.value[0] = MADNONE;
  2743. break;
  2744. case MAD_HW_AUDIO:
  2745. ucontrol->value.integer.value[0] = MADAUDIO;
  2746. break;
  2747. case MAD_HW_BEACON:
  2748. ucontrol->value.integer.value[0] = MADBEACON;
  2749. break;
  2750. case MAD_HW_ULTRASOUND:
  2751. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2752. break;
  2753. case MAD_SW_AUDIO:
  2754. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2755. break;
  2756. default:
  2757. pr_warn("%s: Unknown\n", __func__);
  2758. return -EINVAL;
  2759. }
  2760. return 0;
  2761. }
  2762. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2763. struct snd_ctl_elem_value *ucontrol)
  2764. {
  2765. int i;
  2766. u16 port_id;
  2767. enum afe_mad_type mad_type;
  2768. pr_debug("%s: enter\n", __func__);
  2769. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2770. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2771. strlen(lsm_port_text[i])))
  2772. break;
  2773. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2774. pr_warn("%s: Invalid id name %s\n", __func__,
  2775. kcontrol->id.name);
  2776. return -EINVAL;
  2777. }
  2778. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2779. switch (ucontrol->value.integer.value[0]) {
  2780. case MADNONE:
  2781. mad_type = MAD_HW_NONE;
  2782. break;
  2783. case MADAUDIO:
  2784. mad_type = MAD_HW_AUDIO;
  2785. break;
  2786. case MADBEACON:
  2787. mad_type = MAD_HW_BEACON;
  2788. break;
  2789. case MADULTRASOUND:
  2790. mad_type = MAD_HW_ULTRASOUND;
  2791. break;
  2792. case MADSWAUDIO:
  2793. mad_type = MAD_SW_AUDIO;
  2794. break;
  2795. default:
  2796. pr_warn("%s: Unknown\n", __func__);
  2797. return -EINVAL;
  2798. }
  2799. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2800. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2801. strlen(lsm_port_text[7])))
  2802. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2803. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2804. strlen(lsm_port_text[8])))
  2805. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2806. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2807. strlen(lsm_port_text[10])))
  2808. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2809. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2810. strlen(lsm_port_text[13])))
  2811. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2812. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2813. strlen(lsm_port_text[14])))
  2814. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2815. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2816. mad_type);
  2817. return afe_port_set_mad_type(port_id, mad_type);
  2818. }
  2819. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2820. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2821. adm_override_chs_text);
  2822. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2823. {
  2824. int backend_id;
  2825. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2826. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2827. } else {
  2828. pr_err("%s: unsupported backend id: %s",
  2829. __func__, kcontrol->id.name);
  2830. return -EINVAL;
  2831. }
  2832. return backend_id;
  2833. }
  2834. static int msm_routing_adm_channel_config_get(
  2835. struct snd_kcontrol *kcontrol,
  2836. struct snd_ctl_elem_value *ucontrol)
  2837. {
  2838. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2839. if (backend_id >= 0) {
  2840. mutex_lock(&routing_lock);
  2841. ucontrol->value.integer.value[0] =
  2842. msm_bedais[backend_id].adm_override_ch;
  2843. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2844. ucontrol->value.integer.value[0], backend_id);
  2845. mutex_unlock(&routing_lock);
  2846. }
  2847. return 0;
  2848. }
  2849. static int msm_routing_adm_channel_config_put(
  2850. struct snd_kcontrol *kcontrol,
  2851. struct snd_ctl_elem_value *ucontrol)
  2852. {
  2853. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2854. if (backend_id >= 0) {
  2855. mutex_lock(&routing_lock);
  2856. msm_bedais[backend_id].adm_override_ch =
  2857. ucontrol->value.integer.value[0];
  2858. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2859. __func__, backend_id,
  2860. msm_bedais[backend_id].adm_override_ch);
  2861. mutex_unlock(&routing_lock);
  2862. }
  2863. return 0;
  2864. }
  2865. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2866. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2867. msm_routing_adm_channel_config_get,
  2868. msm_routing_adm_channel_config_put),
  2869. };
  2870. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2871. struct snd_ctl_elem_value *ucontrol)
  2872. {
  2873. mutex_lock(&routing_lock);
  2874. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2875. mutex_unlock(&routing_lock);
  2876. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2877. ucontrol->value.integer.value[0]);
  2878. return 0;
  2879. };
  2880. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2881. struct snd_ctl_elem_value *ucontrol)
  2882. {
  2883. struct aanc_data aanc_info;
  2884. mutex_lock(&routing_lock);
  2885. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2886. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2887. ucontrol->value.integer.value[0]);
  2888. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2889. if (ucontrol->value.integer.value[0] == 0) {
  2890. aanc_info.aanc_active = false;
  2891. aanc_info.aanc_tx_port = 0;
  2892. aanc_info.aanc_rx_port = 0;
  2893. } else {
  2894. aanc_info.aanc_active = true;
  2895. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2896. aanc_info.aanc_tx_port =
  2897. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2898. }
  2899. afe_set_aanc_info(&aanc_info);
  2900. mutex_unlock(&routing_lock);
  2901. return 0;
  2902. };
  2903. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2904. struct snd_ctl_elem_value *ucontrol)
  2905. {
  2906. int idx = 0, shift = 0;
  2907. struct soc_mixer_control *mc =
  2908. (struct soc_mixer_control *)kcontrol->private_value;
  2909. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2910. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2911. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2912. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2913. return -EINVAL;
  2914. }
  2915. if (test_bit(shift,
  2916. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2917. ucontrol->value.integer.value[0] = 1;
  2918. else
  2919. ucontrol->value.integer.value[0] = 0;
  2920. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2921. ucontrol->value.integer.value[0]);
  2922. return 0;
  2923. }
  2924. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2925. struct snd_ctl_elem_value *ucontrol)
  2926. {
  2927. int idx = 0, shift = 0;
  2928. struct soc_mixer_control *mc =
  2929. (struct soc_mixer_control *)kcontrol->private_value;
  2930. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2931. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2932. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2933. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2934. return -EINVAL;
  2935. }
  2936. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2937. __func__, mc->shift, mc->rshift,
  2938. ucontrol->value.integer.value[0], idx, shift);
  2939. if (ucontrol->value.integer.value[0]) {
  2940. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2941. msm_bedais[mc->rshift].port_id);
  2942. set_bit(shift,
  2943. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2944. } else {
  2945. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2946. msm_bedais[mc->rshift].port_id);
  2947. clear_bit(shift,
  2948. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2949. }
  2950. return 1;
  2951. }
  2952. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2953. struct snd_ctl_elem_value *ucontrol)
  2954. {
  2955. u16 fe_id = 0;
  2956. fe_id = ((struct soc_mixer_control *)
  2957. kcontrol->private_value)->shift;
  2958. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2959. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2960. return -EINVAL;
  2961. }
  2962. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2963. return 0;
  2964. }
  2965. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2966. struct snd_ctl_elem_value *ucontrol)
  2967. {
  2968. u16 fe_id = 0;
  2969. fe_id = ((struct soc_mixer_control *)
  2970. kcontrol->private_value)->shift;
  2971. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2972. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2973. return -EINVAL;
  2974. }
  2975. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2976. return 1;
  2977. }
  2978. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2979. struct snd_ctl_elem_value *ucontrol)
  2980. {
  2981. u16 fe_id = 0;
  2982. fe_id = ((struct soc_multi_mixer_control *)
  2983. kcontrol->private_value)->shift;
  2984. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2985. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2986. return -EINVAL;
  2987. }
  2988. ucontrol->value.integer.value[0] =
  2989. channel_mixer[fe_id].output_channel;
  2990. return 0;
  2991. }
  2992. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2993. struct snd_ctl_elem_value *ucontrol)
  2994. {
  2995. u16 fe_id = 0;
  2996. fe_id = ((struct soc_multi_mixer_control *)
  2997. kcontrol->private_value)->shift;
  2998. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2999. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3000. return -EINVAL;
  3001. }
  3002. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3003. fe_id,
  3004. (unsigned int)(ucontrol->value.integer.value[0]));
  3005. channel_mixer[fe_id].output_channel =
  3006. (unsigned int)(ucontrol->value.integer.value[0]);
  3007. return 1;
  3008. }
  3009. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3010. /* If new backend is added, need update this array */
  3011. static const char *const be_name[] = {
  3012. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3013. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3014. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3015. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3016. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3017. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3018. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3019. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3020. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3021. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3022. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3023. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3024. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3025. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3026. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3027. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3028. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3029. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3030. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3031. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3032. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3033. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3034. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3035. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3036. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3037. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3038. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3039. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3040. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3041. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3042. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3043. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3044. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3045. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3046. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3047. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3048. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3049. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3050. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3051. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3052. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3053. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3054. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3055. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3056. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3057. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3058. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3059. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3060. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3061. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3062. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3063. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3064. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX"
  3065. };
  3066. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3067. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3068. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3069. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3070. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3071. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3072. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3073. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3074. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3075. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3076. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3077. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3078. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3079. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3080. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3081. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3082. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3083. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3084. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3085. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3086. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3087. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3088. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3089. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3090. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3091. unsigned int channels,
  3092. unsigned int items, const char *const names[])
  3093. {
  3094. if (uinfo->value.enumerated.item >= items)
  3095. uinfo->value.enumerated.item = items - 1;
  3096. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3097. sizeof(uinfo->value.enumerated.name),
  3098. "ALSA: too long item name '%s'\n",
  3099. names[uinfo->value.enumerated.item]);
  3100. strlcpy(uinfo->value.enumerated.name,
  3101. names[uinfo->value.enumerated.item],
  3102. sizeof(uinfo->value.enumerated.name));
  3103. return 0;
  3104. }
  3105. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3106. struct snd_ctl_elem_info *uinfo)
  3107. {
  3108. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3109. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3110. uinfo->count = 1;
  3111. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3112. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3113. return 0;
  3114. }
  3115. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3116. struct snd_ctl_elem_value *ucontrol)
  3117. {
  3118. u16 fe_id = 0;
  3119. fe_id = ((struct soc_enum *)
  3120. kcontrol->private_value)->shift_l;
  3121. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3122. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3123. return -EINVAL;
  3124. }
  3125. pr_debug("%s: FE %d %s\n", __func__,
  3126. fe_id,
  3127. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3128. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3129. return 0;
  3130. }
  3131. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3132. struct snd_ctl_elem_value *ucontrol)
  3133. {
  3134. u16 fe_id = 0;
  3135. fe_id = ((struct soc_enum *)
  3136. kcontrol->private_value)->shift_l;
  3137. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3138. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3139. return -EINVAL;
  3140. }
  3141. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3142. pr_debug("%s: %s FE %d\n", __func__,
  3143. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3144. fe_id);
  3145. return 0;
  3146. }
  3147. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3148. struct snd_ctl_elem_info *uinfo)
  3149. {
  3150. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3151. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3152. uinfo->count = 1;
  3153. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3154. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3155. return 0;
  3156. }
  3157. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3158. struct snd_ctl_elem_value *ucontrol)
  3159. {
  3160. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3161. u16 fe_id = 0, in_ch = 0;
  3162. fe_id = e->shift_l;
  3163. in_ch = e->shift_r;
  3164. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3165. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3166. return -EINVAL;
  3167. }
  3168. if (in_ch >= ADM_MAX_CHANNELS) {
  3169. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3170. return -EINVAL;
  3171. }
  3172. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3173. return 1;
  3174. }
  3175. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3176. struct snd_ctl_elem_value *ucontrol)
  3177. {
  3178. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3179. u16 fe_id = 0, in_ch = 0;
  3180. fe_id = e->shift_l;
  3181. in_ch = e->shift_r;
  3182. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3183. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3184. return -EINVAL;
  3185. }
  3186. if (in_ch >= ADM_MAX_CHANNELS) {
  3187. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3188. return -EINVAL;
  3189. }
  3190. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3191. return 1;
  3192. }
  3193. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3194. struct snd_ctl_elem_info *uinfo)
  3195. {
  3196. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3197. uinfo->count = ADM_MAX_CHANNELS;
  3198. uinfo->value.integer.min = 0;
  3199. uinfo->value.integer.max = WEIGHT_0_DB;
  3200. return 0;
  3201. }
  3202. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3203. struct snd_ctl_elem_value *ucontrol)
  3204. {
  3205. u16 fe_id = 0, out_ch = 0;
  3206. int i, weight;
  3207. fe_id = ((struct soc_multi_mixer_control *)
  3208. kcontrol->private_value)->shift;
  3209. out_ch = ((struct soc_multi_mixer_control *)
  3210. kcontrol->private_value)->rshift;
  3211. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3212. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3213. return -EINVAL;
  3214. }
  3215. if (out_ch >= ADM_MAX_CHANNELS) {
  3216. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3217. return -EINVAL;
  3218. }
  3219. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3220. __func__, fe_id,
  3221. ucontrol->value.integer.value[0],
  3222. ucontrol->value.integer.value[1],
  3223. ucontrol->value.integer.value[2],
  3224. ucontrol->value.integer.value[3],
  3225. ucontrol->value.integer.value[4],
  3226. ucontrol->value.integer.value[5],
  3227. ucontrol->value.integer.value[6],
  3228. ucontrol->value.integer.value[7]);
  3229. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3230. weight = ucontrol->value.integer.value[i];
  3231. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3232. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3233. __func__, fe_id, out_ch, i,
  3234. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3235. }
  3236. return 0;
  3237. }
  3238. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3239. struct snd_ctl_elem_value *ucontrol)
  3240. {
  3241. u16 fe_id = 0, out_ch = 0;
  3242. int i;
  3243. fe_id = ((struct soc_multi_mixer_control *)
  3244. kcontrol->private_value)->shift;
  3245. out_ch = ((struct soc_multi_mixer_control *)
  3246. kcontrol->private_value)->rshift;
  3247. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3248. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3249. return -EINVAL;
  3250. }
  3251. if (out_ch >= ADM_MAX_CHANNELS) {
  3252. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3253. return -EINVAL;
  3254. }
  3255. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3256. ucontrol->value.integer.value[i] =
  3257. channel_mixer[fe_id].channel_weight[out_ch][i];
  3258. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3259. __func__, fe_id,
  3260. ucontrol->value.integer.value[0],
  3261. ucontrol->value.integer.value[1],
  3262. ucontrol->value.integer.value[2],
  3263. ucontrol->value.integer.value[3],
  3264. ucontrol->value.integer.value[4],
  3265. ucontrol->value.integer.value[5],
  3266. ucontrol->value.integer.value[6],
  3267. ucontrol->value.integer.value[7]);
  3268. return 0;
  3269. }
  3270. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3271. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3272. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3273. msm_pcm_get_channel_rule_index,
  3274. msm_pcm_put_channel_rule_index),
  3275. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3276. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3277. msm_pcm_get_channel_rule_index,
  3278. msm_pcm_put_channel_rule_index),
  3279. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3280. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3281. msm_pcm_get_channel_rule_index,
  3282. msm_pcm_put_channel_rule_index),
  3283. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3284. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3285. msm_pcm_get_channel_rule_index,
  3286. msm_pcm_put_channel_rule_index),
  3287. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3288. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3289. msm_pcm_get_channel_rule_index,
  3290. msm_pcm_put_channel_rule_index),
  3291. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3292. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3293. msm_pcm_get_channel_rule_index,
  3294. msm_pcm_put_channel_rule_index),
  3295. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3296. MSM_FRONTEND_DAI_MULTIMEDIA1, 10, 0,
  3297. msm_pcm_get_out_chs,
  3298. msm_pcm_put_out_chs),
  3299. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3300. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3301. msm_pcm_get_out_chs,
  3302. msm_pcm_put_out_chs),
  3303. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3304. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3305. msm_pcm_get_out_chs,
  3306. msm_pcm_put_out_chs),
  3307. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3308. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3309. msm_pcm_get_out_chs,
  3310. msm_pcm_put_out_chs),
  3311. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3312. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3313. msm_pcm_get_out_chs,
  3314. msm_pcm_put_out_chs),
  3315. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3316. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3317. msm_pcm_get_out_chs,
  3318. msm_pcm_put_out_chs),
  3319. {
  3320. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3321. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3322. .name = "MultiMedia1 Channel Mixer",
  3323. .info = msm_pcm_channel_mixer_info,
  3324. .get = msm_pcm_channel_mixer_get,
  3325. .put = msm_pcm_channel_mixer_put,
  3326. .private_value = (unsigned long)&(mm1_channel_mux)
  3327. },
  3328. {
  3329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3331. .name = "MultiMedia2 Channel Mixer",
  3332. .info = msm_pcm_channel_mixer_info,
  3333. .get = msm_pcm_channel_mixer_get,
  3334. .put = msm_pcm_channel_mixer_put,
  3335. .private_value = (unsigned long)&(mm2_channel_mux)
  3336. },
  3337. {
  3338. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3339. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3340. .name = "MultiMedia3 Channel Mixer",
  3341. .info = msm_pcm_channel_mixer_info,
  3342. .get = msm_pcm_channel_mixer_get,
  3343. .put = msm_pcm_channel_mixer_put,
  3344. .private_value = (unsigned long)&(mm3_channel_mux)
  3345. },
  3346. {
  3347. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3348. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3349. .name = "MultiMedia4 Channel Mixer",
  3350. .info = msm_pcm_channel_mixer_info,
  3351. .get = msm_pcm_channel_mixer_get,
  3352. .put = msm_pcm_channel_mixer_put,
  3353. .private_value = (unsigned long)&(mm4_channel_mux)
  3354. },
  3355. {
  3356. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3357. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3358. .name = "MultiMedia1 Output Channel1",
  3359. .info = msm_pcm_channel_weight_info,
  3360. .get = msm_pcm_channel_weight_get,
  3361. .put = msm_pcm_channel_weight_put,
  3362. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3363. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3364. },
  3365. {
  3366. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3367. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3368. .name = "MultiMedia1 Output Channel2",
  3369. .info = msm_pcm_channel_weight_info,
  3370. .get = msm_pcm_channel_weight_get,
  3371. .put = msm_pcm_channel_weight_put,
  3372. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3373. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3374. },
  3375. {
  3376. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3377. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3378. .name = "MultiMedia1 Output Channel3",
  3379. .info = msm_pcm_channel_weight_info,
  3380. .get = msm_pcm_channel_weight_get,
  3381. .put = msm_pcm_channel_weight_put,
  3382. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3383. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3384. },
  3385. {
  3386. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3387. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3388. .name = "MultiMedia1 Output Channel4",
  3389. .info = msm_pcm_channel_weight_info,
  3390. .get = msm_pcm_channel_weight_get,
  3391. .put = msm_pcm_channel_weight_put,
  3392. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3393. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3394. },
  3395. {
  3396. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3397. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3398. .name = "MultiMedia1 Output Channel5",
  3399. .info = msm_pcm_channel_weight_info,
  3400. .get = msm_pcm_channel_weight_get,
  3401. .put = msm_pcm_channel_weight_put,
  3402. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3403. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3404. },
  3405. {
  3406. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3407. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3408. .name = "MultiMedia1 Output Channel6",
  3409. .info = msm_pcm_channel_weight_info,
  3410. .get = msm_pcm_channel_weight_get,
  3411. .put = msm_pcm_channel_weight_put,
  3412. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3413. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3414. },
  3415. {
  3416. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3417. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3418. .name = "MultiMedia1 Output Channel7",
  3419. .info = msm_pcm_channel_weight_info,
  3420. .get = msm_pcm_channel_weight_get,
  3421. .put = msm_pcm_channel_weight_put,
  3422. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3423. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3424. },
  3425. {
  3426. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3427. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3428. .name = "MultiMedia1 Output Channel8",
  3429. .info = msm_pcm_channel_weight_info,
  3430. .get = msm_pcm_channel_weight_get,
  3431. .put = msm_pcm_channel_weight_put,
  3432. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3433. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3434. },
  3435. {
  3436. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3438. .name = "MultiMedia1 Output Channel9",
  3439. .info = msm_pcm_channel_weight_info,
  3440. .get = msm_pcm_channel_weight_get,
  3441. .put = msm_pcm_channel_weight_put,
  3442. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3443. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3444. },
  3445. {
  3446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3447. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3448. .name = "MultiMedia1 Output Channel10",
  3449. .info = msm_pcm_channel_weight_info,
  3450. .get = msm_pcm_channel_weight_get,
  3451. .put = msm_pcm_channel_weight_put,
  3452. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3453. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3454. },
  3455. {
  3456. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3457. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3458. .name = "MultiMedia2 Output Channel1",
  3459. .info = msm_pcm_channel_weight_info,
  3460. .get = msm_pcm_channel_weight_get,
  3461. .put = msm_pcm_channel_weight_put,
  3462. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3463. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3464. },
  3465. {
  3466. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3468. .name = "MultiMedia2 Output Channel2",
  3469. .info = msm_pcm_channel_weight_info,
  3470. .get = msm_pcm_channel_weight_get,
  3471. .put = msm_pcm_channel_weight_put,
  3472. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3473. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3474. },
  3475. {
  3476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3478. .name = "MultiMedia2 Output Channel3",
  3479. .info = msm_pcm_channel_weight_info,
  3480. .get = msm_pcm_channel_weight_get,
  3481. .put = msm_pcm_channel_weight_put,
  3482. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3483. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3484. },
  3485. {
  3486. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3487. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3488. .name = "MultiMedia3 Output Channel1",
  3489. .info = msm_pcm_channel_weight_info,
  3490. .get = msm_pcm_channel_weight_get,
  3491. .put = msm_pcm_channel_weight_put,
  3492. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3493. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3494. },
  3495. {
  3496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3498. .name = "MultiMedia3 Output Channel2",
  3499. .info = msm_pcm_channel_weight_info,
  3500. .get = msm_pcm_channel_weight_get,
  3501. .put = msm_pcm_channel_weight_put,
  3502. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3503. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3504. },
  3505. {
  3506. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3507. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3508. .name = "MultiMedia1 Channel1",
  3509. .info = msm_pcm_channel_input_be_info,
  3510. .get = msm_pcm_channel_input_be_get,
  3511. .put = msm_pcm_channel_input_be_put,
  3512. .private_value = (unsigned long)&(mm1_ch1_enum)
  3513. },
  3514. {
  3515. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3516. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3517. .name = "MultiMedia1 Channel2",
  3518. .info = msm_pcm_channel_input_be_info,
  3519. .get = msm_pcm_channel_input_be_get,
  3520. .put = msm_pcm_channel_input_be_put,
  3521. .private_value = (unsigned long)&(mm1_ch2_enum)
  3522. },
  3523. {
  3524. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3525. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3526. .name = "MultiMedia1 Channel3",
  3527. .info = msm_pcm_channel_input_be_info,
  3528. .get = msm_pcm_channel_input_be_get,
  3529. .put = msm_pcm_channel_input_be_put,
  3530. .private_value = (unsigned long)&(mm1_ch3_enum)
  3531. },
  3532. {
  3533. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3534. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3535. .name = "MultiMedia1 Channel4",
  3536. .info = msm_pcm_channel_input_be_info,
  3537. .get = msm_pcm_channel_input_be_get,
  3538. .put = msm_pcm_channel_input_be_put,
  3539. .private_value = (unsigned long)&(mm1_ch4_enum)
  3540. },
  3541. {
  3542. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3543. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3544. .name = "MultiMedia1 Channel5",
  3545. .info = msm_pcm_channel_input_be_info,
  3546. .get = msm_pcm_channel_input_be_get,
  3547. .put = msm_pcm_channel_input_be_put,
  3548. .private_value = (unsigned long)&(mm1_ch5_enum)
  3549. },
  3550. {
  3551. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3552. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3553. .name = "MultiMedia1 Channel6",
  3554. .info = msm_pcm_channel_input_be_info,
  3555. .get = msm_pcm_channel_input_be_get,
  3556. .put = msm_pcm_channel_input_be_put,
  3557. .private_value = (unsigned long)&(mm1_ch6_enum)
  3558. },
  3559. {
  3560. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3561. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3562. .name = "MultiMedia1 Channel7",
  3563. .info = msm_pcm_channel_input_be_info,
  3564. .get = msm_pcm_channel_input_be_get,
  3565. .put = msm_pcm_channel_input_be_put,
  3566. .private_value = (unsigned long)&(mm1_ch7_enum)
  3567. },
  3568. {
  3569. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3571. .name = "MultiMedia1 Channel8",
  3572. .info = msm_pcm_channel_input_be_info,
  3573. .get = msm_pcm_channel_input_be_get,
  3574. .put = msm_pcm_channel_input_be_put,
  3575. .private_value = (unsigned long)&(mm1_ch8_enum)
  3576. },
  3577. };
  3578. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3579. struct snd_ctl_elem_value *ucontrol)
  3580. {
  3581. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3582. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3583. ucontrol->value.integer.value[0]);
  3584. return 0;
  3585. }
  3586. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3587. struct snd_ctl_elem_value *ucontrol)
  3588. {
  3589. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3590. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3591. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3592. return 0;
  3593. }
  3594. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  3595. struct snd_ctl_elem_value *ucontrol)
  3596. {
  3597. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  3598. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  3599. ucontrol->value.integer.value[0]);
  3600. return 0;
  3601. }
  3602. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  3603. struct snd_ctl_elem_value *ucontrol)
  3604. {
  3605. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  3606. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  3607. __func__, msm_ec_ref_ch_downmixed);
  3608. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  3609. return 0;
  3610. }
  3611. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  3612. struct snd_ctl_elem_value *ucontrol)
  3613. {
  3614. int i = 0, ret = 0;
  3615. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  3616. int out_channel_idx = ((struct soc_multi_mixer_control *)
  3617. kcontrol->private_value)->shift;
  3618. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  3619. weights[i] = ucontrol->value.integer.value[i];
  3620. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  3621. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  3622. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  3623. return ret;
  3624. }
  3625. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3626. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  3627. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  3628. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3629. struct snd_ctl_elem_value *ucontrol)
  3630. {
  3631. switch (msm_ec_ref_bit_format) {
  3632. case SNDRV_PCM_FORMAT_S24_LE:
  3633. ucontrol->value.integer.value[0] = 2;
  3634. break;
  3635. case SNDRV_PCM_FORMAT_S16_LE:
  3636. ucontrol->value.integer.value[0] = 1;
  3637. break;
  3638. default:
  3639. ucontrol->value.integer.value[0] = 0;
  3640. break;
  3641. }
  3642. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3643. __func__, ucontrol->value.integer.value[0]);
  3644. return 0;
  3645. }
  3646. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3647. struct snd_ctl_elem_value *ucontrol)
  3648. {
  3649. u16 bit_width = 0;
  3650. switch (ucontrol->value.integer.value[0]) {
  3651. case 2:
  3652. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3653. break;
  3654. case 1:
  3655. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3656. break;
  3657. default:
  3658. msm_ec_ref_bit_format = 0;
  3659. break;
  3660. }
  3661. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3662. bit_width = 16;
  3663. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3664. bit_width = 24;
  3665. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3666. __func__, msm_ec_ref_bit_format);
  3667. adm_ec_ref_rx_bit_width(bit_width);
  3668. return 0;
  3669. }
  3670. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3671. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3672. struct snd_ctl_elem_value *ucontrol)
  3673. {
  3674. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3675. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3676. __func__, ucontrol->value.integer.value[0]);
  3677. return 0;
  3678. }
  3679. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3680. struct snd_ctl_elem_value *ucontrol)
  3681. {
  3682. switch (ucontrol->value.integer.value[0]) {
  3683. case 0:
  3684. msm_ec_ref_sampling_rate = 0;
  3685. break;
  3686. case 1:
  3687. msm_ec_ref_sampling_rate = 8000;
  3688. break;
  3689. case 2:
  3690. msm_ec_ref_sampling_rate = 16000;
  3691. break;
  3692. case 3:
  3693. msm_ec_ref_sampling_rate = 32000;
  3694. break;
  3695. case 4:
  3696. msm_ec_ref_sampling_rate = 44100;
  3697. break;
  3698. case 5:
  3699. msm_ec_ref_sampling_rate = 48000;
  3700. break;
  3701. case 6:
  3702. msm_ec_ref_sampling_rate = 96000;
  3703. break;
  3704. case 7:
  3705. msm_ec_ref_sampling_rate = 192000;
  3706. break;
  3707. case 8:
  3708. msm_ec_ref_sampling_rate = 384000;
  3709. break;
  3710. default:
  3711. msm_ec_ref_sampling_rate = 48000;
  3712. break;
  3713. }
  3714. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3715. __func__, msm_ec_ref_sampling_rate);
  3716. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3717. return 0;
  3718. }
  3719. static int get_ec_ref_port_id(int value, int *index)
  3720. {
  3721. int port_id;
  3722. switch (value) {
  3723. case 0:
  3724. *index = 0;
  3725. port_id = AFE_PORT_INVALID;
  3726. break;
  3727. case 1:
  3728. *index = 1;
  3729. port_id = SLIMBUS_0_RX;
  3730. break;
  3731. case 2:
  3732. *index = 2;
  3733. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3734. break;
  3735. case 3:
  3736. *index = 3;
  3737. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3738. break;
  3739. case 4:
  3740. *index = 4;
  3741. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3742. break;
  3743. case 5:
  3744. *index = 5;
  3745. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3746. break;
  3747. case 6:
  3748. *index = 6;
  3749. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3750. break;
  3751. case 7:
  3752. *index = 7;
  3753. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3754. break;
  3755. case 9:
  3756. *index = 9;
  3757. port_id = SLIMBUS_5_RX;
  3758. break;
  3759. case 10:
  3760. *index = 10;
  3761. port_id = SLIMBUS_1_TX;
  3762. break;
  3763. case 11:
  3764. *index = 11;
  3765. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3766. break;
  3767. case 12:
  3768. *index = 12;
  3769. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3770. break;
  3771. case 13:
  3772. *index = 13;
  3773. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3774. break;
  3775. case 14:
  3776. *index = 14;
  3777. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3778. break;
  3779. case 15:
  3780. *index = 15;
  3781. port_id = SLIMBUS_6_RX;
  3782. break;
  3783. case 16:
  3784. *index = 16;
  3785. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3786. break;
  3787. case 17:
  3788. *index = 17;
  3789. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3790. break;
  3791. case 18:
  3792. *index = 18;
  3793. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3794. break;
  3795. case 19:
  3796. *index = 19;
  3797. port_id = AFE_PORT_ID_USB_RX;
  3798. break;
  3799. case 20:
  3800. *index = 20;
  3801. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3802. break;
  3803. case 21:
  3804. *index = 21;
  3805. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3806. break;
  3807. case 22:
  3808. *index = 22;
  3809. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3810. break;
  3811. case 23:
  3812. *index = 23;
  3813. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3814. break;
  3815. case 24:
  3816. *index = 24;
  3817. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3818. break;
  3819. case 25:
  3820. *index = 25;
  3821. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3822. break;
  3823. case 26:
  3824. *index = 26;
  3825. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3826. break;
  3827. case 27:
  3828. *index = 27;
  3829. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3830. break;
  3831. case 28:
  3832. *index = 28;
  3833. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3834. break;
  3835. case 29:
  3836. *index = 29;
  3837. port_id = SLIMBUS_7_RX;
  3838. break;
  3839. case 30:
  3840. *index = 30;
  3841. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3842. break;
  3843. case 31:
  3844. *index = 31;
  3845. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3846. break;
  3847. case 32:
  3848. *index = 32;
  3849. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3850. break;
  3851. case 33:
  3852. *index = 33;
  3853. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3854. break;
  3855. case 34:
  3856. *index = 34;
  3857. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3858. break;
  3859. case 35:
  3860. *index = 35;
  3861. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3862. break;
  3863. case 36:
  3864. *index = 36;
  3865. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3866. break;
  3867. default:
  3868. *index = 0; /* NONE */
  3869. pr_err("%s: Invalid value %d\n", __func__, value);
  3870. port_id = AFE_PORT_INVALID;
  3871. break;
  3872. }
  3873. return port_id;
  3874. }
  3875. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  3876. struct snd_ctl_elem_value *ucontrol)
  3877. {
  3878. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  3879. mutex_lock(&routing_lock);
  3880. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  3881. mutex_unlock(&routing_lock);
  3882. return 0;
  3883. }
  3884. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  3885. struct snd_ctl_elem_value *ucontrol)
  3886. {
  3887. int value = ucontrol->value.integer.value[0];
  3888. mutex_lock(&routing_lock);
  3889. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  3890. &afe_loopback_tx_port_index);
  3891. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  3892. __func__, afe_loopback_tx_port_index);
  3893. mutex_unlock(&routing_lock);
  3894. return 0;
  3895. }
  3896. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3897. "32000", "44100", "48000", "96000", "192000", "384000"};
  3898. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3899. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  3900. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3901. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3902. };
  3903. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3904. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3905. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3906. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3907. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3908. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3909. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3910. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3911. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3912. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3913. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3914. };
  3915. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3916. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3917. };
  3918. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3919. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3920. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3921. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3922. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3923. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3924. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3925. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  3926. msm_route_ec_ref_params_enum[0],
  3927. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  3928. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  3929. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3930. msm_ec_ref_chmixer_weights_put),
  3931. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  3932. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3933. msm_ec_ref_chmixer_weights_put),
  3934. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  3935. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3936. msm_ec_ref_chmixer_weights_put),
  3937. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  3938. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3939. msm_ec_ref_chmixer_weights_put),
  3940. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  3941. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3942. msm_ec_ref_chmixer_weights_put),
  3943. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  3944. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3945. msm_ec_ref_chmixer_weights_put),
  3946. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  3947. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  3948. };
  3949. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3950. struct snd_ctl_elem_value *ucontrol)
  3951. {
  3952. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3953. mutex_lock(&routing_lock);
  3954. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3955. mutex_unlock(&routing_lock);
  3956. return 0;
  3957. }
  3958. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3959. struct snd_ctl_elem_value *ucontrol)
  3960. {
  3961. int value = ucontrol->value.integer.value[0];
  3962. struct snd_soc_dapm_widget *widget =
  3963. snd_soc_dapm_kcontrol_widget(kcontrol);
  3964. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3965. struct snd_soc_dapm_update *update = NULL;
  3966. mutex_lock(&routing_lock);
  3967. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  3968. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  3969. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3970. __func__, msm_route_ec_ref_rx);
  3971. mutex_unlock(&routing_lock);
  3972. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3973. msm_route_ec_ref_rx, e, update);
  3974. return 0;
  3975. }
  3976. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3977. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3978. msm_route_ec_ref_rx_enum[0],
  3979. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3980. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3981. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3982. msm_route_ec_ref_rx_enum[0],
  3983. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3984. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3985. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3986. msm_route_ec_ref_rx_enum[0],
  3987. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3988. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3989. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3990. msm_route_ec_ref_rx_enum[0],
  3991. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3992. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3993. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3994. msm_route_ec_ref_rx_enum[0],
  3995. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3996. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3997. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3998. msm_route_ec_ref_rx_enum[0],
  3999. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4000. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  4001. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  4002. msm_route_ec_ref_rx_enum[0],
  4003. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4004. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  4005. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  4006. msm_route_ec_ref_rx_enum[0],
  4007. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4008. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  4009. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  4010. msm_route_ec_ref_rx_enum[0],
  4011. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4012. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  4013. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  4014. msm_route_ec_ref_rx_enum[0],
  4015. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4016. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  4017. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  4018. msm_route_ec_ref_rx_enum[0],
  4019. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4020. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  4021. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  4022. msm_route_ec_ref_rx_enum[0],
  4023. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4024. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  4025. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  4026. msm_route_ec_ref_rx_enum[0],
  4027. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4028. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  4029. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  4030. msm_route_ec_ref_rx_enum[0],
  4031. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4032. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  4033. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  4034. msm_route_ec_ref_rx_enum[0],
  4035. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4036. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  4037. struct snd_ctl_elem_value *ucontrol)
  4038. {
  4039. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  4040. mutex_lock(&routing_lock);
  4041. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  4042. mutex_unlock(&routing_lock);
  4043. return 0;
  4044. }
  4045. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  4046. struct snd_ctl_elem_value *ucontrol)
  4047. {
  4048. struct snd_soc_dapm_widget *widget =
  4049. snd_soc_dapm_kcontrol_widget(kcontrol);
  4050. int mux = ucontrol->value.enumerated.item[0];
  4051. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  4052. int ret = 1;
  4053. bool state = true;
  4054. uint16_t ext_ec_ref_port_id;
  4055. struct snd_soc_dapm_update *update = NULL;
  4056. if (mux >= e->items) {
  4057. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  4058. return -EINVAL;
  4059. }
  4060. mutex_lock(&routing_lock);
  4061. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  4062. switch (msm_route_ext_ec_ref) {
  4063. case EXT_EC_REF_PRI_MI2S_TX:
  4064. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4065. break;
  4066. case EXT_EC_REF_SEC_MI2S_TX:
  4067. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4068. break;
  4069. case EXT_EC_REF_TERT_MI2S_TX:
  4070. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4071. break;
  4072. case EXT_EC_REF_QUAT_MI2S_TX:
  4073. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4074. break;
  4075. case EXT_EC_REF_QUIN_MI2S_TX:
  4076. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  4077. break;
  4078. case EXT_EC_REF_SLIM_1_TX:
  4079. ext_ec_ref_port_id = SLIMBUS_1_TX;
  4080. break;
  4081. case EXT_EC_REF_SEC_TDM_TX:
  4082. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4083. break;
  4084. case EXT_EC_REF_NONE:
  4085. default:
  4086. ext_ec_ref_port_id = AFE_PORT_INVALID;
  4087. state = false;
  4088. break;
  4089. }
  4090. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  4091. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  4092. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  4093. mutex_unlock(&routing_lock);
  4094. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  4095. update);
  4096. } else {
  4097. ret = -EINVAL;
  4098. mutex_unlock(&routing_lock);
  4099. }
  4100. return ret;
  4101. }
  4102. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  4103. "SEC_MI2S_TX", "TERT_MI2S_TX",
  4104. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  4105. "SLIM_1_TX", "SEC_TDM_TX"};
  4106. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  4107. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  4108. };
  4109. static const struct snd_kcontrol_new voc_ext_ec_mux =
  4110. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  4111. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  4112. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  4113. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4114. MSM_BACKEND_DAI_PRI_I2S_RX,
  4115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4116. msm_routing_put_audio_mixer),
  4117. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4118. MSM_BACKEND_DAI_PRI_I2S_RX,
  4119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4120. msm_routing_put_audio_mixer),
  4121. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4122. MSM_BACKEND_DAI_PRI_I2S_RX,
  4123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4124. msm_routing_put_audio_mixer),
  4125. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4126. MSM_BACKEND_DAI_PRI_I2S_RX,
  4127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4128. msm_routing_put_audio_mixer),
  4129. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4130. MSM_BACKEND_DAI_PRI_I2S_RX,
  4131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4132. msm_routing_put_audio_mixer),
  4133. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4134. MSM_BACKEND_DAI_PRI_I2S_RX,
  4135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4136. msm_routing_put_audio_mixer),
  4137. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4138. MSM_BACKEND_DAI_PRI_I2S_RX,
  4139. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4140. msm_routing_put_audio_mixer),
  4141. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4142. MSM_BACKEND_DAI_PRI_I2S_RX,
  4143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4144. msm_routing_put_audio_mixer),
  4145. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4146. MSM_BACKEND_DAI_PRI_I2S_RX,
  4147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4148. msm_routing_put_audio_mixer),
  4149. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4150. MSM_BACKEND_DAI_PRI_I2S_RX,
  4151. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4152. msm_routing_put_audio_mixer),
  4153. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4154. MSM_BACKEND_DAI_PRI_I2S_RX,
  4155. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4156. msm_routing_put_audio_mixer),
  4157. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4158. MSM_BACKEND_DAI_PRI_I2S_RX,
  4159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4160. msm_routing_put_audio_mixer),
  4161. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4162. MSM_BACKEND_DAI_PRI_I2S_RX,
  4163. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4164. msm_routing_put_audio_mixer),
  4165. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4166. MSM_BACKEND_DAI_PRI_I2S_RX,
  4167. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4168. msm_routing_put_audio_mixer),
  4169. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4170. MSM_BACKEND_DAI_PRI_I2S_RX,
  4171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4172. msm_routing_put_audio_mixer),
  4173. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4174. MSM_BACKEND_DAI_PRI_I2S_RX,
  4175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4176. msm_routing_put_audio_mixer),
  4177. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4178. MSM_BACKEND_DAI_PRI_I2S_RX,
  4179. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4180. msm_routing_put_audio_mixer),
  4181. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4182. MSM_BACKEND_DAI_PRI_I2S_RX,
  4183. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4184. msm_routing_put_audio_mixer),
  4185. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4186. MSM_BACKEND_DAI_PRI_I2S_RX,
  4187. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4188. msm_routing_put_audio_mixer),
  4189. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4190. MSM_BACKEND_DAI_PRI_I2S_RX,
  4191. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4192. msm_routing_put_audio_mixer),
  4193. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4194. MSM_BACKEND_DAI_PRI_I2S_RX,
  4195. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4196. msm_routing_put_audio_mixer),
  4197. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4198. MSM_BACKEND_DAI_PRI_I2S_RX,
  4199. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4200. msm_routing_put_audio_mixer),
  4201. };
  4202. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  4203. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4204. MSM_BACKEND_DAI_SEC_I2S_RX,
  4205. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4206. msm_routing_put_audio_mixer),
  4207. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4208. MSM_BACKEND_DAI_SEC_I2S_RX,
  4209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4210. msm_routing_put_audio_mixer),
  4211. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4212. MSM_BACKEND_DAI_SEC_I2S_RX,
  4213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4214. msm_routing_put_audio_mixer),
  4215. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4216. MSM_BACKEND_DAI_SEC_I2S_RX,
  4217. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4218. msm_routing_put_audio_mixer),
  4219. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4220. MSM_BACKEND_DAI_SEC_I2S_RX,
  4221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4222. msm_routing_put_audio_mixer),
  4223. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4224. MSM_BACKEND_DAI_SEC_I2S_RX,
  4225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4226. msm_routing_put_audio_mixer),
  4227. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4228. MSM_BACKEND_DAI_SEC_I2S_RX,
  4229. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4230. msm_routing_put_audio_mixer),
  4231. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4232. MSM_BACKEND_DAI_SEC_I2S_RX,
  4233. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4234. msm_routing_put_audio_mixer),
  4235. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4236. MSM_BACKEND_DAI_SEC_I2S_RX,
  4237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4238. msm_routing_put_audio_mixer),
  4239. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4240. MSM_BACKEND_DAI_SEC_I2S_RX,
  4241. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4242. msm_routing_put_audio_mixer),
  4243. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4244. MSM_BACKEND_DAI_SEC_I2S_RX,
  4245. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4246. msm_routing_put_audio_mixer),
  4247. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4248. MSM_BACKEND_DAI_SEC_I2S_RX,
  4249. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4250. msm_routing_put_audio_mixer),
  4251. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4252. MSM_BACKEND_DAI_SEC_I2S_RX,
  4253. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4254. msm_routing_put_audio_mixer),
  4255. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4256. MSM_BACKEND_DAI_SEC_I2S_RX,
  4257. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4258. msm_routing_put_audio_mixer),
  4259. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4260. MSM_BACKEND_DAI_SEC_I2S_RX,
  4261. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4262. msm_routing_put_audio_mixer),
  4263. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4264. MSM_BACKEND_DAI_SEC_I2S_RX,
  4265. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4266. msm_routing_put_audio_mixer),
  4267. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4268. MSM_BACKEND_DAI_SEC_I2S_RX,
  4269. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4270. msm_routing_put_audio_mixer),
  4271. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4272. MSM_BACKEND_DAI_SEC_I2S_RX,
  4273. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4274. msm_routing_put_audio_mixer),
  4275. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4276. MSM_BACKEND_DAI_SEC_I2S_RX,
  4277. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4278. msm_routing_put_audio_mixer),
  4279. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4280. MSM_BACKEND_DAI_SEC_I2S_RX,
  4281. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4282. msm_routing_put_audio_mixer),
  4283. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4284. MSM_BACKEND_DAI_SEC_I2S_RX,
  4285. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4286. msm_routing_put_audio_mixer),
  4287. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4288. MSM_BACKEND_DAI_SEC_I2S_RX,
  4289. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4290. msm_routing_put_audio_mixer),
  4291. };
  4292. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  4293. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4294. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4296. msm_routing_put_audio_mixer),
  4297. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4298. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4300. msm_routing_put_audio_mixer),
  4301. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4302. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4304. msm_routing_put_audio_mixer),
  4305. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4306. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4308. msm_routing_put_audio_mixer),
  4309. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4310. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4311. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4312. msm_routing_put_audio_mixer),
  4313. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4314. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4316. msm_routing_put_audio_mixer),
  4317. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4318. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4319. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4320. msm_routing_put_audio_mixer),
  4321. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4322. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4324. msm_routing_put_audio_mixer),
  4325. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4326. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4327. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4328. msm_routing_put_audio_mixer),
  4329. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4330. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4332. msm_routing_put_audio_mixer),
  4333. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4334. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4335. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4336. msm_routing_put_audio_mixer),
  4337. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4338. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4339. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4340. msm_routing_put_audio_mixer),
  4341. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4342. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4343. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4344. msm_routing_put_audio_mixer),
  4345. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4346. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4347. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4348. msm_routing_put_audio_mixer),
  4349. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4350. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4351. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4352. msm_routing_put_audio_mixer),
  4353. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4354. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4356. msm_routing_put_audio_mixer),
  4357. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4358. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4359. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4360. msm_routing_put_audio_mixer),
  4361. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4362. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4363. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4364. msm_routing_put_audio_mixer),
  4365. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4366. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4367. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4368. msm_routing_put_audio_mixer),
  4369. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4370. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4371. MSM_FRONTEND_DAI_MULTIMEDIA26, 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_PRI_SPDIF_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_PRI_SPDIF_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 sec_spdif_rx_mixer_controls[] = {
  4383. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4384. MSM_BACKEND_DAI_SEC_SPDIF_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_SEC_SPDIF_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_SEC_SPDIF_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_SEC_SPDIF_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_SEC_SPDIF_RX,
  4401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4402. msm_routing_put_audio_mixer),
  4403. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4404. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4405. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4406. msm_routing_put_audio_mixer),
  4407. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4408. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4409. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4410. msm_routing_put_audio_mixer),
  4411. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4412. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4413. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4414. msm_routing_put_audio_mixer),
  4415. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4416. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4417. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4418. msm_routing_put_audio_mixer),
  4419. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4420. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4421. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4422. msm_routing_put_audio_mixer),
  4423. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4424. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4425. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4426. msm_routing_put_audio_mixer),
  4427. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4428. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4429. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4430. msm_routing_put_audio_mixer),
  4431. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4432. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4433. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4434. msm_routing_put_audio_mixer),
  4435. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4436. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4437. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4438. msm_routing_put_audio_mixer),
  4439. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4440. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4441. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4442. msm_routing_put_audio_mixer),
  4443. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4444. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4445. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4446. msm_routing_put_audio_mixer),
  4447. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4448. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4449. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4450. msm_routing_put_audio_mixer),
  4451. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4452. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4453. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4454. msm_routing_put_audio_mixer),
  4455. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4456. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4457. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4458. msm_routing_put_audio_mixer),
  4459. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4460. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4461. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4462. msm_routing_put_audio_mixer),
  4463. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4464. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4465. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4466. msm_routing_put_audio_mixer),
  4467. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4468. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4469. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4470. msm_routing_put_audio_mixer),
  4471. };
  4472. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4473. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4474. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4475. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4476. msm_routing_put_audio_mixer),
  4477. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4478. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4479. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4480. msm_routing_put_audio_mixer),
  4481. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4482. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4484. msm_routing_put_audio_mixer),
  4485. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4486. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4488. msm_routing_put_audio_mixer),
  4489. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4490. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4491. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4492. msm_routing_put_audio_mixer),
  4493. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4494. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4495. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4496. msm_routing_put_audio_mixer),
  4497. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4498. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4499. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4500. msm_routing_put_audio_mixer),
  4501. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4502. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4504. msm_routing_put_audio_mixer),
  4505. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4506. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4507. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4508. msm_routing_put_audio_mixer),
  4509. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4510. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4511. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4512. msm_routing_put_audio_mixer),
  4513. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4514. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4515. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4516. msm_routing_put_audio_mixer),
  4517. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4518. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4519. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4520. msm_routing_put_audio_mixer),
  4521. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4522. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4523. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4524. msm_routing_put_audio_mixer),
  4525. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4526. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4527. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4528. msm_routing_put_audio_mixer),
  4529. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4530. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4531. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4532. msm_routing_put_audio_mixer),
  4533. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4534. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4535. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4536. msm_routing_put_audio_mixer),
  4537. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4538. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4539. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4540. msm_routing_put_audio_mixer),
  4541. };
  4542. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4543. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4544. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4545. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4546. msm_routing_put_audio_mixer),
  4547. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4548. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4550. msm_routing_put_audio_mixer),
  4551. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4552. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4554. msm_routing_put_audio_mixer),
  4555. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4556. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4558. msm_routing_put_audio_mixer),
  4559. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4560. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4562. msm_routing_put_audio_mixer),
  4563. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4564. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4566. msm_routing_put_audio_mixer),
  4567. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4568. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4569. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4570. msm_routing_put_audio_mixer),
  4571. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4572. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4574. msm_routing_put_audio_mixer),
  4575. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4576. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4578. msm_routing_put_audio_mixer),
  4579. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4580. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4581. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4582. msm_routing_put_audio_mixer),
  4583. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4584. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4585. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4586. msm_routing_put_audio_mixer),
  4587. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4588. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4589. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4590. msm_routing_put_audio_mixer),
  4591. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4592. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4593. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4594. msm_routing_put_audio_mixer),
  4595. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4596. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4597. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4598. msm_routing_put_audio_mixer),
  4599. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4600. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4601. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4602. msm_routing_put_audio_mixer),
  4603. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4604. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4606. msm_routing_put_audio_mixer),
  4607. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4608. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4609. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4610. msm_routing_put_audio_mixer),
  4611. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4612. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4613. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4614. msm_routing_put_audio_mixer),
  4615. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4616. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4617. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4618. msm_routing_put_audio_mixer),
  4619. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4620. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4621. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4622. msm_routing_put_audio_mixer),
  4623. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4624. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4625. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4626. msm_routing_put_audio_mixer),
  4627. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4628. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4629. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4630. msm_routing_put_audio_mixer),
  4631. };
  4632. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4634. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4636. msm_routing_put_audio_mixer),
  4637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4638. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4640. msm_routing_put_audio_mixer),
  4641. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4642. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4644. msm_routing_put_audio_mixer),
  4645. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4646. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4648. msm_routing_put_audio_mixer),
  4649. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4650. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4652. msm_routing_put_audio_mixer),
  4653. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4654. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4656. msm_routing_put_audio_mixer),
  4657. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4658. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4660. msm_routing_put_audio_mixer),
  4661. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4662. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4664. msm_routing_put_audio_mixer),
  4665. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4666. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4668. msm_routing_put_audio_mixer),
  4669. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4670. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4672. msm_routing_put_audio_mixer),
  4673. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4674. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4675. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4676. msm_routing_put_audio_mixer),
  4677. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4678. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4680. msm_routing_put_audio_mixer),
  4681. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4682. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4683. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4684. msm_routing_put_audio_mixer),
  4685. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4686. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4688. msm_routing_put_audio_mixer),
  4689. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4690. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4691. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4692. msm_routing_put_audio_mixer),
  4693. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4694. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4696. msm_routing_put_audio_mixer),
  4697. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4698. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4699. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4700. msm_routing_put_audio_mixer),
  4701. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4702. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4703. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4704. msm_routing_put_audio_mixer),
  4705. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4706. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4707. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4708. msm_routing_put_audio_mixer),
  4709. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4710. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4711. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4712. msm_routing_put_audio_mixer),
  4713. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4714. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4715. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4716. msm_routing_put_audio_mixer),
  4717. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4718. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4719. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4720. msm_routing_put_audio_mixer),
  4721. };
  4722. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4724. MSM_BACKEND_DAI_MI2S_RX,
  4725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4726. msm_routing_put_audio_mixer),
  4727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4728. MSM_BACKEND_DAI_MI2S_RX,
  4729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4730. msm_routing_put_audio_mixer),
  4731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4732. MSM_BACKEND_DAI_MI2S_RX,
  4733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4734. msm_routing_put_audio_mixer),
  4735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4736. MSM_BACKEND_DAI_MI2S_RX,
  4737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4738. msm_routing_put_audio_mixer),
  4739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4740. MSM_BACKEND_DAI_MI2S_RX,
  4741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4742. msm_routing_put_audio_mixer),
  4743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4744. MSM_BACKEND_DAI_MI2S_RX,
  4745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4746. msm_routing_put_audio_mixer),
  4747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4748. MSM_BACKEND_DAI_MI2S_RX,
  4749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4750. msm_routing_put_audio_mixer),
  4751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4752. MSM_BACKEND_DAI_MI2S_RX,
  4753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4754. msm_routing_put_audio_mixer),
  4755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4756. MSM_BACKEND_DAI_MI2S_RX,
  4757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4758. msm_routing_put_audio_mixer),
  4759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4760. MSM_BACKEND_DAI_MI2S_RX,
  4761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4762. msm_routing_put_audio_mixer),
  4763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4764. MSM_BACKEND_DAI_MI2S_RX,
  4765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4766. msm_routing_put_audio_mixer),
  4767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4768. MSM_BACKEND_DAI_MI2S_RX,
  4769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4770. msm_routing_put_audio_mixer),
  4771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4772. MSM_BACKEND_DAI_MI2S_RX,
  4773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4774. msm_routing_put_audio_mixer),
  4775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4776. MSM_BACKEND_DAI_MI2S_RX,
  4777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4778. msm_routing_put_audio_mixer),
  4779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4780. MSM_BACKEND_DAI_MI2S_RX,
  4781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4782. msm_routing_put_audio_mixer),
  4783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4784. MSM_BACKEND_DAI_MI2S_RX,
  4785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4786. msm_routing_put_audio_mixer),
  4787. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4788. MSM_BACKEND_DAI_MI2S_RX,
  4789. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4790. msm_routing_put_audio_mixer),
  4791. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4792. MSM_BACKEND_DAI_MI2S_RX,
  4793. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4794. msm_routing_put_audio_mixer),
  4795. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4796. MSM_BACKEND_DAI_MI2S_RX,
  4797. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4798. msm_routing_put_audio_mixer),
  4799. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4800. MSM_BACKEND_DAI_MI2S_RX,
  4801. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4802. msm_routing_put_audio_mixer),
  4803. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4804. MSM_BACKEND_DAI_MI2S_RX,
  4805. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4806. msm_routing_put_audio_mixer),
  4807. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4808. MSM_BACKEND_DAI_MI2S_RX,
  4809. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4810. msm_routing_put_audio_mixer),
  4811. };
  4812. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4813. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4814. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4816. msm_routing_put_audio_mixer),
  4817. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4818. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4820. msm_routing_put_audio_mixer),
  4821. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4822. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4824. msm_routing_put_audio_mixer),
  4825. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4826. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4828. msm_routing_put_audio_mixer),
  4829. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4830. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4832. msm_routing_put_audio_mixer),
  4833. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4834. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4836. msm_routing_put_audio_mixer),
  4837. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4838. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4839. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4840. msm_routing_put_audio_mixer),
  4841. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4842. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4844. msm_routing_put_audio_mixer),
  4845. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4846. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4848. msm_routing_put_audio_mixer),
  4849. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4850. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4852. msm_routing_put_audio_mixer),
  4853. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4854. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4856. msm_routing_put_audio_mixer),
  4857. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4858. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4860. msm_routing_put_audio_mixer),
  4861. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4862. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4864. msm_routing_put_audio_mixer),
  4865. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4866. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4867. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4868. msm_routing_put_audio_mixer),
  4869. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4870. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4871. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4872. msm_routing_put_audio_mixer),
  4873. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4874. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4876. msm_routing_put_audio_mixer),
  4877. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4878. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4879. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4880. msm_routing_put_audio_mixer),
  4881. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4882. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4883. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4884. msm_routing_put_audio_mixer),
  4885. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4886. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4887. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4888. msm_routing_put_audio_mixer),
  4889. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4890. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4891. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4892. msm_routing_put_audio_mixer),
  4893. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4894. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4895. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4896. msm_routing_put_audio_mixer),
  4897. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4898. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4899. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4900. msm_routing_put_audio_mixer),
  4901. };
  4902. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4903. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4904. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4906. msm_routing_put_audio_mixer),
  4907. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4908. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4910. msm_routing_put_audio_mixer),
  4911. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4912. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4914. msm_routing_put_audio_mixer),
  4915. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4916. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4918. msm_routing_put_audio_mixer),
  4919. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4920. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4922. msm_routing_put_audio_mixer),
  4923. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4924. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4926. msm_routing_put_audio_mixer),
  4927. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4928. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4929. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4930. msm_routing_put_audio_mixer),
  4931. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4932. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4934. msm_routing_put_audio_mixer),
  4935. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4936. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4937. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4938. msm_routing_put_audio_mixer),
  4939. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4940. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4941. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4942. msm_routing_put_audio_mixer),
  4943. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4944. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4945. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4946. msm_routing_put_audio_mixer),
  4947. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4948. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4949. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4950. msm_routing_put_audio_mixer),
  4951. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4952. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4953. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4954. msm_routing_put_audio_mixer),
  4955. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4956. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4957. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4958. msm_routing_put_audio_mixer),
  4959. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4960. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4961. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4962. msm_routing_put_audio_mixer),
  4963. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4964. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4966. msm_routing_put_audio_mixer),
  4967. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4968. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4969. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4970. msm_routing_put_audio_mixer),
  4971. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4972. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4973. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4974. msm_routing_put_audio_mixer),
  4975. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4976. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4977. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4978. msm_routing_put_audio_mixer),
  4979. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4980. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4981. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4982. msm_routing_put_audio_mixer),
  4983. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4984. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4985. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4986. msm_routing_put_audio_mixer),
  4987. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4988. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4989. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4990. msm_routing_put_audio_mixer),
  4991. };
  4992. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  4993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4998. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  4999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5000. msm_routing_put_audio_mixer),
  5001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5002. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5004. msm_routing_put_audio_mixer),
  5005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5006. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5008. msm_routing_put_audio_mixer),
  5009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5010. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5012. msm_routing_put_audio_mixer),
  5013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5014. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5016. msm_routing_put_audio_mixer),
  5017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5018. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5020. msm_routing_put_audio_mixer),
  5021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5022. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5026. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5028. msm_routing_put_audio_mixer),
  5029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5030. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5032. msm_routing_put_audio_mixer),
  5033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5034. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5036. msm_routing_put_audio_mixer),
  5037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5038. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5040. msm_routing_put_audio_mixer),
  5041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5042. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5044. msm_routing_put_audio_mixer),
  5045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5046. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5048. msm_routing_put_audio_mixer),
  5049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5050. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5052. msm_routing_put_audio_mixer),
  5053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5054. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5056. msm_routing_put_audio_mixer),
  5057. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5058. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5059. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5060. msm_routing_put_audio_mixer),
  5061. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5062. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5063. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5064. msm_routing_put_audio_mixer),
  5065. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5066. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5067. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5068. msm_routing_put_audio_mixer),
  5069. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5070. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5071. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5072. msm_routing_put_audio_mixer),
  5073. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5074. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5075. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5076. msm_routing_put_audio_mixer),
  5077. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5078. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5079. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5080. msm_routing_put_audio_mixer),
  5081. };
  5082. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  5083. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5100. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5101. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5102. msm_routing_put_audio_mixer),
  5103. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5104. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5105. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5106. msm_routing_put_audio_mixer),
  5107. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5108. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5110. msm_routing_put_audio_mixer),
  5111. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5112. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5113. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5114. msm_routing_put_audio_mixer),
  5115. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5116. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5117. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5118. msm_routing_put_audio_mixer),
  5119. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5120. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5122. msm_routing_put_audio_mixer),
  5123. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5124. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5125. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5126. msm_routing_put_audio_mixer),
  5127. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5128. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5129. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5130. msm_routing_put_audio_mixer),
  5131. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5132. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5133. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5134. msm_routing_put_audio_mixer),
  5135. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5136. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5138. msm_routing_put_audio_mixer),
  5139. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5140. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5141. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5142. msm_routing_put_audio_mixer),
  5143. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5144. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5145. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5146. msm_routing_put_audio_mixer),
  5147. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5148. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5149. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5150. msm_routing_put_audio_mixer),
  5151. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5152. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5153. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5154. msm_routing_put_audio_mixer),
  5155. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5156. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5157. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5158. msm_routing_put_audio_mixer),
  5159. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5160. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5161. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5162. msm_routing_put_audio_mixer),
  5163. };
  5164. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  5165. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5166. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  5167. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5168. msm_routing_put_audio_mixer),
  5169. };
  5170. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  5171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5232. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5234. msm_routing_put_audio_mixer),
  5235. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5236. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5237. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5238. msm_routing_put_audio_mixer),
  5239. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5240. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5241. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5242. msm_routing_put_audio_mixer),
  5243. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5244. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5245. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5246. msm_routing_put_audio_mixer),
  5247. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5248. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5249. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5250. msm_routing_put_audio_mixer),
  5251. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5252. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5253. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5254. msm_routing_put_audio_mixer),
  5255. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5256. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5257. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5258. msm_routing_put_audio_mixer),
  5259. };
  5260. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  5261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5266. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5270. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5274. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5278. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5286. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5290. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5294. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5298. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5300. msm_routing_put_audio_mixer),
  5301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5302. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5304. msm_routing_put_audio_mixer),
  5305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5306. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5308. msm_routing_put_audio_mixer),
  5309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5310. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5312. msm_routing_put_audio_mixer),
  5313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5314. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5316. msm_routing_put_audio_mixer),
  5317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5318. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5320. msm_routing_put_audio_mixer),
  5321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5322. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5324. msm_routing_put_audio_mixer),
  5325. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5326. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5327. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5328. msm_routing_put_audio_mixer),
  5329. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5330. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5331. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5332. msm_routing_put_audio_mixer),
  5333. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5334. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5335. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5336. msm_routing_put_audio_mixer),
  5337. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5338. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5339. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5340. msm_routing_put_audio_mixer),
  5341. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5342. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5343. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5344. msm_routing_put_audio_mixer),
  5345. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5346. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5347. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5348. msm_routing_put_audio_mixer),
  5349. };
  5350. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  5351. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5368. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5372. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5376. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5377. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5378. msm_routing_put_audio_mixer),
  5379. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5380. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5382. msm_routing_put_audio_mixer),
  5383. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5384. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5388. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5389. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5390. msm_routing_put_audio_mixer),
  5391. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5392. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5393. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5394. msm_routing_put_audio_mixer),
  5395. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5396. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5400. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5401. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5402. msm_routing_put_audio_mixer),
  5403. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5404. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5405. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5406. msm_routing_put_audio_mixer),
  5407. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5408. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5412. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5413. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5414. msm_routing_put_audio_mixer),
  5415. };
  5416. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  5417. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5438. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5454. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5458. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5462. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5463. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5464. msm_routing_put_audio_mixer),
  5465. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5466. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5467. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5468. msm_routing_put_audio_mixer),
  5469. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5470. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5471. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5472. msm_routing_put_audio_mixer),
  5473. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5474. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5475. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5476. msm_routing_put_audio_mixer),
  5477. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5478. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. };
  5482. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5483. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_HDMI_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_HDMI_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_HDMI_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_HDMI_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_HDMI_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_HDMI_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_HDMI_RX,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_HDMI_RX,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5516. MSM_BACKEND_DAI_HDMI_RX,
  5517. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5518. msm_routing_put_audio_mixer),
  5519. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5520. MSM_BACKEND_DAI_HDMI_RX,
  5521. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5522. msm_routing_put_audio_mixer),
  5523. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5524. MSM_BACKEND_DAI_HDMI_RX,
  5525. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5526. msm_routing_put_audio_mixer),
  5527. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5528. MSM_BACKEND_DAI_HDMI_RX,
  5529. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5530. msm_routing_put_audio_mixer),
  5531. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5532. MSM_BACKEND_DAI_HDMI_RX,
  5533. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5534. msm_routing_put_audio_mixer),
  5535. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_HDMI_RX,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_HDMI_RX,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_HDMI_RX,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_HDMI_RX,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_HDMI_RX,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_HDMI_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_HDMI_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_HDMI_RX,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_HDMI_RX,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. };
  5572. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5602. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5604. msm_routing_put_audio_mixer),
  5605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5606. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5608. msm_routing_put_audio_mixer),
  5609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5610. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5612. msm_routing_put_audio_mixer),
  5613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5614. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5616. msm_routing_put_audio_mixer),
  5617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5618. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5620. msm_routing_put_audio_mixer),
  5621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5622. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5624. msm_routing_put_audio_mixer),
  5625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5626. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5628. msm_routing_put_audio_mixer),
  5629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. };
  5642. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5688. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5690. msm_routing_put_audio_mixer),
  5691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5692. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5694. msm_routing_put_audio_mixer),
  5695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5696. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5698. msm_routing_put_audio_mixer),
  5699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5700. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5702. msm_routing_put_audio_mixer),
  5703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5704. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5706. msm_routing_put_audio_mixer),
  5707. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5708. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5709. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5710. msm_routing_put_audio_mixer),
  5711. };
  5712. /* incall music delivery mixer */
  5713. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5714. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. };
  5731. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5732. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. };
  5749. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5750. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5751. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5752. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5753. msm_routing_put_audio_mixer),
  5754. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5755. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5756. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5757. msm_routing_put_audio_mixer),
  5758. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. };
  5767. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5768. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5829. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5830. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5831. msm_routing_put_audio_mixer),
  5832. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5833. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5834. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5835. msm_routing_put_audio_mixer),
  5836. };
  5837. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5838. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. };
  5907. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5908. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. };
  5977. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5978. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. };
  6047. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  6048. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6050. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6051. msm_routing_put_audio_mixer),
  6052. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6054. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6055. msm_routing_put_audio_mixer),
  6056. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6058. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6059. msm_routing_put_audio_mixer),
  6060. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. };
  6117. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  6118. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6119. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6120. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6121. msm_routing_put_audio_mixer),
  6122. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6123. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6124. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6125. msm_routing_put_audio_mixer),
  6126. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6127. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6128. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6129. msm_routing_put_audio_mixer),
  6130. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6131. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6132. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6133. msm_routing_put_audio_mixer),
  6134. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6135. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6136. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6137. msm_routing_put_audio_mixer),
  6138. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6139. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6140. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6141. msm_routing_put_audio_mixer),
  6142. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6143. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6144. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6145. msm_routing_put_audio_mixer),
  6146. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6147. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6148. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6149. msm_routing_put_audio_mixer),
  6150. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6151. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6152. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6153. msm_routing_put_audio_mixer),
  6154. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. };
  6187. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  6188. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6210. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6211. msm_routing_put_audio_mixer),
  6212. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6214. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6215. msm_routing_put_audio_mixer),
  6216. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6217. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6218. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6219. msm_routing_put_audio_mixer),
  6220. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6221. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6222. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6223. msm_routing_put_audio_mixer),
  6224. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6225. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6226. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6227. msm_routing_put_audio_mixer),
  6228. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6229. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6230. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6231. msm_routing_put_audio_mixer),
  6232. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6233. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6234. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6235. msm_routing_put_audio_mixer),
  6236. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6237. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6238. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6239. msm_routing_put_audio_mixer),
  6240. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6241. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6242. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6243. msm_routing_put_audio_mixer),
  6244. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6245. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6246. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6247. msm_routing_put_audio_mixer),
  6248. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. };
  6257. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  6258. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6299. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6300. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6301. msm_routing_put_audio_mixer),
  6302. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6303. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6304. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6305. msm_routing_put_audio_mixer),
  6306. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6308. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6309. msm_routing_put_audio_mixer),
  6310. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6312. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6313. msm_routing_put_audio_mixer),
  6314. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6316. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6317. msm_routing_put_audio_mixer),
  6318. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6320. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6321. msm_routing_put_audio_mixer),
  6322. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6324. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6325. msm_routing_put_audio_mixer),
  6326. };
  6327. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  6328. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. };
  6397. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  6398. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. };
  6467. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6468. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6530. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6531. msm_routing_put_audio_mixer),
  6532. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6534. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6535. msm_routing_put_audio_mixer),
  6536. };
  6537. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6538. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. };
  6607. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6608. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6649. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6650. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6651. msm_routing_put_audio_mixer),
  6652. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6653. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6654. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6655. msm_routing_put_audio_mixer),
  6656. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6657. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6658. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6659. msm_routing_put_audio_mixer),
  6660. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6661. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6662. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6663. msm_routing_put_audio_mixer),
  6664. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6665. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6666. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6667. msm_routing_put_audio_mixer),
  6668. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6669. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6670. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6671. msm_routing_put_audio_mixer),
  6672. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. };
  6677. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6678. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_USB_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_USB_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_USB_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_USB_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_USB_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_USB_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_USB_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_USB_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_USB_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6715. MSM_BACKEND_DAI_USB_RX,
  6716. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6717. msm_routing_put_audio_mixer),
  6718. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6719. MSM_BACKEND_DAI_USB_RX,
  6720. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6721. msm_routing_put_audio_mixer),
  6722. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6723. MSM_BACKEND_DAI_USB_RX,
  6724. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6725. msm_routing_put_audio_mixer),
  6726. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6727. MSM_BACKEND_DAI_USB_RX,
  6728. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6729. msm_routing_put_audio_mixer),
  6730. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6731. MSM_BACKEND_DAI_USB_RX,
  6732. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6733. msm_routing_put_audio_mixer),
  6734. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6735. MSM_BACKEND_DAI_USB_RX,
  6736. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6737. msm_routing_put_audio_mixer),
  6738. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6739. MSM_BACKEND_DAI_USB_RX,
  6740. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6741. msm_routing_put_audio_mixer),
  6742. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6743. MSM_BACKEND_DAI_USB_RX,
  6744. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6745. msm_routing_put_audio_mixer),
  6746. };
  6747. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6748. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6810. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6813. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6814. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6815. msm_routing_put_audio_mixer),
  6816. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6817. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6818. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6819. msm_routing_put_audio_mixer),
  6820. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6821. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6822. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6823. msm_routing_put_audio_mixer),
  6824. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6825. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6826. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6827. msm_routing_put_audio_mixer),
  6828. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6829. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6830. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6831. msm_routing_put_audio_mixer),
  6832. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6833. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6834. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6835. msm_routing_put_audio_mixer),
  6836. };
  6837. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6838. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6895. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6896. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6897. msm_routing_put_audio_mixer),
  6898. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6899. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6900. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6901. msm_routing_put_audio_mixer),
  6902. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6903. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6904. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6905. msm_routing_put_audio_mixer),
  6906. };
  6907. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6908. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_INT_FM_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_INT_FM_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_INT_FM_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_INT_FM_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_INT_FM_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_INT_FM_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_INT_FM_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_INT_FM_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_INT_FM_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_INT_FM_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_INT_FM_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_INT_FM_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_INT_FM_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_INT_FM_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_INT_FM_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_INT_FM_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_INT_FM_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_INT_FM_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_INT_FM_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_INT_FM_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6989. MSM_BACKEND_DAI_INT_FM_RX,
  6990. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6991. msm_routing_put_audio_mixer),
  6992. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6993. MSM_BACKEND_DAI_INT_FM_RX,
  6994. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6995. msm_routing_put_audio_mixer),
  6996. };
  6997. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  6998. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_AFE_PCM_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_AFE_PCM_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_AFE_PCM_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_AFE_PCM_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_AFE_PCM_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_AFE_PCM_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_AFE_PCM_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_AFE_PCM_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_AFE_PCM_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_AFE_PCM_RX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_AFE_PCM_RX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_AFE_PCM_RX,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_AFE_PCM_RX,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_AFE_PCM_RX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_AFE_PCM_RX,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7059. MSM_BACKEND_DAI_AFE_PCM_RX,
  7060. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7061. msm_routing_put_audio_mixer),
  7062. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7063. MSM_BACKEND_DAI_AFE_PCM_RX,
  7064. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7065. msm_routing_put_audio_mixer),
  7066. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7067. MSM_BACKEND_DAI_AFE_PCM_RX,
  7068. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7069. msm_routing_put_audio_mixer),
  7070. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7071. MSM_BACKEND_DAI_AFE_PCM_RX,
  7072. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7073. msm_routing_put_audio_mixer),
  7074. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7075. MSM_BACKEND_DAI_AFE_PCM_RX,
  7076. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7077. msm_routing_put_audio_mixer),
  7078. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7079. MSM_BACKEND_DAI_AFE_PCM_RX,
  7080. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7081. msm_routing_put_audio_mixer),
  7082. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7083. MSM_BACKEND_DAI_AFE_PCM_RX,
  7084. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7085. msm_routing_put_audio_mixer),
  7086. };
  7087. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  7088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_AUXPCM_RX,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_AUXPCM_RX,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_AUXPCM_RX,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_AUXPCM_RX,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_AUXPCM_RX,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_AUXPCM_RX,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_AUXPCM_RX,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_AUXPCM_RX,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_AUXPCM_RX,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_AUXPCM_RX,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7129. MSM_BACKEND_DAI_AUXPCM_RX,
  7130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7131. msm_routing_put_audio_mixer),
  7132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7133. MSM_BACKEND_DAI_AUXPCM_RX,
  7134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7135. msm_routing_put_audio_mixer),
  7136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7137. MSM_BACKEND_DAI_AUXPCM_RX,
  7138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7139. msm_routing_put_audio_mixer),
  7140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7141. MSM_BACKEND_DAI_AUXPCM_RX,
  7142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7143. msm_routing_put_audio_mixer),
  7144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7145. MSM_BACKEND_DAI_AUXPCM_RX,
  7146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7147. msm_routing_put_audio_mixer),
  7148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7149. MSM_BACKEND_DAI_AUXPCM_RX,
  7150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7151. msm_routing_put_audio_mixer),
  7152. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7153. MSM_BACKEND_DAI_AUXPCM_RX,
  7154. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7155. msm_routing_put_audio_mixer),
  7156. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7157. MSM_BACKEND_DAI_AUXPCM_RX,
  7158. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7159. msm_routing_put_audio_mixer),
  7160. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7161. MSM_BACKEND_DAI_AUXPCM_RX,
  7162. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7163. msm_routing_put_audio_mixer),
  7164. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7165. MSM_BACKEND_DAI_AUXPCM_RX,
  7166. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7167. msm_routing_put_audio_mixer),
  7168. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7169. MSM_BACKEND_DAI_AUXPCM_RX,
  7170. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7171. msm_routing_put_audio_mixer),
  7172. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7173. MSM_BACKEND_DAI_AUXPCM_RX,
  7174. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7175. msm_routing_put_audio_mixer),
  7176. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7177. MSM_BACKEND_DAI_AUXPCM_RX,
  7178. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7179. msm_routing_put_audio_mixer),
  7180. };
  7181. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  7182. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7227. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7228. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7229. msm_routing_put_audio_mixer),
  7230. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7231. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7232. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7233. msm_routing_put_audio_mixer),
  7234. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7235. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7236. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7237. msm_routing_put_audio_mixer),
  7238. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7239. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7240. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7241. msm_routing_put_audio_mixer),
  7242. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7243. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7245. msm_routing_put_audio_mixer),
  7246. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7259. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7263. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7264. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7265. msm_routing_put_audio_mixer),
  7266. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7267. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7271. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. };
  7275. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  7276. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7313. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7315. msm_routing_put_audio_mixer),
  7316. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7329. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7333. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7337. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7338. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7339. msm_routing_put_audio_mixer),
  7340. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7341. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7342. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7343. msm_routing_put_audio_mixer),
  7344. };
  7345. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  7346. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7383. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7385. msm_routing_put_audio_mixer),
  7386. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7387. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7388. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7389. msm_routing_put_audio_mixer),
  7390. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7391. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7392. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7393. msm_routing_put_audio_mixer),
  7394. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7399. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7403. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7407. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7408. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7409. msm_routing_put_audio_mixer),
  7410. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7411. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7412. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7413. msm_routing_put_audio_mixer),
  7414. };
  7415. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  7416. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7453. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7454. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7455. msm_routing_put_audio_mixer),
  7456. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7457. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7458. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7459. msm_routing_put_audio_mixer),
  7460. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7461. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7462. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7463. msm_routing_put_audio_mixer),
  7464. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7465. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7466. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7467. msm_routing_put_audio_mixer),
  7468. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7469. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7470. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7471. msm_routing_put_audio_mixer),
  7472. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7473. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7477. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7478. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7479. msm_routing_put_audio_mixer),
  7480. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7481. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7482. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7483. msm_routing_put_audio_mixer),
  7484. };
  7485. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  7486. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7487. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7488. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7489. msm_routing_put_audio_mixer),
  7490. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7491. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7493. msm_routing_put_audio_mixer),
  7494. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7495. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7497. msm_routing_put_audio_mixer),
  7498. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7499. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7501. msm_routing_put_audio_mixer),
  7502. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7503. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7505. msm_routing_put_audio_mixer),
  7506. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7523. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7524. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7525. msm_routing_put_audio_mixer),
  7526. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7527. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7528. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7529. msm_routing_put_audio_mixer),
  7530. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7531. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7532. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7533. msm_routing_put_audio_mixer),
  7534. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7535. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7536. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7537. msm_routing_put_audio_mixer),
  7538. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7539. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7540. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7541. msm_routing_put_audio_mixer),
  7542. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7543. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7544. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7545. msm_routing_put_audio_mixer),
  7546. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7547. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7548. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7549. msm_routing_put_audio_mixer),
  7550. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7551. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7552. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7553. msm_routing_put_audio_mixer),
  7554. };
  7555. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7556. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7593. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7594. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7595. msm_routing_put_audio_mixer),
  7596. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7597. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7598. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7599. msm_routing_put_audio_mixer),
  7600. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7601. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7602. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7603. msm_routing_put_audio_mixer),
  7604. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7605. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7606. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7607. msm_routing_put_audio_mixer),
  7608. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7609. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7610. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7611. msm_routing_put_audio_mixer),
  7612. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7613. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7614. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7615. msm_routing_put_audio_mixer),
  7616. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7617. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7619. msm_routing_put_audio_mixer),
  7620. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7621. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7622. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7623. msm_routing_put_audio_mixer),
  7624. };
  7625. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7626. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7667. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7668. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7669. msm_routing_put_audio_mixer),
  7670. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7671. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7672. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7673. msm_routing_put_audio_mixer),
  7674. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7675. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7676. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7677. msm_routing_put_audio_mixer),
  7678. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7679. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7680. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7681. msm_routing_put_audio_mixer),
  7682. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7683. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7684. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7685. msm_routing_put_audio_mixer),
  7686. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7687. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7688. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7689. msm_routing_put_audio_mixer),
  7690. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7691. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7692. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7693. msm_routing_put_audio_mixer),
  7694. };
  7695. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7696. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7737. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7738. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7739. msm_routing_put_audio_mixer),
  7740. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7741. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7742. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7743. msm_routing_put_audio_mixer),
  7744. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7745. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7746. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7747. msm_routing_put_audio_mixer),
  7748. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7749. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7750. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7751. msm_routing_put_audio_mixer),
  7752. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7753. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7754. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7755. msm_routing_put_audio_mixer),
  7756. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7757. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7758. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7759. msm_routing_put_audio_mixer),
  7760. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7761. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7762. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7763. msm_routing_put_audio_mixer),
  7764. };
  7765. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7766. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7803. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7805. msm_routing_put_audio_mixer),
  7806. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7807. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7808. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7809. msm_routing_put_audio_mixer),
  7810. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7811. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7812. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7813. msm_routing_put_audio_mixer),
  7814. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7815. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7816. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7817. msm_routing_put_audio_mixer),
  7818. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7819. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7820. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7821. msm_routing_put_audio_mixer),
  7822. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7823. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7824. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7825. msm_routing_put_audio_mixer),
  7826. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7827. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7828. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7829. msm_routing_put_audio_mixer),
  7830. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7831. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7832. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7833. msm_routing_put_audio_mixer),
  7834. };
  7835. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7836. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7877. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7878. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7879. msm_routing_put_audio_mixer),
  7880. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7881. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7882. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7883. msm_routing_put_audio_mixer),
  7884. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7885. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7886. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7887. msm_routing_put_audio_mixer),
  7888. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7889. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7890. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7891. msm_routing_put_audio_mixer),
  7892. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7893. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7894. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7895. msm_routing_put_audio_mixer),
  7896. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7897. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7898. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7899. msm_routing_put_audio_mixer),
  7900. };
  7901. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7902. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7943. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7944. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7945. msm_routing_put_audio_mixer),
  7946. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7947. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7948. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7949. msm_routing_put_audio_mixer),
  7950. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7951. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7952. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7953. msm_routing_put_audio_mixer),
  7954. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7955. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7956. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7957. msm_routing_put_audio_mixer),
  7958. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7959. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7960. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7961. msm_routing_put_audio_mixer),
  7962. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7963. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7964. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7965. msm_routing_put_audio_mixer),
  7966. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7967. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7968. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7969. msm_routing_put_audio_mixer),
  7970. };
  7971. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7972. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8017. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8018. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8019. msm_routing_put_audio_mixer),
  8020. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8021. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8022. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8023. msm_routing_put_audio_mixer),
  8024. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8025. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8026. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8027. msm_routing_put_audio_mixer),
  8028. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8029. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8030. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8031. msm_routing_put_audio_mixer),
  8032. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8033. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8034. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8035. msm_routing_put_audio_mixer),
  8036. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8037. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8038. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8039. msm_routing_put_audio_mixer),
  8040. };
  8041. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  8042. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8095. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8096. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8097. msm_routing_put_audio_mixer),
  8098. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8099. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8100. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8101. msm_routing_put_audio_mixer),
  8102. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8103. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8104. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8105. msm_routing_put_audio_mixer),
  8106. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8107. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8108. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8109. msm_routing_put_audio_mixer),
  8110. };
  8111. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  8112. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8157. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8158. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8159. msm_routing_put_audio_mixer),
  8160. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8161. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8162. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8163. msm_routing_put_audio_mixer),
  8164. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8165. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8166. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8167. msm_routing_put_audio_mixer),
  8168. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8169. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8170. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8171. msm_routing_put_audio_mixer),
  8172. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8174. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8175. msm_routing_put_audio_mixer),
  8176. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8177. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8178. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8179. msm_routing_put_audio_mixer),
  8180. };
  8181. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  8182. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8211. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8213. msm_routing_put_audio_mixer),
  8214. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8215. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8217. msm_routing_put_audio_mixer),
  8218. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8223. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8224. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8225. msm_routing_put_audio_mixer),
  8226. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8227. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8228. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8229. msm_routing_put_audio_mixer),
  8230. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8231. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8232. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8233. msm_routing_put_audio_mixer),
  8234. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8235. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8236. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8237. msm_routing_put_audio_mixer),
  8238. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8239. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8240. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8241. msm_routing_put_audio_mixer),
  8242. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8243. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8245. msm_routing_put_audio_mixer),
  8246. };
  8247. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  8248. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8309. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8311. msm_routing_put_audio_mixer),
  8312. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8313. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8314. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8315. msm_routing_put_audio_mixer),
  8316. };
  8317. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  8318. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. };
  8383. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  8384. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8385. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8387. msm_routing_put_audio_mixer),
  8388. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8389. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8390. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8391. msm_routing_put_audio_mixer),
  8392. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8393. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8394. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8395. msm_routing_put_audio_mixer),
  8396. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8397. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8398. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8399. msm_routing_put_audio_mixer),
  8400. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. };
  8453. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  8454. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8455. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8456. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8457. msm_routing_put_audio_mixer),
  8458. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8459. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8460. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8461. msm_routing_put_audio_mixer),
  8462. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8463. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8465. msm_routing_put_audio_mixer),
  8466. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8467. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8469. msm_routing_put_audio_mixer),
  8470. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8491. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8493. msm_routing_put_audio_mixer),
  8494. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8495. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8496. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8497. msm_routing_put_audio_mixer),
  8498. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8499. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8500. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8501. msm_routing_put_audio_mixer),
  8502. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8503. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8504. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8505. msm_routing_put_audio_mixer),
  8506. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8507. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8508. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8509. msm_routing_put_audio_mixer),
  8510. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. };
  8523. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  8524. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8525. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8527. msm_routing_put_audio_mixer),
  8528. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8529. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8531. msm_routing_put_audio_mixer),
  8532. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8533. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8535. msm_routing_put_audio_mixer),
  8536. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8537. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8539. msm_routing_put_audio_mixer),
  8540. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8541. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8543. msm_routing_put_audio_mixer),
  8544. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8545. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8547. msm_routing_put_audio_mixer),
  8548. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8549. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8551. msm_routing_put_audio_mixer),
  8552. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8553. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8555. msm_routing_put_audio_mixer),
  8556. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8557. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8559. msm_routing_put_audio_mixer),
  8560. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8561. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8562. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8563. msm_routing_put_audio_mixer),
  8564. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. };
  8593. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8594. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8595. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8596. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8597. msm_routing_put_audio_mixer),
  8598. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8599. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8600. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8601. msm_routing_put_audio_mixer),
  8602. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8603. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8605. msm_routing_put_audio_mixer),
  8606. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8607. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8608. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8609. msm_routing_put_audio_mixer),
  8610. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8611. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8612. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8613. msm_routing_put_audio_mixer),
  8614. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8615. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8616. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8617. msm_routing_put_audio_mixer),
  8618. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8619. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8620. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8621. msm_routing_put_audio_mixer),
  8622. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8623. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8624. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8625. msm_routing_put_audio_mixer),
  8626. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8627. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8628. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8629. msm_routing_put_audio_mixer),
  8630. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8631. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8633. msm_routing_put_audio_mixer),
  8634. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8635. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8636. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8637. msm_routing_put_audio_mixer),
  8638. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8639. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8640. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8641. msm_routing_put_audio_mixer),
  8642. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8643. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8644. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8645. msm_routing_put_audio_mixer),
  8646. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8647. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8648. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8649. msm_routing_put_audio_mixer),
  8650. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8651. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8652. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8653. msm_routing_put_audio_mixer),
  8654. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8655. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8656. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8657. msm_routing_put_audio_mixer),
  8658. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8659. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8660. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8661. msm_routing_put_audio_mixer),
  8662. };
  8663. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8664. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8685. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8686. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8687. msm_routing_put_audio_mixer),
  8688. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8689. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8690. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8691. msm_routing_put_audio_mixer),
  8692. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8693. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8695. msm_routing_put_audio_mixer),
  8696. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8697. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8698. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8699. msm_routing_put_audio_mixer),
  8700. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8701. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8702. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8703. msm_routing_put_audio_mixer),
  8704. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8705. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8706. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8707. msm_routing_put_audio_mixer),
  8708. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8709. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8710. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8711. msm_routing_put_audio_mixer),
  8712. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8713. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8714. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8715. msm_routing_put_audio_mixer),
  8716. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8717. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8718. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8719. msm_routing_put_audio_mixer),
  8720. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8721. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8722. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8723. msm_routing_put_audio_mixer),
  8724. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8725. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8726. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8727. msm_routing_put_audio_mixer),
  8728. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8729. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8730. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8731. msm_routing_put_audio_mixer),
  8732. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8733. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8734. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8735. msm_routing_put_audio_mixer),
  8736. };
  8737. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8738. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8759. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8760. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8761. msm_routing_put_audio_mixer),
  8762. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8763. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8764. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8765. msm_routing_put_audio_mixer),
  8766. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8767. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8768. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8769. msm_routing_put_audio_mixer),
  8770. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8771. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8772. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8773. msm_routing_put_audio_mixer),
  8774. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8775. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8776. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8777. msm_routing_put_audio_mixer),
  8778. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8779. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8780. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8781. msm_routing_put_audio_mixer),
  8782. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8783. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8784. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8785. msm_routing_put_audio_mixer),
  8786. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8787. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8788. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8789. msm_routing_put_audio_mixer),
  8790. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8791. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8792. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8793. msm_routing_put_audio_mixer),
  8794. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8795. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8796. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8797. msm_routing_put_audio_mixer),
  8798. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8799. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8800. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8801. msm_routing_put_audio_mixer),
  8802. };
  8803. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8804. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8853. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8854. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8855. msm_routing_put_audio_mixer),
  8856. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8857. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8858. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8859. msm_routing_put_audio_mixer),
  8860. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8861. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8862. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8863. msm_routing_put_audio_mixer),
  8864. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8865. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8866. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8867. msm_routing_put_audio_mixer),
  8868. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8869. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8870. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8871. msm_routing_put_audio_mixer),
  8872. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8873. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8874. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8875. msm_routing_put_audio_mixer),
  8876. };
  8877. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8878. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8947. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8948. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8949. msm_routing_put_audio_mixer),
  8950. };
  8951. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8952. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8993. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8994. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8995. msm_routing_put_audio_mixer),
  8996. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8997. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8998. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8999. msm_routing_put_audio_mixer),
  9000. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9001. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9002. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9003. msm_routing_put_audio_mixer),
  9004. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9005. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9006. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9007. msm_routing_put_audio_mixer),
  9008. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9009. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9010. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9011. msm_routing_put_audio_mixer),
  9012. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9013. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9015. msm_routing_put_audio_mixer),
  9016. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9017. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9018. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9019. msm_routing_put_audio_mixer),
  9020. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9021. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9022. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9023. msm_routing_put_audio_mixer),
  9024. };
  9025. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  9026. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9091. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9092. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9093. msm_routing_put_audio_mixer),
  9094. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9095. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9096. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9097. msm_routing_put_audio_mixer),
  9098. };
  9099. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  9100. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9133. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9134. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9135. msm_routing_put_audio_mixer),
  9136. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9137. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9138. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9139. msm_routing_put_audio_mixer),
  9140. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9141. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9142. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9143. msm_routing_put_audio_mixer),
  9144. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. };
  9165. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  9166. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9219. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9220. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9221. msm_routing_put_audio_mixer),
  9222. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9223. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9224. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9225. msm_routing_put_audio_mixer),
  9226. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9227. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9228. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9229. msm_routing_put_audio_mixer),
  9230. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9231. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9232. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9233. msm_routing_put_audio_mixer),
  9234. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9235. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9236. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9237. msm_routing_put_audio_mixer),
  9238. };
  9239. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  9240. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9305. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9306. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9307. msm_routing_put_audio_mixer),
  9308. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9309. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9310. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9311. msm_routing_put_audio_mixer),
  9312. };
  9313. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  9314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. };
  9387. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  9388. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9389. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9391. msm_routing_put_audio_mixer),
  9392. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9453. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9454. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9455. msm_routing_put_audio_mixer),
  9456. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9457. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9458. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9459. msm_routing_put_audio_mixer),
  9460. };
  9461. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  9462. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9463. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9464. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9465. msm_routing_put_audio_mixer),
  9466. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9467. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9468. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9469. msm_routing_put_audio_mixer),
  9470. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9471. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9472. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9473. msm_routing_put_audio_mixer),
  9474. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9475. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9477. msm_routing_put_audio_mixer),
  9478. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. };
  9527. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  9528. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9529. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9530. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9531. msm_routing_put_audio_mixer),
  9532. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9533. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9534. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9535. msm_routing_put_audio_mixer),
  9536. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9537. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9538. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9539. msm_routing_put_audio_mixer),
  9540. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9541. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9543. msm_routing_put_audio_mixer),
  9544. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9545. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9546. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9547. msm_routing_put_audio_mixer),
  9548. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9549. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9550. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9551. msm_routing_put_audio_mixer),
  9552. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9553. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9554. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9555. msm_routing_put_audio_mixer),
  9556. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. };
  9601. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  9602. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9603. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9604. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9605. msm_routing_put_audio_mixer),
  9606. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9607. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9609. msm_routing_put_audio_mixer),
  9610. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9611. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9613. msm_routing_put_audio_mixer),
  9614. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9615. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9616. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9617. msm_routing_put_audio_mixer),
  9618. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9619. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9620. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9621. msm_routing_put_audio_mixer),
  9622. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9623. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9624. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9625. msm_routing_put_audio_mixer),
  9626. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9627. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9628. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9629. msm_routing_put_audio_mixer),
  9630. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9631. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9632. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9633. msm_routing_put_audio_mixer),
  9634. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9635. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9636. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9637. msm_routing_put_audio_mixer),
  9638. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9639. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9640. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9641. msm_routing_put_audio_mixer),
  9642. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9643. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9644. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9645. msm_routing_put_audio_mixer),
  9646. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9647. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9648. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9649. msm_routing_put_audio_mixer),
  9650. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. };
  9675. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  9676. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9677. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9678. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9679. msm_routing_put_audio_mixer),
  9680. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9681. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9682. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9683. msm_routing_put_audio_mixer),
  9684. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9685. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9686. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9687. msm_routing_put_audio_mixer),
  9688. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9689. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9690. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9691. msm_routing_put_audio_mixer),
  9692. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9693. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9694. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9695. msm_routing_put_audio_mixer),
  9696. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9697. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9698. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9699. msm_routing_put_audio_mixer),
  9700. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9701. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9702. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9703. msm_routing_put_audio_mixer),
  9704. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9705. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9706. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9707. msm_routing_put_audio_mixer),
  9708. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9709. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9710. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9711. msm_routing_put_audio_mixer),
  9712. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9713. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9714. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9715. msm_routing_put_audio_mixer),
  9716. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9717. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9718. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9719. msm_routing_put_audio_mixer),
  9720. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9721. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9722. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9723. msm_routing_put_audio_mixer),
  9724. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9725. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9726. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9727. msm_routing_put_audio_mixer),
  9728. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9730. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9731. msm_routing_put_audio_mixer),
  9732. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9745. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9746. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9747. msm_routing_put_audio_mixer),
  9748. };
  9749. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  9750. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_PRI_I2S_TX,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_MI2S_TX,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9767. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9768. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9769. msm_routing_put_audio_mixer),
  9770. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9771. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9772. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9773. msm_routing_put_audio_mixer),
  9774. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9775. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9777. msm_routing_put_audio_mixer),
  9778. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9779. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9780. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9781. msm_routing_put_audio_mixer),
  9782. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9783. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9784. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9785. msm_routing_put_audio_mixer),
  9786. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9787. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9788. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9789. msm_routing_put_audio_mixer),
  9790. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9791. MSM_BACKEND_DAI_AUXPCM_TX,
  9792. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9793. msm_routing_put_audio_mixer),
  9794. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9795. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9796. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9797. msm_routing_put_audio_mixer),
  9798. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9799. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9800. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9801. msm_routing_put_audio_mixer),
  9802. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9803. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9804. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9805. msm_routing_put_audio_mixer),
  9806. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9807. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9808. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9809. msm_routing_put_audio_mixer),
  9810. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9811. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  9812. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9813. msm_routing_put_audio_mixer),
  9814. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_INT_FM_TX,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_AFE_PCM_TX,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9899. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9900. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9901. msm_routing_put_audio_mixer),
  9902. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9904. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9905. msm_routing_put_audio_mixer),
  9906. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9909. msm_routing_put_audio_mixer),
  9910. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9912. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9913. msm_routing_put_audio_mixer),
  9914. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9917. msm_routing_put_audio_mixer),
  9918. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9920. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9921. msm_routing_put_audio_mixer),
  9922. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9923. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9925. msm_routing_put_audio_mixer),
  9926. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9927. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9929. msm_routing_put_audio_mixer),
  9930. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  9931. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9933. msm_routing_put_audio_mixer),
  9934. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  9935. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  9936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9937. msm_routing_put_audio_mixer),
  9938. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  9939. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  9940. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9941. msm_routing_put_audio_mixer),
  9942. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  9943. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  9944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9945. msm_routing_put_audio_mixer),
  9946. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9947. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9949. msm_routing_put_audio_mixer),
  9950. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9951. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9953. msm_routing_put_audio_mixer),
  9954. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9955. MSM_BACKEND_DAI_USB_TX,
  9956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9957. msm_routing_put_audio_mixer),
  9958. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9959. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9961. msm_routing_put_audio_mixer),
  9962. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9963. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9965. msm_routing_put_audio_mixer),
  9966. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9967. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9969. msm_routing_put_audio_mixer),
  9970. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9971. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9972. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9973. msm_routing_put_audio_mixer),
  9974. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9975. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9977. msm_routing_put_audio_mixer),
  9978. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9979. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9981. msm_routing_put_audio_mixer),
  9982. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9983. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9985. msm_routing_put_audio_mixer),
  9986. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9987. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9989. msm_routing_put_audio_mixer),
  9990. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9991. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9993. msm_routing_put_audio_mixer),
  9994. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  9995. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  9996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9997. msm_routing_put_audio_mixer),
  9998. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10001. msm_routing_put_audio_mixer),
  10002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10005. msm_routing_put_audio_mixer),
  10006. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. };
  10023. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  10024. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10025. MSM_BACKEND_DAI_INT_FM_TX,
  10026. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10027. msm_routing_put_audio_mixer),
  10028. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10029. MSM_BACKEND_DAI_MI2S_TX,
  10030. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10031. msm_routing_put_audio_mixer),
  10032. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10033. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10034. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10035. msm_routing_put_audio_mixer),
  10036. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10037. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10038. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10039. msm_routing_put_audio_mixer),
  10040. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10041. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10042. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10043. msm_routing_put_audio_mixer),
  10044. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10045. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10046. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10047. msm_routing_put_audio_mixer),
  10048. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10049. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10050. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10051. msm_routing_put_audio_mixer),
  10052. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10053. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10054. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10055. msm_routing_put_audio_mixer),
  10056. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10057. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10058. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10059. msm_routing_put_audio_mixer),
  10060. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10061. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10062. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10063. msm_routing_put_audio_mixer),
  10064. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10085. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10086. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10087. msm_routing_put_audio_mixer),
  10088. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10089. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10090. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10091. msm_routing_put_audio_mixer),
  10092. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10141. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10142. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10143. msm_routing_put_audio_mixer),
  10144. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10145. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10147. msm_routing_put_audio_mixer),
  10148. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10149. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10150. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10151. msm_routing_put_audio_mixer),
  10152. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10153. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10154. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10155. msm_routing_put_audio_mixer),
  10156. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10158. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10159. msm_routing_put_audio_mixer),
  10160. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10161. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10162. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10163. msm_routing_put_audio_mixer),
  10164. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10165. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10166. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10167. msm_routing_put_audio_mixer),
  10168. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10169. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10170. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10171. msm_routing_put_audio_mixer),
  10172. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10173. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10174. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10175. msm_routing_put_audio_mixer),
  10176. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10177. MSM_BACKEND_DAI_USB_TX,
  10178. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10179. msm_routing_put_audio_mixer),
  10180. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10181. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10183. msm_routing_put_audio_mixer),
  10184. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10185. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10186. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10187. msm_routing_put_audio_mixer),
  10188. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10189. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10190. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10191. msm_routing_put_audio_mixer),
  10192. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10193. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10195. msm_routing_put_audio_mixer),
  10196. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10197. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10199. msm_routing_put_audio_mixer),
  10200. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10201. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10203. msm_routing_put_audio_mixer),
  10204. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10205. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10207. msm_routing_put_audio_mixer),
  10208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10210. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10211. msm_routing_put_audio_mixer),
  10212. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10213. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10215. msm_routing_put_audio_mixer),
  10216. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10217. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10219. msm_routing_put_audio_mixer),
  10220. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10221. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10223. msm_routing_put_audio_mixer),
  10224. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10225. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10227. msm_routing_put_audio_mixer),
  10228. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10229. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10231. msm_routing_put_audio_mixer),
  10232. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10243. msm_routing_put_audio_mixer),
  10244. };
  10245. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  10246. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10247. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10248. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10249. msm_routing_put_audio_mixer),
  10250. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10251. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10252. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10253. msm_routing_put_audio_mixer),
  10254. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10255. MSM_BACKEND_DAI_INT_FM_TX,
  10256. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10257. msm_routing_put_audio_mixer),
  10258. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10259. MSM_BACKEND_DAI_MI2S_TX,
  10260. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10261. msm_routing_put_audio_mixer),
  10262. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10263. MSM_BACKEND_DAI_AFE_PCM_TX,
  10264. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10265. msm_routing_put_audio_mixer),
  10266. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10267. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10268. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10269. msm_routing_put_audio_mixer),
  10270. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10271. MSM_BACKEND_DAI_AUXPCM_TX,
  10272. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10273. msm_routing_put_audio_mixer),
  10274. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10275. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10277. msm_routing_put_audio_mixer),
  10278. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10279. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10280. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10281. msm_routing_put_audio_mixer),
  10282. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10283. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10284. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10285. msm_routing_put_audio_mixer),
  10286. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  10287. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10288. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10289. msm_routing_put_audio_mixer),
  10290. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  10291. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10292. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10293. msm_routing_put_audio_mixer),
  10294. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10295. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10297. msm_routing_put_audio_mixer),
  10298. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10299. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10301. msm_routing_put_audio_mixer),
  10302. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10303. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10304. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10305. msm_routing_put_audio_mixer),
  10306. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10307. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10309. msm_routing_put_audio_mixer),
  10310. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10311. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10312. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10313. msm_routing_put_audio_mixer),
  10314. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10317. msm_routing_put_audio_mixer),
  10318. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10320. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10321. msm_routing_put_audio_mixer),
  10322. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10325. msm_routing_put_audio_mixer),
  10326. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10327. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10329. msm_routing_put_audio_mixer),
  10330. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10331. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10332. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10333. msm_routing_put_audio_mixer),
  10334. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10336. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10337. msm_routing_put_audio_mixer),
  10338. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10340. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10341. msm_routing_put_audio_mixer),
  10342. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10352. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10368. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10369. msm_routing_put_audio_mixer),
  10370. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10371. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10372. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10385. msm_routing_put_audio_mixer),
  10386. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10388. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10389. msm_routing_put_audio_mixer),
  10390. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10392. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10393. msm_routing_put_audio_mixer),
  10394. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10396. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10397. msm_routing_put_audio_mixer),
  10398. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10399. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10400. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10401. msm_routing_put_audio_mixer),
  10402. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10403. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10404. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10405. msm_routing_put_audio_mixer),
  10406. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10407. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10408. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10409. msm_routing_put_audio_mixer),
  10410. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10411. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10412. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10413. msm_routing_put_audio_mixer),
  10414. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10415. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10416. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10417. msm_routing_put_audio_mixer),
  10418. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10419. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10420. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10421. msm_routing_put_audio_mixer),
  10422. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10423. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10425. msm_routing_put_audio_mixer),
  10426. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10427. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10429. msm_routing_put_audio_mixer),
  10430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10433. msm_routing_put_audio_mixer),
  10434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10437. msm_routing_put_audio_mixer),
  10438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10441. msm_routing_put_audio_mixer),
  10442. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10443. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10445. msm_routing_put_audio_mixer),
  10446. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10447. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10449. msm_routing_put_audio_mixer),
  10450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10453. msm_routing_put_audio_mixer),
  10454. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10455. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10457. msm_routing_put_audio_mixer),
  10458. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10459. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10461. msm_routing_put_audio_mixer),
  10462. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10465. msm_routing_put_audio_mixer),
  10466. };
  10467. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  10468. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_INT_FM_TX,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10489. MSM_BACKEND_DAI_AFE_PCM_TX,
  10490. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10491. msm_routing_put_audio_mixer),
  10492. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10494. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10495. msm_routing_put_audio_mixer),
  10496. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10517. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10518. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10519. msm_routing_put_audio_mixer),
  10520. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10521. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10522. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10523. msm_routing_put_audio_mixer),
  10524. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10526. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10527. msm_routing_put_audio_mixer),
  10528. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10529. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10530. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10531. msm_routing_put_audio_mixer),
  10532. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10533. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10534. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10535. msm_routing_put_audio_mixer),
  10536. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10539. msm_routing_put_audio_mixer),
  10540. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10541. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10542. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10543. msm_routing_put_audio_mixer),
  10544. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10545. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10547. msm_routing_put_audio_mixer),
  10548. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10549. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10551. msm_routing_put_audio_mixer),
  10552. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10553. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10555. msm_routing_put_audio_mixer),
  10556. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10557. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10559. msm_routing_put_audio_mixer),
  10560. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10561. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10563. msm_routing_put_audio_mixer),
  10564. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10565. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10567. msm_routing_put_audio_mixer),
  10568. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10569. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10571. msm_routing_put_audio_mixer),
  10572. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10573. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10575. msm_routing_put_audio_mixer),
  10576. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_USB_TX,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10635. msm_routing_put_audio_mixer),
  10636. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10638. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10639. msm_routing_put_audio_mixer),
  10640. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10643. msm_routing_put_audio_mixer),
  10644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10651. msm_routing_put_audio_mixer),
  10652. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10653. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10655. msm_routing_put_audio_mixer),
  10656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10659. msm_routing_put_audio_mixer),
  10660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10663. msm_routing_put_audio_mixer),
  10664. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10665. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10666. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10667. msm_routing_put_audio_mixer),
  10668. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10671. msm_routing_put_audio_mixer),
  10672. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10673. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10674. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10675. msm_routing_put_audio_mixer),
  10676. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10677. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10678. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10679. msm_routing_put_audio_mixer),
  10680. };
  10681. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  10682. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_INT_FM_TX,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_MI2S_TX,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_AFE_PCM_TX,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_AUXPCM_TX,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10751. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10752. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10753. msm_routing_put_audio_mixer),
  10754. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10761. msm_routing_put_audio_mixer),
  10762. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10763. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10764. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10765. msm_routing_put_audio_mixer),
  10766. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10769. msm_routing_put_audio_mixer),
  10770. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10771. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10772. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10773. msm_routing_put_audio_mixer),
  10774. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10775. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10777. msm_routing_put_audio_mixer),
  10778. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10779. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10781. msm_routing_put_audio_mixer),
  10782. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10783. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10784. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10785. msm_routing_put_audio_mixer),
  10786. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10787. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10788. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10789. msm_routing_put_audio_mixer),
  10790. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10791. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10793. msm_routing_put_audio_mixer),
  10794. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10795. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10796. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10797. msm_routing_put_audio_mixer),
  10798. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10799. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10800. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10801. msm_routing_put_audio_mixer),
  10802. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10803. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10804. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10805. msm_routing_put_audio_mixer),
  10806. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10807. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10808. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10809. msm_routing_put_audio_mixer),
  10810. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10811. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10813. msm_routing_put_audio_mixer),
  10814. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10815. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10816. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10817. msm_routing_put_audio_mixer),
  10818. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10819. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10821. msm_routing_put_audio_mixer),
  10822. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10823. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10825. msm_routing_put_audio_mixer),
  10826. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10827. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10828. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10829. msm_routing_put_audio_mixer),
  10830. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10831. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10833. msm_routing_put_audio_mixer),
  10834. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10837. msm_routing_put_audio_mixer),
  10838. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10840. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10849. msm_routing_put_audio_mixer),
  10850. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10851. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10853. msm_routing_put_audio_mixer),
  10854. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_USB_TX,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. };
  10927. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  10928. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_INT_FM_TX,
  10930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10931. msm_routing_put_audio_mixer),
  10932. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10934. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10935. msm_routing_put_audio_mixer),
  10936. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10938. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10939. msm_routing_put_audio_mixer),
  10940. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10942. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10943. msm_routing_put_audio_mixer),
  10944. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10947. msm_routing_put_audio_mixer),
  10948. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_AUXPCM_TX,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11015. msm_routing_put_audio_mixer),
  11016. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11017. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11018. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11019. msm_routing_put_audio_mixer),
  11020. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11021. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11022. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11023. msm_routing_put_audio_mixer),
  11024. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11025. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11026. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11027. msm_routing_put_audio_mixer),
  11028. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11030. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11031. msm_routing_put_audio_mixer),
  11032. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11033. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11034. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11035. msm_routing_put_audio_mixer),
  11036. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11037. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11039. msm_routing_put_audio_mixer),
  11040. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11041. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11042. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11043. msm_routing_put_audio_mixer),
  11044. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11045. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11046. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11047. msm_routing_put_audio_mixer),
  11048. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11049. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11051. msm_routing_put_audio_mixer),
  11052. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11053. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11054. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11055. msm_routing_put_audio_mixer),
  11056. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11057. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11058. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11059. msm_routing_put_audio_mixer),
  11060. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11061. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11062. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11063. msm_routing_put_audio_mixer),
  11064. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11065. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11066. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11067. msm_routing_put_audio_mixer),
  11068. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11069. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11070. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11071. msm_routing_put_audio_mixer),
  11072. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11073. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11074. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11075. msm_routing_put_audio_mixer),
  11076. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11077. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11078. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11079. msm_routing_put_audio_mixer),
  11080. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11081. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11083. msm_routing_put_audio_mixer),
  11084. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11085. MSM_BACKEND_DAI_USB_TX,
  11086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11087. msm_routing_put_audio_mixer),
  11088. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11089. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11090. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11091. msm_routing_put_audio_mixer),
  11092. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11094. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11095. msm_routing_put_audio_mixer),
  11096. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11097. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11098. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11099. msm_routing_put_audio_mixer),
  11100. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11102. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11103. msm_routing_put_audio_mixer),
  11104. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11105. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11106. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11122. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11123. msm_routing_put_audio_mixer),
  11124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. };
  11149. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  11150. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11151. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11152. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11153. msm_routing_put_audio_mixer),
  11154. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11155. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11157. msm_routing_put_audio_mixer),
  11158. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_INT_FM_TX,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_AFE_PCM_TX,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11241. msm_routing_put_audio_mixer),
  11242. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11245. msm_routing_put_audio_mixer),
  11246. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11248. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11249. msm_routing_put_audio_mixer),
  11250. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11252. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11253. msm_routing_put_audio_mixer),
  11254. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11256. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11257. msm_routing_put_audio_mixer),
  11258. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11259. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11260. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11261. msm_routing_put_audio_mixer),
  11262. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11263. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11264. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11265. msm_routing_put_audio_mixer),
  11266. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11267. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11268. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11269. msm_routing_put_audio_mixer),
  11270. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11271. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11272. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11273. msm_routing_put_audio_mixer),
  11274. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11275. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11276. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11277. msm_routing_put_audio_mixer),
  11278. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11279. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11280. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11281. msm_routing_put_audio_mixer),
  11282. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11283. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11284. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11285. msm_routing_put_audio_mixer),
  11286. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11287. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11288. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11289. msm_routing_put_audio_mixer),
  11290. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11291. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11292. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11293. msm_routing_put_audio_mixer),
  11294. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11295. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11297. msm_routing_put_audio_mixer),
  11298. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11299. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11300. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11301. msm_routing_put_audio_mixer),
  11302. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11303. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11304. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11305. msm_routing_put_audio_mixer),
  11306. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11307. MSM_BACKEND_DAI_USB_TX,
  11308. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11309. msm_routing_put_audio_mixer),
  11310. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11311. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11312. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11313. msm_routing_put_audio_mixer),
  11314. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11315. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11316. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11317. msm_routing_put_audio_mixer),
  11318. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11319. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11320. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11321. msm_routing_put_audio_mixer),
  11322. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11324. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11325. msm_routing_put_audio_mixer),
  11326. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11328. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11329. msm_routing_put_audio_mixer),
  11330. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11332. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11333. msm_routing_put_audio_mixer),
  11334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11337. msm_routing_put_audio_mixer),
  11338. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11340. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11341. msm_routing_put_audio_mixer),
  11342. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11345. msm_routing_put_audio_mixer),
  11346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11349. msm_routing_put_audio_mixer),
  11350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11352. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11353. msm_routing_put_audio_mixer),
  11354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11356. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11357. msm_routing_put_audio_mixer),
  11358. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11359. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11360. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11361. msm_routing_put_audio_mixer),
  11362. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11364. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11365. msm_routing_put_audio_mixer),
  11366. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11368. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11369. msm_routing_put_audio_mixer),
  11370. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. };
  11375. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  11376. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11377. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11378. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11379. msm_routing_put_audio_mixer),
  11380. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11381. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11383. msm_routing_put_audio_mixer),
  11384. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11385. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11386. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11387. msm_routing_put_audio_mixer),
  11388. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11389. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11390. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11391. msm_routing_put_audio_mixer),
  11392. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11393. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11394. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11395. msm_routing_put_audio_mixer),
  11396. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11397. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11398. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11399. msm_routing_put_audio_mixer),
  11400. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11401. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11403. msm_routing_put_audio_mixer),
  11404. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11406. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11407. msm_routing_put_audio_mixer),
  11408. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_INT_FM_TX,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_AFE_PCM_TX,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11425. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11427. msm_routing_put_audio_mixer),
  11428. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11430. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11431. msm_routing_put_audio_mixer),
  11432. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11470. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11471. msm_routing_put_audio_mixer),
  11472. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11473. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11474. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11475. msm_routing_put_audio_mixer),
  11476. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11477. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11478. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11479. msm_routing_put_audio_mixer),
  11480. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11482. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11483. msm_routing_put_audio_mixer),
  11484. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11486. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11491. msm_routing_put_audio_mixer),
  11492. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11494. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11495. msm_routing_put_audio_mixer),
  11496. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11497. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11498. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11499. msm_routing_put_audio_mixer),
  11500. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_USB_TX,
  11502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11503. msm_routing_put_audio_mixer),
  11504. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_MI2S_TX,
  11506. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11507. msm_routing_put_audio_mixer),
  11508. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_AUXPCM_TX,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11513. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11514. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11515. msm_routing_put_audio_mixer),
  11516. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11517. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11518. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11519. msm_routing_put_audio_mixer),
  11520. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11522. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11523. msm_routing_put_audio_mixer),
  11524. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11526. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11527. msm_routing_put_audio_mixer),
  11528. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11529. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11530. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11531. msm_routing_put_audio_mixer),
  11532. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11533. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11534. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11535. msm_routing_put_audio_mixer),
  11536. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11537. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11538. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11539. msm_routing_put_audio_mixer),
  11540. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11541. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11542. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11543. msm_routing_put_audio_mixer),
  11544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11546. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11547. msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11552. msm_routing_get_audio_mixer,
  11553. msm_routing_put_audio_mixer),
  11554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11556. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11557. msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11562. msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11567. msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11572. msm_routing_get_audio_mixer,
  11573. msm_routing_put_audio_mixer),
  11574. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11577. msm_routing_put_audio_mixer),
  11578. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11579. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11580. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11581. msm_routing_put_audio_mixer),
  11582. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11583. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11584. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11585. msm_routing_put_audio_mixer),
  11586. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11587. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11589. msm_routing_put_audio_mixer),
  11590. };
  11591. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  11592. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11595. msm_routing_put_audio_mixer),
  11596. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11598. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11599. msm_routing_put_audio_mixer),
  11600. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11602. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11603. msm_routing_put_audio_mixer),
  11604. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_INT_FM_TX,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_AFE_PCM_TX,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11618. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11619. msm_routing_put_audio_mixer),
  11620. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11623. msm_routing_put_audio_mixer),
  11624. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11626. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11627. msm_routing_put_audio_mixer),
  11628. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11630. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11631. msm_routing_put_audio_mixer),
  11632. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11633. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11634. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11635. msm_routing_put_audio_mixer),
  11636. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11638. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11639. msm_routing_put_audio_mixer),
  11640. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11642. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11643. msm_routing_put_audio_mixer),
  11644. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11646. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11647. msm_routing_put_audio_mixer),
  11648. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11650. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11651. msm_routing_put_audio_mixer),
  11652. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11654. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11655. msm_routing_put_audio_mixer),
  11656. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11658. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11659. msm_routing_put_audio_mixer),
  11660. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11663. msm_routing_put_audio_mixer),
  11664. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11665. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11666. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11667. msm_routing_put_audio_mixer),
  11668. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11669. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11670. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11671. msm_routing_put_audio_mixer),
  11672. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11673. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11674. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11675. msm_routing_put_audio_mixer),
  11676. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11677. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11678. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11679. msm_routing_put_audio_mixer),
  11680. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11681. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11682. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11683. msm_routing_put_audio_mixer),
  11684. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11686. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11687. msm_routing_put_audio_mixer),
  11688. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11690. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11691. msm_routing_put_audio_mixer),
  11692. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11693. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11694. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11695. msm_routing_put_audio_mixer),
  11696. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11697. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11698. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11699. msm_routing_put_audio_mixer),
  11700. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11702. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11703. msm_routing_put_audio_mixer),
  11704. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11707. msm_routing_put_audio_mixer),
  11708. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11710. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11711. msm_routing_put_audio_mixer),
  11712. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11714. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11715. msm_routing_put_audio_mixer),
  11716. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11717. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11718. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11719. msm_routing_put_audio_mixer),
  11720. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11721. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11722. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11723. msm_routing_put_audio_mixer),
  11724. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11726. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11727. msm_routing_put_audio_mixer),
  11728. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11730. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11731. msm_routing_put_audio_mixer),
  11732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11734. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11735. msm_routing_put_audio_mixer),
  11736. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11738. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11739. msm_routing_put_audio_mixer),
  11740. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11742. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11743. msm_routing_put_audio_mixer),
  11744. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11746. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11747. msm_routing_put_audio_mixer),
  11748. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11751. msm_routing_put_audio_mixer),
  11752. };
  11753. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  11754. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11756. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11757. msm_routing_put_audio_mixer),
  11758. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11759. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11760. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11761. msm_routing_put_audio_mixer),
  11762. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11763. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11764. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11765. msm_routing_put_audio_mixer),
  11766. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11767. MSM_BACKEND_DAI_INT_FM_TX,
  11768. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11769. msm_routing_put_audio_mixer),
  11770. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11772. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11773. msm_routing_put_audio_mixer),
  11774. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_AFE_PCM_TX,
  11776. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11777. msm_routing_put_audio_mixer),
  11778. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11779. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11780. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11781. msm_routing_put_audio_mixer),
  11782. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11783. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11784. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11785. msm_routing_put_audio_mixer),
  11786. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11788. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11789. msm_routing_put_audio_mixer),
  11790. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11792. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11793. msm_routing_put_audio_mixer),
  11794. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11796. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11797. msm_routing_put_audio_mixer),
  11798. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11800. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11801. msm_routing_put_audio_mixer),
  11802. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11804. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11805. msm_routing_put_audio_mixer),
  11806. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11808. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11809. msm_routing_put_audio_mixer),
  11810. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11813. msm_routing_put_audio_mixer),
  11814. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11816. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11817. msm_routing_put_audio_mixer),
  11818. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11819. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11820. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11821. msm_routing_put_audio_mixer),
  11822. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11823. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11824. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11825. msm_routing_put_audio_mixer),
  11826. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_USB_TX,
  11828. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11829. msm_routing_put_audio_mixer),
  11830. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_MI2S_TX,
  11832. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11833. msm_routing_put_audio_mixer),
  11834. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_AUXPCM_TX,
  11836. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11837. msm_routing_put_audio_mixer),
  11838. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11840. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11841. msm_routing_put_audio_mixer),
  11842. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11845. msm_routing_put_audio_mixer),
  11846. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11847. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11848. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11849. msm_routing_put_audio_mixer),
  11850. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11852. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11853. msm_routing_put_audio_mixer),
  11854. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11856. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11857. msm_routing_put_audio_mixer),
  11858. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11859. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11860. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11861. msm_routing_put_audio_mixer),
  11862. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11864. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11865. msm_routing_put_audio_mixer),
  11866. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11868. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11869. msm_routing_put_audio_mixer),
  11870. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11871. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11872. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11873. msm_routing_put_audio_mixer),
  11874. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11875. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11876. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11877. msm_routing_put_audio_mixer),
  11878. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11879. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11880. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11881. msm_routing_put_audio_mixer),
  11882. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11885. msm_routing_put_audio_mixer),
  11886. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11888. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11889. msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11894. msm_routing_get_audio_mixer,
  11895. msm_routing_put_audio_mixer),
  11896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11899. msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11904. msm_routing_get_audio_mixer,
  11905. msm_routing_put_audio_mixer),
  11906. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11908. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11909. msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11914. msm_routing_get_audio_mixer,
  11915. msm_routing_put_audio_mixer),
  11916. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11918. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11919. msm_routing_put_audio_mixer),
  11920. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11921. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11922. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11923. msm_routing_put_audio_mixer),
  11924. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11926. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11927. msm_routing_put_audio_mixer),
  11928. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11930. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11931. msm_routing_put_audio_mixer),
  11932. };
  11933. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  11934. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11936. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11937. msm_routing_put_audio_mixer),
  11938. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11940. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11941. msm_routing_put_audio_mixer),
  11942. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11944. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11945. msm_routing_put_audio_mixer),
  11946. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11948. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11949. msm_routing_put_audio_mixer),
  11950. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11951. MSM_BACKEND_DAI_INT_FM_TX,
  11952. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11953. msm_routing_put_audio_mixer),
  11954. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11955. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11956. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11957. msm_routing_put_audio_mixer),
  11958. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11959. MSM_BACKEND_DAI_AFE_PCM_TX,
  11960. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11961. msm_routing_put_audio_mixer),
  11962. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11963. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11964. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11965. msm_routing_put_audio_mixer),
  11966. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11967. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11968. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11969. msm_routing_put_audio_mixer),
  11970. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11972. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11973. msm_routing_put_audio_mixer),
  11974. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11976. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11977. msm_routing_put_audio_mixer),
  11978. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11980. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11981. msm_routing_put_audio_mixer),
  11982. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11984. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11985. msm_routing_put_audio_mixer),
  11986. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11988. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11989. msm_routing_put_audio_mixer),
  11990. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11992. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11993. msm_routing_put_audio_mixer),
  11994. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11996. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11997. msm_routing_put_audio_mixer),
  11998. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12000. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12001. msm_routing_put_audio_mixer),
  12002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12004. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12005. msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12010. msm_routing_get_audio_mixer,
  12011. msm_routing_put_audio_mixer),
  12012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12014. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12015. msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12020. msm_routing_get_audio_mixer,
  12021. msm_routing_put_audio_mixer),
  12022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12024. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12025. msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12030. msm_routing_get_audio_mixer,
  12031. msm_routing_put_audio_mixer),
  12032. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12033. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12034. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12035. msm_routing_put_audio_mixer),
  12036. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12037. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12038. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12039. msm_routing_put_audio_mixer),
  12040. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12041. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12042. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12043. msm_routing_put_audio_mixer),
  12044. };
  12045. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  12046. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12048. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12049. msm_routing_put_audio_mixer),
  12050. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12052. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12053. msm_routing_put_audio_mixer),
  12054. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12056. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12057. msm_routing_put_audio_mixer),
  12058. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12060. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12061. msm_routing_put_audio_mixer),
  12062. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12064. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12065. msm_routing_put_audio_mixer),
  12066. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12068. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12069. msm_routing_put_audio_mixer),
  12070. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12072. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12073. msm_routing_put_audio_mixer),
  12074. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12075. MSM_BACKEND_DAI_INT_FM_TX,
  12076. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12077. msm_routing_put_audio_mixer),
  12078. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12080. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12081. msm_routing_put_audio_mixer),
  12082. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_AFE_PCM_TX,
  12084. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12085. msm_routing_put_audio_mixer),
  12086. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12087. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12088. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12089. msm_routing_put_audio_mixer),
  12090. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12091. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12092. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12093. msm_routing_put_audio_mixer),
  12094. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12096. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12097. msm_routing_put_audio_mixer),
  12098. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12099. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12100. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12101. msm_routing_put_audio_mixer),
  12102. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12104. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12105. msm_routing_put_audio_mixer),
  12106. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12108. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12109. msm_routing_put_audio_mixer),
  12110. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12112. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12113. msm_routing_put_audio_mixer),
  12114. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12116. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12117. msm_routing_put_audio_mixer),
  12118. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12120. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12121. msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12126. msm_routing_get_audio_mixer,
  12127. msm_routing_put_audio_mixer),
  12128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12130. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12131. msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12136. msm_routing_get_audio_mixer,
  12137. msm_routing_put_audio_mixer),
  12138. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12141. msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12146. msm_routing_get_audio_mixer,
  12147. msm_routing_put_audio_mixer),
  12148. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12149. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12150. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12151. msm_routing_put_audio_mixer),
  12152. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12153. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12154. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12155. msm_routing_put_audio_mixer),
  12156. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12157. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12158. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12159. msm_routing_put_audio_mixer),
  12160. };
  12161. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  12162. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12165. msm_routing_put_audio_mixer),
  12166. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12168. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12169. msm_routing_put_audio_mixer),
  12170. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12172. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12173. msm_routing_put_audio_mixer),
  12174. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12176. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12177. msm_routing_put_audio_mixer),
  12178. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_INT_FM_TX,
  12180. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12184. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12185. msm_routing_put_audio_mixer),
  12186. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_AFE_PCM_TX,
  12188. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12189. msm_routing_put_audio_mixer),
  12190. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12192. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12193. msm_routing_put_audio_mixer),
  12194. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12196. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12197. msm_routing_put_audio_mixer),
  12198. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12200. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12201. msm_routing_put_audio_mixer),
  12202. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12204. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12205. msm_routing_put_audio_mixer),
  12206. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12207. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12208. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12209. msm_routing_put_audio_mixer),
  12210. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12211. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12212. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12213. msm_routing_put_audio_mixer),
  12214. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12215. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12216. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12217. msm_routing_put_audio_mixer),
  12218. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12220. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12221. msm_routing_put_audio_mixer),
  12222. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12223. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12224. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12225. msm_routing_put_audio_mixer),
  12226. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12227. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12228. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12229. msm_routing_put_audio_mixer),
  12230. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12231. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12232. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12233. msm_routing_put_audio_mixer),
  12234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12236. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12237. msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12242. msm_routing_get_audio_mixer,
  12243. msm_routing_put_audio_mixer),
  12244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12246. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12247. msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12252. msm_routing_get_audio_mixer,
  12253. msm_routing_put_audio_mixer),
  12254. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12256. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12257. msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12262. msm_routing_get_audio_mixer,
  12263. msm_routing_put_audio_mixer),
  12264. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12266. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12267. msm_routing_put_audio_mixer),
  12268. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12270. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12271. msm_routing_put_audio_mixer),
  12272. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12274. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12275. msm_routing_put_audio_mixer),
  12276. };
  12277. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  12278. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12279. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12280. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12281. msm_routing_put_audio_mixer),
  12282. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12283. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12284. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12285. msm_routing_put_audio_mixer),
  12286. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12287. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12288. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12289. msm_routing_put_audio_mixer),
  12290. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12291. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12292. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12293. msm_routing_put_audio_mixer),
  12294. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12295. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12296. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12297. msm_routing_put_audio_mixer),
  12298. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12299. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12300. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12301. msm_routing_put_audio_mixer),
  12302. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12303. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12304. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12305. msm_routing_put_audio_mixer),
  12306. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12307. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12308. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12309. msm_routing_put_audio_mixer),
  12310. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12312. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12313. msm_routing_put_audio_mixer),
  12314. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12315. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12316. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12317. msm_routing_put_audio_mixer),
  12318. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12319. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12320. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12321. msm_routing_put_audio_mixer),
  12322. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12323. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12324. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12325. msm_routing_put_audio_mixer),
  12326. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12327. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12328. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12329. msm_routing_put_audio_mixer),
  12330. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12331. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12332. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12333. msm_routing_put_audio_mixer),
  12334. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12335. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12336. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12337. msm_routing_put_audio_mixer),
  12338. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12339. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12340. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12341. msm_routing_put_audio_mixer),
  12342. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12343. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12344. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12345. msm_routing_put_audio_mixer),
  12346. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12347. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12348. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12349. msm_routing_put_audio_mixer),
  12350. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12351. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12352. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12353. msm_routing_put_audio_mixer),
  12354. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12356. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12357. msm_routing_put_audio_mixer),
  12358. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12359. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12360. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12361. msm_routing_put_audio_mixer),
  12362. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12364. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12365. msm_routing_put_audio_mixer),
  12366. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12367. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12368. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12369. msm_routing_put_audio_mixer),
  12370. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12371. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12372. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12373. msm_routing_put_audio_mixer),
  12374. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12375. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12376. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12377. msm_routing_put_audio_mixer),
  12378. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12379. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12380. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12381. msm_routing_put_audio_mixer),
  12382. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12383. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12384. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12385. msm_routing_put_audio_mixer),
  12386. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12387. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12388. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12389. msm_routing_put_audio_mixer),
  12390. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12391. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12392. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12393. msm_routing_put_audio_mixer),
  12394. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12395. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12396. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12397. msm_routing_put_audio_mixer),
  12398. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12399. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12400. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12401. msm_routing_put_audio_mixer),
  12402. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12404. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12405. msm_routing_put_audio_mixer),
  12406. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12407. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12408. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12409. msm_routing_put_audio_mixer),
  12410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12412. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12413. msm_routing_put_audio_mixer),
  12414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12416. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12417. msm_routing_put_audio_mixer),
  12418. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12419. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12420. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12421. msm_routing_put_audio_mixer),
  12422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12424. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12425. msm_routing_put_audio_mixer),
  12426. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12428. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12429. msm_routing_put_audio_mixer),
  12430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12432. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12433. msm_routing_put_audio_mixer),
  12434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12436. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12437. msm_routing_put_audio_mixer),
  12438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12440. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12441. msm_routing_put_audio_mixer),
  12442. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12444. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12445. msm_routing_put_audio_mixer),
  12446. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12448. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12449. msm_routing_put_audio_mixer),
  12450. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12451. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12452. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12453. msm_routing_put_audio_mixer),
  12454. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12455. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12456. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12457. msm_routing_put_audio_mixer),
  12458. };
  12459. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  12460. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_AUXPCM_TX,
  12462. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12463. msm_routing_put_audio_mixer),
  12464. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12466. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12467. msm_routing_put_audio_mixer),
  12468. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12470. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12471. msm_routing_put_audio_mixer),
  12472. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12474. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12475. msm_routing_put_audio_mixer),
  12476. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12477. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12478. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12479. msm_routing_put_audio_mixer),
  12480. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12481. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12482. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12483. msm_routing_put_audio_mixer),
  12484. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12486. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12487. msm_routing_put_audio_mixer),
  12488. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12489. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12490. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12491. msm_routing_put_audio_mixer),
  12492. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12493. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12494. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12495. msm_routing_put_audio_mixer),
  12496. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12497. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12498. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12499. msm_routing_put_audio_mixer),
  12500. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12501. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12502. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12503. msm_routing_put_audio_mixer),
  12504. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12506. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12507. msm_routing_put_audio_mixer),
  12508. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12509. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12510. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12511. msm_routing_put_audio_mixer),
  12512. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12513. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12514. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12515. msm_routing_put_audio_mixer),
  12516. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12517. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12518. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12519. msm_routing_put_audio_mixer),
  12520. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12521. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12522. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12523. msm_routing_put_audio_mixer),
  12524. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12526. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12527. msm_routing_put_audio_mixer),
  12528. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12529. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12530. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12531. msm_routing_put_audio_mixer),
  12532. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12533. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12534. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12535. msm_routing_put_audio_mixer),
  12536. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12537. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12538. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12539. msm_routing_put_audio_mixer),
  12540. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12541. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12542. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12543. msm_routing_put_audio_mixer),
  12544. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12546. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12547. msm_routing_put_audio_mixer),
  12548. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12549. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12550. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12551. msm_routing_put_audio_mixer),
  12552. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12553. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12554. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12555. msm_routing_put_audio_mixer),
  12556. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12557. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12558. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12559. msm_routing_put_audio_mixer),
  12560. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12561. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12562. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12563. msm_routing_put_audio_mixer),
  12564. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12565. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12566. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12567. msm_routing_put_audio_mixer),
  12568. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12569. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12570. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12571. msm_routing_put_audio_mixer),
  12572. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12573. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12574. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12575. msm_routing_put_audio_mixer),
  12576. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12578. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12579. msm_routing_put_audio_mixer),
  12580. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12581. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12582. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12583. msm_routing_put_audio_mixer),
  12584. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12585. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12586. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12587. msm_routing_put_audio_mixer),
  12588. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12589. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12590. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12591. msm_routing_put_audio_mixer),
  12592. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12593. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12594. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12595. msm_routing_put_audio_mixer),
  12596. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12597. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12598. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12599. msm_routing_put_audio_mixer),
  12600. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12601. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12602. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12603. msm_routing_put_audio_mixer),
  12604. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12605. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12606. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12607. msm_routing_put_audio_mixer),
  12608. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12609. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12610. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12611. msm_routing_put_audio_mixer),
  12612. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12613. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12614. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12615. msm_routing_put_audio_mixer),
  12616. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12617. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12618. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12619. msm_routing_put_audio_mixer),
  12620. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12621. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12622. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12623. msm_routing_put_audio_mixer),
  12624. };
  12625. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  12626. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12628. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12629. msm_routing_put_audio_mixer),
  12630. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12632. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12633. msm_routing_put_audio_mixer),
  12634. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12635. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12636. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12637. msm_routing_put_audio_mixer),
  12638. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12640. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12641. msm_routing_put_audio_mixer),
  12642. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12644. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12645. msm_routing_put_audio_mixer),
  12646. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12648. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12649. msm_routing_put_audio_mixer),
  12650. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12652. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12653. msm_routing_put_audio_mixer),
  12654. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12656. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12657. msm_routing_put_audio_mixer),
  12658. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12660. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12661. msm_routing_put_audio_mixer),
  12662. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12664. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12665. msm_routing_put_audio_mixer),
  12666. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12668. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12669. msm_routing_put_audio_mixer),
  12670. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12672. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12673. msm_routing_put_audio_mixer),
  12674. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12676. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12677. msm_routing_put_audio_mixer),
  12678. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12680. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12681. msm_routing_put_audio_mixer),
  12682. };
  12683. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  12684. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12686. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12687. msm_routing_put_audio_mixer),
  12688. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12690. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12691. msm_routing_put_audio_mixer),
  12692. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12694. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12695. msm_routing_put_audio_mixer),
  12696. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12698. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12699. msm_routing_put_audio_mixer),
  12700. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_INT_FM_TX,
  12702. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12703. msm_routing_put_audio_mixer),
  12704. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12706. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12707. msm_routing_put_audio_mixer),
  12708. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_AFE_PCM_TX,
  12710. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12711. msm_routing_put_audio_mixer),
  12712. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12714. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12715. msm_routing_put_audio_mixer),
  12716. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12718. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12719. msm_routing_put_audio_mixer),
  12720. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12722. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12723. msm_routing_put_audio_mixer),
  12724. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12726. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12727. msm_routing_put_audio_mixer),
  12728. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12730. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12731. msm_routing_put_audio_mixer),
  12732. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12734. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12735. msm_routing_put_audio_mixer),
  12736. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12738. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12739. msm_routing_put_audio_mixer),
  12740. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12742. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12743. msm_routing_put_audio_mixer),
  12744. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12746. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12747. msm_routing_put_audio_mixer),
  12748. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12750. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12751. msm_routing_put_audio_mixer),
  12752. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12754. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12755. msm_routing_put_audio_mixer),
  12756. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12758. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12759. msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12764. msm_routing_get_audio_mixer,
  12765. msm_routing_put_audio_mixer),
  12766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12767. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12768. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12769. msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12774. msm_routing_get_audio_mixer,
  12775. msm_routing_put_audio_mixer),
  12776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12778. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12779. msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12784. msm_routing_get_audio_mixer,
  12785. msm_routing_put_audio_mixer),
  12786. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12787. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12788. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12789. msm_routing_put_audio_mixer),
  12790. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12792. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12793. msm_routing_put_audio_mixer),
  12794. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12795. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12796. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12797. msm_routing_put_audio_mixer),
  12798. };
  12799. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  12800. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12802. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12803. msm_routing_put_audio_mixer),
  12804. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12806. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12807. msm_routing_put_audio_mixer),
  12808. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12810. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12811. msm_routing_put_audio_mixer),
  12812. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12814. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12815. msm_routing_put_audio_mixer),
  12816. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_INT_FM_TX,
  12818. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12819. msm_routing_put_audio_mixer),
  12820. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12822. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12823. msm_routing_put_audio_mixer),
  12824. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_AFE_PCM_TX,
  12826. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12827. msm_routing_put_audio_mixer),
  12828. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12830. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12831. msm_routing_put_audio_mixer),
  12832. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12834. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12835. msm_routing_put_audio_mixer),
  12836. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12838. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12839. msm_routing_put_audio_mixer),
  12840. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12842. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12843. msm_routing_put_audio_mixer),
  12844. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12846. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12847. msm_routing_put_audio_mixer),
  12848. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12850. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12851. msm_routing_put_audio_mixer),
  12852. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12854. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12855. msm_routing_put_audio_mixer),
  12856. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12858. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12859. msm_routing_put_audio_mixer),
  12860. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12862. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12863. msm_routing_put_audio_mixer),
  12864. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12866. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12867. msm_routing_put_audio_mixer),
  12868. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12870. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12871. msm_routing_put_audio_mixer),
  12872. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12874. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12875. msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12880. msm_routing_get_audio_mixer,
  12881. msm_routing_put_audio_mixer),
  12882. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12884. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12885. msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12890. msm_routing_get_audio_mixer,
  12891. msm_routing_put_audio_mixer),
  12892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12894. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12895. msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12900. msm_routing_get_audio_mixer,
  12901. msm_routing_put_audio_mixer),
  12902. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12904. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12905. msm_routing_put_audio_mixer),
  12906. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12908. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12909. msm_routing_put_audio_mixer),
  12910. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12912. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12913. msm_routing_put_audio_mixer),
  12914. };
  12915. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  12916. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_PRI_I2S_RX,
  12918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12919. msm_routing_put_voice_mixer),
  12920. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_PRI_I2S_RX,
  12922. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12923. msm_routing_put_voice_mixer),
  12924. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_PRI_I2S_RX,
  12926. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12927. msm_routing_put_voice_mixer),
  12928. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_PRI_I2S_RX,
  12930. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12931. msm_routing_put_voice_mixer),
  12932. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_PRI_I2S_RX,
  12934. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12935. msm_routing_put_voice_mixer),
  12936. };
  12937. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  12938. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12939. MSM_BACKEND_DAI_SEC_I2S_RX,
  12940. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12941. msm_routing_put_voice_mixer),
  12942. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_SEC_I2S_RX,
  12944. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12945. msm_routing_put_voice_mixer),
  12946. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_SEC_I2S_RX,
  12948. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12949. msm_routing_put_voice_mixer),
  12950. };
  12951. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  12952. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12954. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12955. msm_routing_put_voice_mixer),
  12956. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12957. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12958. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12959. msm_routing_put_voice_mixer),
  12960. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12961. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12962. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  12963. msm_routing_put_voice_mixer),
  12964. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12965. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12966. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12967. msm_routing_put_voice_mixer),
  12968. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12969. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12970. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12971. msm_routing_put_voice_mixer),
  12972. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12973. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12974. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12975. msm_routing_put_voice_mixer),
  12976. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12977. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12978. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12979. msm_routing_put_voice_mixer),
  12980. };
  12981. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  12982. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12984. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12985. msm_routing_put_voice_mixer),
  12986. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12988. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12989. msm_routing_put_voice_mixer),
  12990. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12992. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12993. msm_routing_put_voice_mixer),
  12994. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12996. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12997. msm_routing_put_voice_mixer),
  12998. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13000. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13001. msm_routing_put_voice_mixer),
  13002. };
  13003. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  13004. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13005. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13006. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13007. msm_routing_put_voice_mixer),
  13008. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13009. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13010. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13011. msm_routing_put_voice_mixer),
  13012. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13014. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13015. msm_routing_put_voice_mixer),
  13016. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13017. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13018. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13019. msm_routing_put_voice_mixer),
  13020. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13021. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13022. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13023. msm_routing_put_voice_mixer),
  13024. };
  13025. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  13026. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_USB_RX,
  13028. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13029. msm_routing_put_voice_mixer),
  13030. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_USB_RX,
  13032. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13033. msm_routing_put_voice_mixer),
  13034. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_USB_RX,
  13036. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13037. msm_routing_put_voice_mixer),
  13038. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_USB_RX,
  13040. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13041. msm_routing_put_voice_mixer),
  13042. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_USB_RX,
  13044. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13045. msm_routing_put_voice_mixer),
  13046. };
  13047. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  13048. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13049. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13051. msm_routing_put_voice_mixer),
  13052. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13054. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13055. msm_routing_put_voice_mixer),
  13056. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13057. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13058. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13059. msm_routing_put_voice_mixer),
  13060. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13061. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13062. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13063. msm_routing_put_voice_mixer),
  13064. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13066. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13067. msm_routing_put_voice_mixer),
  13068. };
  13069. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  13070. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13072. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13073. msm_routing_put_voice_mixer),
  13074. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13076. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13077. msm_routing_put_voice_mixer),
  13078. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13080. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13081. msm_routing_put_voice_mixer),
  13082. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13084. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13085. msm_routing_put_voice_mixer),
  13086. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13088. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13089. msm_routing_put_voice_mixer),
  13090. };
  13091. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  13092. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13093. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13095. msm_routing_put_voice_mixer),
  13096. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13098. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13099. msm_routing_put_voice_mixer),
  13100. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13101. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13102. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13103. msm_routing_put_voice_mixer),
  13104. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13106. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13107. msm_routing_put_voice_mixer),
  13108. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13110. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13111. msm_routing_put_voice_mixer),
  13112. };
  13113. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  13114. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_MI2S_RX,
  13116. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13117. msm_routing_put_voice_mixer),
  13118. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_MI2S_RX,
  13120. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13121. msm_routing_put_voice_mixer),
  13122. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_MI2S_RX,
  13124. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13125. msm_routing_put_voice_mixer),
  13126. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_MI2S_RX,
  13128. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13129. msm_routing_put_voice_mixer),
  13130. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_MI2S_RX,
  13132. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13133. msm_routing_put_voice_mixer),
  13134. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13135. MSM_BACKEND_DAI_MI2S_RX,
  13136. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13137. msm_routing_put_voice_mixer),
  13138. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13139. MSM_BACKEND_DAI_MI2S_RX,
  13140. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13141. msm_routing_put_voice_mixer),
  13142. };
  13143. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  13144. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13146. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13147. msm_routing_put_voice_mixer),
  13148. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13151. msm_routing_put_voice_mixer),
  13152. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13154. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13155. msm_routing_put_voice_mixer),
  13156. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13158. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13159. msm_routing_put_voice_mixer),
  13160. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13162. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13163. msm_routing_put_voice_mixer),
  13164. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13166. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13167. msm_routing_put_voice_mixer),
  13168. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13170. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13171. msm_routing_put_voice_mixer),
  13172. };
  13173. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  13174. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13175. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13176. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13177. msm_routing_put_voice_mixer),
  13178. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13180. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13181. msm_routing_put_voice_mixer),
  13182. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13183. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13184. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13185. msm_routing_put_voice_mixer),
  13186. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13187. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13188. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13189. msm_routing_put_voice_mixer),
  13190. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13191. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13192. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13193. msm_routing_put_voice_mixer),
  13194. };
  13195. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  13196. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13198. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13199. msm_routing_put_voice_mixer),
  13200. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13202. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13203. msm_routing_put_voice_mixer),
  13204. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13206. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13207. msm_routing_put_voice_mixer),
  13208. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13210. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13211. msm_routing_put_voice_mixer),
  13212. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13214. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13215. msm_routing_put_voice_mixer),
  13216. };
  13217. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  13218. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13220. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13221. msm_routing_put_voice_mixer),
  13222. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13223. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13224. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13225. msm_routing_put_voice_mixer),
  13226. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13227. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13228. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13229. msm_routing_put_voice_mixer),
  13230. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13231. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13232. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13233. msm_routing_put_voice_mixer),
  13234. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13235. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13236. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13237. msm_routing_put_voice_mixer),
  13238. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13240. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13241. msm_routing_put_voice_mixer),
  13242. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13243. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13244. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13245. msm_routing_put_voice_mixer),
  13246. };
  13247. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  13248. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13250. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13251. msm_routing_put_voice_mixer),
  13252. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13254. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13255. msm_routing_put_voice_mixer),
  13256. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13258. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13259. msm_routing_put_voice_mixer),
  13260. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13262. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13263. msm_routing_put_voice_mixer),
  13264. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13266. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13267. msm_routing_put_voice_mixer),
  13268. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13270. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13271. msm_routing_put_voice_mixer),
  13272. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13274. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13275. msm_routing_put_voice_mixer),
  13276. };
  13277. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  13278. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13279. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13280. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13281. msm_routing_put_voice_mixer),
  13282. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13283. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13284. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13285. msm_routing_put_voice_stub_mixer),
  13286. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13287. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13288. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13289. msm_routing_put_voice_stub_mixer),
  13290. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13291. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13292. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13293. msm_routing_put_voice_mixer),
  13294. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13295. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13296. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13297. msm_routing_put_voice_mixer),
  13298. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13299. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13300. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13301. msm_routing_put_voice_mixer),
  13302. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13303. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13304. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13305. msm_routing_put_voice_mixer),
  13306. };
  13307. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  13308. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13310. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13311. msm_routing_put_voice_mixer),
  13312. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13314. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13315. msm_routing_put_voice_mixer),
  13316. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13318. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13319. msm_routing_put_voice_mixer),
  13320. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13322. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13323. msm_routing_put_voice_mixer),
  13324. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13326. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13327. msm_routing_put_voice_mixer),
  13328. };
  13329. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  13330. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_AFE_PCM_RX,
  13332. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13333. msm_routing_put_voice_mixer),
  13334. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_AFE_PCM_RX,
  13336. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13337. msm_routing_put_voice_mixer),
  13338. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13339. MSM_BACKEND_DAI_AFE_PCM_RX,
  13340. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13341. msm_routing_put_voice_mixer),
  13342. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13343. MSM_BACKEND_DAI_AFE_PCM_RX,
  13344. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13345. msm_routing_put_voice_mixer),
  13346. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13347. MSM_BACKEND_DAI_AFE_PCM_RX,
  13348. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13349. msm_routing_put_voice_mixer),
  13350. };
  13351. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  13352. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_AUXPCM_RX,
  13354. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13355. msm_routing_put_voice_mixer),
  13356. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_AUXPCM_RX,
  13358. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13359. msm_routing_put_voice_mixer),
  13360. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_AUXPCM_RX,
  13362. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13363. msm_routing_put_voice_mixer),
  13364. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_AUXPCM_RX,
  13366. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13367. msm_routing_put_voice_mixer),
  13368. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_AUXPCM_RX,
  13370. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13371. msm_routing_put_voice_mixer),
  13372. };
  13373. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  13374. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13376. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13377. msm_routing_put_voice_mixer),
  13378. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13379. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13380. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13381. msm_routing_put_voice_mixer),
  13382. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13384. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13385. msm_routing_put_voice_mixer),
  13386. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13388. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13389. msm_routing_put_voice_mixer),
  13390. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13392. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13393. msm_routing_put_voice_mixer),
  13394. };
  13395. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  13396. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13397. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13398. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13399. msm_routing_put_voice_mixer),
  13400. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13402. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13403. msm_routing_put_voice_mixer),
  13404. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13406. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13407. msm_routing_put_voice_mixer),
  13408. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13409. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13410. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13411. msm_routing_put_voice_mixer),
  13412. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13414. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13415. msm_routing_put_voice_mixer),
  13416. };
  13417. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  13418. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13420. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13421. msm_routing_put_voice_mixer),
  13422. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13424. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13425. msm_routing_put_voice_mixer),
  13426. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13428. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13429. msm_routing_put_voice_mixer),
  13430. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13432. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13433. msm_routing_put_voice_mixer),
  13434. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13436. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13437. msm_routing_put_voice_mixer),
  13438. };
  13439. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  13440. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13441. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13442. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13443. msm_routing_put_voice_mixer),
  13444. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13445. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13446. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13447. msm_routing_put_voice_mixer),
  13448. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13449. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13450. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13451. msm_routing_put_voice_mixer),
  13452. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13454. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13455. msm_routing_put_voice_mixer),
  13456. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13457. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13458. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13459. msm_routing_put_voice_mixer),
  13460. };
  13461. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  13462. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13463. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13464. msm_routing_put_voice_mixer),
  13465. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13466. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13467. msm_routing_put_voice_mixer),
  13468. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13469. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13470. msm_routing_put_voice_mixer),
  13471. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13473. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13474. msm_routing_put_voice_mixer),
  13475. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13477. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13478. msm_routing_put_voice_mixer),
  13479. };
  13480. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  13481. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_HDMI_RX,
  13483. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13484. msm_routing_put_voice_mixer),
  13485. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_HDMI_RX,
  13487. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13488. msm_routing_put_voice_mixer),
  13489. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_HDMI_RX,
  13491. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13492. msm_routing_put_voice_mixer),
  13493. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_HDMI_RX,
  13495. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13496. msm_routing_put_voice_mixer),
  13497. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_HDMI_RX,
  13499. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13500. msm_routing_put_voice_mixer),
  13501. };
  13502. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  13503. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13505. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13506. msm_routing_put_voice_mixer),
  13507. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13509. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13510. msm_routing_put_voice_mixer),
  13511. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13513. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13514. msm_routing_put_voice_mixer),
  13515. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13517. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13518. msm_routing_put_voice_mixer),
  13519. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13521. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13522. msm_routing_put_voice_mixer),
  13523. };
  13524. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  13525. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13527. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13528. msm_routing_put_voice_mixer),
  13529. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13531. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13532. msm_routing_put_voice_mixer),
  13533. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13535. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13536. msm_routing_put_voice_mixer),
  13537. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13539. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13540. msm_routing_put_voice_mixer),
  13541. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13543. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13544. msm_routing_put_voice_mixer),
  13545. };
  13546. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  13547. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13549. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13550. msm_routing_put_voice_mixer),
  13551. };
  13552. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  13553. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13555. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13556. msm_routing_put_voice_mixer),
  13557. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13559. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13560. msm_routing_put_voice_mixer),
  13561. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13563. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13564. msm_routing_put_voice_mixer),
  13565. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13567. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13568. msm_routing_put_voice_mixer),
  13569. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13571. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13572. msm_routing_put_voice_mixer),
  13573. };
  13574. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  13575. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13577. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13578. msm_routing_put_voice_mixer),
  13579. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13581. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13582. msm_routing_put_voice_mixer),
  13583. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13585. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13586. msm_routing_put_voice_mixer),
  13587. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13589. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13590. msm_routing_put_voice_mixer),
  13591. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13593. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13594. msm_routing_put_voice_mixer),
  13595. };
  13596. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  13597. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13599. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13600. msm_routing_put_voice_mixer),
  13601. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13603. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13604. msm_routing_put_voice_mixer),
  13605. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13607. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13608. msm_routing_put_voice_mixer),
  13609. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13611. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13612. msm_routing_put_voice_mixer),
  13613. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13615. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13616. msm_routing_put_voice_mixer),
  13617. };
  13618. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  13619. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13621. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13622. msm_routing_put_voice_mixer),
  13623. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13625. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13626. msm_routing_put_voice_mixer),
  13627. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13629. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13630. msm_routing_put_voice_mixer),
  13631. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13633. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13634. msm_routing_put_voice_mixer),
  13635. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13637. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13638. msm_routing_put_voice_mixer),
  13639. };
  13640. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  13641. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13643. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13644. msm_routing_put_voice_mixer),
  13645. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13647. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13648. msm_routing_put_voice_mixer),
  13649. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13651. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13652. msm_routing_put_voice_mixer),
  13653. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13655. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13656. msm_routing_put_voice_mixer),
  13657. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13659. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13660. msm_routing_put_voice_mixer),
  13661. };
  13662. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  13663. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13665. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13666. msm_routing_put_voice_mixer),
  13667. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13669. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13670. msm_routing_put_voice_mixer),
  13671. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13673. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13674. msm_routing_put_voice_mixer),
  13675. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13677. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13678. msm_routing_put_voice_mixer),
  13679. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13681. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13682. msm_routing_put_voice_mixer),
  13683. };
  13684. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  13685. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13687. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13688. msm_routing_put_voice_mixer),
  13689. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13691. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13692. msm_routing_put_voice_mixer),
  13693. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13695. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13696. msm_routing_put_voice_mixer),
  13697. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13699. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13700. msm_routing_put_voice_mixer),
  13701. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13703. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13704. msm_routing_put_voice_mixer),
  13705. };
  13706. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  13707. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13709. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13710. msm_routing_put_voice_mixer),
  13711. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13713. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13714. msm_routing_put_voice_mixer),
  13715. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13717. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13718. msm_routing_put_voice_mixer),
  13719. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13721. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13722. msm_routing_put_voice_mixer),
  13723. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13725. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13726. msm_routing_put_voice_mixer),
  13727. };
  13728. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  13729. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13731. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13732. msm_routing_put_voice_mixer),
  13733. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13735. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13736. msm_routing_put_voice_mixer),
  13737. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13739. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13740. msm_routing_put_voice_mixer),
  13741. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13743. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13744. msm_routing_put_voice_mixer),
  13745. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13747. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13748. msm_routing_put_voice_mixer),
  13749. };
  13750. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  13751. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13753. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13754. msm_routing_put_voice_mixer),
  13755. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13757. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13758. msm_routing_put_voice_mixer),
  13759. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13761. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13762. msm_routing_put_voice_mixer),
  13763. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13765. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13766. msm_routing_put_voice_mixer),
  13767. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13769. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13770. msm_routing_put_voice_mixer),
  13771. };
  13772. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  13773. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13775. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13776. msm_routing_put_voice_mixer),
  13777. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13779. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13780. msm_routing_put_voice_stub_mixer),
  13781. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13783. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13784. msm_routing_put_voice_stub_mixer),
  13785. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13787. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13788. msm_routing_put_voice_mixer),
  13789. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13791. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13792. msm_routing_put_voice_mixer),
  13793. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13795. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13796. msm_routing_put_voice_mixer),
  13797. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13799. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13800. msm_routing_put_voice_mixer),
  13801. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13803. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13804. msm_routing_put_voice_mixer),
  13805. };
  13806. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  13807. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13809. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13810. msm_routing_put_voice_mixer),
  13811. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13813. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13814. msm_routing_put_voice_stub_mixer),
  13815. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13817. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13818. msm_routing_put_voice_stub_mixer),
  13819. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13821. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13822. msm_routing_put_voice_mixer),
  13823. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13825. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13826. msm_routing_put_voice_mixer),
  13827. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13829. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13830. msm_routing_put_voice_mixer),
  13831. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13833. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13834. msm_routing_put_voice_mixer),
  13835. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13837. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13838. msm_routing_put_voice_mixer),
  13839. };
  13840. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  13841. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13842. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13843. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13844. msm_routing_put_voice_mixer),
  13845. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13846. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13847. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13848. msm_routing_put_voice_stub_mixer),
  13849. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13850. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13851. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13852. msm_routing_put_voice_stub_mixer),
  13853. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13855. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13856. msm_routing_put_voice_mixer),
  13857. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13859. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13860. msm_routing_put_voice_mixer),
  13861. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13863. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13864. msm_routing_put_voice_mixer),
  13865. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13867. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13868. msm_routing_put_voice_mixer),
  13869. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13871. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13872. msm_routing_put_voice_mixer),
  13873. };
  13874. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  13875. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13877. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13878. msm_routing_put_voice_mixer),
  13879. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13881. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13882. msm_routing_put_voice_stub_mixer),
  13883. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13885. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13886. msm_routing_put_voice_stub_mixer),
  13887. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13889. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13890. msm_routing_put_voice_mixer),
  13891. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13893. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13894. msm_routing_put_voice_mixer),
  13895. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13897. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13898. msm_routing_put_voice_mixer),
  13899. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13901. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13902. msm_routing_put_voice_mixer),
  13903. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13905. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13906. msm_routing_put_voice_mixer),
  13907. };
  13908. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  13909. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_EXTPROC_RX,
  13911. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13912. msm_routing_put_voice_mixer),
  13913. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_EXTPROC_RX,
  13915. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13916. msm_routing_put_voice_mixer),
  13917. };
  13918. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  13919. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13921. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13922. msm_routing_put_voice_mixer),
  13923. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13925. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13926. msm_routing_put_voice_mixer),
  13927. };
  13928. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  13929. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13932. msm_routing_put_voice_mixer),
  13933. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13935. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13936. msm_routing_put_voice_mixer),
  13937. };
  13938. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  13939. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_PRI_I2S_TX,
  13941. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13942. msm_routing_put_voice_mixer),
  13943. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_MI2S_TX,
  13945. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13946. msm_routing_put_voice_mixer),
  13947. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13949. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13950. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13952. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13953. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13955. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13956. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13958. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13959. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13961. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13962. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13964. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13965. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13966. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13967. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13968. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13970. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13971. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13973. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13974. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13976. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13977. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  13979. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13980. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  13982. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13983. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13985. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13986. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13988. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13989. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_USB_TX,
  13991. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13992. msm_routing_put_voice_mixer),
  13993. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  13995. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13996. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  13997. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  13998. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13999. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14000. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14001. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14002. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14004. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14005. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14007. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14010. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14011. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14012. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14013. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14014. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14016. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14017. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  14019. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14020. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  14021. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  14022. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14023. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  14024. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14025. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14026. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14028. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14029. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14031. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14032. };
  14033. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  14034. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_PRI_I2S_TX,
  14036. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14037. msm_routing_put_voice_mixer),
  14038. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_MI2S_TX,
  14040. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14041. msm_routing_put_voice_mixer),
  14042. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  14043. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14044. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14045. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14047. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14048. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14050. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14051. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14052. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14053. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14054. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14056. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14057. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14059. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14060. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14061. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14062. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14063. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14065. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14066. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14067. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14068. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14069. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14071. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14072. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14074. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14075. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14077. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14078. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14080. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14081. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14083. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14084. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14086. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14087. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  14089. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14090. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  14092. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14093. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  14095. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14096. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  14097. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  14098. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  14101. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14102. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  14104. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14105. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  14107. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14108. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  14109. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  14110. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14111. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  14113. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14114. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14116. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14117. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14119. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14120. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  14121. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  14122. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14123. };
  14124. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  14125. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_PRI_I2S_TX,
  14127. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14128. msm_routing_put_voice_mixer),
  14129. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_MI2S_TX,
  14131. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14132. msm_routing_put_voice_mixer),
  14133. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14135. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14136. msm_routing_put_voice_mixer),
  14137. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14139. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14140. msm_routing_put_voice_mixer),
  14141. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_AFE_PCM_TX,
  14143. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14144. msm_routing_put_voice_mixer),
  14145. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_AUXPCM_TX,
  14147. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14148. msm_routing_put_voice_mixer),
  14149. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14151. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14152. msm_routing_put_voice_mixer),
  14153. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14155. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14156. msm_routing_put_voice_mixer),
  14157. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14159. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14160. msm_routing_put_voice_mixer),
  14161. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14163. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14164. msm_routing_put_voice_mixer),
  14165. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14167. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14168. msm_routing_put_voice_mixer),
  14169. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14171. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14172. msm_routing_put_voice_mixer),
  14173. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14175. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14176. msm_routing_put_voice_mixer),
  14177. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14179. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14180. msm_routing_put_voice_mixer),
  14181. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14183. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14184. msm_routing_put_voice_mixer),
  14185. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14187. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14188. msm_routing_put_voice_mixer),
  14189. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_USB_TX,
  14191. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14192. msm_routing_put_voice_mixer),
  14193. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  14195. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14196. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  14198. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14199. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  14201. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  14204. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14205. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  14207. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14208. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  14210. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14211. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  14212. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  14213. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14214. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  14215. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  14216. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14217. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  14219. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14220. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14221. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14222. msm_routing_put_voice_mixer),
  14223. };
  14224. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  14225. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_EXTPROC_TX,
  14227. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14228. msm_routing_put_voice_stub_mixer),
  14229. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14231. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14232. msm_routing_put_voice_stub_mixer),
  14233. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14235. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14236. msm_routing_put_voice_stub_mixer),
  14237. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14239. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14240. msm_routing_put_voice_stub_mixer),
  14241. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_MI2S_TX,
  14243. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14244. msm_routing_put_voice_stub_mixer),
  14245. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14247. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14248. msm_routing_put_voice_stub_mixer),
  14249. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14251. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14252. msm_routing_put_voice_stub_mixer),
  14253. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14255. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14256. msm_routing_put_voice_stub_mixer),
  14257. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14259. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14260. msm_routing_put_voice_stub_mixer),
  14261. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_AUXPCM_TX,
  14263. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14264. msm_routing_put_voice_stub_mixer),
  14265. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14267. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14268. msm_routing_put_voice_stub_mixer),
  14269. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14271. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14272. msm_routing_put_voice_stub_mixer),
  14273. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14275. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14276. msm_routing_put_voice_stub_mixer),
  14277. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14279. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14280. msm_routing_put_voice_stub_mixer),
  14281. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14283. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14284. msm_routing_put_voice_stub_mixer),
  14285. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14287. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14288. msm_routing_put_voice_stub_mixer),
  14289. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14291. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14292. msm_routing_put_voice_stub_mixer),
  14293. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_AFE_PCM_TX,
  14295. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14296. msm_routing_put_voice_stub_mixer),
  14297. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14299. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14300. msm_routing_put_voice_stub_mixer),
  14301. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14303. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14304. msm_routing_put_voice_stub_mixer),
  14305. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  14307. 1, 0, msm_routing_get_voice_stub_mixer,
  14308. msm_routing_put_voice_stub_mixer),
  14309. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  14311. 1, 0, msm_routing_get_voice_stub_mixer,
  14312. msm_routing_put_voice_stub_mixer),
  14313. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  14315. 1, 0, msm_routing_get_voice_stub_mixer,
  14316. msm_routing_put_voice_stub_mixer),
  14317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  14319. 1, 0, msm_routing_get_voice_stub_mixer,
  14320. msm_routing_put_voice_stub_mixer),
  14321. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14322. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  14323. 1, 0, msm_routing_get_voice_stub_mixer,
  14324. msm_routing_put_voice_stub_mixer),
  14325. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  14327. 1, 0, msm_routing_get_voice_stub_mixer,
  14328. msm_routing_put_voice_stub_mixer),
  14329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  14331. 1, 0, msm_routing_get_voice_stub_mixer,
  14332. msm_routing_put_voice_stub_mixer),
  14333. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14334. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  14335. 1, 0, msm_routing_get_voice_stub_mixer,
  14336. msm_routing_put_voice_stub_mixer),
  14337. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  14339. 1, 0, msm_routing_get_voice_stub_mixer,
  14340. msm_routing_put_voice_stub_mixer),
  14341. };
  14342. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  14343. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14344. MSM_BACKEND_DAI_EXTPROC_TX,
  14345. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14346. msm_routing_put_voice_stub_mixer),
  14347. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14348. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14349. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14350. msm_routing_put_voice_stub_mixer),
  14351. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14353. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14354. msm_routing_put_voice_stub_mixer),
  14355. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_AUXPCM_TX,
  14357. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14358. msm_routing_put_voice_stub_mixer),
  14359. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14361. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14362. msm_routing_put_voice_stub_mixer),
  14363. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14365. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14366. msm_routing_put_voice_stub_mixer),
  14367. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14369. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14370. msm_routing_put_voice_stub_mixer),
  14371. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14373. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14374. msm_routing_put_voice_stub_mixer),
  14375. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14377. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14378. msm_routing_put_voice_stub_mixer),
  14379. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14381. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14382. msm_routing_put_voice_stub_mixer),
  14383. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14385. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14386. msm_routing_put_voice_stub_mixer),
  14387. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_AFE_PCM_TX,
  14389. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14390. msm_routing_put_voice_stub_mixer),
  14391. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14393. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14394. msm_routing_put_voice_stub_mixer),
  14395. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14397. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14398. msm_routing_put_voice_stub_mixer),
  14399. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14401. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14402. msm_routing_put_voice_stub_mixer),
  14403. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14405. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14406. msm_routing_put_voice_stub_mixer),
  14407. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14409. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14410. msm_routing_put_voice_stub_mixer),
  14411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  14413. 1, 0, msm_routing_get_voice_stub_mixer,
  14414. msm_routing_put_voice_stub_mixer),
  14415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  14417. 1, 0, msm_routing_get_voice_stub_mixer,
  14418. msm_routing_put_voice_stub_mixer),
  14419. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  14421. 1, 0, msm_routing_get_voice_stub_mixer,
  14422. msm_routing_put_voice_stub_mixer),
  14423. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  14425. 1, 0, msm_routing_get_voice_stub_mixer,
  14426. msm_routing_put_voice_stub_mixer),
  14427. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  14429. 1, 0, msm_routing_get_voice_stub_mixer,
  14430. msm_routing_put_voice_stub_mixer),
  14431. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  14433. 1, 0, msm_routing_get_voice_stub_mixer,
  14434. msm_routing_put_voice_stub_mixer),
  14435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  14437. 1, 0, msm_routing_get_voice_stub_mixer,
  14438. msm_routing_put_voice_stub_mixer),
  14439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  14441. 1, 0, msm_routing_get_voice_stub_mixer,
  14442. msm_routing_put_voice_stub_mixer),
  14443. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14444. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  14445. 1, 0, msm_routing_get_voice_stub_mixer,
  14446. msm_routing_put_voice_stub_mixer),
  14447. };
  14448. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  14449. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14450. MSM_BACKEND_DAI_EXTPROC_TX,
  14451. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14452. msm_routing_put_voice_stub_mixer),
  14453. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14454. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14455. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14456. msm_routing_put_voice_stub_mixer),
  14457. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14459. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14460. msm_routing_put_voice_stub_mixer),
  14461. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_AUXPCM_TX,
  14463. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14464. msm_routing_put_voice_stub_mixer),
  14465. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14467. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14468. msm_routing_put_voice_stub_mixer),
  14469. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14471. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14472. msm_routing_put_voice_stub_mixer),
  14473. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14475. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14476. msm_routing_put_voice_stub_mixer),
  14477. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14479. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14480. msm_routing_put_voice_stub_mixer),
  14481. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14483. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14484. msm_routing_put_voice_stub_mixer),
  14485. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14487. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14488. msm_routing_put_voice_stub_mixer),
  14489. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14491. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14492. msm_routing_put_voice_stub_mixer),
  14493. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_AFE_PCM_TX,
  14495. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14496. msm_routing_put_voice_stub_mixer),
  14497. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14499. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14500. msm_routing_put_voice_stub_mixer),
  14501. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14503. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14504. msm_routing_put_voice_stub_mixer),
  14505. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14507. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14508. msm_routing_put_voice_stub_mixer),
  14509. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14511. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14512. msm_routing_put_voice_stub_mixer),
  14513. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  14515. 1, 0, msm_routing_get_voice_stub_mixer,
  14516. msm_routing_put_voice_stub_mixer),
  14517. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  14519. 1, 0, msm_routing_get_voice_stub_mixer,
  14520. msm_routing_put_voice_stub_mixer),
  14521. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  14523. 1, 0, msm_routing_get_voice_stub_mixer,
  14524. msm_routing_put_voice_stub_mixer),
  14525. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  14527. 1, 0, msm_routing_get_voice_stub_mixer,
  14528. msm_routing_put_voice_stub_mixer),
  14529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  14531. 1, 0, msm_routing_get_voice_stub_mixer,
  14532. msm_routing_put_voice_stub_mixer),
  14533. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  14535. 1, 0, msm_routing_get_voice_stub_mixer,
  14536. msm_routing_put_voice_stub_mixer),
  14537. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  14539. 1, 0, msm_routing_get_voice_stub_mixer,
  14540. msm_routing_put_voice_stub_mixer),
  14541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  14543. 1, 0, msm_routing_get_voice_stub_mixer,
  14544. msm_routing_put_voice_stub_mixer),
  14545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  14547. 1, 0, msm_routing_get_voice_stub_mixer,
  14548. msm_routing_put_voice_stub_mixer),
  14549. };
  14550. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  14551. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_PRI_I2S_TX,
  14553. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14554. msm_routing_put_voice_mixer),
  14555. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14557. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14558. msm_routing_put_voice_mixer),
  14559. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14561. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  14562. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14563. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_AFE_PCM_TX,
  14565. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14566. msm_routing_put_voice_mixer),
  14567. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_AUXPCM_TX,
  14569. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14570. msm_routing_put_voice_mixer),
  14571. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14573. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14574. msm_routing_put_voice_mixer),
  14575. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14577. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14578. msm_routing_put_voice_mixer),
  14579. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14581. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14582. msm_routing_put_voice_mixer),
  14583. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14585. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14586. msm_routing_put_voice_mixer),
  14587. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14589. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14590. msm_routing_put_voice_mixer),
  14591. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_MI2S_TX,
  14593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14594. msm_routing_put_voice_mixer),
  14595. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14597. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14598. msm_routing_put_voice_mixer),
  14599. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14601. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14602. msm_routing_put_voice_mixer),
  14603. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14605. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14606. msm_routing_put_voice_mixer),
  14607. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14609. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14610. msm_routing_put_voice_mixer),
  14611. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14613. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14614. msm_routing_put_voice_mixer),
  14615. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_USB_TX,
  14617. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14618. msm_routing_put_voice_mixer),
  14619. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  14621. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14622. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  14624. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14625. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  14627. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14628. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  14630. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14631. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  14633. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14634. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  14635. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  14636. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14637. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  14639. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  14642. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  14645. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14646. };
  14647. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  14648. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14650. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14651. msm_routing_put_port_mixer),
  14652. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14654. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14655. msm_routing_put_port_mixer),
  14656. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14658. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14659. msm_routing_put_port_mixer),
  14660. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14662. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14663. msm_routing_put_port_mixer),
  14664. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14666. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14667. msm_routing_put_port_mixer),
  14668. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14670. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14671. msm_routing_put_port_mixer),
  14672. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14673. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14674. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14675. msm_routing_put_port_mixer),
  14676. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14678. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14679. msm_routing_put_port_mixer),
  14680. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14682. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14683. msm_routing_put_port_mixer),
  14684. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14686. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14687. msm_routing_put_port_mixer),
  14688. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14690. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14691. msm_routing_put_port_mixer),
  14692. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14693. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14694. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14695. msm_routing_put_port_mixer),
  14696. };
  14697. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  14698. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14700. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14701. msm_routing_put_port_mixer),
  14702. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14703. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14704. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14705. msm_routing_put_port_mixer),
  14706. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14707. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14708. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14709. msm_routing_put_port_mixer),
  14710. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14712. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14713. msm_routing_put_port_mixer),
  14714. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14716. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14717. msm_routing_put_port_mixer),
  14718. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14719. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14720. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14721. msm_routing_put_port_mixer),
  14722. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14723. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14724. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14725. msm_routing_put_port_mixer),
  14726. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14727. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14728. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14729. msm_routing_put_port_mixer),
  14730. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14732. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14733. msm_routing_put_port_mixer),
  14734. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14736. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14737. msm_routing_put_port_mixer),
  14738. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14740. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14741. msm_routing_put_port_mixer),
  14742. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14743. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14744. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14745. msm_routing_put_port_mixer),
  14746. };
  14747. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  14748. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14749. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  14751. msm_routing_put_port_mixer),
  14752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14754. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  14755. msm_routing_put_port_mixer),
  14756. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14758. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14759. msm_routing_put_port_mixer),
  14760. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14762. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14763. msm_routing_put_port_mixer),
  14764. };
  14765. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  14766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  14769. msm_routing_put_port_mixer),
  14770. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14772. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14773. msm_routing_put_port_mixer),
  14774. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14776. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14777. msm_routing_put_port_mixer),
  14778. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14780. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14781. msm_routing_put_port_mixer),
  14782. };
  14783. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  14784. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14785. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14786. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14787. msm_routing_put_port_mixer),
  14788. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14790. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14791. msm_routing_put_port_mixer),
  14792. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14794. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14795. msm_routing_put_port_mixer),
  14796. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14798. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14799. msm_routing_put_port_mixer),
  14800. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14802. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14803. msm_routing_put_port_mixer),
  14804. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14806. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14807. msm_routing_put_port_mixer),
  14808. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14809. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14810. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14811. msm_routing_put_port_mixer),
  14812. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14813. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14814. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14815. msm_routing_put_port_mixer),
  14816. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14818. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14819. msm_routing_put_port_mixer),
  14820. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14821. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14822. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14823. msm_routing_put_port_mixer),
  14824. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14825. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14826. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14827. msm_routing_put_port_mixer),
  14828. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14829. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14830. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14831. msm_routing_put_port_mixer),
  14832. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14834. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14835. msm_routing_put_port_mixer),
  14836. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14837. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14838. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14839. msm_routing_put_port_mixer),
  14840. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14841. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14842. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14843. msm_routing_put_port_mixer),
  14844. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14845. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14846. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14847. msm_routing_put_port_mixer),
  14848. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14849. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14850. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14851. msm_routing_put_port_mixer),
  14852. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14854. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14855. msm_routing_put_port_mixer),
  14856. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14857. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14858. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14859. msm_routing_put_port_mixer),
  14860. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  14861. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14862. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14863. msm_routing_put_port_mixer),
  14864. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  14865. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14866. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14867. msm_routing_put_port_mixer),
  14868. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  14869. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14870. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14871. msm_routing_put_port_mixer),
  14872. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14874. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14875. msm_routing_put_port_mixer),
  14876. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  14877. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14878. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14879. msm_routing_put_port_mixer),
  14880. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  14881. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14882. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14883. msm_routing_put_port_mixer),
  14884. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14885. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14886. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14887. msm_routing_put_port_mixer),
  14888. };
  14889. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  14890. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14891. MSM_BACKEND_DAI_AUXPCM_RX,
  14892. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14893. msm_routing_put_port_mixer),
  14894. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14895. MSM_BACKEND_DAI_AUXPCM_RX,
  14896. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14897. msm_routing_put_port_mixer),
  14898. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14899. MSM_BACKEND_DAI_AUXPCM_RX,
  14900. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14901. msm_routing_put_port_mixer),
  14902. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14903. MSM_BACKEND_DAI_AUXPCM_RX,
  14904. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14905. msm_routing_put_port_mixer),
  14906. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14907. MSM_BACKEND_DAI_AUXPCM_RX,
  14908. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  14909. msm_routing_put_port_mixer),
  14910. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14911. MSM_BACKEND_DAI_AUXPCM_RX,
  14912. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14913. msm_routing_put_port_mixer),
  14914. };
  14915. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  14916. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14918. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14919. msm_routing_put_port_mixer),
  14920. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14922. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14923. msm_routing_put_port_mixer),
  14924. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14926. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14927. msm_routing_put_port_mixer),
  14928. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14930. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14931. msm_routing_put_port_mixer),
  14932. };
  14933. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  14934. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14935. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14936. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14937. msm_routing_put_port_mixer),
  14938. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14939. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14940. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14941. msm_routing_put_port_mixer),
  14942. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14944. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14945. msm_routing_put_port_mixer),
  14946. };
  14947. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  14948. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14949. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14950. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14951. msm_routing_put_port_mixer),
  14952. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14953. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14954. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14955. msm_routing_put_port_mixer),
  14956. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14957. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14958. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14959. msm_routing_put_port_mixer),
  14960. };
  14961. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  14962. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14963. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14964. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14965. msm_routing_put_port_mixer),
  14966. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14967. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14968. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14969. msm_routing_put_port_mixer),
  14970. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14971. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14972. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14973. msm_routing_put_port_mixer),
  14974. };
  14975. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  14976. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14977. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14978. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14979. msm_routing_put_port_mixer),
  14980. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14981. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14982. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14983. msm_routing_put_port_mixer),
  14984. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14985. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14986. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14987. msm_routing_put_port_mixer),
  14988. };
  14989. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  14990. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14992. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14993. msm_routing_put_port_mixer),
  14994. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14996. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  14997. msm_routing_put_port_mixer),
  14998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15000. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15001. msm_routing_put_port_mixer),
  15002. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15004. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15005. msm_routing_put_port_mixer),
  15006. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15008. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15009. msm_routing_put_port_mixer),
  15010. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15012. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15013. msm_routing_put_port_mixer),
  15014. };
  15015. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  15016. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  15017. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15018. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  15019. msm_routing_put_port_mixer),
  15020. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15021. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15022. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15023. msm_routing_put_port_mixer),
  15024. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  15025. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15026. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  15027. msm_routing_put_port_mixer),
  15028. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  15029. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15030. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  15031. msm_routing_put_port_mixer),
  15032. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  15033. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15034. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  15035. msm_routing_put_port_mixer),
  15036. };
  15037. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  15038. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15040. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15041. msm_routing_put_port_mixer),
  15042. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15044. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15045. msm_routing_put_port_mixer),
  15046. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15048. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15049. msm_routing_put_port_mixer),
  15050. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15051. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15052. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15053. msm_routing_put_port_mixer),
  15054. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15055. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15056. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15057. msm_routing_put_port_mixer),
  15058. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15059. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15060. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15061. msm_routing_put_port_mixer),
  15062. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15063. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15064. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15065. msm_routing_put_port_mixer),
  15066. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15068. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15069. msm_routing_put_port_mixer),
  15070. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15071. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15072. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15073. msm_routing_put_port_mixer),
  15074. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15075. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15076. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15077. msm_routing_put_port_mixer),
  15078. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15080. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15081. msm_routing_put_port_mixer),
  15082. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15084. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15085. msm_routing_put_port_mixer),
  15086. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15088. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15089. msm_routing_put_port_mixer),
  15090. };
  15091. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  15092. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15094. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15095. msm_routing_put_port_mixer),
  15096. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15098. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15099. msm_routing_put_port_mixer),
  15100. };
  15101. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  15102. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15103. MSM_BACKEND_DAI_AFE_PCM_RX,
  15104. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15105. msm_routing_put_port_mixer),
  15106. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15107. MSM_BACKEND_DAI_AFE_PCM_RX,
  15108. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15109. msm_routing_put_port_mixer),
  15110. };
  15111. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  15112. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_HDMI_RX,
  15114. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15115. msm_routing_put_port_mixer),
  15116. };
  15117. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  15118. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15119. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15120. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15121. msm_routing_put_port_mixer),
  15122. };
  15123. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  15124. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15126. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15127. msm_routing_put_port_mixer),
  15128. };
  15129. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  15130. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15131. MSM_BACKEND_DAI_SEC_I2S_RX,
  15132. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15133. msm_routing_put_port_mixer),
  15134. };
  15135. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  15136. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_MI2S_RX,
  15138. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15139. msm_routing_put_port_mixer),
  15140. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15141. MSM_BACKEND_DAI_MI2S_RX,
  15142. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15143. msm_routing_put_port_mixer),
  15144. };
  15145. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  15146. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15148. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15149. msm_routing_put_port_mixer),
  15150. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15152. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15153. msm_routing_put_port_mixer),
  15154. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15156. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15157. msm_routing_put_port_mixer),
  15158. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15160. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15161. msm_routing_put_port_mixer),
  15162. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15164. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15165. msm_routing_put_port_mixer),
  15166. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15168. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15169. msm_routing_put_port_mixer),
  15170. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15172. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15173. msm_routing_put_port_mixer),
  15174. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15176. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15177. msm_routing_put_port_mixer),
  15178. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15180. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15181. msm_routing_put_port_mixer),
  15182. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15184. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15185. msm_routing_put_port_mixer),
  15186. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15188. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15189. msm_routing_put_port_mixer),
  15190. };
  15191. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  15192. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  15193. MSM_BACKEND_DAI_USB_RX,
  15194. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  15195. msm_routing_put_port_mixer),
  15196. };
  15197. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  15198. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15200. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15201. msm_routing_put_port_mixer),
  15202. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15203. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15204. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15205. msm_routing_put_port_mixer),
  15206. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15208. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15209. msm_routing_put_port_mixer),
  15210. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15211. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15212. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15213. msm_routing_put_port_mixer),
  15214. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15215. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15216. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15217. msm_routing_put_port_mixer),
  15218. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15219. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15221. msm_routing_put_port_mixer),
  15222. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15223. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15224. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15225. msm_routing_put_port_mixer),
  15226. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15228. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15229. msm_routing_put_port_mixer),
  15230. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15232. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15233. msm_routing_put_port_mixer),
  15234. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15236. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15237. msm_routing_put_port_mixer),
  15238. };
  15239. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  15240. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15242. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15243. msm_routing_put_port_mixer),
  15244. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15246. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15247. msm_routing_put_port_mixer),
  15248. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15250. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15251. msm_routing_put_port_mixer),
  15252. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15254. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15255. msm_routing_put_port_mixer),
  15256. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15258. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15259. msm_routing_put_port_mixer),
  15260. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15262. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15263. msm_routing_put_port_mixer),
  15264. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15265. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15266. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15267. msm_routing_put_port_mixer),
  15268. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15269. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15270. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15271. msm_routing_put_port_mixer),
  15272. };
  15273. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  15274. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15276. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15277. msm_routing_put_port_mixer),
  15278. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15280. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15281. msm_routing_put_port_mixer),
  15282. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15283. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15284. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15285. msm_routing_put_port_mixer),
  15286. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15287. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15288. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15289. msm_routing_put_port_mixer),
  15290. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15291. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15292. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15293. msm_routing_put_port_mixer),
  15294. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15295. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15296. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15297. msm_routing_put_port_mixer),
  15298. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15299. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15300. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15301. msm_routing_put_port_mixer),
  15302. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15304. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15305. msm_routing_put_port_mixer),
  15306. };
  15307. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  15308. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15309. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15310. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15311. msm_routing_get_port_mixer,
  15312. msm_routing_put_port_mixer),
  15313. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15315. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15316. msm_routing_get_port_mixer,
  15317. msm_routing_put_port_mixer),
  15318. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15319. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15320. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15321. msm_routing_get_port_mixer,
  15322. msm_routing_put_port_mixer),
  15323. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15325. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15326. msm_routing_get_port_mixer,
  15327. msm_routing_put_port_mixer),
  15328. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15330. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15331. msm_routing_get_port_mixer,
  15332. msm_routing_put_port_mixer),
  15333. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15335. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15336. msm_routing_get_port_mixer,
  15337. msm_routing_put_port_mixer),
  15338. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15339. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15340. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15341. msm_routing_get_port_mixer,
  15342. msm_routing_put_port_mixer),
  15343. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15345. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15346. msm_routing_get_port_mixer,
  15347. msm_routing_put_port_mixer),
  15348. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15350. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15351. msm_routing_get_port_mixer,
  15352. msm_routing_put_port_mixer),
  15353. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15354. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15355. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15356. msm_routing_get_port_mixer,
  15357. msm_routing_put_port_mixer),
  15358. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15360. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15361. msm_routing_get_port_mixer,
  15362. msm_routing_put_port_mixer),
  15363. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15365. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15366. msm_routing_get_port_mixer,
  15367. msm_routing_put_port_mixer),
  15368. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15370. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15371. msm_routing_get_port_mixer,
  15372. msm_routing_put_port_mixer),
  15373. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15374. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15375. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15376. msm_routing_get_port_mixer,
  15377. msm_routing_put_port_mixer),
  15378. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15380. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15381. msm_routing_get_port_mixer,
  15382. msm_routing_put_port_mixer),
  15383. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15385. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15386. msm_routing_get_port_mixer,
  15387. msm_routing_put_port_mixer),
  15388. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15390. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15391. msm_routing_get_port_mixer,
  15392. msm_routing_put_port_mixer),
  15393. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15395. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15396. msm_routing_get_port_mixer,
  15397. msm_routing_put_port_mixer),
  15398. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15400. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15401. msm_routing_get_port_mixer,
  15402. msm_routing_put_port_mixer),
  15403. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15404. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15405. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15406. msm_routing_get_port_mixer,
  15407. msm_routing_put_port_mixer),
  15408. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15410. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15411. msm_routing_get_port_mixer,
  15412. msm_routing_put_port_mixer),
  15413. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15415. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15416. msm_routing_get_port_mixer,
  15417. msm_routing_put_port_mixer),
  15418. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15420. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15421. msm_routing_get_port_mixer,
  15422. msm_routing_put_port_mixer),
  15423. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15425. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15426. msm_routing_get_port_mixer,
  15427. msm_routing_put_port_mixer),
  15428. };
  15429. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  15430. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15431. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15432. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15433. msm_routing_get_port_mixer,
  15434. msm_routing_put_port_mixer),
  15435. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15436. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15437. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15438. msm_routing_get_port_mixer,
  15439. msm_routing_put_port_mixer),
  15440. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15442. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15443. msm_routing_get_port_mixer,
  15444. msm_routing_put_port_mixer),
  15445. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15447. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15448. msm_routing_get_port_mixer,
  15449. msm_routing_put_port_mixer),
  15450. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15451. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15452. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15453. msm_routing_get_port_mixer,
  15454. msm_routing_put_port_mixer),
  15455. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15456. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15457. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15458. msm_routing_get_port_mixer,
  15459. msm_routing_put_port_mixer),
  15460. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15462. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15463. msm_routing_get_port_mixer,
  15464. msm_routing_put_port_mixer),
  15465. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15466. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15467. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15468. msm_routing_get_port_mixer,
  15469. msm_routing_put_port_mixer),
  15470. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15472. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15473. msm_routing_get_port_mixer,
  15474. msm_routing_put_port_mixer),
  15475. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15477. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15478. msm_routing_get_port_mixer,
  15479. msm_routing_put_port_mixer),
  15480. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15482. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15483. msm_routing_get_port_mixer,
  15484. msm_routing_put_port_mixer),
  15485. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15487. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15488. msm_routing_get_port_mixer,
  15489. msm_routing_put_port_mixer),
  15490. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15492. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15493. msm_routing_get_port_mixer,
  15494. msm_routing_put_port_mixer),
  15495. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15497. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15498. msm_routing_get_port_mixer,
  15499. msm_routing_put_port_mixer),
  15500. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15501. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15502. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15503. msm_routing_get_port_mixer,
  15504. msm_routing_put_port_mixer),
  15505. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15506. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15507. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15508. msm_routing_get_port_mixer,
  15509. msm_routing_put_port_mixer),
  15510. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15512. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15513. msm_routing_get_port_mixer,
  15514. msm_routing_put_port_mixer),
  15515. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15517. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15518. msm_routing_get_port_mixer,
  15519. msm_routing_put_port_mixer),
  15520. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15522. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15523. msm_routing_get_port_mixer,
  15524. msm_routing_put_port_mixer),
  15525. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15526. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15527. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15528. msm_routing_get_port_mixer,
  15529. msm_routing_put_port_mixer),
  15530. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15532. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15533. msm_routing_get_port_mixer,
  15534. msm_routing_put_port_mixer),
  15535. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15537. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15538. msm_routing_get_port_mixer,
  15539. msm_routing_put_port_mixer),
  15540. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15542. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15543. msm_routing_get_port_mixer,
  15544. msm_routing_put_port_mixer),
  15545. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15547. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15548. msm_routing_get_port_mixer,
  15549. msm_routing_put_port_mixer),
  15550. };
  15551. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  15552. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15554. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15555. msm_routing_get_port_mixer,
  15556. msm_routing_put_port_mixer),
  15557. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15558. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15559. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15560. msm_routing_get_port_mixer,
  15561. msm_routing_put_port_mixer),
  15562. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15564. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15565. msm_routing_get_port_mixer,
  15566. msm_routing_put_port_mixer),
  15567. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15569. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15570. msm_routing_get_port_mixer,
  15571. msm_routing_put_port_mixer),
  15572. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15573. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15574. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15575. msm_routing_get_port_mixer,
  15576. msm_routing_put_port_mixer),
  15577. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15578. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15579. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15580. msm_routing_get_port_mixer,
  15581. msm_routing_put_port_mixer),
  15582. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15584. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15585. msm_routing_get_port_mixer,
  15586. msm_routing_put_port_mixer),
  15587. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15589. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15590. msm_routing_get_port_mixer,
  15591. msm_routing_put_port_mixer),
  15592. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15594. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15595. msm_routing_get_port_mixer,
  15596. msm_routing_put_port_mixer),
  15597. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15598. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15599. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15600. msm_routing_get_port_mixer,
  15601. msm_routing_put_port_mixer),
  15602. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15604. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15605. msm_routing_get_port_mixer,
  15606. msm_routing_put_port_mixer),
  15607. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15609. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15610. msm_routing_get_port_mixer,
  15611. msm_routing_put_port_mixer),
  15612. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15613. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15614. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15615. msm_routing_get_port_mixer,
  15616. msm_routing_put_port_mixer),
  15617. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15618. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15619. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15620. msm_routing_get_port_mixer,
  15621. msm_routing_put_port_mixer),
  15622. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15624. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15625. msm_routing_get_port_mixer,
  15626. msm_routing_put_port_mixer),
  15627. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15628. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15629. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15630. msm_routing_get_port_mixer,
  15631. msm_routing_put_port_mixer),
  15632. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15634. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15635. msm_routing_get_port_mixer,
  15636. msm_routing_put_port_mixer),
  15637. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15639. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15640. msm_routing_get_port_mixer,
  15641. msm_routing_put_port_mixer),
  15642. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15644. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15645. msm_routing_get_port_mixer,
  15646. msm_routing_put_port_mixer),
  15647. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15649. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15650. msm_routing_get_port_mixer,
  15651. msm_routing_put_port_mixer),
  15652. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15654. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15655. msm_routing_get_port_mixer,
  15656. msm_routing_put_port_mixer),
  15657. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15658. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15659. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15660. msm_routing_get_port_mixer,
  15661. msm_routing_put_port_mixer),
  15662. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15664. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15665. msm_routing_get_port_mixer,
  15666. msm_routing_put_port_mixer),
  15667. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15669. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15670. msm_routing_get_port_mixer,
  15671. msm_routing_put_port_mixer),
  15672. };
  15673. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  15674. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15676. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15677. msm_routing_get_port_mixer,
  15678. msm_routing_put_port_mixer),
  15679. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15681. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15682. msm_routing_get_port_mixer,
  15683. msm_routing_put_port_mixer),
  15684. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15686. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15687. msm_routing_get_port_mixer,
  15688. msm_routing_put_port_mixer),
  15689. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15691. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15692. msm_routing_get_port_mixer,
  15693. msm_routing_put_port_mixer),
  15694. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15696. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15697. msm_routing_get_port_mixer,
  15698. msm_routing_put_port_mixer),
  15699. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15701. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15702. msm_routing_get_port_mixer,
  15703. msm_routing_put_port_mixer),
  15704. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15705. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15706. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15707. msm_routing_get_port_mixer,
  15708. msm_routing_put_port_mixer),
  15709. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15710. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15711. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15712. msm_routing_get_port_mixer,
  15713. msm_routing_put_port_mixer),
  15714. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15716. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15717. msm_routing_get_port_mixer,
  15718. msm_routing_put_port_mixer),
  15719. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15721. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15722. msm_routing_get_port_mixer,
  15723. msm_routing_put_port_mixer),
  15724. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15726. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15727. msm_routing_get_port_mixer,
  15728. msm_routing_put_port_mixer),
  15729. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15730. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15731. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15732. msm_routing_get_port_mixer,
  15733. msm_routing_put_port_mixer),
  15734. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15735. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15736. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15737. msm_routing_get_port_mixer,
  15738. msm_routing_put_port_mixer),
  15739. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15741. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15742. msm_routing_get_port_mixer,
  15743. msm_routing_put_port_mixer),
  15744. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15746. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15747. msm_routing_get_port_mixer,
  15748. msm_routing_put_port_mixer),
  15749. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15750. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15751. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15752. msm_routing_get_port_mixer,
  15753. msm_routing_put_port_mixer),
  15754. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15756. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15757. msm_routing_get_port_mixer,
  15758. msm_routing_put_port_mixer),
  15759. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15761. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15762. msm_routing_get_port_mixer,
  15763. msm_routing_put_port_mixer),
  15764. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15765. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15766. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15767. msm_routing_get_port_mixer,
  15768. msm_routing_put_port_mixer),
  15769. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15770. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15771. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15772. msm_routing_get_port_mixer,
  15773. msm_routing_put_port_mixer),
  15774. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15776. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15777. msm_routing_get_port_mixer,
  15778. msm_routing_put_port_mixer),
  15779. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15780. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15781. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15782. msm_routing_get_port_mixer,
  15783. msm_routing_put_port_mixer),
  15784. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15786. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15787. msm_routing_get_port_mixer,
  15788. msm_routing_put_port_mixer),
  15789. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15791. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15792. msm_routing_get_port_mixer,
  15793. msm_routing_put_port_mixer),
  15794. };
  15795. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  15796. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15798. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15799. msm_routing_get_port_mixer,
  15800. msm_routing_put_port_mixer),
  15801. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15803. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15804. msm_routing_get_port_mixer,
  15805. msm_routing_put_port_mixer),
  15806. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15808. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15809. msm_routing_get_port_mixer,
  15810. msm_routing_put_port_mixer),
  15811. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15813. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15814. msm_routing_get_port_mixer,
  15815. msm_routing_put_port_mixer),
  15816. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15817. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15818. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15819. msm_routing_get_port_mixer,
  15820. msm_routing_put_port_mixer),
  15821. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15822. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15823. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15824. msm_routing_get_port_mixer,
  15825. msm_routing_put_port_mixer),
  15826. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15827. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15828. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15829. msm_routing_get_port_mixer,
  15830. msm_routing_put_port_mixer),
  15831. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15832. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15833. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15834. msm_routing_get_port_mixer,
  15835. msm_routing_put_port_mixer),
  15836. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15838. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  15839. msm_routing_get_port_mixer,
  15840. msm_routing_put_port_mixer),
  15841. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15843. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  15844. msm_routing_get_port_mixer,
  15845. msm_routing_put_port_mixer),
  15846. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15848. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  15849. msm_routing_get_port_mixer,
  15850. msm_routing_put_port_mixer),
  15851. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15852. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15853. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  15854. msm_routing_get_port_mixer,
  15855. msm_routing_put_port_mixer),
  15856. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15857. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15858. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15859. msm_routing_get_port_mixer,
  15860. msm_routing_put_port_mixer),
  15861. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15862. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15863. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15864. msm_routing_get_port_mixer,
  15865. msm_routing_put_port_mixer),
  15866. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15868. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15869. msm_routing_get_port_mixer,
  15870. msm_routing_put_port_mixer),
  15871. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15873. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15874. msm_routing_get_port_mixer,
  15875. msm_routing_put_port_mixer),
  15876. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15877. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15878. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15879. msm_routing_get_port_mixer,
  15880. msm_routing_put_port_mixer),
  15881. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15883. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15884. msm_routing_get_port_mixer,
  15885. msm_routing_put_port_mixer),
  15886. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15888. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15889. msm_routing_get_port_mixer,
  15890. msm_routing_put_port_mixer),
  15891. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15892. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15893. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15894. msm_routing_get_port_mixer,
  15895. msm_routing_put_port_mixer),
  15896. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15898. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15899. msm_routing_get_port_mixer,
  15900. msm_routing_put_port_mixer),
  15901. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15902. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15903. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15904. msm_routing_get_port_mixer,
  15905. msm_routing_put_port_mixer),
  15906. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15908. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15909. msm_routing_get_port_mixer,
  15910. msm_routing_put_port_mixer),
  15911. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15913. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15914. msm_routing_get_port_mixer,
  15915. msm_routing_put_port_mixer),
  15916. };
  15917. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  15918. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15920. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15921. msm_routing_get_port_mixer,
  15922. msm_routing_put_port_mixer),
  15923. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15925. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15926. msm_routing_get_port_mixer,
  15927. msm_routing_put_port_mixer),
  15928. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15930. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15931. msm_routing_get_port_mixer,
  15932. msm_routing_put_port_mixer),
  15933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15935. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15936. msm_routing_get_port_mixer,
  15937. msm_routing_put_port_mixer),
  15938. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15940. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15941. msm_routing_get_port_mixer,
  15942. msm_routing_put_port_mixer),
  15943. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15945. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15946. msm_routing_get_port_mixer,
  15947. msm_routing_put_port_mixer),
  15948. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15950. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15951. msm_routing_get_port_mixer,
  15952. msm_routing_put_port_mixer),
  15953. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15954. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15955. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15956. msm_routing_get_port_mixer,
  15957. msm_routing_put_port_mixer),
  15958. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15960. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  15961. msm_routing_get_port_mixer,
  15962. msm_routing_put_port_mixer),
  15963. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15964. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15965. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  15966. msm_routing_get_port_mixer,
  15967. msm_routing_put_port_mixer),
  15968. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15969. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15970. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  15971. msm_routing_get_port_mixer,
  15972. msm_routing_put_port_mixer),
  15973. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15975. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  15976. msm_routing_get_port_mixer,
  15977. msm_routing_put_port_mixer),
  15978. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15980. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15981. msm_routing_get_port_mixer,
  15982. msm_routing_put_port_mixer),
  15983. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15985. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15986. msm_routing_get_port_mixer,
  15987. msm_routing_put_port_mixer),
  15988. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15990. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15991. msm_routing_get_port_mixer,
  15992. msm_routing_put_port_mixer),
  15993. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15994. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15995. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15996. msm_routing_get_port_mixer,
  15997. msm_routing_put_port_mixer),
  15998. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16000. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16001. msm_routing_get_port_mixer,
  16002. msm_routing_put_port_mixer),
  16003. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16004. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16005. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16006. msm_routing_get_port_mixer,
  16007. msm_routing_put_port_mixer),
  16008. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16009. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16010. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16011. msm_routing_get_port_mixer,
  16012. msm_routing_put_port_mixer),
  16013. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16015. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16016. msm_routing_get_port_mixer,
  16017. msm_routing_put_port_mixer),
  16018. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16020. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16021. msm_routing_get_port_mixer,
  16022. msm_routing_put_port_mixer),
  16023. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16024. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16025. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16026. msm_routing_get_port_mixer,
  16027. msm_routing_put_port_mixer),
  16028. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16030. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16031. msm_routing_get_port_mixer,
  16032. msm_routing_put_port_mixer),
  16033. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16034. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16035. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16036. msm_routing_get_port_mixer,
  16037. msm_routing_put_port_mixer),
  16038. };
  16039. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  16040. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16042. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16043. msm_routing_get_port_mixer,
  16044. msm_routing_put_port_mixer),
  16045. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16046. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16047. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16048. msm_routing_get_port_mixer,
  16049. msm_routing_put_port_mixer),
  16050. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16052. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16053. msm_routing_get_port_mixer,
  16054. msm_routing_put_port_mixer),
  16055. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16056. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16057. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16058. msm_routing_get_port_mixer,
  16059. msm_routing_put_port_mixer),
  16060. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16062. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16063. msm_routing_get_port_mixer,
  16064. msm_routing_put_port_mixer),
  16065. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16067. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16068. msm_routing_get_port_mixer,
  16069. msm_routing_put_port_mixer),
  16070. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16072. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16073. msm_routing_get_port_mixer,
  16074. msm_routing_put_port_mixer),
  16075. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16076. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16077. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16078. msm_routing_get_port_mixer,
  16079. msm_routing_put_port_mixer),
  16080. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16082. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16083. msm_routing_get_port_mixer,
  16084. msm_routing_put_port_mixer),
  16085. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16087. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16088. msm_routing_get_port_mixer,
  16089. msm_routing_put_port_mixer),
  16090. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16092. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16093. msm_routing_get_port_mixer,
  16094. msm_routing_put_port_mixer),
  16095. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16097. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16098. msm_routing_get_port_mixer,
  16099. msm_routing_put_port_mixer),
  16100. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16102. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16103. msm_routing_get_port_mixer,
  16104. msm_routing_put_port_mixer),
  16105. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16106. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16107. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16108. msm_routing_get_port_mixer,
  16109. msm_routing_put_port_mixer),
  16110. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16112. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16113. msm_routing_get_port_mixer,
  16114. msm_routing_put_port_mixer),
  16115. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16117. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16118. msm_routing_get_port_mixer,
  16119. msm_routing_put_port_mixer),
  16120. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16122. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16123. msm_routing_get_port_mixer,
  16124. msm_routing_put_port_mixer),
  16125. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16126. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16127. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16128. msm_routing_get_port_mixer,
  16129. msm_routing_put_port_mixer),
  16130. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16131. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16132. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16133. msm_routing_get_port_mixer,
  16134. msm_routing_put_port_mixer),
  16135. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16136. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16137. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16138. msm_routing_get_port_mixer,
  16139. msm_routing_put_port_mixer),
  16140. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16142. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16143. msm_routing_get_port_mixer,
  16144. msm_routing_put_port_mixer),
  16145. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16146. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16147. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16148. msm_routing_get_port_mixer,
  16149. msm_routing_put_port_mixer),
  16150. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16152. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16153. msm_routing_get_port_mixer,
  16154. msm_routing_put_port_mixer),
  16155. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16157. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16158. msm_routing_get_port_mixer,
  16159. msm_routing_put_port_mixer),
  16160. };
  16161. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  16162. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16164. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16165. msm_routing_get_port_mixer,
  16166. msm_routing_put_port_mixer),
  16167. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16168. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16169. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16170. msm_routing_get_port_mixer,
  16171. msm_routing_put_port_mixer),
  16172. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16174. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16175. msm_routing_get_port_mixer,
  16176. msm_routing_put_port_mixer),
  16177. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16179. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16180. msm_routing_get_port_mixer,
  16181. msm_routing_put_port_mixer),
  16182. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16184. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16185. msm_routing_get_port_mixer,
  16186. msm_routing_put_port_mixer),
  16187. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16189. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16190. msm_routing_get_port_mixer,
  16191. msm_routing_put_port_mixer),
  16192. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16194. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16195. msm_routing_get_port_mixer,
  16196. msm_routing_put_port_mixer),
  16197. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16198. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16199. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16200. msm_routing_get_port_mixer,
  16201. msm_routing_put_port_mixer),
  16202. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16204. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16205. msm_routing_get_port_mixer,
  16206. msm_routing_put_port_mixer),
  16207. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16208. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16209. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16210. msm_routing_get_port_mixer,
  16211. msm_routing_put_port_mixer),
  16212. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16214. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16215. msm_routing_get_port_mixer,
  16216. msm_routing_put_port_mixer),
  16217. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16218. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16219. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16220. msm_routing_get_port_mixer,
  16221. msm_routing_put_port_mixer),
  16222. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16224. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16225. msm_routing_get_port_mixer,
  16226. msm_routing_put_port_mixer),
  16227. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16229. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16230. msm_routing_get_port_mixer,
  16231. msm_routing_put_port_mixer),
  16232. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16233. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16234. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16235. msm_routing_get_port_mixer,
  16236. msm_routing_put_port_mixer),
  16237. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16238. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16239. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16240. msm_routing_get_port_mixer,
  16241. msm_routing_put_port_mixer),
  16242. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16244. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16245. msm_routing_get_port_mixer,
  16246. msm_routing_put_port_mixer),
  16247. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16248. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16249. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16250. msm_routing_get_port_mixer,
  16251. msm_routing_put_port_mixer),
  16252. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16254. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16255. msm_routing_get_port_mixer,
  16256. msm_routing_put_port_mixer),
  16257. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16258. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16259. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16260. msm_routing_get_port_mixer,
  16261. msm_routing_put_port_mixer),
  16262. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16263. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16264. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16265. msm_routing_get_port_mixer,
  16266. msm_routing_put_port_mixer),
  16267. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16268. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16269. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16270. msm_routing_get_port_mixer,
  16271. msm_routing_put_port_mixer),
  16272. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16274. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16275. msm_routing_get_port_mixer,
  16276. msm_routing_put_port_mixer),
  16277. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16278. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16279. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16280. msm_routing_get_port_mixer,
  16281. msm_routing_put_port_mixer),
  16282. };
  16283. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  16284. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  16286. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  16287. msm_routing_get_port_mixer,
  16288. msm_routing_put_port_mixer),
  16289. };
  16290. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  16291. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16292. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16293. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16294. msm_routing_get_port_mixer,
  16295. msm_routing_put_port_mixer),
  16296. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16298. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16299. msm_routing_get_port_mixer,
  16300. msm_routing_put_port_mixer),
  16301. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16303. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16304. msm_routing_get_port_mixer,
  16305. msm_routing_put_port_mixer),
  16306. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16308. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16309. msm_routing_get_port_mixer,
  16310. msm_routing_put_port_mixer),
  16311. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16312. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16313. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16314. msm_routing_get_port_mixer,
  16315. msm_routing_put_port_mixer),
  16316. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16318. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16319. msm_routing_get_port_mixer,
  16320. msm_routing_put_port_mixer),
  16321. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16323. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16324. msm_routing_get_port_mixer,
  16325. msm_routing_put_port_mixer),
  16326. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16328. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16329. msm_routing_get_port_mixer,
  16330. msm_routing_put_port_mixer),
  16331. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16333. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16334. msm_routing_get_port_mixer,
  16335. msm_routing_put_port_mixer),
  16336. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16338. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16339. msm_routing_get_port_mixer,
  16340. msm_routing_put_port_mixer),
  16341. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16343. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16344. msm_routing_get_port_mixer,
  16345. msm_routing_put_port_mixer),
  16346. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16347. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16348. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16349. msm_routing_get_port_mixer,
  16350. msm_routing_put_port_mixer),
  16351. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16352. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16353. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16354. msm_routing_get_port_mixer,
  16355. msm_routing_put_port_mixer),
  16356. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16357. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16358. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16359. msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16363. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16364. msm_routing_get_port_mixer,
  16365. msm_routing_put_port_mixer),
  16366. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16368. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16369. msm_routing_get_port_mixer,
  16370. msm_routing_put_port_mixer),
  16371. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16372. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16373. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16374. msm_routing_get_port_mixer,
  16375. msm_routing_put_port_mixer),
  16376. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16378. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16379. msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16383. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16384. msm_routing_get_port_mixer,
  16385. msm_routing_put_port_mixer),
  16386. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16387. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16388. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16389. msm_routing_get_port_mixer,
  16390. msm_routing_put_port_mixer),
  16391. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16392. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16393. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16394. msm_routing_get_port_mixer,
  16395. msm_routing_put_port_mixer),
  16396. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16398. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16399. msm_routing_get_port_mixer,
  16400. msm_routing_put_port_mixer),
  16401. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16402. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16403. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16404. msm_routing_get_port_mixer,
  16405. msm_routing_put_port_mixer),
  16406. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16407. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16408. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16409. msm_routing_get_port_mixer,
  16410. msm_routing_put_port_mixer),
  16411. };
  16412. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  16413. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16414. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16415. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16416. msm_routing_get_port_mixer,
  16417. msm_routing_put_port_mixer),
  16418. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16420. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16421. msm_routing_get_port_mixer,
  16422. msm_routing_put_port_mixer),
  16423. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16425. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16426. msm_routing_get_port_mixer,
  16427. msm_routing_put_port_mixer),
  16428. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16430. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16431. msm_routing_get_port_mixer,
  16432. msm_routing_put_port_mixer),
  16433. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16434. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16435. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16436. msm_routing_get_port_mixer,
  16437. msm_routing_put_port_mixer),
  16438. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16440. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16441. msm_routing_get_port_mixer,
  16442. msm_routing_put_port_mixer),
  16443. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16445. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16446. msm_routing_get_port_mixer,
  16447. msm_routing_put_port_mixer),
  16448. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16450. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16451. msm_routing_get_port_mixer,
  16452. msm_routing_put_port_mixer),
  16453. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16455. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16456. msm_routing_get_port_mixer,
  16457. msm_routing_put_port_mixer),
  16458. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16460. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16461. msm_routing_get_port_mixer,
  16462. msm_routing_put_port_mixer),
  16463. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16464. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16465. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16466. msm_routing_get_port_mixer,
  16467. msm_routing_put_port_mixer),
  16468. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16469. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16470. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16471. msm_routing_get_port_mixer,
  16472. msm_routing_put_port_mixer),
  16473. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16474. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16475. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16476. msm_routing_get_port_mixer,
  16477. msm_routing_put_port_mixer),
  16478. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16479. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16480. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16481. msm_routing_get_port_mixer,
  16482. msm_routing_put_port_mixer),
  16483. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16484. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16485. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16486. msm_routing_get_port_mixer,
  16487. msm_routing_put_port_mixer),
  16488. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16490. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16491. msm_routing_get_port_mixer,
  16492. msm_routing_put_port_mixer),
  16493. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16495. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16496. msm_routing_get_port_mixer,
  16497. msm_routing_put_port_mixer),
  16498. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16500. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16501. msm_routing_get_port_mixer,
  16502. msm_routing_put_port_mixer),
  16503. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16504. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16505. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16506. msm_routing_get_port_mixer,
  16507. msm_routing_put_port_mixer),
  16508. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16509. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16510. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16511. msm_routing_get_port_mixer,
  16512. msm_routing_put_port_mixer),
  16513. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16515. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16516. msm_routing_get_port_mixer,
  16517. msm_routing_put_port_mixer),
  16518. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16519. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16520. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16521. msm_routing_get_port_mixer,
  16522. msm_routing_put_port_mixer),
  16523. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16524. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16525. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16526. msm_routing_get_port_mixer,
  16527. msm_routing_put_port_mixer),
  16528. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16529. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16530. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16531. msm_routing_get_port_mixer,
  16532. msm_routing_put_port_mixer),
  16533. };
  16534. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  16535. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16537. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16538. msm_routing_get_port_mixer,
  16539. msm_routing_put_port_mixer),
  16540. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16541. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16542. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16543. msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16547. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16548. msm_routing_get_port_mixer,
  16549. msm_routing_put_port_mixer),
  16550. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16552. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16553. msm_routing_get_port_mixer,
  16554. msm_routing_put_port_mixer),
  16555. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16557. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16558. msm_routing_get_port_mixer,
  16559. msm_routing_put_port_mixer),
  16560. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16562. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16563. msm_routing_get_port_mixer,
  16564. msm_routing_put_port_mixer),
  16565. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16567. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16568. msm_routing_get_port_mixer,
  16569. msm_routing_put_port_mixer),
  16570. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16571. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16572. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16573. msm_routing_get_port_mixer,
  16574. msm_routing_put_port_mixer),
  16575. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16577. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16578. msm_routing_get_port_mixer,
  16579. msm_routing_put_port_mixer),
  16580. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16581. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16582. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16583. msm_routing_get_port_mixer,
  16584. msm_routing_put_port_mixer),
  16585. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16587. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16588. msm_routing_get_port_mixer,
  16589. msm_routing_put_port_mixer),
  16590. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16592. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16593. msm_routing_get_port_mixer,
  16594. msm_routing_put_port_mixer),
  16595. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16597. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16598. msm_routing_get_port_mixer,
  16599. msm_routing_put_port_mixer),
  16600. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16601. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16602. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16603. msm_routing_get_port_mixer,
  16604. msm_routing_put_port_mixer),
  16605. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16607. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16608. msm_routing_get_port_mixer,
  16609. msm_routing_put_port_mixer),
  16610. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16611. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16612. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16613. msm_routing_get_port_mixer,
  16614. msm_routing_put_port_mixer),
  16615. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16616. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16617. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16618. msm_routing_get_port_mixer,
  16619. msm_routing_put_port_mixer),
  16620. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16622. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16623. msm_routing_get_port_mixer,
  16624. msm_routing_put_port_mixer),
  16625. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16627. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16628. msm_routing_get_port_mixer,
  16629. msm_routing_put_port_mixer),
  16630. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16631. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16632. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16633. msm_routing_get_port_mixer,
  16634. msm_routing_put_port_mixer),
  16635. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16637. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16638. msm_routing_get_port_mixer,
  16639. msm_routing_put_port_mixer),
  16640. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16641. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16642. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16643. msm_routing_get_port_mixer,
  16644. msm_routing_put_port_mixer),
  16645. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16646. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16647. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16648. msm_routing_get_port_mixer,
  16649. msm_routing_put_port_mixer),
  16650. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16651. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16652. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16653. msm_routing_get_port_mixer,
  16654. msm_routing_put_port_mixer),
  16655. };
  16656. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  16657. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16659. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16660. msm_routing_get_port_mixer,
  16661. msm_routing_put_port_mixer),
  16662. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16663. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16664. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16665. msm_routing_get_port_mixer,
  16666. msm_routing_put_port_mixer),
  16667. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16669. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16670. msm_routing_get_port_mixer,
  16671. msm_routing_put_port_mixer),
  16672. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16674. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16675. msm_routing_get_port_mixer,
  16676. msm_routing_put_port_mixer),
  16677. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16678. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16679. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16680. msm_routing_get_port_mixer,
  16681. msm_routing_put_port_mixer),
  16682. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16684. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16685. msm_routing_get_port_mixer,
  16686. msm_routing_put_port_mixer),
  16687. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16688. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16689. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16690. msm_routing_get_port_mixer,
  16691. msm_routing_put_port_mixer),
  16692. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16693. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16694. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16695. msm_routing_get_port_mixer,
  16696. msm_routing_put_port_mixer),
  16697. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16699. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16700. msm_routing_get_port_mixer,
  16701. msm_routing_put_port_mixer),
  16702. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16703. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16704. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16705. msm_routing_get_port_mixer,
  16706. msm_routing_put_port_mixer),
  16707. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16708. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16709. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16710. msm_routing_get_port_mixer,
  16711. msm_routing_put_port_mixer),
  16712. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16714. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16715. msm_routing_get_port_mixer,
  16716. msm_routing_put_port_mixer),
  16717. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16719. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16720. msm_routing_get_port_mixer,
  16721. msm_routing_put_port_mixer),
  16722. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16723. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16724. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16725. msm_routing_get_port_mixer,
  16726. msm_routing_put_port_mixer),
  16727. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16729. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16730. msm_routing_get_port_mixer,
  16731. msm_routing_put_port_mixer),
  16732. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16733. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16734. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16735. msm_routing_get_port_mixer,
  16736. msm_routing_put_port_mixer),
  16737. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16738. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16739. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16740. msm_routing_get_port_mixer,
  16741. msm_routing_put_port_mixer),
  16742. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16744. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16745. msm_routing_get_port_mixer,
  16746. msm_routing_put_port_mixer),
  16747. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16749. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16750. msm_routing_get_port_mixer,
  16751. msm_routing_put_port_mixer),
  16752. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16753. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16754. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16755. msm_routing_get_port_mixer,
  16756. msm_routing_put_port_mixer),
  16757. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16759. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16760. msm_routing_get_port_mixer,
  16761. msm_routing_put_port_mixer),
  16762. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16763. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16764. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16765. msm_routing_get_port_mixer,
  16766. msm_routing_put_port_mixer),
  16767. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16769. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16770. msm_routing_get_port_mixer,
  16771. msm_routing_put_port_mixer),
  16772. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16774. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16775. msm_routing_get_port_mixer,
  16776. msm_routing_put_port_mixer),
  16777. };
  16778. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  16779. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16781. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16782. msm_routing_get_port_mixer,
  16783. msm_routing_put_port_mixer),
  16784. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16786. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16787. msm_routing_get_port_mixer,
  16788. msm_routing_put_port_mixer),
  16789. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16791. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16792. msm_routing_get_port_mixer,
  16793. msm_routing_put_port_mixer),
  16794. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16795. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16796. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16797. msm_routing_get_port_mixer,
  16798. msm_routing_put_port_mixer),
  16799. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16801. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16802. msm_routing_get_port_mixer,
  16803. msm_routing_put_port_mixer),
  16804. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16805. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16806. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16807. msm_routing_get_port_mixer,
  16808. msm_routing_put_port_mixer),
  16809. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16811. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16812. msm_routing_get_port_mixer,
  16813. msm_routing_put_port_mixer),
  16814. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16815. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16816. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16817. msm_routing_get_port_mixer,
  16818. msm_routing_put_port_mixer),
  16819. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16821. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16822. msm_routing_get_port_mixer,
  16823. msm_routing_put_port_mixer),
  16824. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16825. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16826. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16827. msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16831. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16832. msm_routing_get_port_mixer,
  16833. msm_routing_put_port_mixer),
  16834. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16835. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16836. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16837. msm_routing_get_port_mixer,
  16838. msm_routing_put_port_mixer),
  16839. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16841. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16842. msm_routing_get_port_mixer,
  16843. msm_routing_put_port_mixer),
  16844. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16845. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16846. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16847. msm_routing_get_port_mixer,
  16848. msm_routing_put_port_mixer),
  16849. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16850. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16851. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16852. msm_routing_get_port_mixer,
  16853. msm_routing_put_port_mixer),
  16854. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16855. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16856. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16857. msm_routing_get_port_mixer,
  16858. msm_routing_put_port_mixer),
  16859. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16861. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16862. msm_routing_get_port_mixer,
  16863. msm_routing_put_port_mixer),
  16864. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16865. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16866. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16867. msm_routing_get_port_mixer,
  16868. msm_routing_put_port_mixer),
  16869. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16871. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16872. msm_routing_get_port_mixer,
  16873. msm_routing_put_port_mixer),
  16874. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16875. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16876. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16877. msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16880. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16881. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16882. msm_routing_get_port_mixer,
  16883. msm_routing_put_port_mixer),
  16884. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16885. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16886. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16887. msm_routing_get_port_mixer,
  16888. msm_routing_put_port_mixer),
  16889. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16891. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16892. msm_routing_get_port_mixer,
  16893. msm_routing_put_port_mixer),
  16894. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16895. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16896. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16897. msm_routing_get_port_mixer,
  16898. msm_routing_put_port_mixer),
  16899. };
  16900. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  16901. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16903. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16904. msm_routing_get_port_mixer,
  16905. msm_routing_put_port_mixer),
  16906. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16908. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16909. msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16913. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16914. msm_routing_get_port_mixer,
  16915. msm_routing_put_port_mixer),
  16916. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16917. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16918. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16919. msm_routing_get_port_mixer,
  16920. msm_routing_put_port_mixer),
  16921. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16923. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16924. msm_routing_get_port_mixer,
  16925. msm_routing_put_port_mixer),
  16926. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16927. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16928. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16929. msm_routing_get_port_mixer,
  16930. msm_routing_put_port_mixer),
  16931. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16932. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16933. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16934. msm_routing_get_port_mixer,
  16935. msm_routing_put_port_mixer),
  16936. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16937. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16938. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16939. msm_routing_get_port_mixer,
  16940. msm_routing_put_port_mixer),
  16941. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16943. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16944. msm_routing_get_port_mixer,
  16945. msm_routing_put_port_mixer),
  16946. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16947. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16948. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16949. msm_routing_get_port_mixer,
  16950. msm_routing_put_port_mixer),
  16951. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16952. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16953. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16954. msm_routing_get_port_mixer,
  16955. msm_routing_put_port_mixer),
  16956. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16957. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16958. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16959. msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16963. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16964. msm_routing_get_port_mixer,
  16965. msm_routing_put_port_mixer),
  16966. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16967. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16968. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16969. msm_routing_get_port_mixer,
  16970. msm_routing_put_port_mixer),
  16971. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16972. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16973. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16974. msm_routing_get_port_mixer,
  16975. msm_routing_put_port_mixer),
  16976. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16977. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16978. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16979. msm_routing_get_port_mixer,
  16980. msm_routing_put_port_mixer),
  16981. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16983. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16984. msm_routing_get_port_mixer,
  16985. msm_routing_put_port_mixer),
  16986. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16987. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16988. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16989. msm_routing_get_port_mixer,
  16990. msm_routing_put_port_mixer),
  16991. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16993. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16994. msm_routing_get_port_mixer,
  16995. msm_routing_put_port_mixer),
  16996. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16998. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16999. msm_routing_get_port_mixer,
  17000. msm_routing_put_port_mixer),
  17001. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17002. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17003. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17004. msm_routing_get_port_mixer,
  17005. msm_routing_put_port_mixer),
  17006. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17007. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17008. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17009. msm_routing_get_port_mixer,
  17010. msm_routing_put_port_mixer),
  17011. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17013. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17014. msm_routing_get_port_mixer,
  17015. msm_routing_put_port_mixer),
  17016. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17017. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17018. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17019. msm_routing_get_port_mixer,
  17020. msm_routing_put_port_mixer),
  17021. };
  17022. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  17023. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17025. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17026. msm_routing_get_port_mixer,
  17027. msm_routing_put_port_mixer),
  17028. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17029. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17030. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17031. msm_routing_get_port_mixer,
  17032. msm_routing_put_port_mixer),
  17033. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17034. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17035. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17036. msm_routing_get_port_mixer,
  17037. msm_routing_put_port_mixer),
  17038. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17039. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17040. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17041. msm_routing_get_port_mixer,
  17042. msm_routing_put_port_mixer),
  17043. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17045. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17046. msm_routing_get_port_mixer,
  17047. msm_routing_put_port_mixer),
  17048. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17050. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17051. msm_routing_get_port_mixer,
  17052. msm_routing_put_port_mixer),
  17053. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17054. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17055. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17056. msm_routing_get_port_mixer,
  17057. msm_routing_put_port_mixer),
  17058. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17059. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17060. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17061. msm_routing_get_port_mixer,
  17062. msm_routing_put_port_mixer),
  17063. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17065. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17066. msm_routing_get_port_mixer,
  17067. msm_routing_put_port_mixer),
  17068. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17069. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17070. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17071. msm_routing_get_port_mixer,
  17072. msm_routing_put_port_mixer),
  17073. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17074. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17075. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17076. msm_routing_get_port_mixer,
  17077. msm_routing_put_port_mixer),
  17078. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17079. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17080. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17081. msm_routing_get_port_mixer,
  17082. msm_routing_put_port_mixer),
  17083. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17085. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17086. msm_routing_get_port_mixer,
  17087. msm_routing_put_port_mixer),
  17088. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17089. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17090. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17091. msm_routing_get_port_mixer,
  17092. msm_routing_put_port_mixer),
  17093. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17094. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17095. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17096. msm_routing_get_port_mixer,
  17097. msm_routing_put_port_mixer),
  17098. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17099. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17100. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17101. msm_routing_get_port_mixer,
  17102. msm_routing_put_port_mixer),
  17103. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17105. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17106. msm_routing_get_port_mixer,
  17107. msm_routing_put_port_mixer),
  17108. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17109. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17110. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17111. msm_routing_get_port_mixer,
  17112. msm_routing_put_port_mixer),
  17113. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17114. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17115. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17116. msm_routing_get_port_mixer,
  17117. msm_routing_put_port_mixer),
  17118. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17119. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17120. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17121. msm_routing_get_port_mixer,
  17122. msm_routing_put_port_mixer),
  17123. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17124. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17125. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17126. msm_routing_get_port_mixer,
  17127. msm_routing_put_port_mixer),
  17128. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17129. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17130. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17131. msm_routing_get_port_mixer,
  17132. msm_routing_put_port_mixer),
  17133. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17135. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17136. msm_routing_get_port_mixer,
  17137. msm_routing_put_port_mixer),
  17138. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17139. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17140. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17141. msm_routing_get_port_mixer,
  17142. msm_routing_put_port_mixer),
  17143. };
  17144. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  17145. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17147. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17148. msm_routing_get_port_mixer,
  17149. msm_routing_put_port_mixer),
  17150. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17151. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17152. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17153. msm_routing_get_port_mixer,
  17154. msm_routing_put_port_mixer),
  17155. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17157. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17158. msm_routing_get_port_mixer,
  17159. msm_routing_put_port_mixer),
  17160. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17162. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17163. msm_routing_get_port_mixer,
  17164. msm_routing_put_port_mixer),
  17165. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17167. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17168. msm_routing_get_port_mixer,
  17169. msm_routing_put_port_mixer),
  17170. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17171. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17172. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17173. msm_routing_get_port_mixer,
  17174. msm_routing_put_port_mixer),
  17175. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17177. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17178. msm_routing_get_port_mixer,
  17179. msm_routing_put_port_mixer),
  17180. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17182. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17183. msm_routing_get_port_mixer,
  17184. msm_routing_put_port_mixer),
  17185. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17186. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17187. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17188. msm_routing_get_port_mixer,
  17189. msm_routing_put_port_mixer),
  17190. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17191. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17192. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17193. msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17197. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17198. msm_routing_get_port_mixer,
  17199. msm_routing_put_port_mixer),
  17200. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17202. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17203. msm_routing_get_port_mixer,
  17204. msm_routing_put_port_mixer),
  17205. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17206. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17207. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17208. msm_routing_get_port_mixer,
  17209. msm_routing_put_port_mixer),
  17210. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17211. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17212. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17213. msm_routing_get_port_mixer,
  17214. msm_routing_put_port_mixer),
  17215. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17217. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17218. msm_routing_get_port_mixer,
  17219. msm_routing_put_port_mixer),
  17220. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17222. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17223. msm_routing_get_port_mixer,
  17224. msm_routing_put_port_mixer),
  17225. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17226. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17227. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17228. msm_routing_get_port_mixer,
  17229. msm_routing_put_port_mixer),
  17230. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17231. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17232. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17233. msm_routing_get_port_mixer,
  17234. msm_routing_put_port_mixer),
  17235. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17237. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17238. msm_routing_get_port_mixer,
  17239. msm_routing_put_port_mixer),
  17240. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17241. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17242. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17243. msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17246. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17247. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17248. msm_routing_get_port_mixer,
  17249. msm_routing_put_port_mixer),
  17250. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17251. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17252. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17253. msm_routing_get_port_mixer,
  17254. msm_routing_put_port_mixer),
  17255. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17257. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17258. msm_routing_get_port_mixer,
  17259. msm_routing_put_port_mixer),
  17260. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17261. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17262. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17263. msm_routing_get_port_mixer,
  17264. msm_routing_put_port_mixer),
  17265. };
  17266. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  17267. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  17269. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  17270. msm_routing_get_port_mixer,
  17271. msm_routing_put_port_mixer),
  17272. };
  17273. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  17274. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17276. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17277. msm_routing_get_port_mixer,
  17278. msm_routing_put_port_mixer),
  17279. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17281. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17282. msm_routing_get_port_mixer,
  17283. msm_routing_put_port_mixer),
  17284. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17286. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17287. msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17291. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17292. msm_routing_get_port_mixer,
  17293. msm_routing_put_port_mixer),
  17294. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17295. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17296. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17297. msm_routing_get_port_mixer,
  17298. msm_routing_put_port_mixer),
  17299. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17301. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17302. msm_routing_get_port_mixer,
  17303. msm_routing_put_port_mixer),
  17304. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17305. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17306. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17307. msm_routing_get_port_mixer,
  17308. msm_routing_put_port_mixer),
  17309. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17311. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17312. msm_routing_get_port_mixer,
  17313. msm_routing_put_port_mixer),
  17314. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17316. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17317. msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17321. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17322. msm_routing_get_port_mixer,
  17323. msm_routing_put_port_mixer),
  17324. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17326. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17327. msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17331. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17332. msm_routing_get_port_mixer,
  17333. msm_routing_put_port_mixer),
  17334. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17335. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17336. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17337. msm_routing_get_port_mixer,
  17338. msm_routing_put_port_mixer),
  17339. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17340. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17341. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17342. msm_routing_get_port_mixer,
  17343. msm_routing_put_port_mixer),
  17344. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17345. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17346. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17347. msm_routing_get_port_mixer,
  17348. msm_routing_put_port_mixer),
  17349. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17351. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17352. msm_routing_get_port_mixer,
  17353. msm_routing_put_port_mixer),
  17354. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17356. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17357. msm_routing_get_port_mixer,
  17358. msm_routing_put_port_mixer),
  17359. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17360. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17361. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17362. msm_routing_get_port_mixer,
  17363. msm_routing_put_port_mixer),
  17364. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17365. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17366. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17367. msm_routing_get_port_mixer,
  17368. msm_routing_put_port_mixer),
  17369. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17371. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17372. msm_routing_get_port_mixer,
  17373. msm_routing_put_port_mixer),
  17374. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17375. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17376. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17377. msm_routing_get_port_mixer,
  17378. msm_routing_put_port_mixer),
  17379. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17381. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17382. msm_routing_get_port_mixer,
  17383. msm_routing_put_port_mixer),
  17384. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17385. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17386. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17387. msm_routing_get_port_mixer,
  17388. msm_routing_put_port_mixer),
  17389. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17391. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17392. msm_routing_get_port_mixer,
  17393. msm_routing_put_port_mixer),
  17394. };
  17395. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  17396. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17397. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17398. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17399. msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17402. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17403. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17404. msm_routing_get_port_mixer,
  17405. msm_routing_put_port_mixer),
  17406. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17407. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17408. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17409. msm_routing_get_port_mixer,
  17410. msm_routing_put_port_mixer),
  17411. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17413. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17414. msm_routing_get_port_mixer,
  17415. msm_routing_put_port_mixer),
  17416. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17418. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17419. msm_routing_get_port_mixer,
  17420. msm_routing_put_port_mixer),
  17421. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17422. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17423. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17424. msm_routing_get_port_mixer,
  17425. msm_routing_put_port_mixer),
  17426. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17427. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17428. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17429. msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17433. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17434. msm_routing_get_port_mixer,
  17435. msm_routing_put_port_mixer),
  17436. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17437. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17438. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17439. msm_routing_get_port_mixer,
  17440. msm_routing_put_port_mixer),
  17441. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17442. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17443. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17444. msm_routing_get_port_mixer,
  17445. msm_routing_put_port_mixer),
  17446. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17447. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17448. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17449. msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17453. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17454. msm_routing_get_port_mixer,
  17455. msm_routing_put_port_mixer),
  17456. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17457. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17458. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17459. msm_routing_get_port_mixer,
  17460. msm_routing_put_port_mixer),
  17461. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17462. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17463. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17464. msm_routing_get_port_mixer,
  17465. msm_routing_put_port_mixer),
  17466. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17467. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17468. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17469. msm_routing_get_port_mixer,
  17470. msm_routing_put_port_mixer),
  17471. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17472. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17473. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17474. msm_routing_get_port_mixer,
  17475. msm_routing_put_port_mixer),
  17476. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17477. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17478. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17479. msm_routing_get_port_mixer,
  17480. msm_routing_put_port_mixer),
  17481. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17482. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17483. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17484. msm_routing_get_port_mixer,
  17485. msm_routing_put_port_mixer),
  17486. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17487. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17488. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17489. msm_routing_get_port_mixer,
  17490. msm_routing_put_port_mixer),
  17491. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17492. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17493. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17494. msm_routing_get_port_mixer,
  17495. msm_routing_put_port_mixer),
  17496. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17497. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17498. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17499. msm_routing_get_port_mixer,
  17500. msm_routing_put_port_mixer),
  17501. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17502. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17503. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17504. msm_routing_get_port_mixer,
  17505. msm_routing_put_port_mixer),
  17506. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17507. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17508. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17509. msm_routing_get_port_mixer,
  17510. msm_routing_put_port_mixer),
  17511. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17512. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17513. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17514. msm_routing_get_port_mixer,
  17515. msm_routing_put_port_mixer),
  17516. };
  17517. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  17518. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17520. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17521. msm_routing_get_port_mixer,
  17522. msm_routing_put_port_mixer),
  17523. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17524. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17525. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17526. msm_routing_get_port_mixer,
  17527. msm_routing_put_port_mixer),
  17528. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17529. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17530. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17531. msm_routing_get_port_mixer,
  17532. msm_routing_put_port_mixer),
  17533. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17535. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17536. msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17540. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17541. msm_routing_get_port_mixer,
  17542. msm_routing_put_port_mixer),
  17543. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17544. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17545. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17546. msm_routing_get_port_mixer,
  17547. msm_routing_put_port_mixer),
  17548. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17550. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17551. msm_routing_get_port_mixer,
  17552. msm_routing_put_port_mixer),
  17553. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17555. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17556. msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17559. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17560. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17561. msm_routing_get_port_mixer,
  17562. msm_routing_put_port_mixer),
  17563. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17565. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17566. msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17570. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17571. msm_routing_get_port_mixer,
  17572. msm_routing_put_port_mixer),
  17573. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17574. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17575. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17576. msm_routing_get_port_mixer,
  17577. msm_routing_put_port_mixer),
  17578. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17579. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17580. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17581. msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17585. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17586. msm_routing_get_port_mixer,
  17587. msm_routing_put_port_mixer),
  17588. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17589. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17590. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17591. msm_routing_get_port_mixer,
  17592. msm_routing_put_port_mixer),
  17593. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17594. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17595. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17596. msm_routing_get_port_mixer,
  17597. msm_routing_put_port_mixer),
  17598. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17599. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17600. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17601. msm_routing_get_port_mixer,
  17602. msm_routing_put_port_mixer),
  17603. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17604. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17605. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17606. msm_routing_get_port_mixer,
  17607. msm_routing_put_port_mixer),
  17608. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17609. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17610. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17611. msm_routing_get_port_mixer,
  17612. msm_routing_put_port_mixer),
  17613. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17614. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17615. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17616. msm_routing_get_port_mixer,
  17617. msm_routing_put_port_mixer),
  17618. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17619. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17620. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17621. msm_routing_get_port_mixer,
  17622. msm_routing_put_port_mixer),
  17623. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17624. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17625. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17626. msm_routing_get_port_mixer,
  17627. msm_routing_put_port_mixer),
  17628. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17629. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17630. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17631. msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17635. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17636. msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. };
  17639. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  17640. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17641. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17642. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17643. msm_routing_get_port_mixer,
  17644. msm_routing_put_port_mixer),
  17645. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17647. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17648. msm_routing_get_port_mixer,
  17649. msm_routing_put_port_mixer),
  17650. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17651. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17652. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17653. msm_routing_get_port_mixer,
  17654. msm_routing_put_port_mixer),
  17655. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17656. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17657. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17658. msm_routing_get_port_mixer,
  17659. msm_routing_put_port_mixer),
  17660. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17661. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17662. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17663. msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17667. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17668. msm_routing_get_port_mixer,
  17669. msm_routing_put_port_mixer),
  17670. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17671. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17672. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17673. msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17677. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17678. msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17681. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17682. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17683. msm_routing_get_port_mixer,
  17684. msm_routing_put_port_mixer),
  17685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17686. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17687. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17688. msm_routing_get_port_mixer,
  17689. msm_routing_put_port_mixer),
  17690. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17691. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17692. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17693. msm_routing_get_port_mixer,
  17694. msm_routing_put_port_mixer),
  17695. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17696. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17697. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17698. msm_routing_get_port_mixer,
  17699. msm_routing_put_port_mixer),
  17700. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17701. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17702. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17703. msm_routing_get_port_mixer,
  17704. msm_routing_put_port_mixer),
  17705. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17706. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17707. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17708. msm_routing_get_port_mixer,
  17709. msm_routing_put_port_mixer),
  17710. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17711. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17712. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17713. msm_routing_get_port_mixer,
  17714. msm_routing_put_port_mixer),
  17715. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17716. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17717. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17718. msm_routing_get_port_mixer,
  17719. msm_routing_put_port_mixer),
  17720. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17721. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17722. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17723. msm_routing_get_port_mixer,
  17724. msm_routing_put_port_mixer),
  17725. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17726. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17727. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17728. msm_routing_get_port_mixer,
  17729. msm_routing_put_port_mixer),
  17730. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17731. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17732. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17733. msm_routing_get_port_mixer,
  17734. msm_routing_put_port_mixer),
  17735. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17736. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17737. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17738. msm_routing_get_port_mixer,
  17739. msm_routing_put_port_mixer),
  17740. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17741. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17742. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17743. msm_routing_get_port_mixer,
  17744. msm_routing_put_port_mixer),
  17745. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17746. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17747. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17748. msm_routing_get_port_mixer,
  17749. msm_routing_put_port_mixer),
  17750. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17751. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17752. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17753. msm_routing_get_port_mixer,
  17754. msm_routing_put_port_mixer),
  17755. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17756. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17757. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17758. msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. };
  17761. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  17762. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17763. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17764. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17765. msm_routing_get_port_mixer,
  17766. msm_routing_put_port_mixer),
  17767. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17768. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17769. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17770. msm_routing_get_port_mixer,
  17771. msm_routing_put_port_mixer),
  17772. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17774. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17775. msm_routing_get_port_mixer,
  17776. msm_routing_put_port_mixer),
  17777. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17779. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17780. msm_routing_get_port_mixer,
  17781. msm_routing_put_port_mixer),
  17782. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17783. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17784. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17785. msm_routing_get_port_mixer,
  17786. msm_routing_put_port_mixer),
  17787. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17788. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17789. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17790. msm_routing_get_port_mixer,
  17791. msm_routing_put_port_mixer),
  17792. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17793. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17794. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17795. msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17799. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17800. msm_routing_get_port_mixer,
  17801. msm_routing_put_port_mixer),
  17802. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17803. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17804. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17805. msm_routing_get_port_mixer,
  17806. msm_routing_put_port_mixer),
  17807. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17808. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17809. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17810. msm_routing_get_port_mixer,
  17811. msm_routing_put_port_mixer),
  17812. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17813. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17814. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17815. msm_routing_get_port_mixer,
  17816. msm_routing_put_port_mixer),
  17817. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17818. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17819. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17820. msm_routing_get_port_mixer,
  17821. msm_routing_put_port_mixer),
  17822. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17823. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17824. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17825. msm_routing_get_port_mixer,
  17826. msm_routing_put_port_mixer),
  17827. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17828. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17829. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17830. msm_routing_get_port_mixer,
  17831. msm_routing_put_port_mixer),
  17832. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17833. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17834. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17835. msm_routing_get_port_mixer,
  17836. msm_routing_put_port_mixer),
  17837. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17838. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17839. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17840. msm_routing_get_port_mixer,
  17841. msm_routing_put_port_mixer),
  17842. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17843. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17844. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17845. msm_routing_get_port_mixer,
  17846. msm_routing_put_port_mixer),
  17847. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17848. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17849. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17850. msm_routing_get_port_mixer,
  17851. msm_routing_put_port_mixer),
  17852. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17853. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17854. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17855. msm_routing_get_port_mixer,
  17856. msm_routing_put_port_mixer),
  17857. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17858. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17859. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17860. msm_routing_get_port_mixer,
  17861. msm_routing_put_port_mixer),
  17862. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17863. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17864. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17865. msm_routing_get_port_mixer,
  17866. msm_routing_put_port_mixer),
  17867. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17868. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17869. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17870. msm_routing_get_port_mixer,
  17871. msm_routing_put_port_mixer),
  17872. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17873. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17874. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17875. msm_routing_get_port_mixer,
  17876. msm_routing_put_port_mixer),
  17877. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17878. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17879. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17880. msm_routing_get_port_mixer,
  17881. msm_routing_put_port_mixer),
  17882. };
  17883. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  17884. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17886. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17887. msm_routing_get_port_mixer,
  17888. msm_routing_put_port_mixer),
  17889. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17890. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17891. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17892. msm_routing_get_port_mixer,
  17893. msm_routing_put_port_mixer),
  17894. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17895. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17896. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17897. msm_routing_get_port_mixer,
  17898. msm_routing_put_port_mixer),
  17899. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17900. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17901. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17902. msm_routing_get_port_mixer,
  17903. msm_routing_put_port_mixer),
  17904. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17906. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17907. msm_routing_get_port_mixer,
  17908. msm_routing_put_port_mixer),
  17909. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17910. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17911. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17912. msm_routing_get_port_mixer,
  17913. msm_routing_put_port_mixer),
  17914. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17915. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17916. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17917. msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17920. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17921. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17922. msm_routing_get_port_mixer,
  17923. msm_routing_put_port_mixer),
  17924. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17925. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17926. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17927. msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17931. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17932. msm_routing_get_port_mixer,
  17933. msm_routing_put_port_mixer),
  17934. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17935. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17936. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17937. msm_routing_get_port_mixer,
  17938. msm_routing_put_port_mixer),
  17939. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17940. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17941. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17942. msm_routing_get_port_mixer,
  17943. msm_routing_put_port_mixer),
  17944. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17945. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17946. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17947. msm_routing_get_port_mixer,
  17948. msm_routing_put_port_mixer),
  17949. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17950. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17951. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17952. msm_routing_get_port_mixer,
  17953. msm_routing_put_port_mixer),
  17954. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17955. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17956. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17957. msm_routing_get_port_mixer,
  17958. msm_routing_put_port_mixer),
  17959. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17960. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17961. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17962. msm_routing_get_port_mixer,
  17963. msm_routing_put_port_mixer),
  17964. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17965. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17966. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17967. msm_routing_get_port_mixer,
  17968. msm_routing_put_port_mixer),
  17969. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17970. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17971. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17972. msm_routing_get_port_mixer,
  17973. msm_routing_put_port_mixer),
  17974. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17975. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17976. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17977. msm_routing_get_port_mixer,
  17978. msm_routing_put_port_mixer),
  17979. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17980. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17981. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17982. msm_routing_get_port_mixer,
  17983. msm_routing_put_port_mixer),
  17984. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17985. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17986. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17987. msm_routing_get_port_mixer,
  17988. msm_routing_put_port_mixer),
  17989. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17990. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17991. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17992. msm_routing_get_port_mixer,
  17993. msm_routing_put_port_mixer),
  17994. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17995. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17996. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17997. msm_routing_get_port_mixer,
  17998. msm_routing_put_port_mixer),
  17999. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18000. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18001. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18002. msm_routing_get_port_mixer,
  18003. msm_routing_put_port_mixer),
  18004. };
  18005. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  18006. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18008. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18013. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18018. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18023. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18028. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18033. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18038. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18043. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18048. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18053. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18058. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18063. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18064. msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18067. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18068. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18069. msm_routing_get_port_mixer,
  18070. msm_routing_put_port_mixer),
  18071. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18072. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18073. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18074. msm_routing_get_port_mixer,
  18075. msm_routing_put_port_mixer),
  18076. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18077. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18078. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18079. msm_routing_get_port_mixer,
  18080. msm_routing_put_port_mixer),
  18081. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18083. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18084. msm_routing_get_port_mixer,
  18085. msm_routing_put_port_mixer),
  18086. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18088. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18089. msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18093. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18094. msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18097. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18098. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18099. msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18103. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18104. msm_routing_get_port_mixer,
  18105. msm_routing_put_port_mixer),
  18106. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18107. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18108. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18109. msm_routing_get_port_mixer,
  18110. msm_routing_put_port_mixer),
  18111. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18112. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18113. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18114. msm_routing_get_port_mixer,
  18115. msm_routing_put_port_mixer),
  18116. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18117. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18118. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18119. msm_routing_get_port_mixer,
  18120. msm_routing_put_port_mixer),
  18121. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18122. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18123. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18124. msm_routing_get_port_mixer,
  18125. msm_routing_put_port_mixer),
  18126. };
  18127. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  18128. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18130. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18135. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18140. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18145. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18150. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18155. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18160. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18165. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18170. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18175. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18180. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18184. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18185. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18186. msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18190. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18191. msm_routing_get_port_mixer,
  18192. msm_routing_put_port_mixer),
  18193. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18194. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18195. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18196. msm_routing_get_port_mixer,
  18197. msm_routing_put_port_mixer),
  18198. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18199. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18200. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18201. msm_routing_get_port_mixer,
  18202. msm_routing_put_port_mixer),
  18203. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18205. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18206. msm_routing_get_port_mixer,
  18207. msm_routing_put_port_mixer),
  18208. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18209. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18210. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18211. msm_routing_get_port_mixer,
  18212. msm_routing_put_port_mixer),
  18213. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18214. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18215. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18216. msm_routing_get_port_mixer,
  18217. msm_routing_put_port_mixer),
  18218. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18219. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18220. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18221. msm_routing_get_port_mixer,
  18222. msm_routing_put_port_mixer),
  18223. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18224. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18225. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18226. msm_routing_get_port_mixer,
  18227. msm_routing_put_port_mixer),
  18228. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18229. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18230. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18231. msm_routing_get_port_mixer,
  18232. msm_routing_put_port_mixer),
  18233. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18234. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18235. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18236. msm_routing_get_port_mixer,
  18237. msm_routing_put_port_mixer),
  18238. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18239. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18240. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18241. msm_routing_get_port_mixer,
  18242. msm_routing_put_port_mixer),
  18243. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18244. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18245. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18246. msm_routing_get_port_mixer,
  18247. msm_routing_put_port_mixer),
  18248. };
  18249. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  18250. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18252. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18253. msm_routing_put_port_mixer),
  18254. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18255. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18256. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18257. msm_routing_put_port_mixer),
  18258. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18259. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18260. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18261. msm_routing_put_port_mixer),
  18262. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18263. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18264. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18265. msm_routing_put_port_mixer),
  18266. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18267. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18268. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18272. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18273. msm_routing_put_port_mixer),
  18274. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18275. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18276. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18277. msm_routing_put_port_mixer),
  18278. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18279. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18280. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18281. msm_routing_put_port_mixer),
  18282. };
  18283. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  18284. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18285. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18286. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18287. msm_routing_put_port_mixer),
  18288. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18289. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18290. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18291. msm_routing_put_port_mixer),
  18292. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18293. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18294. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18295. msm_routing_put_port_mixer),
  18296. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18297. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18298. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18302. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18303. msm_routing_put_port_mixer),
  18304. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18306. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18307. msm_routing_put_port_mixer),
  18308. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18309. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18310. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18311. msm_routing_put_port_mixer),
  18312. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18314. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18315. msm_routing_put_port_mixer),
  18316. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18317. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18318. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18319. msm_routing_put_port_mixer),
  18320. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18322. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18323. msm_routing_put_port_mixer),
  18324. };
  18325. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  18326. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18327. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18328. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18329. msm_routing_put_listen_mixer),
  18330. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18331. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18332. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18333. msm_routing_put_listen_mixer),
  18334. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18336. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18337. msm_routing_put_listen_mixer),
  18338. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18339. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18340. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18341. msm_routing_put_listen_mixer),
  18342. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18343. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18344. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18345. msm_routing_put_listen_mixer),
  18346. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18347. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18348. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18349. msm_routing_put_listen_mixer),
  18350. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18351. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18352. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18353. msm_routing_put_listen_mixer),
  18354. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18355. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18356. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18357. msm_routing_put_listen_mixer),
  18358. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18359. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18360. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18361. msm_routing_put_listen_mixer),
  18362. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18364. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18365. msm_routing_put_listen_mixer),
  18366. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18367. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18368. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18369. msm_routing_put_listen_mixer),
  18370. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18371. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18372. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18373. msm_routing_put_listen_mixer),
  18374. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18375. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18376. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18377. msm_routing_put_listen_mixer),
  18378. };
  18379. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  18380. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18381. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18382. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18383. msm_routing_put_listen_mixer),
  18384. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  18385. SND_SOC_NOPM,
  18386. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18387. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18388. msm_routing_put_listen_mixer),
  18389. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18390. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18391. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18392. msm_routing_put_listen_mixer),
  18393. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18395. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18396. msm_routing_put_listen_mixer),
  18397. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18399. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18400. msm_routing_put_listen_mixer),
  18401. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18403. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18404. msm_routing_put_listen_mixer),
  18405. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18406. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18407. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18408. msm_routing_put_listen_mixer),
  18409. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18410. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18411. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18412. msm_routing_put_listen_mixer),
  18413. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18414. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18415. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18416. msm_routing_put_listen_mixer),
  18417. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18419. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18420. msm_routing_put_listen_mixer),
  18421. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18423. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18424. msm_routing_put_listen_mixer),
  18425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18427. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18428. msm_routing_put_listen_mixer),
  18429. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18430. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18431. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18432. msm_routing_put_listen_mixer),
  18433. };
  18434. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  18435. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18436. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18437. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18438. msm_routing_put_listen_mixer),
  18439. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18440. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18441. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18442. msm_routing_put_listen_mixer),
  18443. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18444. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18445. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18446. msm_routing_put_listen_mixer),
  18447. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18449. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18450. msm_routing_put_listen_mixer),
  18451. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18453. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18454. msm_routing_put_listen_mixer),
  18455. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18456. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18457. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18458. msm_routing_put_listen_mixer),
  18459. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18460. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18461. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18462. msm_routing_put_listen_mixer),
  18463. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18464. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18465. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18466. msm_routing_put_listen_mixer),
  18467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18469. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18470. msm_routing_put_listen_mixer),
  18471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18473. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18474. msm_routing_put_listen_mixer),
  18475. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18476. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18477. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18478. msm_routing_put_listen_mixer),
  18479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18481. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18482. msm_routing_put_listen_mixer),
  18483. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18484. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18485. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18486. msm_routing_put_listen_mixer),
  18487. };
  18488. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  18489. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18491. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18492. msm_routing_put_listen_mixer),
  18493. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18494. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18495. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18496. msm_routing_put_listen_mixer),
  18497. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18498. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18499. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18500. msm_routing_put_listen_mixer),
  18501. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18502. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18503. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18504. msm_routing_put_listen_mixer),
  18505. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18506. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18507. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18508. msm_routing_put_listen_mixer),
  18509. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18510. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18511. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18512. msm_routing_put_listen_mixer),
  18513. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18514. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18515. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18516. msm_routing_put_listen_mixer),
  18517. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18518. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18519. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18520. msm_routing_put_listen_mixer),
  18521. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18522. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18523. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18524. msm_routing_put_listen_mixer),
  18525. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18526. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18527. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18528. msm_routing_put_listen_mixer),
  18529. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18530. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18531. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18532. msm_routing_put_listen_mixer),
  18533. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18534. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18535. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18536. msm_routing_put_listen_mixer),
  18537. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18538. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18539. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18540. msm_routing_put_listen_mixer),
  18541. };
  18542. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  18543. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18544. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18545. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18546. msm_routing_put_listen_mixer),
  18547. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18548. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18549. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18550. msm_routing_put_listen_mixer),
  18551. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18552. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18553. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18554. msm_routing_put_listen_mixer),
  18555. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18557. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18558. msm_routing_put_listen_mixer),
  18559. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18560. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18561. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18562. msm_routing_put_listen_mixer),
  18563. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18565. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18566. msm_routing_put_listen_mixer),
  18567. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18568. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18569. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18570. msm_routing_put_listen_mixer),
  18571. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18572. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18573. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18574. msm_routing_put_listen_mixer),
  18575. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18576. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18577. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18578. msm_routing_put_listen_mixer),
  18579. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18580. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18581. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18582. msm_routing_put_listen_mixer),
  18583. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18585. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18586. msm_routing_put_listen_mixer),
  18587. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18588. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18589. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18590. msm_routing_put_listen_mixer),
  18591. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18592. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18593. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18594. msm_routing_put_listen_mixer),
  18595. };
  18596. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  18597. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18598. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18599. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18600. msm_routing_put_listen_mixer),
  18601. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18602. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18603. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18604. msm_routing_put_listen_mixer),
  18605. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18606. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18607. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18608. msm_routing_put_listen_mixer),
  18609. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18610. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18611. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18612. msm_routing_put_listen_mixer),
  18613. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18614. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18615. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18616. msm_routing_put_listen_mixer),
  18617. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18619. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18620. msm_routing_put_listen_mixer),
  18621. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18623. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18624. msm_routing_put_listen_mixer),
  18625. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18627. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18628. msm_routing_put_listen_mixer),
  18629. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18630. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18631. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18632. msm_routing_put_listen_mixer),
  18633. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18634. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18635. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18636. msm_routing_put_listen_mixer),
  18637. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18639. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18640. msm_routing_put_listen_mixer),
  18641. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18643. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18644. msm_routing_put_listen_mixer),
  18645. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18647. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18648. msm_routing_put_listen_mixer),
  18649. };
  18650. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  18651. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18653. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18654. msm_routing_put_listen_mixer),
  18655. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18657. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18658. msm_routing_put_listen_mixer),
  18659. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18660. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18661. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18662. msm_routing_put_listen_mixer),
  18663. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18664. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18665. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18666. msm_routing_put_listen_mixer),
  18667. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18668. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18669. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18670. msm_routing_put_listen_mixer),
  18671. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18673. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18674. msm_routing_put_listen_mixer),
  18675. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18677. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18678. msm_routing_put_listen_mixer),
  18679. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18680. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18681. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18682. msm_routing_put_listen_mixer),
  18683. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18684. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18685. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18686. msm_routing_put_listen_mixer),
  18687. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18688. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18689. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18690. msm_routing_put_listen_mixer),
  18691. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18693. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18694. msm_routing_put_listen_mixer),
  18695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18697. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18698. msm_routing_put_listen_mixer),
  18699. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18700. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18701. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18702. msm_routing_put_listen_mixer),
  18703. };
  18704. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  18705. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18707. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18708. msm_routing_put_listen_mixer),
  18709. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18710. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18711. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18712. msm_routing_put_listen_mixer),
  18713. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18714. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18715. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18716. msm_routing_put_listen_mixer),
  18717. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18719. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18720. msm_routing_put_listen_mixer),
  18721. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18722. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18723. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18724. msm_routing_put_listen_mixer),
  18725. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18726. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18727. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18728. msm_routing_put_listen_mixer),
  18729. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18731. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18732. msm_routing_put_listen_mixer),
  18733. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18735. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18736. msm_routing_put_listen_mixer),
  18737. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18738. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18739. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18740. msm_routing_put_listen_mixer),
  18741. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18742. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18743. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18744. msm_routing_put_listen_mixer),
  18745. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18746. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18747. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18748. msm_routing_put_listen_mixer),
  18749. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18751. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18752. msm_routing_put_listen_mixer),
  18753. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18755. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18756. msm_routing_put_listen_mixer),
  18757. };
  18758. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  18759. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18760. 0, 1, 0, msm_routing_get_switch_mixer,
  18761. msm_routing_put_switch_mixer);
  18762. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  18763. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18764. 0, 1, 0, msm_routing_get_switch_mixer,
  18765. msm_routing_put_switch_mixer);
  18766. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  18767. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18768. 0, 1, 0, msm_routing_get_switch_mixer,
  18769. msm_routing_put_switch_mixer);
  18770. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  18771. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18772. 0, 1, 0, msm_routing_get_switch_mixer,
  18773. msm_routing_put_switch_mixer);
  18774. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  18775. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18776. 0, 1, 0, msm_routing_get_switch_mixer,
  18777. msm_routing_put_switch_mixer);
  18778. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  18779. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18780. 0, 1, 0, msm_routing_get_switch_mixer,
  18781. msm_routing_put_switch_mixer);
  18782. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  18783. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18784. 0, 1, 0, msm_routing_get_switch_mixer,
  18785. msm_routing_put_switch_mixer);
  18786. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  18787. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18788. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  18789. msm_routing_put_fm_pcmrx_switch_mixer);
  18790. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  18791. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18792. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  18793. msm_routing_put_int0_mi2s_switch_mixer);
  18794. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  18795. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18796. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  18797. msm_routing_put_int4_mi2s_switch_mixer);
  18798. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  18799. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18800. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  18801. msm_routing_put_pri_mi2s_switch_mixer);
  18802. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  18803. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18804. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  18805. msm_routing_put_sec_mi2s_switch_mixer);
  18806. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  18807. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18808. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  18809. msm_routing_put_tert_mi2s_switch_mixer);
  18810. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  18811. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18812. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  18813. msm_routing_put_quat_mi2s_switch_mixer);
  18814. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  18815. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18816. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  18817. msm_routing_put_quin_mi2s_switch_mixer);
  18818. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  18819. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18820. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  18821. msm_routing_put_sen_mi2s_switch_mixer);
  18822. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  18823. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18824. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18825. msm_routing_put_hfp_switch_mixer);
  18826. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  18827. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18828. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18829. msm_routing_put_hfp_switch_mixer);
  18830. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  18831. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18832. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18833. msm_routing_put_hfp_switch_mixer);
  18834. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  18835. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18836. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18837. msm_routing_put_hfp_switch_mixer);
  18838. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  18839. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18840. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  18841. msm_routing_put_usb_switch_mixer);
  18842. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  18843. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18844. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  18845. msm_routing_a2dp_switch_mixer_put);
  18846. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  18847. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18848. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  18849. msm_routing_sco_switch_mixer_put);
  18850. static const struct soc_enum lsm_port_enum =
  18851. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  18852. static const char * const lsm_func_text[] = {
  18853. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  18854. };
  18855. static const struct soc_enum lsm_func_enum =
  18856. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  18857. static const struct snd_kcontrol_new lsm_controls[] = {
  18858. /* kcontrol of lsm_function */
  18859. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18860. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18861. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18862. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18863. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18864. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18865. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18866. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18867. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18868. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18869. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18870. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18871. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18872. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18873. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18874. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18875. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18876. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18877. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18878. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18879. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18880. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18881. /* kcontrol of lsm_port */
  18882. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  18883. msm_routing_lsm_port_get,
  18884. msm_routing_lsm_port_put),
  18885. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  18886. msm_routing_lsm_port_get,
  18887. msm_routing_lsm_port_put),
  18888. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  18889. msm_routing_lsm_port_get,
  18890. msm_routing_lsm_port_put),
  18891. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  18892. msm_routing_lsm_port_get,
  18893. msm_routing_lsm_port_put),
  18894. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  18895. msm_routing_lsm_port_get,
  18896. msm_routing_lsm_port_put),
  18897. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  18898. msm_routing_lsm_port_get,
  18899. msm_routing_lsm_port_put),
  18900. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  18901. msm_routing_lsm_port_get,
  18902. msm_routing_lsm_port_put),
  18903. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  18904. msm_routing_lsm_port_get,
  18905. msm_routing_lsm_port_put),
  18906. };
  18907. static const char * const aanc_slim_0_rx_text[] = {
  18908. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  18909. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  18910. };
  18911. static const struct soc_enum aanc_slim_0_rx_enum =
  18912. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  18913. aanc_slim_0_rx_text);
  18914. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  18915. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  18916. msm_routing_slim_0_rx_aanc_mux_get,
  18917. msm_routing_slim_0_rx_aanc_mux_put)
  18918. };
  18919. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  18920. struct snd_ctl_elem_value *ucontrol)
  18921. {
  18922. ucontrol->value.integer.value[0] = aanc_level;
  18923. return 0;
  18924. }
  18925. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  18926. struct snd_ctl_elem_value *ucontrol)
  18927. {
  18928. int ret = 0;
  18929. mutex_lock(&routing_lock);
  18930. aanc_level = ucontrol->value.integer.value[0];
  18931. pr_debug("%s: value: %ld\n",
  18932. __func__, ucontrol->value.integer.value[0]);
  18933. ret = afe_set_aanc_noise_level(aanc_level);
  18934. mutex_unlock(&routing_lock);
  18935. return ret;
  18936. }
  18937. static const struct snd_kcontrol_new aanc_noise_level[] = {
  18938. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  18939. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  18940. };
  18941. static int msm_routing_get_stereo_to_custom_stereo_control(
  18942. struct snd_kcontrol *kcontrol,
  18943. struct snd_ctl_elem_value *ucontrol)
  18944. {
  18945. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  18946. return 0;
  18947. }
  18948. static int msm_routing_put_stereo_to_custom_stereo_control(
  18949. struct snd_kcontrol *kcontrol,
  18950. struct snd_ctl_elem_value *ucontrol)
  18951. {
  18952. int flag = 0, i = 0, rc = 0, idx = 0;
  18953. int be_index = 0, port_id, topo_id;
  18954. unsigned int session_id = 0;
  18955. uint16_t op_FL_ip_FL_weight = 0;
  18956. uint16_t op_FL_ip_FR_weight = 0;
  18957. uint16_t op_FR_ip_FL_weight = 0;
  18958. uint16_t op_FR_ip_FR_weight = 0;
  18959. flag = ucontrol->value.integer.value[0];
  18960. pr_debug("%s E flag %d\n", __func__, flag);
  18961. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  18962. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  18963. __func__, is_custom_stereo_on, flag);
  18964. return 0;
  18965. }
  18966. is_custom_stereo_on = flag ? true : false;
  18967. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  18968. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  18969. port_id = msm_bedais[be_index].port_id;
  18970. if (!msm_bedais[be_index].active)
  18971. continue;
  18972. if ((port_id != SLIMBUS_0_RX) &&
  18973. (port_id != RT_PROXY_PORT_001_RX) &&
  18974. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  18975. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  18976. continue;
  18977. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  18978. MSM_FRONTEND_DAI_MM_SIZE) {
  18979. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  18980. LEGACY_PCM_MODE)
  18981. goto skip_send_custom_stereo;
  18982. session_id =
  18983. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  18984. if (is_custom_stereo_on) {
  18985. op_FL_ip_FL_weight =
  18986. Q14_GAIN_ZERO_POINT_FIVE;
  18987. op_FL_ip_FR_weight =
  18988. Q14_GAIN_ZERO_POINT_FIVE;
  18989. op_FR_ip_FL_weight =
  18990. Q14_GAIN_ZERO_POINT_FIVE;
  18991. op_FR_ip_FR_weight =
  18992. Q14_GAIN_ZERO_POINT_FIVE;
  18993. } else {
  18994. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  18995. op_FL_ip_FR_weight = 0;
  18996. op_FR_ip_FL_weight = 0;
  18997. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  18998. }
  18999. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19000. unsigned long copp =
  19001. session_copp_map[i]
  19002. [SESSION_TYPE_RX][be_index];
  19003. if (!test_bit(idx, &copp))
  19004. goto skip_send_custom_stereo;
  19005. topo_id = adm_get_topology_for_port_copp_idx(
  19006. msm_bedais[be_index].port_id, idx);
  19007. if (topo_id < 0)
  19008. pr_debug("%s:Err:custom stereo topo %d",
  19009. __func__, topo_id);
  19010. pr_debug("idx %d\n", idx);
  19011. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  19012. rc = msm_ds2_dap_set_custom_stereo_onoff
  19013. (msm_bedais[be_index].port_id,
  19014. idx, is_custom_stereo_on);
  19015. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  19016. rc = dolby_dap_set_custom_stereo_onoff(
  19017. msm_bedais[be_index].port_id,
  19018. idx, is_custom_stereo_on);
  19019. else
  19020. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  19021. (msm_bedais[be_index].port_id,
  19022. idx, session_id,
  19023. op_FL_ip_FL_weight,
  19024. op_FL_ip_FR_weight,
  19025. op_FR_ip_FL_weight,
  19026. op_FR_ip_FR_weight);
  19027. if (rc < 0)
  19028. skip_send_custom_stereo:
  19029. pr_err("%s: err setting custom stereo\n",
  19030. __func__);
  19031. }
  19032. }
  19033. }
  19034. return 0;
  19035. }
  19036. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  19037. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  19038. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  19039. msm_routing_put_stereo_to_custom_stereo_control),
  19040. };
  19041. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19042. struct snd_ctl_elem_value *ucontrol)
  19043. {
  19044. return 0;
  19045. }
  19046. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19047. struct snd_ctl_elem_value *ucontrol)
  19048. {
  19049. int i = 0, j;
  19050. int num_app_types = ucontrol->value.integer.value[i++];
  19051. pr_debug("%s\n", __func__);
  19052. memset(app_type_cfg, 0, MAX_APP_TYPES*
  19053. sizeof(struct msm_pcm_routing_app_type_data));
  19054. if (num_app_types > MAX_APP_TYPES) {
  19055. pr_err("%s: number of app types exceed the max supported\n",
  19056. __func__);
  19057. return -EINVAL;
  19058. }
  19059. for (j = 0; j < num_app_types; j++) {
  19060. app_type_cfg[j].app_type =
  19061. ucontrol->value.integer.value[i++];
  19062. app_type_cfg[j].sample_rate =
  19063. ucontrol->value.integer.value[i++];
  19064. app_type_cfg[j].bit_width =
  19065. ucontrol->value.integer.value[i++];
  19066. }
  19067. return 0;
  19068. }
  19069. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  19070. struct snd_ctl_elem_value *ucontrol)
  19071. {
  19072. int j, fe_id, be_id, port_type;
  19073. int ret = 0;
  19074. unsigned long copp;
  19075. struct msm_pcm_routing_bdai_data *bedai;
  19076. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  19077. SESSION_TYPE_RX;
  19078. int app_type = ucontrol->value.integer.value[1];
  19079. int gain = (ucontrol->value.integer.value[2] +
  19080. ucontrol->value.integer.value[3])/2;
  19081. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  19082. MSM_AFE_PORT_TYPE_TX;
  19083. mutex_lock(&routing_lock);
  19084. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  19085. if (is_be_dai_extproc(be_id))
  19086. continue;
  19087. bedai = &msm_bedais[be_id];
  19088. if (afe_get_port_type(bedai->port_id) != port_type)
  19089. continue;
  19090. if (!bedai->active)
  19091. continue;
  19092. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  19093. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  19094. continue;
  19095. if (app_type !=
  19096. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  19097. continue;
  19098. copp = session_copp_map[fe_id][dir][be_id];
  19099. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  19100. if (!test_bit(j, &copp))
  19101. continue;
  19102. ret |= adm_set_volume(bedai->port_id, j, gain);
  19103. }
  19104. }
  19105. }
  19106. mutex_unlock(&routing_lock);
  19107. return ret ? -EINVAL : 0;
  19108. }
  19109. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  19110. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  19111. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  19112. msm_routing_put_app_type_cfg_control),
  19113. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  19114. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  19115. };
  19116. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  19117. struct snd_ctl_elem_value *ucontrol)
  19118. {
  19119. int copp_idx, fe_id, be_id, port_type;
  19120. int ret = 0;
  19121. unsigned long copp;
  19122. struct msm_pcm_routing_bdai_data *bedai;
  19123. u8 *packed_params = NULL;
  19124. struct param_hdr_v3 param_hdr;
  19125. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  19126. sizeof(uint32_t));
  19127. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  19128. SESSION_TYPE_RX;
  19129. int app_type = ucontrol->value.integer.value[1];
  19130. int module_id = ucontrol->value.integer.value[2];
  19131. int instance_id = ucontrol->value.integer.value[3];
  19132. int param_id = ucontrol->value.integer.value[4];
  19133. int param_value = ucontrol->value.integer.value[5];
  19134. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  19135. MSM_AFE_PORT_TYPE_TX;
  19136. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  19137. __func__, app_type, module_id,
  19138. instance_id, param_id, param_value);
  19139. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  19140. if (!packed_params)
  19141. return -ENOMEM;
  19142. memset(&param_hdr, 0, sizeof(param_hdr));
  19143. param_hdr.module_id = module_id;
  19144. param_hdr.instance_id = instance_id;
  19145. param_hdr.param_id = param_id;
  19146. param_hdr.param_size = sizeof(uint32_t);
  19147. packed_param_size = 0;
  19148. mutex_lock(&routing_lock);
  19149. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  19150. if (is_be_dai_extproc(be_id))
  19151. continue;
  19152. bedai = &msm_bedais[be_id];
  19153. if (afe_get_port_type(bedai->port_id) != port_type)
  19154. continue;
  19155. if (!bedai->active)
  19156. continue;
  19157. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  19158. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  19159. continue;
  19160. if (app_type !=
  19161. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  19162. continue;
  19163. copp = session_copp_map[fe_id][dir][be_id];
  19164. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  19165. copp_idx++) {
  19166. if (!test_bit(copp_idx, &copp))
  19167. continue;
  19168. ret = q6common_pack_pp_params(packed_params,
  19169. &param_hdr,
  19170. (u8 *) &param_value,
  19171. &packed_param_size);
  19172. if (ret) {
  19173. pr_err("%s: Failed to pack params, error %d\n",
  19174. __func__, ret);
  19175. goto done;
  19176. }
  19177. ret = adm_set_pp_params(bedai->port_id,
  19178. copp_idx, NULL,
  19179. packed_params,
  19180. packed_param_size);
  19181. if (ret) {
  19182. pr_err("%s: Setting param failed with err=%d\n",
  19183. __func__, ret);
  19184. ret = -EINVAL;
  19185. goto done;
  19186. }
  19187. }
  19188. }
  19189. }
  19190. done:
  19191. mutex_unlock(&routing_lock);
  19192. kfree(packed_params);
  19193. return ret;
  19194. }
  19195. static const struct snd_kcontrol_new module_cfg_controls[] = {
  19196. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  19197. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  19198. };
  19199. static int msm_routing_get_lsm_app_type_cfg_control(
  19200. struct snd_kcontrol *kcontrol,
  19201. struct snd_ctl_elem_value *ucontrol)
  19202. {
  19203. int shift = ((struct soc_multi_mixer_control *)
  19204. kcontrol->private_value)->shift;
  19205. int i = 0, j = 0;
  19206. ucontrol->value.integer.value[i] = num_app_cfg_types;
  19207. for (j = 0; j < num_app_cfg_types; ++j) {
  19208. ucontrol->value.integer.value[++i] =
  19209. lsm_app_type_cfg[j].app_type;
  19210. ucontrol->value.integer.value[++i] =
  19211. lsm_app_type_cfg[j].sample_rate;
  19212. ucontrol->value.integer.value[++i] =
  19213. lsm_app_type_cfg[j].bit_width;
  19214. if (shift == 1)
  19215. ucontrol->value.integer.value[++i] =
  19216. lsm_app_type_cfg[j].num_out_channels;
  19217. }
  19218. return 0;
  19219. }
  19220. static int msm_routing_put_lsm_app_type_cfg_control(
  19221. struct snd_kcontrol *kcontrol,
  19222. struct snd_ctl_elem_value *ucontrol)
  19223. {
  19224. int shift = ((struct soc_multi_mixer_control *)
  19225. kcontrol->private_value)->shift;
  19226. int i = 0, j;
  19227. num_app_cfg_types = ucontrol->value.integer.value[i++];
  19228. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  19229. sizeof(struct msm_pcm_routing_app_type_data));
  19230. if (num_app_cfg_types > MAX_APP_TYPES) {
  19231. pr_err("%s: number of app types exceed the max supported\n",
  19232. __func__);
  19233. return -EINVAL;
  19234. }
  19235. for (j = 0; j < num_app_cfg_types; j++) {
  19236. lsm_app_type_cfg[j].app_type =
  19237. ucontrol->value.integer.value[i++];
  19238. lsm_app_type_cfg[j].sample_rate =
  19239. ucontrol->value.integer.value[i++];
  19240. lsm_app_type_cfg[j].bit_width =
  19241. ucontrol->value.integer.value[i++];
  19242. /* Shift of 1 indicates this is V2 mixer control */
  19243. if (shift == 1)
  19244. lsm_app_type_cfg[j].num_out_channels =
  19245. ucontrol->value.integer.value[i++];
  19246. }
  19247. return 0;
  19248. }
  19249. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  19250. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  19251. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  19252. msm_routing_put_lsm_app_type_cfg_control),
  19253. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  19254. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  19255. msm_routing_put_lsm_app_type_cfg_control),
  19256. };
  19257. static int msm_routing_get_use_ds1_or_ds2_control(
  19258. struct snd_kcontrol *kcontrol,
  19259. struct snd_ctl_elem_value *ucontrol)
  19260. {
  19261. ucontrol->value.integer.value[0] = is_ds2_on;
  19262. return 0;
  19263. }
  19264. static int msm_routing_put_use_ds1_or_ds2_control(
  19265. struct snd_kcontrol *kcontrol,
  19266. struct snd_ctl_elem_value *ucontrol)
  19267. {
  19268. is_ds2_on = ucontrol->value.integer.value[0];
  19269. return 0;
  19270. }
  19271. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  19272. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  19273. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  19274. msm_routing_put_use_ds1_or_ds2_control),
  19275. };
  19276. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  19277. struct snd_ctl_elem_value *ucontrol) {
  19278. int rc = 0;
  19279. int be_idx = 0;
  19280. char *param_value;
  19281. int *update_param_value;
  19282. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  19283. struct param_hdr_v3 param_hdr;
  19284. param_value = kzalloc(param_size, GFP_KERNEL);
  19285. if (!param_value)
  19286. return -ENOMEM;
  19287. memset(&param_hdr, 0, sizeof(param_hdr));
  19288. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  19289. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  19290. break;
  19291. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  19292. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  19293. param_hdr.instance_id = INSTANCE_ID_0;
  19294. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  19295. param_hdr.param_size = param_size;
  19296. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  19297. NULL, &param_hdr, (u8 *) param_value);
  19298. if (rc) {
  19299. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  19300. kfree(param_value);
  19301. return -EINVAL;
  19302. }
  19303. update_param_value = (int *)param_value;
  19304. ucontrol->value.integer.value[0] = update_param_value[0];
  19305. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  19306. __func__, update_param_value[0]);
  19307. }
  19308. kfree(param_value);
  19309. return 0;
  19310. }
  19311. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  19312. struct snd_ctl_elem_value *ucontrol)
  19313. {
  19314. voc_session_id = ucontrol->value.integer.value[0];
  19315. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  19316. return 0;
  19317. }
  19318. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  19319. struct snd_ctl_elem_value *ucontrol)
  19320. {
  19321. ucontrol->value.integer.value[0] = voc_session_id;
  19322. return 0;
  19323. }
  19324. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  19325. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  19326. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  19327. msm_voc_session_id_put),
  19328. };
  19329. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  19330. struct snd_ctl_elem_info *uinfo)
  19331. {
  19332. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19333. uinfo->count = sizeof(struct sound_focus_param);
  19334. return 0;
  19335. }
  19336. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  19337. struct snd_ctl_elem_value *ucontrol)
  19338. {
  19339. int ret = 0;
  19340. struct sound_focus_param soundFocusData;
  19341. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  19342. sizeof(struct sound_focus_param));
  19343. ret = voc_set_sound_focus(soundFocusData);
  19344. if (ret) {
  19345. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  19346. __func__, ret);
  19347. ret = -EINVAL;
  19348. }
  19349. return ret;
  19350. }
  19351. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  19352. struct snd_ctl_elem_value *ucontrol)
  19353. {
  19354. int ret = 0;
  19355. struct sound_focus_param soundFocusData;
  19356. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  19357. ret = voc_get_sound_focus(&soundFocusData);
  19358. if (ret) {
  19359. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  19360. __func__, ret);
  19361. ret = -EINVAL;
  19362. goto done;
  19363. }
  19364. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  19365. sizeof(struct sound_focus_param));
  19366. done:
  19367. return ret;
  19368. }
  19369. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  19370. struct snd_ctl_elem_info *uinfo)
  19371. {
  19372. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19373. uinfo->count = sizeof(struct source_tracking_param);
  19374. return 0;
  19375. }
  19376. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  19377. struct snd_ctl_elem_value *ucontrol)
  19378. {
  19379. int ret = 0;
  19380. struct source_tracking_param sourceTrackingData;
  19381. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  19382. ret = voc_get_source_tracking(&sourceTrackingData);
  19383. if (ret) {
  19384. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  19385. __func__, ret);
  19386. ret = -EINVAL;
  19387. goto done;
  19388. }
  19389. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  19390. sizeof(struct source_tracking_param));
  19391. done:
  19392. return ret;
  19393. }
  19394. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  19395. int *copp_idx)
  19396. {
  19397. int i, idx, be_idx;
  19398. int ret = 0;
  19399. unsigned long copp;
  19400. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  19401. ret = q6audio_validate_port(port_id);
  19402. if (ret < 0) {
  19403. pr_err("%s: port validation failed id 0x%x ret %d\n",
  19404. __func__, port_id, ret);
  19405. ret = -EINVAL;
  19406. goto done;
  19407. }
  19408. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19409. if (msm_bedais[be_idx].port_id == port_id)
  19410. break;
  19411. }
  19412. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19413. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  19414. ret = -EINVAL;
  19415. goto done;
  19416. }
  19417. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19418. MSM_FRONTEND_DAI_MAX) {
  19419. if (!(is_mm_lsm_fe_id(i) &&
  19420. route_check_fe_id_adm_support(i)))
  19421. continue;
  19422. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19423. copp = session_copp_map[i]
  19424. [session_type][be_idx];
  19425. if (test_bit(idx, &copp))
  19426. break;
  19427. }
  19428. if (idx >= MAX_COPPS_PER_PORT)
  19429. continue;
  19430. else
  19431. break;
  19432. }
  19433. if (i >= MSM_FRONTEND_DAI_MAX) {
  19434. pr_debug("%s: Invalid FE, exiting\n", __func__);
  19435. ret = -EINVAL;
  19436. goto done;
  19437. }
  19438. *copp_idx = idx;
  19439. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  19440. done:
  19441. return ret;
  19442. }
  19443. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  19444. const char *prefix, int *port_id)
  19445. {
  19446. int ret = 0;
  19447. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  19448. /*
  19449. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  19450. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  19451. * and compare the string with the backend name to derive the port id.
  19452. */
  19453. if (!strcmp(kcontrol->id.name + strlen(prefix),
  19454. "SLIMBUS_0")) {
  19455. *port_id = SLIMBUS_0_TX;
  19456. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19457. "TERT_MI2S")) {
  19458. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  19459. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19460. "INT3_MI2S")) {
  19461. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  19462. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19463. "VA_CDC_DMA_TX_0")) {
  19464. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  19465. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19466. "TX_CDC_DMA_TX_3")) {
  19467. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  19468. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19469. "QUIN_TDM_TX_0")) {
  19470. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  19471. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19472. "PRIMARY_TDM")) {
  19473. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  19474. } else {
  19475. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  19476. __func__, kcontrol->id.name);
  19477. ret = -EINVAL;
  19478. goto done;
  19479. }
  19480. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  19481. __func__, kcontrol->id.name, *port_id);
  19482. done:
  19483. return ret;
  19484. }
  19485. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  19486. struct snd_ctl_elem_value *ucontrol)
  19487. {
  19488. int ret = 0;
  19489. struct sound_focus_param soundFocusData;
  19490. int port_id, copp_idx;
  19491. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19492. "Sound Focus Audio Tx ", &port_id);
  19493. if (ret != 0) {
  19494. pr_err("%s: Error in deriving port id, err=%d\n",
  19495. __func__, ret);
  19496. ret = -EINVAL;
  19497. goto done;
  19498. }
  19499. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19500. &copp_idx);
  19501. if (ret) {
  19502. pr_err("%s: Could not get copp idx for port_id=%d\n",
  19503. __func__, port_id);
  19504. ret = -EINVAL;
  19505. goto done;
  19506. }
  19507. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  19508. sizeof(struct sound_focus_param));
  19509. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  19510. if (ret) {
  19511. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  19512. __func__, ret);
  19513. ret = -EINVAL;
  19514. goto done;
  19515. }
  19516. done:
  19517. return ret;
  19518. }
  19519. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  19520. struct snd_ctl_elem_value *ucontrol)
  19521. {
  19522. int ret = 0;
  19523. struct sound_focus_param soundFocusData;
  19524. int port_id, copp_idx;
  19525. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19526. "Sound Focus Audio Tx ", &port_id);
  19527. if (ret) {
  19528. pr_err("%s: Error in deriving port id, err=%d\n",
  19529. __func__, ret);
  19530. ret = -EINVAL;
  19531. goto done;
  19532. }
  19533. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19534. &copp_idx);
  19535. if (ret) {
  19536. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  19537. __func__, port_id);
  19538. ret = -EINVAL;
  19539. goto done;
  19540. }
  19541. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  19542. if (ret) {
  19543. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  19544. __func__, ret);
  19545. ret = -EINVAL;
  19546. goto done;
  19547. }
  19548. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  19549. sizeof(struct sound_focus_param));
  19550. done:
  19551. return ret;
  19552. }
  19553. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  19554. struct snd_ctl_elem_value *ucontrol)
  19555. {
  19556. int ret = 0;
  19557. struct source_tracking_param sourceTrackingData;
  19558. int port_id, copp_idx;
  19559. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19560. "Source Tracking Audio Tx ", &port_id);
  19561. if (ret) {
  19562. pr_err("%s: Error in deriving port id, err=%d\n",
  19563. __func__, ret);
  19564. ret = -EINVAL;
  19565. goto done;
  19566. }
  19567. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19568. &copp_idx);
  19569. if (ret) {
  19570. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  19571. __func__, port_id);
  19572. ret = -EINVAL;
  19573. goto done;
  19574. }
  19575. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  19576. if (ret) {
  19577. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  19578. __func__, ret);
  19579. ret = -EINVAL;
  19580. goto done;
  19581. }
  19582. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  19583. sizeof(struct source_tracking_param));
  19584. done:
  19585. return ret;
  19586. }
  19587. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  19588. struct snd_ctl_elem_info *uinfo)
  19589. {
  19590. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19591. uinfo->count = sizeof(struct doa_tracking_mon_param);
  19592. return 0;
  19593. }
  19594. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  19595. struct snd_ctl_elem_value *ucontrol)
  19596. {
  19597. int ret = 0;
  19598. struct doa_tracking_mon_param doa_tracking_data;
  19599. int port_id, copp_idx;
  19600. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  19601. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19602. "Doa Tracking Monitor Listen ", &port_id);
  19603. if (ret) {
  19604. pr_err("%s: Error in deriving port id, err=%d\n",
  19605. __func__, ret);
  19606. ret = -EINVAL;
  19607. goto done;
  19608. }
  19609. /*
  19610. * If copp id exists for given port id, query adm to get doa data.
  19611. * Else query afe for doa tracking params.
  19612. * This is to support in cases where LSM directly connects to
  19613. * AFE for FFNS.
  19614. */
  19615. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19616. &copp_idx);
  19617. if (!ret)
  19618. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  19619. &doa_tracking_data);
  19620. else
  19621. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  19622. if (ret) {
  19623. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  19624. __func__, ret);
  19625. ret = -EINVAL;
  19626. goto done;
  19627. }
  19628. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  19629. sizeof(struct doa_tracking_mon_param));
  19630. done:
  19631. return ret;
  19632. }
  19633. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  19634. {
  19635. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19636. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19637. .name = "Sound Focus Voice Tx SLIMBUS_0",
  19638. .info = msm_sound_focus_info,
  19639. .get = msm_voice_sound_focus_get,
  19640. .put = msm_voice_sound_focus_put,
  19641. },
  19642. {
  19643. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19644. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19645. .name = "Source Tracking Voice Tx SLIMBUS_0",
  19646. .info = msm_source_tracking_info,
  19647. .get = msm_voice_source_tracking_get,
  19648. },
  19649. {
  19650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19652. .name = "Sound Focus Audio Tx SLIMBUS_0",
  19653. .info = msm_sound_focus_info,
  19654. .get = msm_audio_sound_focus_get,
  19655. .put = msm_audio_sound_focus_put,
  19656. },
  19657. {
  19658. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19660. .name = "Source Tracking Audio Tx SLIMBUS_0",
  19661. .info = msm_source_tracking_info,
  19662. .get = msm_audio_source_tracking_get,
  19663. },
  19664. {
  19665. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19666. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19667. .name = "Sound Focus Voice Tx TERT_MI2S",
  19668. .info = msm_sound_focus_info,
  19669. .get = msm_voice_sound_focus_get,
  19670. .put = msm_voice_sound_focus_put,
  19671. },
  19672. {
  19673. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19674. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19675. .name = "Source Tracking Voice Tx TERT_MI2S",
  19676. .info = msm_source_tracking_info,
  19677. .get = msm_voice_source_tracking_get,
  19678. },
  19679. {
  19680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19682. .name = "Sound Focus Audio Tx TERT_MI2S",
  19683. .info = msm_sound_focus_info,
  19684. .get = msm_audio_sound_focus_get,
  19685. .put = msm_audio_sound_focus_put,
  19686. },
  19687. {
  19688. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19690. .name = "Source Tracking Audio Tx TERT_MI2S",
  19691. .info = msm_source_tracking_info,
  19692. .get = msm_audio_source_tracking_get,
  19693. },
  19694. {
  19695. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19696. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19697. .name = "Sound Focus Voice Tx INT3_MI2S",
  19698. .info = msm_sound_focus_info,
  19699. .get = msm_voice_sound_focus_get,
  19700. .put = msm_voice_sound_focus_put,
  19701. },
  19702. {
  19703. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19704. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19705. .name = "Source Tracking Voice Tx INT3_MI2S",
  19706. .info = msm_source_tracking_info,
  19707. .get = msm_voice_source_tracking_get,
  19708. },
  19709. {
  19710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19712. .name = "Sound Focus Audio Tx INT3_MI2S",
  19713. .info = msm_sound_focus_info,
  19714. .get = msm_audio_sound_focus_get,
  19715. .put = msm_audio_sound_focus_put,
  19716. },
  19717. {
  19718. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19720. .name = "Source Tracking Audio Tx INT3_MI2S",
  19721. .info = msm_source_tracking_info,
  19722. .get = msm_audio_source_tracking_get,
  19723. },
  19724. {
  19725. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19726. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19727. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  19728. .info = msm_sound_focus_info,
  19729. .get = msm_voice_sound_focus_get,
  19730. .put = msm_voice_sound_focus_put,
  19731. },
  19732. {
  19733. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19734. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19735. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  19736. .info = msm_source_tracking_info,
  19737. .get = msm_voice_source_tracking_get,
  19738. },
  19739. {
  19740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19742. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  19743. .info = msm_sound_focus_info,
  19744. .get = msm_audio_sound_focus_get,
  19745. .put = msm_audio_sound_focus_put,
  19746. },
  19747. {
  19748. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19750. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  19751. .info = msm_source_tracking_info,
  19752. .get = msm_audio_source_tracking_get,
  19753. },
  19754. {
  19755. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19756. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19757. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  19758. .info = msm_sound_focus_info,
  19759. .get = msm_voice_sound_focus_get,
  19760. .put = msm_voice_sound_focus_put,
  19761. },
  19762. {
  19763. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19764. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19765. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  19766. .info = msm_source_tracking_info,
  19767. .get = msm_voice_source_tracking_get,
  19768. },
  19769. {
  19770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19771. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19772. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  19773. .info = msm_sound_focus_info,
  19774. .get = msm_audio_sound_focus_get,
  19775. .put = msm_audio_sound_focus_put,
  19776. },
  19777. {
  19778. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19780. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  19781. .info = msm_source_tracking_info,
  19782. .get = msm_audio_source_tracking_get,
  19783. },
  19784. {
  19785. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19786. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19787. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  19788. .info = msm_sound_focus_info,
  19789. .get = msm_voice_sound_focus_get,
  19790. .put = msm_voice_sound_focus_put,
  19791. },
  19792. {
  19793. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19794. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19795. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  19796. .info = msm_source_tracking_info,
  19797. .get = msm_voice_source_tracking_get,
  19798. },
  19799. {
  19800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19801. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19802. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  19803. .info = msm_sound_focus_info,
  19804. .get = msm_audio_sound_focus_get,
  19805. .put = msm_audio_sound_focus_put,
  19806. },
  19807. {
  19808. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19810. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  19811. .info = msm_source_tracking_info,
  19812. .get = msm_audio_source_tracking_get,
  19813. },
  19814. {
  19815. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19816. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19817. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  19818. .info = msm_sound_focus_info,
  19819. .get = msm_audio_sound_focus_get,
  19820. .put = msm_audio_sound_focus_put,
  19821. },
  19822. {
  19823. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19824. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19825. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  19826. .info = msm_source_tracking_info,
  19827. .get = msm_audio_source_tracking_get,
  19828. },
  19829. {
  19830. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19831. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19832. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  19833. .info = msm_doa_tracking_mon_info,
  19834. .get = msm_doa_tracking_mon_get,
  19835. },
  19836. };
  19837. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  19838. struct snd_ctl_elem_value *ucontrol)
  19839. {
  19840. int ret = 0;
  19841. int item;
  19842. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  19843. pr_debug("%s item is %d\n", __func__,
  19844. ucontrol->value.enumerated.item[0]);
  19845. mutex_lock(&routing_lock);
  19846. item = ucontrol->value.enumerated.item[0];
  19847. if (item < e->items) {
  19848. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  19849. __func__, e->shift_l, e->values[item]);
  19850. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  19851. e->values[item] < MSM_BACKEND_DAI_MAX)
  19852. /* Enable feedback TX path */
  19853. ret = afe_spk_prot_feed_back_cfg(
  19854. msm_bedais[e->values[item]].port_id,
  19855. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  19856. else {
  19857. pr_debug("%s values are out of range item %d\n",
  19858. __func__, e->values[item]);
  19859. /* Disable feedback TX path */
  19860. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  19861. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  19862. else
  19863. ret = -EINVAL;
  19864. }
  19865. } else {
  19866. pr_err("%s item value is out of range item\n", __func__);
  19867. ret = -EINVAL;
  19868. }
  19869. mutex_unlock(&routing_lock);
  19870. return ret;
  19871. }
  19872. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  19873. struct snd_ctl_elem_value *ucontrol)
  19874. {
  19875. int ret = 0;
  19876. int item;
  19877. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  19878. pr_debug("%s item is %d\n", __func__,
  19879. ucontrol->value.enumerated.item[0]);
  19880. mutex_lock(&routing_lock);
  19881. item = ucontrol->value.enumerated.item[0];
  19882. if (item < e->items) {
  19883. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  19884. __func__, e->shift_l, e->values[item]);
  19885. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  19886. e->values[item] < MSM_BACKEND_DAI_MAX)
  19887. /* Enable feedback TX path */
  19888. ret = afe_spk_prot_feed_back_cfg(
  19889. msm_bedais[e->values[item]].port_id,
  19890. msm_bedais[e->shift_l].port_id,
  19891. 1, 1, 1);
  19892. else {
  19893. pr_debug("%s values are out of range item %d\n",
  19894. __func__, e->values[item]);
  19895. /* Disable feedback TX path */
  19896. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  19897. ret = afe_spk_prot_feed_back_cfg(0,
  19898. 0, 0, 0, 0);
  19899. else
  19900. ret = -EINVAL;
  19901. }
  19902. } else {
  19903. pr_err("%s item value is out of range item\n", __func__);
  19904. ret = -EINVAL;
  19905. }
  19906. mutex_unlock(&routing_lock);
  19907. return ret;
  19908. }
  19909. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  19910. struct snd_ctl_elem_value *ucontrol)
  19911. {
  19912. pr_debug("%s\n", __func__);
  19913. return 0;
  19914. }
  19915. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  19916. struct snd_ctl_elem_value *ucontrol)
  19917. {
  19918. pr_debug("%s\n", __func__);
  19919. ucontrol->value.enumerated.item[0] = 0;
  19920. return 0;
  19921. }
  19922. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  19923. "ZERO", "SLIM4_TX"
  19924. };
  19925. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  19926. "ZERO", "SLIM4_TX"
  19927. };
  19928. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  19929. "ZERO", "WSA_CDC_DMA_TX_0"
  19930. };
  19931. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  19932. "ZERO", "WSA_CDC_DMA_TX_0"
  19933. };
  19934. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  19935. "ZERO", "SENARY_TX"
  19936. };
  19937. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  19938. "ZERO", "INT5_MI2S_TX"
  19939. };
  19940. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  19941. "ZERO", "INT5_MI2S_TX"
  19942. };
  19943. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  19944. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  19945. };
  19946. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  19947. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  19948. };
  19949. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  19950. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  19951. };
  19952. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  19953. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  19954. };
  19955. static const int mi2s_rx_vi_fb_tx_value[] = {
  19956. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  19957. };
  19958. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  19959. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  19960. };
  19961. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  19962. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  19963. };
  19964. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  19965. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  19966. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  19967. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  19968. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  19969. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  19970. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  19971. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  19972. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  19973. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  19974. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  19975. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  19976. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  19977. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  19978. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  19979. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  19980. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  19981. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  19982. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  19983. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  19984. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  19985. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  19986. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  19987. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  19988. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  19989. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  19990. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  19991. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  19992. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  19993. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  19994. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  19995. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  19996. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  19997. spkr_prot_put_vi_lch_port);
  19998. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  19999. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  20000. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20001. spkr_prot_put_vi_rch_port);
  20002. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  20003. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  20004. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20005. spkr_prot_put_vi_lch_port);
  20006. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  20007. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  20008. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20009. spkr_prot_put_vi_rch_port);
  20010. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  20011. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  20012. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  20013. spkr_prot_put_vi_lch_port);
  20014. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  20015. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  20016. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  20017. spkr_prot_put_vi_lch_port);
  20018. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  20019. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  20020. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  20021. spkr_prot_put_vi_rch_port);
  20022. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  20023. /* Frontend AIF */
  20024. /* Widget name equals to Front-End DAI name<Need confirmation>,
  20025. * Stream name must contains substring of front-end dai name
  20026. */
  20027. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  20028. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  20029. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  20030. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  20031. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  20032. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  20033. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  20034. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  20035. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  20036. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  20037. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  20038. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  20039. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  20040. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  20041. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  20042. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  20043. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  20044. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  20045. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  20046. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  20047. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  20048. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  20049. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  20050. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  20051. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  20052. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  20053. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  20054. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  20055. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  20056. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  20057. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  20058. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  20059. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  20060. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  20061. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  20062. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  20063. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  20064. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  20065. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  20066. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  20067. "VoiceMMode1 Playback", 0, 0, 0, 0),
  20068. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  20069. "VoiceMMode1 Capture", 0, 0, 0, 0),
  20070. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  20071. "VoiceMMode2 Playback", 0, 0, 0, 0),
  20072. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  20073. "VoiceMMode2 Capture", 0, 0, 0, 0),
  20074. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  20075. 0, 0, 0, 0),
  20076. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  20077. 0, 0, 0, 0),
  20078. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  20079. 0, 0, 0, 0),
  20080. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  20081. 0, 0, 0, 0),
  20082. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  20083. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  20084. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  20085. 0, 0, 0, 0),
  20086. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  20087. 0, 0, 0, 0),
  20088. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  20089. 0, 0, 0, 0),
  20090. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  20091. 0, 0, 0, 0),
  20092. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  20093. 0, 0, 0, 0),
  20094. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  20095. 0, 0, 0, 0),
  20096. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  20097. 0, 0, 0, 0),
  20098. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  20099. 0, 0, 0, 0),
  20100. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  20101. 0, 0, 0, 0),
  20102. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  20103. 0, 0, 0, 0),
  20104. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  20105. 0, 0, 0, 0),
  20106. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  20107. 0, 0, 0, 0),
  20108. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  20109. 0, 0, 0, 0),
  20110. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  20111. 0, 0, 0, 0),
  20112. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  20113. 0, 0, 0, 0),
  20114. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  20115. 0, 0, 0, 0),
  20116. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  20117. 0, 0, 0, 0),
  20118. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  20119. 0, 0, 0, 0),
  20120. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  20121. 0, 0, 0, 0),
  20122. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  20123. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  20124. 0, 0, 0, 0),
  20125. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  20126. "INT0 MI2S_RX Hostless Playback",
  20127. 0, 0, 0, 0),
  20128. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  20129. "INT4 MI2S_RX Hostless Playback",
  20130. 0, 0, 0, 0),
  20131. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  20132. "Primary MI2S_RX Hostless Playback",
  20133. 0, 0, 0, 0),
  20134. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  20135. "Secondary MI2S_RX Hostless Playback",
  20136. 0, 0, 0, 0),
  20137. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  20138. "Tertiary MI2S_RX Hostless Playback",
  20139. 0, 0, 0, 0),
  20140. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  20141. "Quaternary MI2S_RX Hostless Playback",
  20142. 0, 0, 0, 0),
  20143. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  20144. "Quinary MI2S_RX Hostless Playback",
  20145. 0, 0, 0, 0),
  20146. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  20147. "Senary MI2S_RX Hostless Playback",
  20148. 0, 0, 0, 0),
  20149. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  20150. 0, 0, 0, 0),
  20151. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  20152. 0, 0, 0, 0),
  20153. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  20154. 0, 0, 0, 0),
  20155. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  20156. 0, 0, 0, 0),
  20157. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  20158. 0, 0, 0, 0),
  20159. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  20160. "INT3 MI2S_TX Hostless Capture",
  20161. 0, 0, 0, 0),
  20162. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  20163. "Tertiary MI2S_TX Hostless Capture",
  20164. 0, 0, 0, 0),
  20165. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  20166. "Secondary MI2S_TX Hostless Capture",
  20167. 0, 0, 0, 0),
  20168. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  20169. "Primary MI2S_TX Hostless Capture",
  20170. 0, 0, 0, 0),
  20171. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  20172. 0, 0, 0, 0),
  20173. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  20174. 0, 0, 0, 0),
  20175. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  20176. "Quaternary MI2S_TX Hostless Capture",
  20177. 0, 0, 0, 0),
  20178. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  20179. "Quinary MI2S_TX Hostless Capture",
  20180. 0, 0, 0, 0),
  20181. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  20182. "Senary MI2S_TX Hostless Capture",
  20183. 0, 0, 0, 0),
  20184. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  20185. "Primary TDM0 Hostless Playback",
  20186. 0, 0, 0, 0),
  20187. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  20188. "Primary TDM0 Hostless Capture",
  20189. 0, 0, 0, 0),
  20190. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  20191. "Primary TDM1 Hostless Playback",
  20192. 0, 0, 0, 0),
  20193. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  20194. "Primary TDM1 Hostless Capture",
  20195. 0, 0, 0, 0),
  20196. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  20197. "Primary TDM2 Hostless Playback",
  20198. 0, 0, 0, 0),
  20199. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  20200. "Primary TDM2 Hostless Capture",
  20201. 0, 0, 0, 0),
  20202. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  20203. "Primary TDM3 Hostless Playback",
  20204. 0, 0, 0, 0),
  20205. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  20206. "Primary TDM3 Hostless Capture",
  20207. 0, 0, 0, 0),
  20208. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  20209. "Primary TDM4 Hostless Playback",
  20210. 0, 0, 0, 0),
  20211. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  20212. "Primary TDM4 Hostless Capture",
  20213. 0, 0, 0, 0),
  20214. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  20215. "Primary TDM5 Hostless Playback",
  20216. 0, 0, 0, 0),
  20217. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  20218. "Primary TDM5 Hostless Capture",
  20219. 0, 0, 0, 0),
  20220. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  20221. "Primary TDM6 Hostless Playback",
  20222. 0, 0, 0, 0),
  20223. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  20224. "Primary TDM6 Hostless Capture",
  20225. 0, 0, 0, 0),
  20226. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  20227. "Primary TDM7 Hostless Playback",
  20228. 0, 0, 0, 0),
  20229. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  20230. "Primary TDM7 Hostless Capture",
  20231. 0, 0, 0, 0),
  20232. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  20233. "Secondary TDM0 Hostless Playback",
  20234. 0, 0, 0, 0),
  20235. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  20236. "Secondary TDM0 Hostless Capture",
  20237. 0, 0, 0, 0),
  20238. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  20239. "Secondary TDM1 Hostless Playback",
  20240. 0, 0, 0, 0),
  20241. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  20242. "Secondary TDM1 Hostless Capture",
  20243. 0, 0, 0, 0),
  20244. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  20245. "Secondary TDM2 Hostless Playback",
  20246. 0, 0, 0, 0),
  20247. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  20248. "Secondary TDM2 Hostless Capture",
  20249. 0, 0, 0, 0),
  20250. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  20251. "Secondary TDM3 Hostless Playback",
  20252. 0, 0, 0, 0),
  20253. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  20254. "Secondary TDM3 Hostless Capture",
  20255. 0, 0, 0, 0),
  20256. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  20257. "Secondary TDM4 Hostless Playback",
  20258. 0, 0, 0, 0),
  20259. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  20260. "Secondary TDM4 Hostless Capture",
  20261. 0, 0, 0, 0),
  20262. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  20263. "Secondary TDM5 Hostless Playback",
  20264. 0, 0, 0, 0),
  20265. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  20266. "Secondary TDM5 Hostless Capture",
  20267. 0, 0, 0, 0),
  20268. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  20269. "Secondary TDM6 Hostless Playback",
  20270. 0, 0, 0, 0),
  20271. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  20272. "Secondary TDM6 Hostless Capture",
  20273. 0, 0, 0, 0),
  20274. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  20275. "Secondary TDM7 Hostless Playback",
  20276. 0, 0, 0, 0),
  20277. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  20278. "Secondary TDM7 Hostless Capture",
  20279. 0, 0, 0, 0),
  20280. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  20281. "Tertiary TDM0 Hostless Playback",
  20282. 0, 0, 0, 0),
  20283. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  20284. "Tertiary TDM0 Hostless Capture",
  20285. 0, 0, 0, 0),
  20286. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  20287. "Tertiary TDM1 Hostless Playback",
  20288. 0, 0, 0, 0),
  20289. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  20290. "Tertiary TDM1 Hostless Capture",
  20291. 0, 0, 0, 0),
  20292. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  20293. "Tertiary TDM2 Hostless Playback",
  20294. 0, 0, 0, 0),
  20295. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  20296. "Tertiary TDM2 Hostless Capture",
  20297. 0, 0, 0, 0),
  20298. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  20299. "Tertiary TDM3 Hostless Playback",
  20300. 0, 0, 0, 0),
  20301. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  20302. "Tertiary TDM3 Hostless Capture",
  20303. 0, 0, 0, 0),
  20304. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  20305. "Tertiary TDM4 Hostless Playback",
  20306. 0, 0, 0, 0),
  20307. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  20308. "Tertiary TDM4 Hostless Capture",
  20309. 0, 0, 0, 0),
  20310. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  20311. "Tertiary TDM5 Hostless Playback",
  20312. 0, 0, 0, 0),
  20313. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  20314. "Tertiary TDM5 Hostless Capture",
  20315. 0, 0, 0, 0),
  20316. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  20317. "Tertiary TDM6 Hostless Playback",
  20318. 0, 0, 0, 0),
  20319. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  20320. "Tertiary TDM6 Hostless Capture",
  20321. 0, 0, 0, 0),
  20322. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  20323. "Tertiary TDM7 Hostless Playback",
  20324. 0, 0, 0, 0),
  20325. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  20326. "Tertiary TDM7 Hostless Capture",
  20327. 0, 0, 0, 0),
  20328. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  20329. "Quaternary TDM0 Hostless Playback",
  20330. 0, 0, 0, 0),
  20331. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  20332. "Quaternary TDM0 Hostless Capture",
  20333. 0, 0, 0, 0),
  20334. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  20335. "Quaternary TDM1 Hostless Playback",
  20336. 0, 0, 0, 0),
  20337. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  20338. "Quaternary TDM1 Hostless Capture",
  20339. 0, 0, 0, 0),
  20340. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  20341. "Quaternary TDM2 Hostless Playback",
  20342. 0, 0, 0, 0),
  20343. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  20344. "Quaternary TDM2 Hostless Capture",
  20345. 0, 0, 0, 0),
  20346. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  20347. "Quaternary TDM3 Hostless Playback",
  20348. 0, 0, 0, 0),
  20349. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  20350. "Quaternary TDM3 Hostless Capture",
  20351. 0, 0, 0, 0),
  20352. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  20353. "Quaternary TDM4 Hostless Playback",
  20354. 0, 0, 0, 0),
  20355. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  20356. "Quaternary TDM4 Hostless Capture",
  20357. 0, 0, 0, 0),
  20358. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  20359. "Quaternary TDM5 Hostless Playback",
  20360. 0, 0, 0, 0),
  20361. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  20362. "Quaternary TDM5 Hostless Capture",
  20363. 0, 0, 0, 0),
  20364. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  20365. "Quaternary TDM6 Hostless Playback",
  20366. 0, 0, 0, 0),
  20367. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  20368. "Quaternary TDM6 Hostless Capture",
  20369. 0, 0, 0, 0),
  20370. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  20371. "Quaternary TDM7 Hostless Playback",
  20372. 0, 0, 0, 0),
  20373. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  20374. "Quaternary TDM7 Hostless Capture",
  20375. 0, 0, 0, 0),
  20376. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  20377. "Quinary TDM0 Hostless Playback",
  20378. 0, 0, 0, 0),
  20379. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  20380. "Quinary TDM0 Hostless Capture",
  20381. 0, 0, 0, 0),
  20382. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  20383. "Quinary TDM1 Hostless Playback",
  20384. 0, 0, 0, 0),
  20385. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  20386. "Quinary TDM1 Hostless Capture",
  20387. 0, 0, 0, 0),
  20388. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  20389. "Quinary TDM2 Hostless Playback",
  20390. 0, 0, 0, 0),
  20391. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  20392. "Quinary TDM2 Hostless Capture",
  20393. 0, 0, 0, 0),
  20394. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  20395. "Quinary TDM3 Hostless Playback",
  20396. 0, 0, 0, 0),
  20397. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  20398. "Quinary TDM3 Hostless Capture",
  20399. 0, 0, 0, 0),
  20400. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  20401. "Quinary TDM4 Hostless Playback",
  20402. 0, 0, 0, 0),
  20403. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  20404. "Quinary TDM4 Hostless Capture",
  20405. 0, 0, 0, 0),
  20406. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  20407. "Quinary TDM5 Hostless Playback",
  20408. 0, 0, 0, 0),
  20409. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  20410. "Quinary TDM5 Hostless Capture",
  20411. 0, 0, 0, 0),
  20412. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  20413. "Quinary TDM6 Hostless Playback",
  20414. 0, 0, 0, 0),
  20415. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  20416. "Quinary TDM6 Hostless Capture",
  20417. 0, 0, 0, 0),
  20418. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  20419. "Quinary TDM7 Hostless Playback",
  20420. 0, 0, 0, 0),
  20421. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  20422. "Quinary TDM7 Hostless Capture",
  20423. 0, 0, 0, 0),
  20424. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  20425. "Senary TDM0 Hostless Playback",
  20426. 0, 0, 0, 0),
  20427. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  20428. "Senary TDM0 Hostless Capture",
  20429. 0, 0, 0, 0),
  20430. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  20431. "Senary TDM1 Hostless Playback",
  20432. 0, 0, 0, 0),
  20433. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  20434. "Senary TDM1 Hostless Capture",
  20435. 0, 0, 0, 0),
  20436. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  20437. "Senary TDM2 Hostless Playback",
  20438. 0, 0, 0, 0),
  20439. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  20440. "Senary TDM2 Hostless Capture",
  20441. 0, 0, 0, 0),
  20442. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  20443. "Senary TDM3 Hostless Playback",
  20444. 0, 0, 0, 0),
  20445. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  20446. "Senary TDM3 Hostless Capture",
  20447. 0, 0, 0, 0),
  20448. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  20449. "Senary TDM4 Hostless Playback",
  20450. 0, 0, 0, 0),
  20451. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  20452. "Senary TDM4 Hostless Capture",
  20453. 0, 0, 0, 0),
  20454. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  20455. "Senary TDM5 Hostless Playback",
  20456. 0, 0, 0, 0),
  20457. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  20458. "Senary TDM5 Hostless Capture",
  20459. 0, 0, 0, 0),
  20460. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  20461. "Senary TDM6 Hostless Playback",
  20462. 0, 0, 0, 0),
  20463. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  20464. "Senary TDM6 Hostless Capture",
  20465. 0, 0, 0, 0),
  20466. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  20467. "Senary TDM7 Hostless Playback",
  20468. 0, 0, 0, 0),
  20469. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  20470. "Senary TDM7 Hostless Capture",
  20471. 0, 0, 0, 0),
  20472. /* LSM */
  20473. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  20474. 0, 0, 0, 0),
  20475. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  20476. 0, 0, 0, 0),
  20477. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  20478. 0, 0, 0, 0),
  20479. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  20480. 0, 0, 0, 0),
  20481. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  20482. 0, 0, 0, 0),
  20483. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  20484. 0, 0, 0, 0),
  20485. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  20486. 0, 0, 0, 0),
  20487. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  20488. 0, 0, 0, 0),
  20489. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  20490. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  20491. /* Backend AIF */
  20492. /* Stream name equals to backend dai link stream name */
  20493. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  20494. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  20495. 0, 0, 0, 0),
  20496. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  20497. 0, 0, 0, 0),
  20498. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  20499. 0, 0, 0, 0),
  20500. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  20501. 0, 0, 0, 0),
  20502. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  20503. 0, 0, 0, 0),
  20504. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  20505. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  20506. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  20507. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  20508. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  20509. 0, 0, 0, 0),
  20510. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  20511. 0, 0, 0, 0),
  20512. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  20513. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  20514. 0, 0, 0, 0),
  20515. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  20516. 0, 0, 0, 0),
  20517. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  20518. 0, 0, 0, 0),
  20519. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  20520. "Secondary MI2S Playback SD1",
  20521. 0, 0, 0, 0),
  20522. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  20523. 0, 0, 0, 0),
  20524. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  20525. 0, 0, 0, 0),
  20526. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  20527. 0, 0, 0, 0),
  20528. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  20529. 0, 0, 0, 0),
  20530. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  20531. 0, 0, 0, 0),
  20532. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  20533. 0, 0, 0, 0),
  20534. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  20535. 0, 0, 0, 0),
  20536. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  20537. 0, 0, 0, 0),
  20538. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  20539. 0, 0, 0, 0),
  20540. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  20541. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  20542. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  20543. 0, 0, 0, 0),
  20544. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  20545. 0, 0, 0, 0),
  20546. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  20547. 0, 0, 0, 0),
  20548. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  20549. 0, 0, 0, 0),
  20550. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  20551. 0, 0, 0, 0),
  20552. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  20553. 0, 0, 0, 0),
  20554. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  20555. 0, 0, 0, 0),
  20556. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  20557. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  20558. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  20559. 0, 0, 0, 0),
  20560. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  20561. 0, 0, 0, 0),
  20562. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  20563. 0, 0, 0, 0),
  20564. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  20565. 0, 0, 0, 0),
  20566. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  20567. 0, 0, 0, 0),
  20568. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  20569. 0, 0, 0, 0),
  20570. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  20571. 0, 0, 0, 0),
  20572. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  20573. 0, 0, 0, 0),
  20574. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  20575. 0, 0, 0, 0),
  20576. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  20577. 0, 0, 0, 0),
  20578. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  20579. 0, 0, 0, 0),
  20580. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  20581. 0, 0, 0, 0),
  20582. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  20583. 0, 0, 0, 0),
  20584. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  20585. 0, 0, 0, 0),
  20586. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  20587. 0, 0, 0, 0),
  20588. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  20589. 0, 0, 0, 0),
  20590. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  20591. 0, 0, 0, 0),
  20592. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  20593. 0, 0, 0, 0),
  20594. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  20595. 0, 0, 0, 0),
  20596. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  20597. 0, 0, 0, 0),
  20598. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  20599. 0, 0, 0, 0),
  20600. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  20601. 0, 0, 0, 0),
  20602. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  20603. 0, 0, 0, 0),
  20604. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  20605. 0, 0, 0, 0),
  20606. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  20607. 0, 0, 0, 0),
  20608. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  20609. 0, 0, 0, 0),
  20610. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  20611. 0, 0, 0, 0),
  20612. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  20613. 0, 0, 0, 0),
  20614. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  20615. 0, 0, 0, 0),
  20616. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  20617. 0, 0, 0, 0),
  20618. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  20619. 0, 0, 0, 0),
  20620. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  20621. 0, 0, 0, 0),
  20622. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  20623. 0, 0, 0, 0),
  20624. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  20625. 0, 0, 0, 0),
  20626. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  20627. 0, 0, 0, 0),
  20628. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  20629. 0, 0, 0, 0),
  20630. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  20631. 0, 0, 0, 0),
  20632. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  20633. 0, 0, 0, 0),
  20634. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  20635. 0, 0, 0, 0),
  20636. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  20637. 0, 0, 0, 0),
  20638. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  20639. 0, 0, 0, 0),
  20640. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  20641. 0, 0, 0, 0),
  20642. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  20643. 0, 0, 0, 0),
  20644. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  20645. 0, 0, 0, 0),
  20646. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  20647. 0, 0, 0, 0),
  20648. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  20649. 0, 0, 0, 0),
  20650. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  20651. 0, 0, 0, 0),
  20652. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  20653. 0, 0, 0, 0),
  20654. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  20655. 0, 0, 0, 0),
  20656. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  20657. 0, 0, 0, 0),
  20658. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  20659. 0, 0, 0, 0),
  20660. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  20661. 0, 0, 0, 0),
  20662. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  20663. 0, 0, 0, 0),
  20664. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  20665. 0, 0, 0, 0),
  20666. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  20667. 0, 0, 0, 0),
  20668. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  20669. 0, 0, 0, 0),
  20670. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  20671. 0, 0, 0, 0),
  20672. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  20673. 0, 0, 0, 0),
  20674. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  20675. 0, 0, 0, 0),
  20676. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  20677. 0, 0, 0, 0),
  20678. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  20679. 0, 0, 0, 0),
  20680. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  20681. 0, 0, 0, 0),
  20682. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  20683. 0, 0, 0, 0),
  20684. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  20685. 0, 0, 0, 0),
  20686. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  20687. 0, 0, 0, 0),
  20688. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  20689. 0, 0, 0, 0),
  20690. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  20691. 0, 0, 0, 0),
  20692. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  20693. 0, 0, 0, 0),
  20694. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  20695. 0, 0, 0, 0),
  20696. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  20697. 0, 0, 0, 0),
  20698. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  20699. 0, 0, 0, 0),
  20700. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  20701. 0, 0, 0, 0),
  20702. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  20703. 0, 0, 0, 0),
  20704. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  20705. 0, 0, 0, 0),
  20706. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  20707. 0, 0, 0, 0),
  20708. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  20709. 0, 0, 0, 0),
  20710. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  20711. 0, 0, 0, 0),
  20712. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  20713. 0, 0, 0, 0),
  20714. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  20715. 0, 0, 0, 0),
  20716. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  20717. 0, 0, 0, 0),
  20718. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  20719. 0, 0, 0, 0),
  20720. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  20721. 0, 0, 0, 0),
  20722. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  20723. 0, 0, 0, 0),
  20724. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  20725. 0, 0, 0, 0),
  20726. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  20727. 0, 0, 0, 0),
  20728. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  20729. 0, 0, 0, 0),
  20730. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  20731. 0, 0, 0, 0),
  20732. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  20733. 0, 0, 0, 0),
  20734. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  20735. 0, 0, 0, 0),
  20736. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  20737. 0, 0, 0, 0),
  20738. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  20739. 0, 0, 0, 0),
  20740. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  20741. 0, 0, 0, 0),
  20742. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  20743. 0, 0, 0, 0),
  20744. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  20745. 0, 0, 0, 0),
  20746. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  20747. 0, 0, 0, 0),
  20748. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  20749. 0, 0, 0, 0),
  20750. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  20751. 0, 0, 0, 0),
  20752. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  20753. 0, 0, 0, 0),
  20754. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  20755. 0, 0, 0, 0),
  20756. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  20757. 0, 0, 0, 0),
  20758. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  20759. 0, 0, 0, 0),
  20760. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  20761. 0, 0, 0, 0),
  20762. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  20763. 0, 0, 0, 0),
  20764. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  20765. 0, 0, 0, 0),
  20766. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  20767. 0, 0, 0, 0),
  20768. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  20769. 0, 0, 0, 0),
  20770. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  20771. 0, 0, 0, 0),
  20772. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  20773. 0, 0, 0, 0),
  20774. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  20775. 0, 0, 0, 0),
  20776. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  20777. 0, 0, 0, 0),
  20778. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  20779. 0, 0, 0, 0),
  20780. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  20781. 0, 0, 0, 0),
  20782. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  20783. 0, 0, 0, 0),
  20784. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  20785. 0, 0, 0, 0),
  20786. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  20787. 0, 0, 0, 0),
  20788. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  20789. 0, 0, 0, 0),
  20790. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  20791. 0, 0, 0, 0),
  20792. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  20793. 0, 0, 0, 0),
  20794. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  20795. 0, 0, 0, 0),
  20796. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  20797. 0, 0, 0, 0),
  20798. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  20799. 0, 0, 0, 0),
  20800. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  20801. 0, 0, 0, 0),
  20802. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  20803. 0, 0, 0, 0),
  20804. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  20805. 0, 0, 0, 0),
  20806. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  20807. 0, 0, 0, 0),
  20808. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  20809. 0, 0, 0, 0),
  20810. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  20811. 0, 0, 0, 0),
  20812. /* incall */
  20813. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  20814. 0, 0, 0, 0),
  20815. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  20816. 0, 0, 0, 0),
  20817. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  20818. 0, 0, 0, 0),
  20819. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  20820. 0, 0, 0, 0),
  20821. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  20822. 0, 0, 0, 0),
  20823. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  20824. 0, 0, 0, 0),
  20825. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  20826. 0, 0, 0, 0),
  20827. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  20828. 0, 0, 0, 0),
  20829. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  20830. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  20831. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  20832. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  20833. 0, 0, 0, 0),
  20834. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  20835. 0, 0, 0, 0),
  20836. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  20837. 0, 0, 0, 0),
  20838. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  20839. 0, 0, 0, 0),
  20840. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  20841. 0, 0, 0, 0),
  20842. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  20843. 0, 0, 0, 0),
  20844. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  20845. 0, 0, 0, 0),
  20846. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  20847. 0, 0, 0, 0),
  20848. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  20849. 0, 0, 0, 0),
  20850. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  20851. 0, 0, 0, 0),
  20852. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  20853. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  20854. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  20855. 0, 0, 0, 0),
  20856. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  20857. 0, 0, 0, 0),
  20858. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  20859. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  20860. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  20861. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  20862. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  20863. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  20864. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  20865. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  20866. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  20867. /* In- call recording */
  20868. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  20869. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  20870. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  20871. 0, 0, 0, 0),
  20872. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  20873. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  20874. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  20875. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  20876. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  20877. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  20878. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  20879. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  20880. /* Switch Definitions */
  20881. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  20882. &slim_fm_switch_mixer_controls),
  20883. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  20884. &slim1_fm_switch_mixer_controls),
  20885. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  20886. &slim3_fm_switch_mixer_controls),
  20887. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  20888. &slim4_fm_switch_mixer_controls),
  20889. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  20890. &slim6_fm_switch_mixer_controls),
  20891. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20892. &pcm_rx_switch_mixer_controls),
  20893. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20894. &int0_mi2s_rx_switch_mixer_controls),
  20895. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20896. &int4_mi2s_rx_switch_mixer_controls),
  20897. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20898. &pri_mi2s_rx_switch_mixer_controls),
  20899. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20900. &sec_mi2s_rx_switch_mixer_controls),
  20901. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20902. &tert_mi2s_rx_switch_mixer_controls),
  20903. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20904. &quat_mi2s_rx_switch_mixer_controls),
  20905. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20906. &quin_mi2s_rx_switch_mixer_controls),
  20907. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  20908. &sco_slim7_switch_mixer_controls),
  20909. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20910. &sen_mi2s_rx_switch_mixer_controls),
  20911. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  20912. &hfp_pri_aux_switch_mixer_controls),
  20913. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  20914. &hfp_aux_switch_mixer_controls),
  20915. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  20916. &hfp_int_switch_mixer_controls),
  20917. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  20918. &hfp_slim7_switch_mixer_controls),
  20919. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  20920. &usb_switch_mixer_controls),
  20921. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  20922. &a2dp_slim7_switch_mixer_controls),
  20923. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  20924. &cdc_dma_wsa_switch_mixer_controls),
  20925. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  20926. &cdc_dma_rx_switch_mixer_controls),
  20927. /* Mixer definitions */
  20928. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20929. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  20930. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20931. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  20932. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20933. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  20934. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20935. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  20936. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20937. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  20938. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20939. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  20940. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20941. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  20942. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  20943. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  20944. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  20945. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  20946. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  20947. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  20948. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20949. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  20950. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20951. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  20952. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20953. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  20954. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20955. quaternary_mi2s_rx_mixer_controls,
  20956. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  20957. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20958. tertiary_mi2s_rx_mixer_controls,
  20959. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  20960. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20961. secondary_mi2s_rx_mixer_controls,
  20962. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  20963. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20964. secondary_mi2s_rx2_mixer_controls,
  20965. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  20966. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20967. primary_mi2s_rx_mixer_controls,
  20968. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  20969. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20970. int0_mi2s_rx_mixer_controls,
  20971. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  20972. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20973. int4_mi2s_rx_mixer_controls,
  20974. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  20975. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20976. quinary_mi2s_rx_mixer_controls,
  20977. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  20978. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20979. senary_mi2s_rx_mixer_controls,
  20980. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  20981. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20982. pri_tdm_rx_0_mixer_controls,
  20983. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  20984. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20985. pri_tdm_rx_1_mixer_controls,
  20986. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  20987. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20988. pri_tdm_rx_2_mixer_controls,
  20989. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  20990. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20991. pri_tdm_rx_3_mixer_controls,
  20992. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  20993. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20994. pri_tdm_tx_0_mixer_controls,
  20995. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  20996. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20997. sec_tdm_rx_0_mixer_controls,
  20998. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  20999. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21000. sec_tdm_rx_1_mixer_controls,
  21001. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  21002. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21003. sec_tdm_rx_2_mixer_controls,
  21004. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  21005. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21006. sec_tdm_rx_3_mixer_controls,
  21007. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  21008. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21009. sec_tdm_tx_0_mixer_controls,
  21010. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  21011. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21012. tert_tdm_rx_0_mixer_controls,
  21013. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  21014. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21015. tert_tdm_tx_0_mixer_controls,
  21016. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  21017. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21018. tert_tdm_rx_1_mixer_controls,
  21019. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  21020. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21021. tert_tdm_rx_2_mixer_controls,
  21022. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  21023. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21024. tert_tdm_rx_3_mixer_controls,
  21025. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  21026. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21027. tert_tdm_rx_4_mixer_controls,
  21028. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  21029. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21030. quat_tdm_rx_0_mixer_controls,
  21031. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  21032. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21033. quat_tdm_tx_0_mixer_controls,
  21034. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  21035. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21036. quat_tdm_rx_1_mixer_controls,
  21037. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  21038. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21039. quat_tdm_rx_2_mixer_controls,
  21040. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  21041. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21042. quat_tdm_rx_3_mixer_controls,
  21043. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  21044. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21045. quin_tdm_rx_0_mixer_controls,
  21046. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  21047. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21048. quin_tdm_tx_0_mixer_controls,
  21049. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  21050. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21051. quin_tdm_rx_1_mixer_controls,
  21052. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  21053. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21054. quin_tdm_rx_2_mixer_controls,
  21055. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  21056. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21057. quin_tdm_rx_3_mixer_controls,
  21058. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  21059. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21060. sen_tdm_tx_0_mixer_controls,
  21061. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  21062. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21063. sen_tdm_rx_0_mixer_controls,
  21064. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  21065. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21066. sen_tdm_rx_1_mixer_controls,
  21067. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  21068. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21069. sen_tdm_rx_2_mixer_controls,
  21070. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  21071. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21072. sen_tdm_rx_3_mixer_controls,
  21073. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  21074. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21075. wsa_cdc_dma_rx_0_mixer_controls,
  21076. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  21077. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21078. wsa_cdc_dma_rx_1_mixer_controls,
  21079. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  21080. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21081. rx_cdc_dma_rx_0_mixer_controls,
  21082. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  21083. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21084. rx_cdc_dma_rx_1_mixer_controls,
  21085. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  21086. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21087. rx_cdc_dma_rx_2_mixer_controls,
  21088. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  21089. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21090. rx_cdc_dma_rx_3_mixer_controls,
  21091. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  21092. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21093. rx_cdc_dma_rx_4_mixer_controls,
  21094. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  21095. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21096. rx_cdc_dma_rx_5_mixer_controls,
  21097. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  21098. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21099. rx_cdc_dma_rx_6_mixer_controls,
  21100. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  21101. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21102. rx_cdc_dma_rx_7_mixer_controls,
  21103. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  21104. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  21105. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  21106. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  21107. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  21108. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  21109. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  21110. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  21111. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  21112. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  21113. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  21114. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  21115. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  21116. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  21117. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  21118. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  21119. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  21120. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  21121. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  21122. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  21123. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  21124. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  21125. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  21126. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  21127. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  21128. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  21129. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  21130. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  21131. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  21132. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  21133. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  21134. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  21135. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  21136. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  21137. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  21138. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  21139. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  21140. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21141. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  21142. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21143. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  21144. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21145. tert_auxpcm_rx_mixer_controls,
  21146. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  21147. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21148. quat_auxpcm_rx_mixer_controls,
  21149. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  21150. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21151. quin_auxpcm_rx_mixer_controls,
  21152. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  21153. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21154. sen_auxpcm_rx_mixer_controls,
  21155. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  21156. /* incall */
  21157. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  21158. incall_music_delivery_mixer_controls,
  21159. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  21160. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21161. incall_music2_delivery_mixer_controls,
  21162. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  21163. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21164. slimbus_4_rx_mixer_controls,
  21165. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  21166. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21167. slimbus_6_rx_mixer_controls,
  21168. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  21169. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21170. usb_audio_rx_mixer_controls,
  21171. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  21172. /* Voice Mixer */
  21173. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  21174. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  21175. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  21176. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  21177. SND_SOC_NOPM, 0, 0,
  21178. sec_i2s_rx_voice_mixer_controls,
  21179. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  21180. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  21181. SND_SOC_NOPM, 0, 0,
  21182. sec_mi2s_rx_voice_mixer_controls,
  21183. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  21184. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  21185. SND_SOC_NOPM, 0, 0,
  21186. slimbus_rx_voice_mixer_controls,
  21187. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  21188. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  21189. SND_SOC_NOPM, 0, 0,
  21190. bt_sco_rx_voice_mixer_controls,
  21191. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  21192. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  21193. SND_SOC_NOPM, 0, 0,
  21194. afe_pcm_rx_voice_mixer_controls,
  21195. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  21196. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  21197. SND_SOC_NOPM, 0, 0,
  21198. aux_pcm_rx_voice_mixer_controls,
  21199. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  21200. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  21201. SND_SOC_NOPM, 0, 0,
  21202. sec_aux_pcm_rx_voice_mixer_controls,
  21203. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  21204. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  21205. SND_SOC_NOPM, 0, 0,
  21206. tert_aux_pcm_rx_voice_mixer_controls,
  21207. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  21208. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  21209. SND_SOC_NOPM, 0, 0,
  21210. quat_aux_pcm_rx_voice_mixer_controls,
  21211. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  21212. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  21213. SND_SOC_NOPM, 0, 0,
  21214. quin_aux_pcm_rx_voice_mixer_controls,
  21215. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  21216. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  21217. SND_SOC_NOPM, 0, 0,
  21218. sen_aux_pcm_rx_voice_mixer_controls,
  21219. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  21220. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  21221. SND_SOC_NOPM, 0, 0,
  21222. hdmi_rx_voice_mixer_controls,
  21223. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  21224. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  21225. SND_SOC_NOPM, 0, 0,
  21226. mi2s_rx_voice_mixer_controls,
  21227. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  21228. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  21229. SND_SOC_NOPM, 0, 0,
  21230. pri_mi2s_rx_voice_mixer_controls,
  21231. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  21232. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  21233. SND_SOC_NOPM, 0, 0,
  21234. int0_mi2s_rx_voice_mixer_controls,
  21235. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  21236. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  21237. SND_SOC_NOPM, 0, 0,
  21238. int4_mi2s_rx_voice_mixer_controls,
  21239. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  21240. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  21241. SND_SOC_NOPM, 0, 0,
  21242. tert_mi2s_rx_voice_mixer_controls,
  21243. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  21244. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  21245. SND_SOC_NOPM, 0, 0,
  21246. quat_mi2s_rx_voice_mixer_controls,
  21247. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  21248. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  21249. SND_SOC_NOPM, 0, 0,
  21250. quin_mi2s_rx_voice_mixer_controls,
  21251. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  21252. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  21253. SND_SOC_NOPM, 0, 0,
  21254. pri_tdm_rx_0_voice_mixer_controls,
  21255. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  21256. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  21257. SND_SOC_NOPM, 0, 0,
  21258. pri_tdm_rx_1_voice_mixer_controls,
  21259. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  21260. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  21261. SND_SOC_NOPM, 0, 0,
  21262. pri_tdm_rx_2_voice_mixer_controls,
  21263. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  21264. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  21265. SND_SOC_NOPM, 0, 0,
  21266. pri_tdm_rx_3_voice_mixer_controls,
  21267. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  21268. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  21269. SND_SOC_NOPM, 0, 0,
  21270. sen_mi2s_rx_voice_mixer_controls,
  21271. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  21272. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  21273. SND_SOC_NOPM, 0, 0,
  21274. quat_tdm_rx_2_voice_mixer_controls,
  21275. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  21276. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  21277. SND_SOC_NOPM, 0, 0,
  21278. wsa_cdc_dma_rx_0_voice_mixer_controls,
  21279. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  21280. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  21281. SND_SOC_NOPM, 0, 0,
  21282. rx_cdc_dma_rx_0_voice_mixer_controls,
  21283. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  21284. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  21285. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  21286. ARRAY_SIZE(tx_voip_mixer_controls)),
  21287. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  21288. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  21289. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  21290. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  21291. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  21292. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  21293. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21294. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  21295. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21296. int_bt_a2dp_rx_mixer_controls,
  21297. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  21298. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21299. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  21300. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21301. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  21302. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21303. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  21304. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21305. tx_voice2_stub_mixer_controls,
  21306. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  21307. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21308. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  21309. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  21310. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  21311. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  21312. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  21313. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21314. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  21315. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  21316. SND_SOC_NOPM, 0, 0,
  21317. slimbus_6_rx_voice_mixer_controls,
  21318. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  21319. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21320. slimbus_7_rx_voice_mixer_controls,
  21321. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  21322. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21323. slimbus_8_rx_voice_mixer_controls,
  21324. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  21325. /* port mixer */
  21326. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  21327. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  21328. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  21329. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  21330. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  21331. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  21332. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  21333. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  21334. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  21335. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  21336. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  21337. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  21338. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  21339. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  21340. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  21341. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  21342. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  21343. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  21344. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  21345. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  21346. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  21347. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21348. sbus_1_rx_port_mixer_controls,
  21349. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  21350. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21351. bt_sco_rx_port_mixer_controls,
  21352. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  21353. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  21354. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  21355. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  21356. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  21357. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  21358. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  21359. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  21360. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  21361. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  21362. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  21363. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  21364. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  21365. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  21366. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  21367. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  21368. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  21369. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  21370. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  21371. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  21372. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  21373. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  21374. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21375. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  21376. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21377. primary_mi2s_rx_port_mixer_controls,
  21378. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  21379. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21380. sec_mi2s_rx_port_mixer_controls,
  21381. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  21382. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21383. tert_mi2s_rx_port_mixer_controls,
  21384. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  21385. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21386. quat_mi2s_rx_port_mixer_controls,
  21387. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  21388. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21389. quin_mi2s_rx_port_mixer_controls,
  21390. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  21391. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21392. sen_mi2s_rx_port_mixer_controls,
  21393. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  21394. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21395. pri_tdm_rx_0_port_mixer_controls,
  21396. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  21397. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21398. pri_tdm_rx_1_port_mixer_controls,
  21399. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  21400. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21401. pri_tdm_rx_2_port_mixer_controls,
  21402. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  21403. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21404. pri_tdm_rx_3_port_mixer_controls,
  21405. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  21406. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21407. sec_tdm_rx_0_port_mixer_controls,
  21408. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  21409. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21410. sec_tdm_rx_1_port_mixer_controls,
  21411. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  21412. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21413. sec_tdm_rx_2_port_mixer_controls,
  21414. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  21415. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21416. sec_tdm_rx_3_port_mixer_controls,
  21417. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  21418. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21419. sec_tdm_rx_7_port_mixer_controls,
  21420. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  21421. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21422. tert_tdm_rx_0_port_mixer_controls,
  21423. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  21424. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21425. tert_tdm_rx_1_port_mixer_controls,
  21426. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  21427. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21428. tert_tdm_rx_2_port_mixer_controls,
  21429. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  21430. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21431. tert_tdm_rx_3_port_mixer_controls,
  21432. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  21433. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21434. quat_tdm_rx_0_port_mixer_controls,
  21435. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  21436. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21437. quat_tdm_rx_1_port_mixer_controls,
  21438. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  21439. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21440. quat_tdm_rx_2_port_mixer_controls,
  21441. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  21442. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21443. quat_tdm_rx_3_port_mixer_controls,
  21444. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  21445. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21446. quat_tdm_rx_7_port_mixer_controls,
  21447. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  21448. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21449. quin_tdm_rx_0_port_mixer_controls,
  21450. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  21451. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21452. quin_tdm_rx_1_port_mixer_controls,
  21453. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  21454. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21455. quin_tdm_rx_2_port_mixer_controls,
  21456. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  21457. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21458. quin_tdm_rx_3_port_mixer_controls,
  21459. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  21460. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21461. sen_tdm_rx_0_port_mixer_controls,
  21462. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  21463. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21464. sen_tdm_rx_1_port_mixer_controls,
  21465. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  21466. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21467. sen_tdm_rx_2_port_mixer_controls,
  21468. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  21469. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21470. sen_tdm_rx_3_port_mixer_controls,
  21471. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  21472. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21473. int0_mi2s_rx_port_mixer_controls,
  21474. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  21475. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21476. int4_mi2s_rx_port_mixer_controls,
  21477. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  21478. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21479. wsa_cdc_dma_rx_0_port_mixer_controls,
  21480. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  21481. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21482. rx_cdc_dma_rx_0_port_mixer_controls,
  21483. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  21484. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  21485. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  21486. ARRAY_SIZE(tx_qchat_mixer_controls)),
  21487. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  21488. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  21489. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  21490. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  21491. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  21492. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  21493. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  21494. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  21495. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  21496. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  21497. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  21498. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  21499. /* lsm mixer definitions */
  21500. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  21501. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  21502. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  21503. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  21504. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  21505. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  21506. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  21507. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  21508. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  21509. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  21510. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  21511. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  21512. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  21513. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  21514. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  21515. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  21516. /* Virtual Pins to force backends ON atm */
  21517. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  21518. SND_SOC_DAPM_INPUT("BE_IN"),
  21519. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  21520. &slim0_rx_vi_fb_lch_mux),
  21521. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  21522. &slim0_rx_vi_fb_rch_mux),
  21523. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  21524. &wsa_rx_0_vi_fb_lch_mux),
  21525. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  21526. &wsa_rx_0_vi_fb_rch_mux),
  21527. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  21528. &mi2s_rx_vi_fb_mux),
  21529. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  21530. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  21531. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  21532. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  21533. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  21534. &voc_ext_ec_mux),
  21535. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  21536. &ext_ec_ref_mux_ul1),
  21537. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  21538. &ext_ec_ref_mux_ul2),
  21539. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  21540. &ext_ec_ref_mux_ul3),
  21541. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  21542. &ext_ec_ref_mux_ul4),
  21543. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  21544. &ext_ec_ref_mux_ul5),
  21545. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  21546. &ext_ec_ref_mux_ul6),
  21547. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  21548. &ext_ec_ref_mux_ul8),
  21549. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  21550. &ext_ec_ref_mux_ul9),
  21551. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  21552. &ext_ec_ref_mux_ul10),
  21553. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  21554. &ext_ec_ref_mux_ul16),
  21555. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  21556. &ext_ec_ref_mux_ul17),
  21557. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  21558. &ext_ec_ref_mux_ul18),
  21559. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  21560. &ext_ec_ref_mux_ul19),
  21561. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  21562. &ext_ec_ref_mux_ul28),
  21563. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  21564. &ext_ec_ref_mux_ul29),
  21565. };
  21566. static const struct snd_soc_dapm_route intercon[] = {
  21567. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21568. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21569. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21570. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21571. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21572. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21573. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21574. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21575. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21576. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21577. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21578. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21579. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21580. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21581. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21582. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21583. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21584. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  21585. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21586. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21587. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21588. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21589. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21590. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21591. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21592. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21593. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21594. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21595. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21596. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21597. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21598. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21599. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21600. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21601. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21602. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  21603. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21604. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21605. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21606. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21607. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21608. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21609. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21610. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21611. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21612. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21613. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21614. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21615. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21616. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21617. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21618. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21619. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21620. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  21621. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21622. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21623. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21624. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21625. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21626. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21627. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21628. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21629. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21630. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21631. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21632. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21633. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21634. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21635. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21636. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21637. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21638. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  21639. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21640. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21641. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21642. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21643. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21644. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21645. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21646. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21647. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21648. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21649. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21650. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21651. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21652. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21653. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21654. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21655. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21656. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  21657. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21658. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21659. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21660. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21661. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21662. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21663. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21664. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21665. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21666. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21667. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21668. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21669. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21670. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21671. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21672. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21673. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21674. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  21675. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21676. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21677. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21678. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21679. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21680. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21681. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21682. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21683. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21684. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21685. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21686. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21687. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21688. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21689. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21690. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21691. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21692. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  21693. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21694. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21695. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21696. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21697. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21698. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21699. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21700. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21701. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21702. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21703. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21704. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21705. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21706. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21707. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21708. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21709. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21710. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  21711. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21712. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21713. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21714. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21715. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21716. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21717. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21718. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21719. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21720. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21721. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21722. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21723. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21724. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21725. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21726. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21727. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21728. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  21729. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21730. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21731. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21732. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21733. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21734. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21735. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21736. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21737. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21738. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21739. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21740. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21741. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21742. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21743. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21744. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21745. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21746. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  21747. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21748. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21749. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21750. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21751. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21752. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21753. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21754. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21755. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21756. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21757. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21758. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21759. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21760. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21761. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21762. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21763. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21764. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  21765. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21766. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21767. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21768. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21769. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21770. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21771. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21772. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21773. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21774. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21775. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21776. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21777. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21778. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21779. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21780. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21781. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21782. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  21783. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21784. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21785. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21786. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21787. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21788. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21789. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21790. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21791. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21792. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21793. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21794. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21795. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21796. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21797. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21798. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21799. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21800. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  21801. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21802. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21803. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21804. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21805. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21806. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21807. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21808. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21809. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21810. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21811. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21812. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21813. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21814. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21815. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21816. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21817. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21818. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  21819. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21820. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21821. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21822. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21823. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21824. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21825. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21826. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21827. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21828. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21829. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21830. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21831. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21832. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21833. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21834. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21835. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21836. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  21837. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  21838. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  21839. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  21840. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  21841. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  21842. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  21843. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  21844. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  21845. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  21846. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  21847. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  21848. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  21849. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  21850. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  21851. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  21852. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  21853. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  21854. {"HDMI", NULL, "HDMI Mixer"},
  21855. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  21856. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  21857. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  21858. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  21859. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  21860. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  21861. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  21862. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  21863. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  21864. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  21865. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  21866. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  21867. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  21868. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  21869. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  21870. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  21871. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  21872. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  21873. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  21874. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  21875. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  21876. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  21877. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  21878. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  21879. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  21880. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  21881. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  21882. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  21883. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  21884. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  21885. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  21886. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  21887. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  21888. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  21889. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  21890. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  21891. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21892. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21893. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21894. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21895. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21896. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21897. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21898. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21899. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21900. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21901. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21902. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21903. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21904. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21905. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21906. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21907. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21908. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  21909. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21910. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21911. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21912. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21913. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21914. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21915. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21916. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21917. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21918. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21919. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21920. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21921. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21922. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21923. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21924. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21925. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21926. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  21927. /* incall */
  21928. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  21929. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  21930. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  21931. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  21932. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  21933. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21934. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21935. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21936. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21937. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  21938. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21939. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21940. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21941. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21942. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  21943. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21944. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21945. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21946. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21947. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21948. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21949. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21950. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21951. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21952. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21953. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21954. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21955. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21956. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21957. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21958. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21959. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21960. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  21961. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21962. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21963. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21964. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21965. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21966. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21967. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21968. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21969. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21970. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21971. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21972. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21973. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21974. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21975. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21976. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21977. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21978. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  21979. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21980. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21981. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21982. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21983. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21984. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21985. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21986. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21987. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21988. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21989. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21990. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21991. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21992. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21993. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21994. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21995. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21996. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  21997. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21998. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21999. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22000. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22001. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22002. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22003. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22004. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22005. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22006. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22007. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22008. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22009. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22010. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22011. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22012. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22013. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22014. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  22015. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22016. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22017. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22018. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22019. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22020. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22021. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  22022. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22023. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22024. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22025. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22026. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22027. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22028. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22029. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22030. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22031. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22032. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22033. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22034. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22035. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22036. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22037. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22038. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22039. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22040. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22041. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22042. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22043. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22044. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22045. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22046. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22047. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22048. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22049. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22050. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22051. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22052. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22053. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22054. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22055. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22056. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22057. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22058. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22059. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22060. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22061. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22062. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22063. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22064. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22065. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22066. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22067. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22068. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22069. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22070. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22071. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22072. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22073. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22074. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22075. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22076. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22077. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22078. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22079. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22080. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22081. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22082. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22083. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22084. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22085. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22086. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22087. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22088. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22089. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22090. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22091. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22092. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22093. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22094. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22095. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22096. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22097. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22098. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22099. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22100. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22101. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22102. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22103. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22104. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  22105. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22106. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22107. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22108. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22109. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22110. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22111. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22112. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22113. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22114. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22115. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22116. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22117. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22118. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22119. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22120. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22121. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  22122. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22123. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22124. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22125. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22126. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22127. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22128. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22129. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22130. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22131. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22132. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22133. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22134. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22135. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22136. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22137. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  22138. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22139. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22140. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22141. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22142. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22143. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22144. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22145. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22146. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22147. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22148. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22149. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22150. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22151. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22152. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22153. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  22154. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22155. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  22156. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22157. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22158. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22159. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22160. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22161. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22162. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22163. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22164. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22165. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22166. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22167. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22168. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22169. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22170. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22171. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22172. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22173. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22174. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  22175. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22176. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22177. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22178. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22179. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22180. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22181. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22182. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22183. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22184. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22185. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22186. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22187. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22188. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22189. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22190. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  22191. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22192. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22193. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22194. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22195. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22196. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22197. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22198. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22199. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22200. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22201. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22202. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22203. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22204. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22205. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22206. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  22207. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22208. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22209. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22210. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22211. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22212. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22213. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22214. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22215. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22216. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22217. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22218. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22219. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22220. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22221. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22222. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22223. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22224. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  22225. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22226. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22227. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22228. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22229. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22230. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22231. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22232. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22233. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22234. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22235. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22236. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22237. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22238. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22239. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22240. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  22241. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22242. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22243. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22244. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22245. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22246. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22247. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22248. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22249. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22250. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22251. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22252. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22253. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22254. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22255. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22256. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22257. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22258. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  22259. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22260. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22261. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22262. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22263. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22264. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22265. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22266. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22267. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22268. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22269. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22270. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22271. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22272. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22273. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22274. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22275. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22276. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  22277. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22278. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22279. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22280. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22281. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22282. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22283. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22284. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22285. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22286. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22287. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22288. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22289. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22290. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22291. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22292. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22293. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22294. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  22295. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22296. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22297. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22298. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22299. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22300. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22301. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22302. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22303. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22304. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22305. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22306. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22307. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22308. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22309. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22310. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22311. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22312. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  22313. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22314. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22315. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22316. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22317. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22318. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22319. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22320. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22321. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22322. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22323. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22324. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22325. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22326. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22327. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22328. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22329. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  22330. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22331. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22332. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22333. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22334. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22335. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22336. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22337. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22338. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22339. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22340. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22341. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22342. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22343. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22344. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22345. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22346. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22347. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  22348. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22349. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22350. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22351. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22352. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22353. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22354. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22355. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22356. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22357. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22358. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22359. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22360. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22361. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22362. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22363. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22364. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22365. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  22366. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22367. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22368. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22369. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22370. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22371. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22372. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22373. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22374. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22375. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22376. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22377. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22378. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22379. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22380. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22381. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22382. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22383. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  22384. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22385. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22386. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22387. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22388. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22389. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22390. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22391. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22392. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22393. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22394. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22395. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22396. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22397. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22398. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22399. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22400. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22401. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  22402. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22403. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22404. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22405. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22406. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22407. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22408. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22409. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22410. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22411. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22412. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22413. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22414. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22415. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22416. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22417. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22418. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  22419. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22420. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22421. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22422. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22423. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22424. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22425. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22426. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22427. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22428. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22429. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22430. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22431. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22432. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22433. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22434. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22435. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22436. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  22437. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22438. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22439. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22440. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22441. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22442. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22443. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22444. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22445. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22446. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22447. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22448. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22449. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22450. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22451. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22452. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22453. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  22454. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22455. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22456. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22457. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22458. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22459. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22460. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22461. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22462. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22463. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22464. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22465. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22466. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22467. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22468. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22469. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22470. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22471. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  22472. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22473. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22474. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22475. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22476. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22477. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22478. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22479. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22480. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22481. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22482. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22483. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22484. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22485. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22486. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22487. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22488. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22489. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  22490. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22491. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22492. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22493. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22494. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22495. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22496. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22497. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22498. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22499. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22500. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22501. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22502. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22503. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22504. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22505. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22506. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22507. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  22508. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22509. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22510. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22511. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22512. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22513. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22514. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22515. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22516. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22517. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22518. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22519. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22520. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22521. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22522. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22523. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22524. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22525. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  22526. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22527. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22528. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22529. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22530. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22531. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22532. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22533. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22534. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22535. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22536. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22537. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22538. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22539. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22540. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22541. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22542. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22543. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22544. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  22545. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22546. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22547. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22548. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22549. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22550. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22551. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22552. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22553. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22554. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22555. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22556. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22557. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22558. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22559. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22560. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22561. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  22562. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22563. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22564. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22565. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22566. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22567. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22568. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22569. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22570. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22571. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22572. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22573. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22574. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22575. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22576. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22577. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22578. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22579. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22580. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  22581. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22582. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22583. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22584. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22585. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22586. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22587. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22588. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22589. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22590. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22591. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22592. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22593. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22594. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22595. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22596. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22597. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22598. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22599. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  22600. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22601. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22602. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22603. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22604. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22605. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22606. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22607. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22608. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22609. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22610. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22611. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22612. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22613. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22614. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22615. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22616. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22617. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22618. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  22619. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22620. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22621. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22622. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22623. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22624. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22625. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22626. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22627. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22628. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22629. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22630. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22631. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22632. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22633. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22634. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22635. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22636. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22637. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  22638. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22639. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22640. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22641. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22642. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22643. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22644. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22645. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22646. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22647. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22648. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22649. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22650. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22651. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22652. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22653. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22654. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  22655. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22656. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22657. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22658. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22659. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22660. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22661. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22662. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22663. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22664. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22665. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22666. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22667. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22668. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22669. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22670. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22671. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22672. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22673. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  22674. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22675. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22676. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22677. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22678. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22679. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22680. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22681. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22682. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22683. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22684. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22685. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22686. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22687. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22688. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22689. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22690. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22691. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22692. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  22693. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22694. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22695. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22696. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22697. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22698. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22699. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22700. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22701. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22702. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22703. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22704. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22705. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22706. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22707. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22708. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22709. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22710. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22711. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  22712. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22713. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22714. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22715. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22716. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22717. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22718. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22719. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22720. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22721. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22722. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22723. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22724. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22725. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22726. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22727. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22728. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22729. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22730. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  22731. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22732. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22733. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22734. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22735. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22736. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22737. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22738. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22739. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22740. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22741. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22742. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22743. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22744. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22745. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22746. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22747. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  22748. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22749. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22750. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22751. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22752. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22753. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22754. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22755. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22756. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22757. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22758. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22759. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22760. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22761. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22762. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22763. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22764. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22765. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22766. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  22767. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22768. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22769. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22770. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22771. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22772. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22773. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22774. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22775. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22776. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22777. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22778. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22779. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22780. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22781. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22782. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22783. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22784. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22785. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  22786. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22787. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22788. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22789. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22790. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22791. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22792. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22793. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22794. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22795. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22796. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22797. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22798. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22799. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22800. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22801. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22802. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22803. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22804. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  22805. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  22806. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  22807. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  22808. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  22809. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  22810. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  22811. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  22812. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22813. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22814. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22815. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22816. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22817. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  22818. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  22819. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22820. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22821. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22822. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22823. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22824. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22825. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22826. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22827. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22828. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22829. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22830. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22831. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22832. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22833. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22834. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22835. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22836. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22837. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22838. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22839. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22840. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22841. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22842. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22843. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22844. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22845. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22846. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22847. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  22848. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  22849. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  22850. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  22851. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  22852. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22853. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22854. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22855. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22856. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22857. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22858. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22859. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22860. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22861. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22862. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22863. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22864. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22865. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22866. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22867. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22868. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22869. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22870. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22871. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22872. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22873. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22874. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22875. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22876. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22877. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22878. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22879. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22880. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22881. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22882. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22883. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22884. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22885. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  22886. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22887. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22888. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22889. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22890. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22891. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22892. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22893. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22894. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22895. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22896. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22897. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22898. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22899. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22900. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22901. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22902. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  22903. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22904. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22905. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22906. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22907. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  22908. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  22909. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  22910. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  22911. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22912. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  22913. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  22914. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  22915. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  22916. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  22917. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  22918. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  22919. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  22920. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22921. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  22922. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  22923. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22924. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22925. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22926. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22927. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22928. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22929. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22930. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22931. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22932. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22933. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22934. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22935. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22936. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22937. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22938. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22939. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22940. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22941. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  22942. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22943. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22944. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22945. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22946. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  22947. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  22948. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  22949. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  22950. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22951. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  22952. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  22953. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  22954. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  22955. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  22956. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  22957. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  22958. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  22959. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22960. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  22961. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  22962. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22963. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22964. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22965. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22966. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22967. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22968. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22969. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22970. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22971. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22972. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22973. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22974. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22975. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22976. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22977. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22978. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22979. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22980. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  22981. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22982. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22983. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22984. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22985. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  22986. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  22987. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  22988. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  22989. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22990. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  22991. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  22992. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  22993. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  22994. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  22995. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  22996. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  22997. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  22998. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22999. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23000. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23001. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23002. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23003. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23004. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23005. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23006. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23007. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23008. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23009. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23010. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23011. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23012. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23013. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23014. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23015. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23016. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23017. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23018. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23019. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23020. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23021. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23022. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23023. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23024. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23025. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23026. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23027. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23028. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23029. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23030. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23031. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23032. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23033. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23034. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23035. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23036. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23037. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23038. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23039. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23040. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23041. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23042. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23043. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23044. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23045. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23046. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23047. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23048. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23049. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23050. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23051. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23052. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23053. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23054. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23055. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23056. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23057. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23058. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23059. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23060. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23061. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23062. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23063. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23064. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23065. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23066. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23067. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23068. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23069. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23070. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23071. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23072. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23073. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23074. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23075. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23076. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23077. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23078. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23079. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23080. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23081. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23082. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23083. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23084. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23085. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23086. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23087. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23088. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23089. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23090. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23091. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23092. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23093. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23094. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23095. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23096. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23097. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23098. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23099. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23100. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23101. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23102. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23103. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23104. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23105. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23106. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23107. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23108. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23109. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23110. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23111. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23112. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23113. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23114. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23115. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23116. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23117. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23118. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23119. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23120. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23121. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23122. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23123. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23124. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23125. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23126. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23127. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23128. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23129. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23130. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23131. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23132. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23133. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23134. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23135. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23136. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23137. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23138. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23139. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23140. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23141. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23142. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23143. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23144. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23145. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23146. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23147. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23148. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23149. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23150. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23151. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23152. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23153. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23154. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23155. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23156. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23157. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23158. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23159. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23160. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23161. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23162. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23163. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23164. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23165. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23166. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23167. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23168. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23169. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23170. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23171. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23172. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23173. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23174. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23175. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23176. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23177. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23178. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23179. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23180. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23181. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23182. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23183. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23184. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23185. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23186. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23187. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23188. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23189. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23190. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23191. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23192. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23193. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23194. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23195. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23196. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23197. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23198. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23199. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23200. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23201. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23202. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23203. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23204. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23205. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23206. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23207. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23208. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23209. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23210. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23211. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23212. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23213. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23214. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23215. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23216. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23217. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23218. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23219. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23220. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23221. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23222. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23223. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23224. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23225. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23226. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23227. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23228. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23229. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23230. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23231. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23232. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23233. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23234. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23235. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23236. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23237. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23238. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23239. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23240. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23241. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23242. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23243. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23244. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23245. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23246. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23247. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23248. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23249. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23250. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23251. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23252. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23253. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23254. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23255. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23256. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23257. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23258. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23259. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23260. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23261. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23262. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23263. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23264. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23265. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23266. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23267. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23268. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23269. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23270. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23271. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23272. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23273. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23274. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23275. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23276. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23277. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23278. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23279. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23280. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23281. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23282. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23283. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23284. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23285. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23286. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23287. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23288. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23289. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23290. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23291. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23292. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23293. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23294. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23295. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23296. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23297. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23298. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23299. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23300. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23301. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23302. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23303. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23304. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23305. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23306. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23307. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23308. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23309. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23310. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23311. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23312. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23313. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23314. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23315. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23316. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23317. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23318. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23319. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23320. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23321. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23322. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23323. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23324. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23325. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23326. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23327. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23328. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23329. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23330. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23331. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23332. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23333. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23334. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23335. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23336. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23337. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23338. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23339. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23340. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23341. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23342. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23343. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23344. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23345. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23346. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23347. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23348. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23349. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23350. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23351. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23352. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23353. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23354. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23355. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23356. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23357. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23358. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23359. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23360. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23361. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23362. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23363. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23364. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23365. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23366. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23367. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23368. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23369. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23370. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23371. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23372. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23373. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23374. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23375. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23376. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23377. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23378. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23379. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23380. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23381. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23382. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23383. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23384. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23385. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23386. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23387. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23388. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23389. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23390. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23391. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23392. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23393. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23394. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23395. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23396. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  23397. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  23398. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23399. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23400. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23401. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23402. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23403. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23404. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23405. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23406. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23407. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23408. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23409. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23410. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23411. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23412. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23413. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23414. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  23415. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  23416. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23417. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23418. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23419. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23420. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23421. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23422. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23423. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23424. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23425. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23426. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23427. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23428. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23429. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23430. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23431. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23432. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  23433. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23434. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23435. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23436. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23437. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23438. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23439. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23440. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23441. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23442. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23443. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23444. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23445. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23446. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23447. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23448. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23449. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  23450. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23451. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23452. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23453. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23454. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23455. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23456. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23457. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23458. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23459. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23460. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23461. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23462. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23463. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23464. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23465. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23466. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23467. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23468. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23469. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23470. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23471. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23472. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23473. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23474. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23475. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23476. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23477. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23478. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23479. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23480. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23481. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23482. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23483. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23484. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23485. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  23486. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23487. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  23488. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  23489. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  23490. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  23491. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  23492. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  23493. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  23494. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  23495. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  23496. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  23497. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  23498. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  23499. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  23500. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  23501. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  23502. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  23503. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  23504. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23505. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23506. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23507. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23508. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23509. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23510. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23511. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23512. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23513. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23514. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23515. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23516. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23517. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23518. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23519. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23520. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  23521. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  23522. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23523. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23524. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23525. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23526. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23527. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23528. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23529. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23530. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23531. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23532. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23533. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23534. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23535. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23536. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23537. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23538. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  23539. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  23540. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23541. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23542. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23543. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23544. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23545. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23546. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23547. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23548. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23549. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23550. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23551. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23552. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23553. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23554. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23555. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23556. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  23557. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23558. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23559. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23560. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23561. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23562. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23563. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23564. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23565. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23566. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23567. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23568. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23569. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23570. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23571. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23572. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23573. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  23574. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23575. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23576. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23577. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23578. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23579. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23580. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23581. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23582. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23583. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23584. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23585. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23586. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23587. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23588. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23589. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23590. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  23591. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23592. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23593. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23594. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23595. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23596. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23597. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23598. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23599. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23600. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23601. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23602. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23603. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23604. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23605. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23606. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23607. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  23608. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23609. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23610. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23611. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23612. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23613. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  23614. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23615. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23616. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23617. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  23618. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23619. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23620. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23621. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23622. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23623. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23624. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23625. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  23626. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23627. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23628. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23629. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23630. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23631. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  23632. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23633. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23634. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23635. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23636. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23637. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  23638. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23639. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23640. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23641. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23642. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23643. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  23644. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23645. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23646. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23647. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23648. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23649. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  23650. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  23651. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23652. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23653. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23654. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23655. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  23656. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23657. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23658. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23659. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23660. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23661. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  23662. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23663. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23664. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23665. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23666. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23667. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  23668. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23669. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23670. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23671. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23672. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23673. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  23674. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23675. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23676. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23677. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23678. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23679. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  23680. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23681. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23682. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23683. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23684. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23685. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  23686. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23687. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23688. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23689. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23690. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23691. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  23692. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23693. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23694. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23695. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23696. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23697. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  23698. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23699. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23700. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23701. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23702. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23703. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  23704. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23705. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23706. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23707. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23708. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23709. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  23710. {"HDMI", NULL, "HDMI_DL_HL"},
  23711. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23712. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23713. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23714. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23715. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23716. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23717. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23718. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  23719. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23720. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23721. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23722. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23723. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23724. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23725. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23726. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  23727. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23728. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23729. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23730. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23731. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23732. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  23733. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23734. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23735. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23736. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23737. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23738. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  23739. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23740. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23741. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23742. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23743. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23744. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23745. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23746. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  23747. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23748. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23749. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23750. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23751. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23752. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23753. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  23754. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23755. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23756. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23757. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23758. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23759. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23760. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  23761. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  23762. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23763. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23764. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23765. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23766. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23767. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23768. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23769. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  23770. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  23771. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23772. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23773. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23774. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23775. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23776. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23777. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23778. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  23779. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  23780. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23781. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23782. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23783. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23784. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23785. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23786. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23787. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  23788. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  23789. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23790. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23791. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23792. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23793. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23794. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23795. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23796. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  23797. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23798. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23799. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23800. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23801. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  23802. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23803. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  23804. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23805. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23806. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  23807. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23808. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23809. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  23810. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23811. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23812. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23813. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23814. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23815. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23816. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  23817. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  23818. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  23819. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  23820. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23821. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23822. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23823. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23824. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23825. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23826. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  23827. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  23828. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  23829. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23830. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  23831. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23832. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23833. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23834. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23835. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23836. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23837. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23838. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23839. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23840. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23841. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23842. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23843. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23844. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23845. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23846. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23847. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23848. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23849. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23850. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23851. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23852. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23853. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23854. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23855. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23856. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23857. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23858. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23859. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23860. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23861. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23862. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23863. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23864. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23865. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23866. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  23867. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  23868. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  23869. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23870. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  23871. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23872. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23873. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23874. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23875. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23876. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23877. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23878. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23879. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23880. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23881. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23882. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23883. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23884. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23885. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23886. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23887. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23888. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23889. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23890. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23891. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23892. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23893. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23894. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23895. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23896. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23897. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23898. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23899. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23900. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23901. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23902. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23903. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23904. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23905. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  23906. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  23907. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  23908. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  23909. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  23910. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  23911. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  23912. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  23913. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  23914. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  23915. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  23916. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  23917. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  23918. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  23919. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  23920. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  23921. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  23922. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  23923. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  23924. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  23925. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  23926. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  23927. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  23928. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  23929. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  23930. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  23931. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  23932. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  23933. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  23934. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  23935. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  23936. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  23937. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  23938. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  23939. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  23940. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  23941. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  23942. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  23943. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  23944. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  23945. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  23946. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  23947. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  23948. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  23949. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  23950. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  23951. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  23952. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  23953. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  23954. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  23955. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  23956. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  23957. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  23958. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  23959. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  23960. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  23961. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  23962. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  23963. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  23964. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  23965. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  23966. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  23967. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  23968. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  23969. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  23970. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  23971. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  23972. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  23973. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  23974. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  23975. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  23976. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  23977. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  23978. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  23979. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  23980. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  23981. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  23982. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  23983. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  23984. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  23985. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  23986. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  23987. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  23988. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  23989. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  23990. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  23991. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  23992. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  23993. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  23994. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  23995. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  23996. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  23997. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  23998. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  23999. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  24000. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  24001. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  24002. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  24003. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  24004. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  24005. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  24006. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  24007. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  24008. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  24009. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  24010. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24011. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  24012. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  24013. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24014. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  24015. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  24016. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24017. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24018. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24019. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24020. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24021. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24022. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24023. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24024. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24025. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24026. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24027. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24028. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24029. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  24030. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24031. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24032. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24033. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24034. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24035. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24036. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24037. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24038. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24039. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24040. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24041. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24042. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24043. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  24044. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24045. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24046. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24047. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24048. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24049. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24050. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24051. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24052. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24053. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24054. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24055. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24056. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24057. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  24058. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24059. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24060. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24061. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24062. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24063. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24064. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24065. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24066. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24067. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24068. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24069. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24070. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24071. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  24072. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24073. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24074. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24075. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24076. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24077. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24078. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24079. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24080. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24081. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24082. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24083. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24084. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24085. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  24086. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24087. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24088. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24089. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24090. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24091. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24092. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24093. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24094. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24095. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24096. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24097. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  24098. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24099. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24100. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24101. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24102. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24103. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24104. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24105. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24106. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24107. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24108. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24109. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  24110. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24111. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24112. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24113. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24114. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24115. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24116. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24117. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24118. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24119. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24120. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24121. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  24122. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  24123. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  24124. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  24125. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  24126. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  24127. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  24128. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  24129. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  24130. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  24131. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  24132. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  24133. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  24134. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  24135. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  24136. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  24137. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  24138. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  24139. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  24140. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  24141. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  24142. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  24143. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  24144. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  24145. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  24146. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  24147. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  24148. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  24149. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  24150. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  24151. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  24152. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  24153. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  24154. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  24155. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  24156. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  24157. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  24158. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  24159. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  24160. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  24161. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  24162. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  24163. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  24164. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  24165. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  24166. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  24167. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  24168. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  24169. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  24170. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  24171. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  24172. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  24173. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  24174. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  24175. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  24176. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  24177. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  24178. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  24179. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  24180. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  24181. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  24182. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  24183. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  24184. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  24185. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  24186. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  24187. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  24188. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  24189. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  24190. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  24191. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  24192. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  24193. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  24194. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  24195. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  24196. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  24197. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  24198. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  24199. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  24200. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  24201. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  24202. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  24203. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  24204. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  24205. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  24206. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  24207. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  24208. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  24209. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  24210. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  24211. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  24212. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  24213. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  24214. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  24215. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  24216. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  24217. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  24218. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  24219. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  24220. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  24221. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  24222. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  24223. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  24224. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  24225. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  24226. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  24227. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  24228. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  24229. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  24230. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  24231. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  24232. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  24233. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  24234. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  24235. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  24236. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  24237. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  24238. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  24239. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  24240. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  24241. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24242. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24243. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24244. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24245. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24246. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24247. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24248. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24249. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24250. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24251. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24252. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24253. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24254. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24255. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24256. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24257. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24258. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24259. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24260. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24261. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24262. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24263. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24264. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24265. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  24266. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24267. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24268. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24269. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24270. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24271. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24272. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24273. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24274. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24275. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24276. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24277. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24278. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24279. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24280. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24281. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24282. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24283. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24284. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24285. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24286. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24287. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24288. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24289. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24290. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  24291. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24292. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24293. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24294. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24295. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24296. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24297. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24298. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24299. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24300. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24301. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24302. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24303. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24304. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24305. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24306. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24307. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24308. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24309. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24310. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24311. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24312. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24313. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24314. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24315. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  24316. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24317. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24318. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24319. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24320. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24321. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24322. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24323. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24324. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24325. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24326. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24327. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24328. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24329. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24330. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24331. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24332. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24333. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24334. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24335. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24336. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24337. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24338. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24339. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24340. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  24341. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24342. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24343. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24344. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24345. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24346. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24347. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24348. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24349. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24350. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24351. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24352. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24353. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24354. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24355. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24356. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24357. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24358. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24359. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24360. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24361. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24362. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24363. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24364. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24365. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  24366. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24367. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24368. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24369. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24370. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24371. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24372. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24373. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24374. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24375. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24376. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24377. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24378. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24379. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24380. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24381. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24382. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24383. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24384. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24385. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24386. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24387. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24388. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24389. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24390. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  24391. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24392. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24393. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24394. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24395. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24396. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24397. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24398. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24399. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24400. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24401. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24402. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24403. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24404. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24405. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24406. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24407. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24408. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24409. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24410. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24411. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24412. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24413. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24414. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24415. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  24416. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24417. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24418. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24419. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24420. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24421. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24422. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24423. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24424. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24425. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24426. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24427. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24428. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24429. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24430. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24431. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24432. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24433. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24434. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24435. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24436. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24437. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24438. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24439. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24440. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  24441. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  24442. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  24443. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24444. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24445. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24446. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24447. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24448. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24449. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24450. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24451. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24452. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24453. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24454. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24455. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24456. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24457. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24458. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24459. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24460. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24461. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24462. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24463. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24464. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24465. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24466. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24467. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  24468. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24469. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24470. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24471. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24472. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24473. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24474. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24475. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24476. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24477. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24478. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24479. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24480. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24481. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24482. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24483. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24484. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24485. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24486. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24487. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24488. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24489. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24490. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24491. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24492. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  24493. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24494. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24495. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24496. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24497. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24498. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24499. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24500. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24501. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24502. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24503. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24504. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24505. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24506. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24507. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24508. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24509. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24510. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24511. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24512. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24513. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24514. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24515. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24516. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24517. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  24518. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24519. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24520. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24521. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24522. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24523. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24524. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24525. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24526. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24527. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24528. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24529. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24530. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24531. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24532. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24533. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24534. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24535. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24536. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24537. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24538. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24539. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24540. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24541. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24542. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  24543. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24544. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24545. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24546. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24547. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24548. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24549. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24550. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24551. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24552. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24553. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24554. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24555. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24556. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24557. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24558. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24559. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24560. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24561. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24562. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24563. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24564. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24565. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24566. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24567. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  24568. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24569. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24570. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24571. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24572. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24573. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24574. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24575. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24576. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24577. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24578. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24579. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24580. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24581. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24582. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24583. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24584. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24585. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24586. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24587. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24588. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24589. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24590. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24591. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24592. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  24593. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24594. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24595. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24596. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24597. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24598. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24599. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24600. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24601. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24602. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24603. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24604. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24605. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24606. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24607. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24608. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24609. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24610. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24611. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24612. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24613. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24614. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24615. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24616. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24617. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  24618. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24619. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24620. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24621. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24622. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24623. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24624. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24625. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24626. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24627. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24628. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24629. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24630. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24631. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24632. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24633. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24634. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24635. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24636. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24637. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24638. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24639. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24640. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24641. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24642. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  24643. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  24644. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  24645. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24646. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24647. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24648. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24649. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24650. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24651. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24652. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24653. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24654. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24655. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24656. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24657. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24658. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24659. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24660. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24661. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24662. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24663. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24664. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24665. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24666. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24667. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24668. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24669. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  24670. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24671. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24672. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24673. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24674. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24675. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24676. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24677. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24678. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24679. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24680. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24681. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24682. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24683. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24684. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24685. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24686. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24687. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24688. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24689. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24690. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24691. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24692. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24693. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24694. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  24695. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24696. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24697. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24698. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24699. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24700. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24701. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24702. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24703. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24704. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24705. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24706. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24707. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24708. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24709. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24710. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24711. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24712. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24713. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24714. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24715. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24716. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24717. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24718. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24719. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  24720. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24721. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24722. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24723. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24724. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24725. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24726. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24727. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24728. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24729. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24730. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24731. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24732. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24733. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24734. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24735. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24736. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24737. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24738. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24739. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24740. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24741. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24742. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24743. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24744. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  24745. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24746. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24747. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24748. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24749. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24750. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24751. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24752. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24753. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24754. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24755. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24756. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24757. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24758. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24759. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24760. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24761. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24762. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24763. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24764. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24765. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  24766. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24767. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24768. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24769. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24770. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24771. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24772. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24773. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24774. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24775. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24776. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24777. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24778. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24779. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24780. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24781. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24782. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24783. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24784. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24785. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24786. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  24787. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24788. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24789. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24790. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24791. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24792. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24793. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24794. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24795. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24796. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24797. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24798. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24799. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24800. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24801. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24802. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24803. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24804. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24805. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24806. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24807. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  24808. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24809. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24810. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24811. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24812. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24813. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24814. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24815. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24816. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24817. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24818. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24819. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24820. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24821. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24822. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24823. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24824. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24825. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24826. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24827. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24828. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  24829. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24830. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24831. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24832. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24833. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24834. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24835. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24836. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24837. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24838. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24839. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24840. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24841. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  24842. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24843. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24844. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24845. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24846. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24847. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24848. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24849. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24850. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24851. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24852. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24853. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24854. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  24855. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24856. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24857. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24858. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24859. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  24860. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24861. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24862. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24863. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  24864. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24865. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24866. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24867. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24868. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24869. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24870. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24871. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24872. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24873. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24874. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24875. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24876. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  24877. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24878. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24879. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24880. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24881. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24882. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24883. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24884. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  24885. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24886. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24887. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  24888. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24889. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  24890. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  24891. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  24892. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  24893. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24894. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24895. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24896. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24897. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24898. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24899. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  24900. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24901. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24902. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24903. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24904. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  24905. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24906. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24907. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24908. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  24909. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24910. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24911. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24912. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  24913. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24914. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24915. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24916. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  24917. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  24918. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24919. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24920. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  24921. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24922. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24923. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24924. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24925. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24926. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24927. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  24928. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24929. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24930. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24931. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24932. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24933. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  24934. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24935. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24936. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  24937. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  24938. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  24939. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24940. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  24941. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24942. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24943. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  24944. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24945. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24946. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  24947. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24948. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24949. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  24950. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  24951. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24952. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  24953. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24954. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24955. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  24956. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24957. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24958. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  24959. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24960. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24961. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24962. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  24963. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24964. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24965. {"STUB_RX", NULL, "STUB_RX Mixer"},
  24966. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24967. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24968. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  24969. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24970. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24971. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  24972. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24973. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24974. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24975. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24976. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24977. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  24978. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24979. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24980. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24981. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24982. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24983. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  24984. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24985. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24986. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24987. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  24988. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24989. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24990. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  24991. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  24992. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  24993. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  24994. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  24995. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  24996. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  24997. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24998. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24999. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25000. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25001. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25002. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25003. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25004. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25005. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25006. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25007. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25008. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25009. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25010. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  25011. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25012. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  25013. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25014. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  25015. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  25016. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  25017. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25018. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  25019. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25020. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25021. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  25022. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25023. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25024. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25025. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25026. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25027. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25028. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25029. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25030. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25031. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25032. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25033. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  25034. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25035. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25036. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25037. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25038. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25039. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25040. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25041. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25042. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25043. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25044. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  25045. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25046. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25047. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25048. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25049. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25050. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25051. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25052. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25053. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  25054. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25055. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25056. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25057. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25058. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25059. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25060. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25061. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25062. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25063. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25064. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  25065. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25066. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25067. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25068. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25069. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25070. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25071. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25072. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25073. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  25074. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25075. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25076. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25077. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25078. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25079. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25080. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25081. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  25082. /* Backend Enablement */
  25083. {"BE_OUT", NULL, "PRI_I2S_RX"},
  25084. {"BE_OUT", NULL, "SEC_I2S_RX"},
  25085. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  25086. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  25087. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  25088. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25089. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  25090. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  25091. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  25092. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  25093. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  25094. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  25095. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  25096. {"BE_OUT", NULL, "HDMI"},
  25097. {"BE_OUT", NULL, "DISPLAY_PORT"},
  25098. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  25099. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  25100. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  25101. {"BE_OUT", NULL, "MI2S_RX"},
  25102. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  25103. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  25104. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  25105. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  25106. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  25107. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  25108. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  25109. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  25110. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  25111. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  25112. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  25113. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  25114. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  25115. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  25116. {"BE_OUT", NULL, "INT_FM_RX"},
  25117. {"BE_OUT", NULL, "PCM_RX"},
  25118. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25119. {"BE_OUT", NULL, "AUX_PCM_RX"},
  25120. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  25121. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  25122. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  25123. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  25124. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  25125. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  25126. {"BE_OUT", NULL, "INT_FM_RX"},
  25127. {"BE_OUT", NULL, "PCM_RX"},
  25128. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25129. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  25130. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  25131. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  25132. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  25133. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  25134. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  25135. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  25136. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  25137. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  25138. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  25139. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  25140. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  25141. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  25142. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  25143. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  25144. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  25145. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  25146. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  25147. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  25148. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  25149. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  25150. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  25151. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  25152. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  25153. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  25154. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  25155. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  25156. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  25157. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  25158. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  25159. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  25160. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  25161. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  25162. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  25163. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  25164. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  25165. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  25166. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  25167. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  25168. {"PRI_I2S_TX", NULL, "BE_IN"},
  25169. {"MI2S_TX", NULL, "BE_IN"},
  25170. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  25171. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  25172. {"PRI_MI2S_TX", NULL, "BE_IN"},
  25173. {"TERT_MI2S_TX", NULL, "BE_IN"},
  25174. {"INT0_MI2S_TX", NULL, "BE_IN"},
  25175. {"INT2_MI2S_TX", NULL, "BE_IN"},
  25176. {"INT3_MI2S_TX", NULL, "BE_IN"},
  25177. {"INT4_MI2S_TX", NULL, "BE_IN"},
  25178. {"INT5_MI2S_TX", NULL, "BE_IN"},
  25179. {"SEC_MI2S_TX", NULL, "BE_IN"},
  25180. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  25181. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  25182. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  25183. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  25184. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  25185. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  25186. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  25187. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  25188. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  25189. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  25190. {"USB_AUDIO_TX", NULL, "BE_IN" },
  25191. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  25192. {"INT_FM_TX", NULL, "BE_IN"},
  25193. {"PCM_TX", NULL, "BE_IN"},
  25194. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25195. {"BE_OUT", NULL, "STUB_RX"},
  25196. {"STUB_TX", NULL, "BE_IN"},
  25197. {"STUB_1_TX", NULL, "BE_IN"},
  25198. {"BE_OUT", NULL, "AUX_PCM_RX"},
  25199. {"AUX_PCM_TX", NULL, "BE_IN"},
  25200. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  25201. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  25202. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  25203. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  25204. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  25205. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  25206. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  25207. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  25208. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  25209. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25210. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25211. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  25212. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  25213. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  25214. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  25215. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  25216. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  25217. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  25218. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  25219. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  25220. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  25221. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  25222. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  25223. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  25224. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  25225. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  25226. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  25227. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  25228. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  25229. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  25230. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  25231. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  25232. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  25233. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  25234. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  25235. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  25236. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  25237. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  25238. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  25239. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  25240. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  25241. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  25242. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  25243. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  25244. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  25245. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  25246. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  25247. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  25248. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  25249. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  25250. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  25251. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  25252. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  25253. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  25254. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  25255. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  25256. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  25257. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  25258. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  25259. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  25260. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  25261. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  25262. };
  25263. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  25264. struct snd_pcm_hw_params *params)
  25265. {
  25266. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25267. unsigned int be_id = rtd->dai_link->id;
  25268. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25269. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25270. return -EINVAL;
  25271. }
  25272. mutex_lock(&routing_lock);
  25273. msm_bedais[be_id].sample_rate = params_rate(params);
  25274. msm_bedais[be_id].channel = params_channels(params);
  25275. msm_bedais[be_id].format = params_format(params);
  25276. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  25277. __func__, msm_bedais[be_id].sample_rate,
  25278. msm_bedais[be_id].format, be_id);
  25279. mutex_unlock(&routing_lock);
  25280. return 0;
  25281. }
  25282. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  25283. {
  25284. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25285. unsigned int be_id = rtd->dai_link->id;
  25286. int i, session_type, path_type, topology;
  25287. struct msm_pcm_routing_bdai_data *bedai;
  25288. struct msm_pcm_routing_fdai_data *fdai;
  25289. pr_debug("%s: substream->pcm->id:%s\n",
  25290. __func__, substream->pcm->id);
  25291. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25292. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25293. return -EINVAL;
  25294. }
  25295. bedai = &msm_bedais[be_id];
  25296. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  25297. 0 : 1);
  25298. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  25299. path_type = ADM_PATH_PLAYBACK;
  25300. else
  25301. path_type = ADM_PATH_LIVE_REC;
  25302. mutex_lock(&routing_lock);
  25303. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25304. if (!is_mm_lsm_fe_id(i))
  25305. continue;
  25306. fdai = &fe_dai_map[i][session_type];
  25307. if (fdai->strm_id != INVALID_SESSION) {
  25308. int idx;
  25309. int port_id;
  25310. unsigned long copp =
  25311. session_copp_map[i][session_type][be_id];
  25312. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  25313. if (test_bit(idx, &copp))
  25314. break;
  25315. if (idx >= MAX_COPPS_PER_PORT) {
  25316. pr_debug("%s: copp idx is invalid, exiting\n",
  25317. __func__);
  25318. continue;
  25319. }
  25320. fdai->be_srate = bedai->sample_rate;
  25321. port_id = get_port_id(bedai->port_id);
  25322. topology = adm_get_topology_for_port_copp_idx(port_id,
  25323. idx);
  25324. msm_routing_unload_topology(topology);
  25325. adm_close(port_id, fdai->perf_mode, idx);
  25326. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  25327. __func__, copp, i, session_type, be_id,
  25328. topology);
  25329. clear_bit(idx,
  25330. &session_copp_map[i][session_type][be_id]);
  25331. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  25332. (fdai->passthr_mode == LEGACY_PCM))
  25333. msm_pcm_routing_deinit_pp(port_id,
  25334. topology);
  25335. }
  25336. }
  25337. bedai->active = 0;
  25338. bedai->sample_rate = 0;
  25339. bedai->channel = 0;
  25340. mutex_unlock(&routing_lock);
  25341. return 0;
  25342. }
  25343. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  25344. {
  25345. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25346. unsigned int be_id = rtd->dai_link->id;
  25347. int i, path_type, topology;
  25348. int session_type = INVALID_SESSION;
  25349. struct msm_pcm_routing_bdai_data *bedai;
  25350. u32 channels, sample_rate;
  25351. uint16_t bits_per_sample = 16, voc_path_type;
  25352. struct msm_pcm_routing_fdai_data *fdai;
  25353. u32 session_id;
  25354. struct media_format_info voc_be_media_format;
  25355. bool is_lsm;
  25356. pr_debug("%s: substream->pcm->id:%s\n",
  25357. __func__, substream->pcm->id);
  25358. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25359. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25360. return -EINVAL;
  25361. }
  25362. bedai = &msm_bedais[be_id];
  25363. mutex_lock(&routing_lock);
  25364. if (bedai->active == 1)
  25365. goto done; /* Ignore prepare if back-end already active */
  25366. /* AFE port is not active at this point. However, still
  25367. * go ahead setting active flag under the notion that
  25368. * QDSP6 is able to handle ADM starting before AFE port
  25369. * is started.
  25370. */
  25371. bedai->active = 1;
  25372. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25373. if (!(is_mm_lsm_fe_id(i) &&
  25374. route_check_fe_id_adm_support(i)))
  25375. continue;
  25376. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  25377. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25378. fdai = &fe_dai_map[i][session_type];
  25379. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  25380. if (fdai->passthr_mode != LEGACY_PCM)
  25381. path_type = ADM_PATH_COMPRESSED_RX;
  25382. else
  25383. path_type = ADM_PATH_PLAYBACK;
  25384. } else {
  25385. if ((fdai->passthr_mode != LEGACY_PCM) &&
  25386. (fdai->passthr_mode != LISTEN))
  25387. path_type = ADM_PATH_COMPRESSED_TX;
  25388. else
  25389. path_type = ADM_PATH_LIVE_REC;
  25390. }
  25391. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  25392. (i <= MSM_FRONTEND_DAI_LSM8);
  25393. if (fdai->strm_id != INVALID_SESSION) {
  25394. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  25395. int port_id = get_port_id(bedai->port_id);
  25396. if (session_type == SESSION_TYPE_TX &&
  25397. fdai->be_srate &&
  25398. (fdai->be_srate != bedai->sample_rate)) {
  25399. pr_debug("%s: flush strm %d diff BE rates\n",
  25400. __func__,
  25401. fdai->strm_id);
  25402. if (fdai->event_info.event_func)
  25403. fdai->event_info.event_func(
  25404. MSM_PCM_RT_EVT_BUF_RECFG,
  25405. fdai->event_info.priv_data);
  25406. fdai->be_srate = 0; /* might not need it */
  25407. }
  25408. bits_per_sample = msm_routing_get_bit_width(
  25409. bedai->format);
  25410. app_type =
  25411. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  25412. if (app_type && is_lsm) {
  25413. app_type_idx =
  25414. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  25415. sample_rate =
  25416. fe_dai_app_type_cfg[i][session_type][be_id]
  25417. .sample_rate;
  25418. bits_per_sample =
  25419. lsm_app_type_cfg[app_type_idx].bit_width;
  25420. } else if (app_type) {
  25421. app_type_idx =
  25422. msm_pcm_routing_get_app_type_idx(app_type);
  25423. sample_rate =
  25424. fe_dai_app_type_cfg[i][session_type]
  25425. [be_id].sample_rate;
  25426. bits_per_sample =
  25427. app_type_cfg[app_type_idx].bit_width;
  25428. } else
  25429. sample_rate = bedai->sample_rate;
  25430. /*
  25431. * check if ADM needs to be configured with different
  25432. * channel mapping than backend
  25433. */
  25434. if (!bedai->adm_override_ch)
  25435. channels = bedai->channel;
  25436. else
  25437. channels = bedai->adm_override_ch;
  25438. acdb_dev_id =
  25439. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  25440. topology = msm_routing_get_adm_topology(i, session_type,
  25441. be_id);
  25442. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  25443. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  25444. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  25445. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  25446. copp_idx = adm_open(port_id, path_type,
  25447. sample_rate, channels, topology,
  25448. fdai->perf_mode, bits_per_sample,
  25449. app_type, acdb_dev_id,
  25450. session_type);
  25451. if ((copp_idx < 0) ||
  25452. (copp_idx >= MAX_COPPS_PER_PORT)) {
  25453. pr_err("%s: adm open failed\n", __func__);
  25454. mutex_unlock(&routing_lock);
  25455. return -EINVAL;
  25456. }
  25457. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  25458. __func__, i, session_type, be_id);
  25459. set_bit(copp_idx,
  25460. &session_copp_map[i][session_type][be_id]);
  25461. if (msm_is_resample_needed(
  25462. sample_rate,
  25463. bedai->sample_rate))
  25464. adm_copp_mfc_cfg(port_id, copp_idx,
  25465. bedai->sample_rate);
  25466. msm_pcm_routing_build_matrix(i, session_type, path_type,
  25467. fdai->perf_mode, fdai->passthr_mode);
  25468. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  25469. (fdai->passthr_mode == LEGACY_PCM))
  25470. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  25471. topology, channels);
  25472. }
  25473. }
  25474. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25475. session_id = msm_pcm_routing_get_voc_sessionid(i);
  25476. if (session_id) {
  25477. pr_debug("%s voice session_id: 0x%x\n", __func__,
  25478. session_id);
  25479. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  25480. voc_path_type = RX_PATH;
  25481. else
  25482. voc_path_type = TX_PATH;
  25483. voc_set_route_flag(session_id, voc_path_type, 1);
  25484. memset(&voc_be_media_format, 0,
  25485. sizeof(struct media_format_info));
  25486. voc_be_media_format.port_id = bedai->port_id;
  25487. voc_be_media_format.num_channels = bedai->channel;
  25488. voc_be_media_format.sample_rate = bedai->sample_rate;
  25489. voc_be_media_format.bits_per_sample = bedai->format;
  25490. /* Defaulting this to 1 for voice call usecases */
  25491. voc_be_media_format.channel_mapping[0] = 1;
  25492. voc_set_device_config(session_id, voc_path_type,
  25493. &voc_be_media_format);
  25494. if (voc_get_route_flag(session_id, RX_PATH) &&
  25495. voc_get_route_flag(session_id, TX_PATH))
  25496. voc_enable_device(session_id);
  25497. }
  25498. }
  25499. /* Check if backend is an external ec ref port and set as needed */
  25500. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  25501. memset(&voc_be_media_format, 0,
  25502. sizeof(struct media_format_info));
  25503. /* Get format info for ec ref port from msm_bedais[] */
  25504. voc_be_media_format.port_id = bedai->port_id;
  25505. voc_be_media_format.num_channels = bedai->channel;
  25506. voc_be_media_format.bits_per_sample = bedai->format;
  25507. voc_be_media_format.sample_rate = bedai->sample_rate;
  25508. /* Defaulting this to 1 for voice call usecases */
  25509. voc_be_media_format.channel_mapping[0] = 1;
  25510. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  25511. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  25512. __func__, voc_be_media_format.port_id,
  25513. voc_be_media_format.num_channels,
  25514. voc_be_media_format.bits_per_sample,
  25515. voc_be_media_format.sample_rate);
  25516. }
  25517. done:
  25518. mutex_unlock(&routing_lock);
  25519. return 0;
  25520. }
  25521. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  25522. int fe_id)
  25523. {
  25524. int index, topo_id, be_idx;
  25525. unsigned long pp_config = 0;
  25526. bool mute_on;
  25527. int latency, session_type;
  25528. bool compr_passthr_mode = true;
  25529. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  25530. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  25531. pr_err("%s: Device pp params on invalid port %d\n",
  25532. __func__, port_id);
  25533. return -EINVAL;
  25534. }
  25535. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  25536. if (port_id == msm_bedais[be_idx].port_id)
  25537. break;
  25538. }
  25539. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  25540. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  25541. return -EINVAL;
  25542. }
  25543. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  25544. if (msm_bedais_pp_params[index].port_id == port_id)
  25545. break;
  25546. }
  25547. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  25548. pr_err("%s: Invalid backend pp params index %d\n",
  25549. __func__, index);
  25550. return -EINVAL;
  25551. }
  25552. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  25553. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  25554. pr_err("%s: Invalid passthrough topology 0x%x\n",
  25555. __func__, topo_id);
  25556. return -EINVAL;
  25557. }
  25558. session_type =
  25559. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  25560. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25561. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  25562. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  25563. compr_passthr_mode = false;
  25564. pp_config = msm_bedais_pp_params[index].pp_params_config;
  25565. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  25566. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  25567. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  25568. mute_on = msm_bedais_pp_params[index].mute_on;
  25569. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25570. adm_send_compressed_device_mute(port_id,
  25571. copp_idx,
  25572. mute_on);
  25573. }
  25574. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  25575. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  25576. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  25577. &pp_config);
  25578. latency = msm_bedais_pp_params[index].latency;
  25579. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25580. adm_send_compressed_device_latency(port_id,
  25581. copp_idx,
  25582. latency);
  25583. }
  25584. return 0;
  25585. }
  25586. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  25587. {
  25588. uint32_t topology = NULL_COPP_TOPOLOGY;
  25589. void *cal_info = NULL;
  25590. uint32_t size = 0;
  25591. /* Retrieve cal_info size from cal data*/
  25592. if (data_size < sizeof(struct audio_cal_type_basic) +
  25593. sizeof(struct audio_cal_info_adm_top)) {
  25594. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  25595. goto done;
  25596. }
  25597. size = data_size - sizeof(struct audio_cal_type_basic);
  25598. cal_info = kzalloc(size, GFP_KERNEL);
  25599. if (!cal_info)
  25600. goto done;
  25601. memcpy(cal_info,
  25602. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  25603. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  25604. kfree(cal_info);
  25605. cal_info = NULL;
  25606. done:
  25607. pr_debug("%s: Using topology %d\n", __func__, topology);
  25608. return topology;
  25609. }
  25610. static void msm_routing_load_topology(size_t data_size, void *data)
  25611. {
  25612. uint32_t topology_id;
  25613. int ret = -EINVAL;
  25614. topology_id = msm_routing_get_topology(data_size, data);
  25615. if (topology_id != NULL_COPP_TOPOLOGY)
  25616. ret = q6core_load_unload_topo_modules(topology_id,
  25617. CORE_LOAD_TOPOLOGY);
  25618. if (ret < 0)
  25619. pr_debug("%s %d load topology failed\n",
  25620. __func__, topology_id);
  25621. }
  25622. static void msm_routing_unload_topology(uint32_t topology_id)
  25623. {
  25624. int ret = -EINVAL;
  25625. if (topology_id != NULL_COPP_TOPOLOGY)
  25626. ret = q6core_load_unload_topo_modules(topology_id,
  25627. CORE_UNLOAD_TOPOLOGY);
  25628. if (ret < 0)
  25629. pr_debug("%s %d unload topology failed\n",
  25630. __func__, topology_id);
  25631. }
  25632. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  25633. struct snd_ctl_elem_value *ucontrol)
  25634. {
  25635. int pp_id = ucontrol->value.integer.value[0];
  25636. int port_id = 0;
  25637. int index, be_idx, i, topo_id, idx;
  25638. bool mute;
  25639. int latency, session_type;
  25640. bool compr_passthr_mode = true;
  25641. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  25642. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  25643. port_id = msm_bedais[be_idx].port_id;
  25644. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  25645. break;
  25646. }
  25647. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  25648. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  25649. return -EINVAL;
  25650. }
  25651. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  25652. if (msm_bedais_pp_params[index].port_id == port_id)
  25653. break;
  25654. }
  25655. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  25656. pr_err("%s: Invalid pp params backend index %d\n",
  25657. __func__, index);
  25658. return -EINVAL;
  25659. }
  25660. session_type =
  25661. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  25662. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25663. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  25664. MSM_FRONTEND_DAI_MM_SIZE) {
  25665. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  25666. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  25667. compr_passthr_mode = false;
  25668. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  25669. unsigned long copp =
  25670. session_copp_map[i]
  25671. [SESSION_TYPE_RX][be_idx];
  25672. if (!test_bit(idx, &copp))
  25673. continue;
  25674. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  25675. idx);
  25676. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  25677. continue;
  25678. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  25679. __func__, port_id, copp, msm_bedais[be_idx].active,
  25680. fe_dai_map[i][session_type].passthr_mode);
  25681. switch (pp_id) {
  25682. case ADM_PP_PARAM_MUTE_ID:
  25683. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  25684. mute = ucontrol->value.integer.value[1] ? true : false;
  25685. msm_bedais_pp_params[index].mute_on = mute;
  25686. set_bit(ADM_PP_PARAM_MUTE_BIT,
  25687. &msm_bedais_pp_params[index].pp_params_config);
  25688. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25689. adm_send_compressed_device_mute(port_id,
  25690. idx, mute);
  25691. break;
  25692. case ADM_PP_PARAM_LATENCY_ID:
  25693. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  25694. msm_bedais_pp_params[index].latency =
  25695. ucontrol->value.integer.value[1];
  25696. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  25697. &msm_bedais_pp_params[index].pp_params_config);
  25698. latency = msm_bedais_pp_params[index].latency =
  25699. ucontrol->value.integer.value[1];
  25700. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25701. adm_send_compressed_device_latency(port_id,
  25702. idx, latency);
  25703. break;
  25704. default:
  25705. pr_info("%s, device pp param %d not supported\n",
  25706. __func__, pp_id);
  25707. break;
  25708. }
  25709. }
  25710. }
  25711. return 0;
  25712. }
  25713. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  25714. struct snd_ctl_elem_value *ucontrol)
  25715. {
  25716. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  25717. return 0;
  25718. }
  25719. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  25720. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  25721. 0, 3, msm_routing_get_device_pp_params_mixer,
  25722. msm_routing_put_device_pp_params_mixer),
  25723. };
  25724. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  25725. struct snd_ctl_elem_value *ucontrol)
  25726. {
  25727. ucontrol->value.integer.value[0] =
  25728. core_get_license_status(ASM_MEDIA_FMT_APTX);
  25729. pr_debug("%s: status %ld\n", __func__,
  25730. ucontrol->value.integer.value[0]);
  25731. return 0;
  25732. }
  25733. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  25734. struct snd_ctl_elem_value *ucontrol)
  25735. {
  25736. int32_t status = 0;
  25737. status = core_set_license(ucontrol->value.integer.value[0],
  25738. APTX_CLASSIC_DEC_LICENSE_ID);
  25739. pr_debug("%s: status %d\n", __func__, status);
  25740. return status;
  25741. }
  25742. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  25743. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  25744. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  25745. msm_aptx_dec_license_control_put),
  25746. };
  25747. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  25748. struct snd_ctl_elem_value *ucontrol)
  25749. {
  25750. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  25751. uint32_t be_idx = ucontrol->value.integer.value[0];
  25752. int i;
  25753. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  25754. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  25755. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  25756. pr_err("%s: Invalid channel map %d\n",
  25757. __func__, channel_map[i]);
  25758. return -EINVAL;
  25759. }
  25760. }
  25761. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  25762. return 0;
  25763. }
  25764. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  25765. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  25766. MSM_BACKEND_DAI_MAX, 0,
  25767. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  25768. msm_routing_put_port_chmap_mixer),
  25769. };
  25770. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  25771. struct snd_ctl_elem_info *uinfo)
  25772. {
  25773. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  25774. uinfo->count = sizeof(be_dai_name_table);
  25775. return 0;
  25776. }
  25777. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  25778. unsigned int __user *bytes,
  25779. unsigned int size)
  25780. {
  25781. int i;
  25782. int ret = 0;
  25783. if (size < sizeof(be_dai_name_table)) {
  25784. pr_err("%s: invalid size %d requested, returning\n",
  25785. __func__, size);
  25786. ret = -EINVAL;
  25787. goto done;
  25788. }
  25789. /*
  25790. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  25791. * needed when adding new backends
  25792. */
  25793. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  25794. be_dai_name_table[i].be_id = i;
  25795. strlcpy(be_dai_name_table[i].be_name,
  25796. msm_bedais[i].name,
  25797. LPASS_BE_NAME_MAX_LENGTH);
  25798. }
  25799. ret = copy_to_user(bytes, &be_dai_name_table,
  25800. sizeof(be_dai_name_table));
  25801. if (ret) {
  25802. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  25803. ret = -EFAULT;
  25804. }
  25805. done:
  25806. return ret;
  25807. }
  25808. static const struct snd_kcontrol_new
  25809. msm_routing_be_dai_name_table_mixer_controls[] = {
  25810. {
  25811. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  25812. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  25813. .info = msm_routing_be_dai_name_table_info,
  25814. .name = "Backend DAI Name Table",
  25815. .tlv.c = snd_soc_bytes_tlv_callback,
  25816. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  25817. .max = sizeof(be_dai_name_table),
  25818. .get = msm_routing_be_dai_name_table_tlv_get,
  25819. }
  25820. },
  25821. };
  25822. static int msm_routing_stereo_channel_reverse_control_get(
  25823. struct snd_kcontrol *kcontrol,
  25824. struct snd_ctl_elem_value *ucontrol)
  25825. {
  25826. ucontrol->value.integer.value[0] = swap_ch;
  25827. pr_debug("%s: Swap channel value: %ld\n", __func__,
  25828. ucontrol->value.integer.value[0]);
  25829. return 0;
  25830. }
  25831. static int msm_routing_stereo_channel_reverse_control_put(
  25832. struct snd_kcontrol *kcontrol,
  25833. struct snd_ctl_elem_value *ucontrol)
  25834. {
  25835. int i, idx, be_index, port_id;
  25836. int ret = 0;
  25837. unsigned long copp;
  25838. pr_debug("%s Swap channel value:%ld\n", __func__,
  25839. ucontrol->value.integer.value[0]);
  25840. swap_ch = ucontrol->value.integer.value[0];
  25841. mutex_lock(&routing_lock);
  25842. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  25843. port_id = msm_bedais[be_index].port_id;
  25844. if (!msm_bedais[be_index].active)
  25845. continue;
  25846. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  25847. MSM_FRONTEND_DAI_MM_SIZE) {
  25848. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  25849. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  25850. if (!test_bit(idx, &copp))
  25851. continue;
  25852. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  25853. __func__, port_id, idx);
  25854. ret = adm_swap_speaker_channels(
  25855. port_id, idx,
  25856. msm_bedais[be_index].sample_rate,
  25857. swap_ch);
  25858. if (ret) {
  25859. pr_err("%s:Swap_channel failed, err=%d\n",
  25860. __func__, ret);
  25861. goto done;
  25862. }
  25863. }
  25864. }
  25865. }
  25866. done:
  25867. mutex_unlock(&routing_lock);
  25868. return ret;
  25869. }
  25870. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  25871. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  25872. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  25873. msm_routing_stereo_channel_reverse_control_put),
  25874. };
  25875. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  25876. struct snd_ctl_elem_info *uinfo)
  25877. {
  25878. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  25879. uinfo->count = 1;
  25880. return 0;
  25881. }
  25882. static int msm_routing_instance_id_support_put(
  25883. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  25884. {
  25885. bool supported = ucontrol->value.integer.value[0] ? true : false;
  25886. q6common_update_instance_id_support(supported);
  25887. return 0;
  25888. }
  25889. static int msm_routing_instance_id_support_get(
  25890. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  25891. {
  25892. bool supported = false;
  25893. supported = q6common_is_instance_id_supported();
  25894. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  25895. return 0;
  25896. }
  25897. static const struct snd_kcontrol_new
  25898. msm_routing_feature_support_mixer_controls[] = {
  25899. {
  25900. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  25901. SNDRV_CTL_ELEM_ACCESS_WRITE,
  25902. .info = msm_routing_instance_id_support_info,
  25903. .name = "Instance ID Support",
  25904. .put = msm_routing_instance_id_support_put,
  25905. .get = msm_routing_instance_id_support_get,
  25906. },
  25907. };
  25908. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  25909. .hw_params = msm_pcm_routing_hw_params,
  25910. .close = msm_pcm_routing_close,
  25911. .prepare = msm_pcm_routing_prepare,
  25912. };
  25913. /* Not used but frame seems to require it */
  25914. static int msm_routing_probe(struct snd_soc_component *component)
  25915. {
  25916. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  25917. ARRAY_SIZE(msm_qdsp6_widgets));
  25918. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  25919. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  25920. snd_soc_dapm_add_routes(&component->dapm, intercon,
  25921. ARRAY_SIZE(intercon));
  25922. snd_soc_dapm_new_widgets(component->dapm.card);
  25923. snd_soc_add_component_controls(component, lsm_controls,
  25924. ARRAY_SIZE(lsm_controls));
  25925. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  25926. ARRAY_SIZE(aanc_slim_0_rx_mux));
  25927. snd_soc_add_component_controls(component, aanc_noise_level,
  25928. ARRAY_SIZE(aanc_noise_level));
  25929. snd_soc_add_component_controls(component, msm_voc_session_controls,
  25930. ARRAY_SIZE(msm_voc_session_controls));
  25931. snd_soc_add_component_controls(component, app_type_cfg_controls,
  25932. ARRAY_SIZE(app_type_cfg_controls));
  25933. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  25934. ARRAY_SIZE(lsm_app_type_cfg_controls));
  25935. snd_soc_add_component_controls(component, module_cfg_controls,
  25936. ARRAY_SIZE(module_cfg_controls));
  25937. snd_soc_add_component_controls(component,
  25938. stereo_to_custom_stereo_controls,
  25939. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  25940. snd_soc_add_component_controls(component, ec_ref_param_controls,
  25941. ARRAY_SIZE(ec_ref_param_controls));
  25942. snd_soc_add_component_controls(component, channel_mixer_controls,
  25943. ARRAY_SIZE(channel_mixer_controls));
  25944. msm_qti_pp_add_controls(component);
  25945. msm_dts_srs_tm_add_controls(component);
  25946. msm_dolby_dap_add_controls(component);
  25947. snd_soc_add_component_controls(component,
  25948. use_ds1_or_ds2_controls,
  25949. ARRAY_SIZE(use_ds1_or_ds2_controls));
  25950. snd_soc_add_component_controls(component,
  25951. device_pp_params_mixer_controls,
  25952. ARRAY_SIZE(device_pp_params_mixer_controls));
  25953. snd_soc_add_component_controls(component,
  25954. msm_routing_be_dai_name_table_mixer_controls,
  25955. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  25956. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  25957. ARRAY_SIZE(msm_source_tracking_controls));
  25958. snd_soc_add_component_controls(component, adm_channel_config_controls,
  25959. ARRAY_SIZE(adm_channel_config_controls));
  25960. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  25961. ARRAY_SIZE(aptx_dec_license_controls));
  25962. snd_soc_add_component_controls(component,
  25963. stereo_channel_reverse_control,
  25964. ARRAY_SIZE(stereo_channel_reverse_control));
  25965. snd_soc_add_component_controls(
  25966. component, msm_routing_feature_support_mixer_controls,
  25967. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  25968. snd_soc_add_component_controls(component,
  25969. port_multi_channel_map_mixer_controls,
  25970. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  25971. return 0;
  25972. }
  25973. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  25974. {
  25975. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  25976. }
  25977. void msm_routing_pcm_free(struct snd_pcm *pcm)
  25978. {
  25979. msm_pcm_routing_hwdep_free(pcm);
  25980. }
  25981. static struct snd_soc_component_driver msm_soc_routing_component = {
  25982. .name = DRV_NAME,
  25983. .ops = &msm_routing_pcm_ops,
  25984. .probe = msm_routing_probe,
  25985. .pcm_new = msm_routing_pcm_new,
  25986. .pcm_free = msm_routing_pcm_free,
  25987. };
  25988. static int msm_routing_pcm_probe(struct platform_device *pdev)
  25989. {
  25990. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  25991. return snd_soc_register_component(&pdev->dev,
  25992. &msm_soc_routing_component,
  25993. NULL, 0);
  25994. }
  25995. static int msm_routing_pcm_remove(struct platform_device *pdev)
  25996. {
  25997. snd_soc_unregister_component(&pdev->dev);
  25998. return 0;
  25999. }
  26000. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  26001. {.compatible = "qcom,msm-pcm-routing"},
  26002. {}
  26003. };
  26004. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  26005. static struct platform_driver msm_routing_pcm_driver = {
  26006. .driver = {
  26007. .name = "msm-pcm-routing",
  26008. .owner = THIS_MODULE,
  26009. .of_match_table = msm_pcm_routing_dt_match,
  26010. .suppress_bind_attrs = true,
  26011. },
  26012. .probe = msm_routing_pcm_probe,
  26013. .remove = msm_routing_pcm_remove,
  26014. };
  26015. int msm_routing_check_backend_enabled(int fedai_id)
  26016. {
  26017. int i;
  26018. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  26019. /* bad ID assigned in machine driver */
  26020. pr_err("%s: bad MM ID\n", __func__);
  26021. return 0;
  26022. }
  26023. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  26024. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  26025. return msm_bedais[i].active;
  26026. }
  26027. return 0;
  26028. }
  26029. static int get_cal_type_index(int32_t cal_type)
  26030. {
  26031. int ret = -EINVAL;
  26032. switch (cal_type) {
  26033. case ADM_TOPOLOGY_CAL_TYPE:
  26034. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  26035. break;
  26036. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  26037. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  26038. break;
  26039. default:
  26040. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  26041. }
  26042. return ret;
  26043. }
  26044. static int msm_routing_set_cal(int32_t cal_type,
  26045. size_t data_size, void *data)
  26046. {
  26047. int ret = 0;
  26048. int cal_index;
  26049. pr_debug("%s\n", __func__);
  26050. cal_index = get_cal_type_index(cal_type);
  26051. if (cal_index < 0) {
  26052. pr_err("%s: Could not get cal index %d\n",
  26053. __func__, cal_index);
  26054. ret = -EINVAL;
  26055. goto done;
  26056. }
  26057. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  26058. if (ret < 0) {
  26059. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  26060. __func__, ret, cal_type);
  26061. ret = -EINVAL;
  26062. goto done;
  26063. }
  26064. /* Pre-load if it is ADM topology */
  26065. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  26066. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  26067. msm_routing_load_topology(data_size, data);
  26068. }
  26069. done:
  26070. return ret;
  26071. }
  26072. static void msm_routing_delete_cal_data(void)
  26073. {
  26074. pr_debug("%s\n", __func__);
  26075. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  26076. }
  26077. static int msm_routing_init_cal_data(void)
  26078. {
  26079. int ret = 0;
  26080. struct cal_type_info cal_type_info[] = {
  26081. {{ADM_TOPOLOGY_CAL_TYPE,
  26082. {NULL, NULL, NULL,
  26083. msm_routing_set_cal, NULL, NULL} },
  26084. {NULL, NULL, cal_utils_match_buf_num} },
  26085. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  26086. {NULL, NULL, NULL,
  26087. msm_routing_set_cal, NULL, NULL} },
  26088. {NULL, NULL, cal_utils_match_buf_num} },
  26089. };
  26090. pr_debug("%s\n", __func__);
  26091. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  26092. &cal_type_info[0]);
  26093. if (ret < 0) {
  26094. pr_err("%s: could not create cal type!\n",
  26095. __func__);
  26096. ret = -EINVAL;
  26097. goto err;
  26098. }
  26099. return ret;
  26100. err:
  26101. msm_routing_delete_cal_data();
  26102. return ret;
  26103. }
  26104. int __init msm_soc_routing_platform_init(void)
  26105. {
  26106. mutex_init(&routing_lock);
  26107. if (msm_routing_init_cal_data())
  26108. pr_err("%s: could not init cal data!\n", __func__);
  26109. afe_set_routing_callback(
  26110. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  26111. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  26112. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  26113. return platform_driver_register(&msm_routing_pcm_driver);
  26114. }
  26115. void msm_soc_routing_platform_exit(void)
  26116. {
  26117. msm_routing_delete_cal_data();
  26118. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  26119. mutex_destroy(&routing_lock);
  26120. platform_driver_unregister(&msm_routing_pcm_driver);
  26121. }
  26122. MODULE_DESCRIPTION("MSM routing platform driver");
  26123. MODULE_LICENSE("GPL v2");